Resetting the Propeller
I want the propeller to reset itself when a serial recieve command times out. The purpose of this is to detect to see if someone pulls out the USB cable while data is being transmitted
I wrote a program that I thought would work properly (see attached, PUB Program is where the code is). It does kind of work. The cable needs to be reconnected for the propeller to reset. I want·the prop·to reset when the cable is pulled.
Post Edited (kt88seamp) : 12/11/2009 1:28:39 AM GMT
I wrote a program that I thought would work properly (see attached, PUB Program is where the code is). It does kind of work. The cable needs to be reconnected for the propeller to reset. I want·the prop·to reset when the cable is pulled.
Post Edited (kt88seamp) : 12/11/2009 1:28:39 AM GMT
Comments
buffer := SER.rxtime(1000)
if buffer == -1
reboot
John Abshier
Programming the EEPROM did not work and you reboot exactly with this EEPROM image?