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

interrupt with rs232 on a 16f877 chip

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







interrupt with rs232 on a 16f877 chip
PostPosted: Tue Jan 13, 2004 3:27 am     Reply with quote

hello

how do i have to config a interrupt which is triggert on the rs232 so it interrupts when something receives on the rs232.

which parameters have to be set?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Jan 13, 2004 7:21 am     Reply with quote

You have to setup the UART. With CCS you can use the #use rs232 directive. See the manual for reference. To have the interrupt "fire", you need to enable the receive interrupt and enable global interrupts. Take a look at "EX_SISR.C" in your examples directory. It shows how to do what you want. Also, this board has a search feature that you can use to find the information. Serial communications have been discussed quite a few times here. There should be many examples. You can search for "ttelmah" and the author. He has posted numerous examples here.
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