
Page 20
Programming Details
Chapter 3
Page 20
01270193.doc
Blue Chip Technology Ltd.
Interrupt Selection
The use of interrupts is not essential but greatly enhances the functionality of
the card. A total of seven sources of interrupt are available from the PIO device,
the counter/timers and the Analogue input stage. These interrupts are
summarised below:-
INT0 (PC0) is available when the PIO is operating in mode 1. It provides a
Read Request interrupt for input operations or a Write Request interrupt for
output operations on PIO port A (PA[0:7]).
INT1 (PC3) is available when the PIO is operating in mode 1. It provides a
Read Request interrupt for input operations or a Write Request interrupt for
output operations on PIO port B (PB[0:7]).
INT2 is the output from Counter/timer 0, and may be used to generate
interrupts on timed events.
INT3 is the output from Counter/timer 1, and may be used to generate
interrupts on timed events.
INT4 is the output from Counter/timer 2, and may be used to generate
interrupts on timed events.
INT5 is created from the A-D converter ‘Busy’ flag and may be used to
indicate when a Analogue input conversion has been completed. (Interrupt
on ‘Busy’ being negated).
INT6 is created from the FIFO memory ‘Empty’ flag and may be used to
indicate when the FIFO memory is no longer empty i.e. a sample has been
taken.
INT7 is created from the FIFO memory ‘Half Full’ flag and may be used to
indicate when the FIFO memory is half full. This is provided for the cases
where the interrupt service routine cannot be guaranteed to read the FIFO
before the next sample is stored.