CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How to Reset my MCU from a RS-232 signal (DTR, etc.)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cfernandez



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

How to Reset my MCU from a RS-232 signal (DTR, etc.)
PostPosted: Sun Mar 21, 2004 2:32 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 21, 2004 2:42 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 21, 2004 2:47 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 21, 2004 4:34 pm     Reply with quote

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.)
PostPosted: Sun Mar 21, 2004 5:50 pm     Reply with quote

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








PostPosted: Sun Mar 21, 2004 5:51 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 21, 2004 8:14 pm     Reply with quote

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

View user's profile Send private message Visit poster's website MSN Messenger ICQ Number

PostPosted: Mon Mar 22, 2004 3:23 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group