Searching \ for '[SX] Another SX programming question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/ubicom/devprogs.htm?key=sx
Search entire site for: 'Another SX programming question'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Another SX programming question'
2007\06\13@092221 by alex41n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, alex41 wrote:

I do have a question about programming the SX.

I just ordered the SX tech tool kit. I don't have it yet, but I am playing with the Basic stamp and learning PBasic.

I am trying to build a freqncy to frequency converter. I would like the amount of frequency adjustment to be adjustable with a pot - or anything else if anyone has any ideas. The frequency range would be about 50 - 500hz or so - nothing real fast.

I can see how the programming would work with a stamp, but since it is a slower proccessor I can see how it wouldn't work, specifically using the RCTIME command to read a pot adjustment. This would interrupt the program in producing the output frequency.


I can see how a faster proccessor is neccessary. In an  earlier post I asked how and what I need to do this. I was referred to the SX or the Propeller chip.


Since I just ordered the SX kit, let me try that for now. I know the SX is much faster than the Stamp, but it could still have the same problem couldn't it? I mean the program has to stop and wait for the RCTIME command to measure the pot, right? Let's say just for the sake or arguement that the RCTIME command takes 5ms to read the pot. Regardless of how fast the proccessor is, it still has to stop and wait for the command to complete, in this time it would be disrupting the freq output for 5ms? Am I correct in this, or can the SX run more than one program at a time? Or would I need another processor to complete this? The SX is priced very reasonable, so another one wouldn't break the bank by anymeans, but I do believe in simplicity.


I'm just learning this stuff now and would like to stay with the Pbasic for the SX for programming. At this point I don't believe the program would be very large so memory isn't a big concern.



Thanks for any help,
Alex
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=196422
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\06\13@101145 by JonnyMacn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote:

You could use an ISR-driven ADC so that the pot setting is constantly monitored; see Guenther Daubach's [excellent] book, "Programming the SX Microcontroller" for code.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=196422#m196441
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...