memory loss
mikea
Posts: 283
i have the prop reading an r/c reciever and depending on what it sees running a 12 volt h bridge. it reads the radio on pin 2 and outputs to the bridge on pin 5, and 6. all grounds tied together. the problem is the prop runs things ok during a power on session that it is programmed in, but when the power is turned off and back on the output to the h bridge is pulsed when it is supposed to be constant. I've had this problem before thinkning i damaged the proto board, so i have a new one with the same thing happening. Im wondering what i could be doing to cause eeprom problems, and if anyone has had a similiar problem. thanks-mike
Comments
This sort of situation would not cause EEPROM problems nor would there be a hardware problem with the Protoboard itself.
Your indenting is inconsistent. The statements that are at the same level of nesting should line up. I don't think it will make a difference, but it makes the program hard to read.
Why the 4th WAITCNT? Once you see the HIGH-LOW transition, you're done with the pulse The WAITCNT for LOW-HIGH at the beginning of the loop is ok since it sets the initial condition for the loop.
Why the code for CTRA? You're not using it otherwise. How about commenting it out even though it shouldn't affect anything.