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 driven RS232 on 12F675?

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



Joined: 02 Apr 2004
Posts: 2

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

Interrupt driven RS232 on 12F675?
PostPosted: Sat Apr 03, 2004 6:45 pm     Reply with quote

Is it possible to fire an interrupt when data is received via the software UART on a 12F675? It doesn't have support for INT_RDA.

If not possible, can someone provide an example of a work-around?

Thanks!
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sat Apr 03, 2004 7:09 pm     Reply with quote

Map your receive pin on the GP2/INT pin and configure the GP2/INT external interrupt to detect falling edges (clear the INTEDG bit INTCON). This way you'll get an interrupt on the start bit of your RS232 data.
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