Overview
External interrupts – RB port change interrupts
- The student will be able
to handle external interrupts:
- INT0 (RB0)
- INT1 (RB1)
- INT2 (RB2)
- The student will be able to handle RB port change interrupts (on pins RB4~RB7)
- The student will be able to load and animate a microcontroller program in the Proteus Design Suite
- The student must know the use of the
Direction Register and the Data Register of a microcontroller parallel port, PIC18F4550 datasheet (I/O ports, p.
113)
- The student must know the commands of CCS C Compiler associated with the use of parallel ports, CCS C Compiler Manual (Built In Functions, DISCRETE I/O p. 159, set_tris_x() command p.244)
- The student must be familiarized with the Proteus Design Suite
Τhe duration of this module is 3 hours
Tip. Requirement / operation of the compiler about RB change interrupts: The value of PORTB (or one of the pins RB4, RB5, RB6, RB7) must be read to clear the interrupt flag (IF). If the IF is not cleared when exiting the interrupt service routine (ISR), the IF is raised and the program re-enters the ISR.
Last modified: Sunday, 21 November 2021, 1:08 PM