I have ported the PIC boot code to a PIC16f1823 device, using the alternate USART pins RC4/RC5.
I am also trying to use the POWER OFF circuit suggested at the bottom of:
I have modified the PIC code to use the alternate pins and wired up the transistors for the POWER OFF circuit.
On my logic analyzer I see the RTS turn the power off, the serial $C1 come from a USB serial port, the $37, $42 come from the PIC.
The PC app sees:
receive: 00, 37
It would seem that the POWER OFF is being seen as a $00 byte by the USB serial port.
Has anyone tried the POWER OFF circuit ?
Is there a way to clear the Rx buffer in the PC App before the $C1 is sent out ?
Thank You for your assistance.
Please try the following.
Form1.cs line 2203
// send "ask" to PIC
serBuffer = 0xC1;
serialPort.Write(serBuffer, 0, 1);
Thank You Dan,
It works !
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.