View previous topic :: View next topic |
Author |
Message |
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
How to Reset my MCU from a RS-232 signal (DTR, etc.) |
Posted: Sun Mar 21, 2004 2:32 pm |
|
|
Hi,
I need to reset my MCU from a RS-232 signal, is possible to send me the schematics for this and sample code.
Thank you very much!!!!! |
|
|
Felix Althaus
Joined: 09 Sep 2003 Posts: 67 Location: Winterthur, Switzerland
|
|
Posted: Sun Mar 21, 2004 2:42 pm |
|
|
Hi
How do you want to reset your PIC? By hardware signal or by a received RS232 command?
Can you specify your problem a little bit more?
Felix |
|
|
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
|
Posted: Sun Mar 21, 2004 2:47 pm |
|
|
I want to reset my PIC by put the RST or other singal in RS-232 in HIGH. Not by command.
Thanks |
|
|
Konrad
Joined: 15 Sep 2003 Posts: 34
|
|
Posted: Sun Mar 21, 2004 4:34 pm |
|
|
DTS/DTR is probably better, just connect via 22k to /MCLR, but,
What are you trying to do?
Use restart() & RS232 interrupts would probably be more controlable. |
|
|
Guest
|
Re: How to Reset my MCU from a RS-232 signal (DTR, etc.) |
Posted: Sun Mar 21, 2004 5:50 pm |
|
|
cfernandez wrote: | Hi,
I need to reset my MCU from a RS-232 signal, is possible to send me the schematics for this and sample code.
Thank you very much!!!!! |
I implement this method thru RS232 but I send a command to the PIC using reset_cpu() method. |
|
|
Guest
|
|
Posted: Sun Mar 21, 2004 5:51 pm |
|
|
Konrad wrote: | DTS/DTR is probably better, just connect via 22k to /MCLR, but,
What are you trying to do?
Use restart() & RS232 interrupts would probably be more controlable. |
I don't think CCS has a built-in function for restart()... |
|
|
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
|
Posted: Sun Mar 21, 2004 8:14 pm |
|
|
I am making a reader to connect a POS and is possible that the POS need reset the reader, for example: The POS upgrade the firmware of reader and in the middle of upgrade the electrical conexion OFF, then the reader not have a correct firmware and is possible that the POS RESET the reader to comunicate with the bootloader.
You have a best idea for this case?
Best Regards. |
|
|
Pete Smith
Joined: 17 Sep 2003 Posts: 55 Location: Chester, UK
|
|
Posted: Mon Mar 22, 2004 3:23 am |
|
|
Anonymous wrote: | Konrad wrote: | DTS/DTR is probably better, just connect via 22k to /MCLR, but,
What are you trying to do?
Use restart() & RS232 interrupts would probably be more controlable. |
I don't think CCS has a built-in function for restart()... |
reset_cpu(); is what you're after.
HTH
Pete. |
|
|
|