ReBoot not working /inconsistant ?
In spin I blink a led on and off then reboot, the program·was saved to eeprom for restarting, I am using a propstick that works fine otherwise.
It is inconsistant, manual reset always restarts ok, and after several manual resets it will some times reboot several times and then stop.
My ocilloscope shows the 5mhz xtal is still running, and the reset pin is at 3.3v with only manual reset affecting it,
this happens with or with out the db9 cable attached.
perhaps the assembley instruction would work better ?
WRBYTE 4 , $80 ($0004 contains the initial value written into the CLK register.)
CLKSET $80········· ( bit 7 = reset)
(I cant get this to assemble!)·
Does any one else have trouble with reboot ?
How do I code this in assembly as an alternative ?
It is inconsistant, manual reset always restarts ok, and after several manual resets it will some times reboot several times and then stop.
My ocilloscope shows the 5mhz xtal is still running, and the reset pin is at 3.3v with only manual reset affecting it,
this happens with or with out the db9 cable attached.
perhaps the assembley instruction would work better ?
WRBYTE 4 , $80 ($0004 contains the initial value written into the CLK register.)
CLKSET $80········· ( bit 7 = reset)
(I cant get this to assemble!)·
Does any one else have trouble with reboot ?
How do I code this in assembly as an alternative ?
Comments
I tried reboot on both a PropSTICK and the beta Demo Board. It consistently failed to reboot the device. 'Didn't do it even once.
I was able to force a reboot with the following Spin command, though, which works consistently:
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
The PropSTICK is wired with SDA pulled to Vdd. But the reboot command isn't working that way either. Since the clkset command will do a reset reliably, I'm wondering if the reboot command is generating the right code...
-Phil
···· ··· clkset bit7set······· 'set bit7 high in clk register - force hardware reboot
bit7set ·long $80
In Spin:
· clkset($80, 0)··· 'force hardware reboot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
-Phil