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

Pull Tx low?

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



Joined: 10 Feb 2011
Posts: 241
Location: Vancouver, BC

View user's profile Send private message

Pull Tx low?
PostPosted: Fri Mar 11, 2011 5:39 pm     Reply with quote

Hi There,

I would like to pull low the Tx of my RS232 USART to signal the other PIC that it should enter into the bootloader mode but I don't know how to get this done, I declared the rs232 port like this:
Code:
#use rs232(baud=9600,parity=N,xmit=PIN_G1,rcv=PIN_G2,stream=MCU1)

and tried this to pull down Tx which didn't work... :(
Code:
output_low(PIN_G1);


Any suggestions on how i could solve this? Should I, Can I switch off the RS232 USART while my app is running, I reset the other MCU and once it has entered the bootloader mode, I'd switch on the rs232 interface to send out the data.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 11, 2011 10:06 pm     Reply with quote

This thread about sending a break character, may help:
http://www.ccsinfo.com/forum/viewtopic.php?t=42857
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