Specifications
Chapter 4
APPLICATION EXAMPLES
Contents Page
OVERVIEW ..................................................... 4-2
EXAMPLE 1-A: USING SIMPLE INTERRUPTS
................... 4-3
Objectives
................................................... 4-3
System Configuration
......................................... 4-3
Software Outline
............................................. 4-4
Program Code
................................................ 4-6
EXAMPLE 1-B: HANDLING SLAVE INTERRUPTS
.............. 4-13
Objectives
.................................................. 4-13
System Configuration
........................................ 4-14
Software Outline
............................................ 4-14
Program Code
.............................................. 4-17
EXAMPLE 2: POWER-FAIL/WATCHDOG TIMER
................ 4-28
Objectives
.................................................. 4-28
System Level Issues
......................................... 4-28
System Requirements
........................................ 4-29
Software Outline
............................................ 4-31
Flowcharts For AC Power-Fail & Watchdog Interrupts
.......... 4-34
EXAMPLE 3: REAL-TIME CLOCK DRIVERS
.................... 4-40
Objectives
.................................................. 4-40
System Configuration
........................................ 4-40
Software Outline
............................................ 4-40
4-1