Acidtech wrote:
So how are you getting it to work the first time? Right after programming the chip it works? What about after a reset(not a power down)? Also is that the whole program or is that a trimmed down version?
Yes it works after programming the chip. I power up, program the chip, unhook the serial programing cable and I can happily turn lights on from across the room sending 1's and 2's from my laptop connected to the radio. I can send the command 50 times, works fine, I can leave it sit and run for hours, works fine. I can turn off the radios, then turn them back on, it works fine. I just can't power down the chip, if I do, it hangs after the LED flashes on.
The board this is running on does not have a reset switch. RES pin is pulled high via a 10K resistor. But obviously it is resetting at power up since it always runs the first part of the program which turns on the LED. And that is the entire program, like I said it's not doing much.
Kurt, I have tried other pins, the Nano SER pin itself, different boards (of the same design), all have the same problem.
I had hoped someone would just say you forgot this, or do this you idiot, and it would be fixed. This is not something I do as a hobby, it's a means to an end. So I don't spend a lot of time working with uC's other than to do a specific job now and then. So something that may seem very basic may well be over my head. Again, thanks for the ideas.
Scott