Beruflich Dokumente
Kultur Dokumente
OF
PIC 16 F877A
• Timer 0
• Timer 1
• Timer 2
• Interrupts
• INTCON Register
• PIE 1 Register
• PIR 1 Register
• PIE 2 Register
• PIR 2 Register
INTRODUCTION
• 8 bit timer/counter
• Readable and Writable
• 8 bit software programmable prescaler, can be prescaled for the rates 1:2,
1:4,………………..1:256
• Generates timer0 overflow interrupt
• Clock source :
1. Internal (Fosc/4)
2. External(configured to increment on either rising or falling edge)
TIMER 1
• 16 bit timer/counter
• Programmable prescaled for the rates 1:1, 1:2, 1:4, 1:8
• synchronization is done after prescaling
• Clock source :
1. Internal
2. External
T1CON REGISTER
TIMER 2
• A signal that is sent to the microcontroller to mark the event that need immediate
action.
• Interrupt is asking the processor to stop to perform the current program and to make
time to execute a special code.
• PIC 16F877 supports 14 interrupt sources.
CONTD…
• BCLIE: Bus Collision interrupt enable ----------- ----------- ----------- EEIE BCLIE ----------- ----------- CCP2IE