Serial Communicatoin + External Interrupt

Status
Not open for further replies.

huanyong

New Member
hii...i have the problem with external interrupt. How to send a signal (like pressing enter button) on PC (through serial port) to activate the external interrupt in PIC?
 
If you are using serial port level shifter (like the max232), you could just tie its output to the external interrupt and set your external interrupt to occur on the proper transition. Whenever the state toggles (such as a character coming down the serial line), your interrupt will fire and you can handle whatever in software.
 
Hey,

I am using a pic16F73 now, and I want to put some buttons on the pic I think that portB will do on RB4 t/m RB7.
Can I just put a button on that pin and get RBIE in INTCON set and then I can get a interupt from the buttons.

Thanks,
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…