Pak8 Timing
Help.
I've got my Pak8 working, I can enable and set pulse trains on any
output pin, wonderful. Except- I can't change the time scale! It
defaults to 10 mu-sec time steps. With the command:
shiftout pindata, pinclock,1,[noparse][[/noparse]%11000011] '80musec
I should get 80 mu-sec time steps... but with this or any other
value, nada but 10 mu.
Does the CTRL register (register 6) have anything to do with this? I
thought it's only for setting a fixed number of pulses. Or am I
missing something else?
btw AW, the documentation could be a bit clearer, it took me a while
to figure out that timing values are sent LS byte first, but each
byte goes MS bit first!
patmat
I've got my Pak8 working, I can enable and set pulse trains on any
output pin, wonderful. Except- I can't change the time scale! It
defaults to 10 mu-sec time steps. With the command:
shiftout pindata, pinclock,1,[noparse][[/noparse]%11000011] '80musec
I should get 80 mu-sec time steps... but with this or any other
value, nada but 10 mu.
Does the CTRL register (register 6) have anything to do with this? I
thought it's only for setting a fixed number of pulses. Or am I
missing something else?
btw AW, the documentation could be a bit clearer, it took me a while
to figure out that timing values are sent LS byte first, but each
byte goes MS bit first!
patmat
Comments
The command you are sending should set the prescaler. However, is it
possible you are resetting the PAK after setting the prescaler? There
should be nothing to do with CTRL. Also, are you performing the
recommended reset before trying to set the prescale? Without it, the
first command you send may not be recognized.
Would you mind sending me your code to my address (alw@a...)
and let me look at it? I'm sure we can resolve what the problem is.
Al Williams
AWC
* Easy RS-232 Prototyping
http://www.al-williams.com/awce/rs1.htm
>
Original Message
> From: y2patmat [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=AR9E1o7B1Dk3xKxbUkp6KIWw7RfykaAPEcA_5YznOfE_wvblPS9n0FxVr4etIkceAqm-ChjpKHs3]patmat2350@a...[/url
> Sent: Tuesday, January 22, 2002 9:14 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Pak8 Timing
>
>
> Help.
> I've got my Pak8 working, I can enable and set pulse trains on any
> output pin, wonderful. Except- I can't change the time scale! It
> defaults to 10 mu-sec time steps. With the command:
>
> shiftout pindata, pinclock,1,[noparse][[/noparse]%11000011] '80musec
>
> I should get 80 mu-sec time steps... but with this or any other
> value, nada but 10 mu.
> Does the CTRL register (register 6) have anything to do with this? I
> thought it's only for setting a fixed number of pulses. Or am I
> missing something else?
>
> btw AW, the documentation could be a bit clearer, it took me a while
> to figure out that timing values are sent LS byte first, but each
> byte goes MS bit first!
>
> patmat
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>