what is interrupt for pic18f452? and when do we need to use interrupt ? I read the datasheet of pic18f452 about interrupt:
But don't know what are those registers above for. I was searching around for some example for interrupt in C language but barely to see. If anyone has studies or know this pic please help me. Sorry if my words may sound stupid and newbie.
The PIC18FXX2 devices have multiple interrupt
sources and an interrupt priority feature that allows
each interrupt source to be assigned a high priority
level or a low priority level. The high priority interrupt
vector is at 000008h and the low priority interrupt vector
is at 000018h. High priority interrupt events will override
any low priority interrupts that may be in progress.
There are ten registers which are used to control
interrupt operation. These registers are:
• RCON
• INTCON
• INTCON2
• INTCON3
• PIR1, PIR2
• PIE1, PIE2
• IPR1, IPR2
.........
But don't know what are those registers above for. I was searching around for some example for interrupt in C language but barely to see. If anyone has studies or know this pic please help me. Sorry if my words may sound stupid and newbie.