- This topic has 1 reply, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › RF-C2500 communocation
hello friends,
i have 2 autonomous bot…and for communication betweem them RF-C2500…
can u help me,how to use INTERRUPT while bots are communicating..
its better,if u tell me the coding behind communication and interrupt..
we r using AVR ATmega16 microcontroller…
Hi Shanki
Interrupts can be internal as well as external. Each interrupt has its own unique routine to follow. You can define one's ISR (Interrupt Service Routine) in you own code in the following manner:
For example, if you are using INT0 external interrupt then it's ISR will be defined like:
ISR(INT0_vect) {
/*
here you can define what work this ISR is supposed to do
*/
}
For further detailed understanding, you can read AtMega 16's datasheet.