Chapter 3
Microcomputer Basics 1
■Flowchart
main ()
Initialize CPU
Set P44 output
Set Timer 1 input pin
Set the base register
Set count clock source
Initialize Timer 1
Select Timer 1 normal operation
Set an interrupt level
Enable the interrupt
Start event
Binary counter underflow
int_timer1 ()
P44 state
Low (LED off)
High output (LED on)
High (LED on)
Low output (LED off)
END
III−41 |