Download Print this page

Panasonic MICROCOMPUTER MN103S Application Note page 13

Panasonic laptop - computer user manual
Hide thumbs Also See for MICROCOMPUTER MN103S:

Advertisement

3.6 8-bit timer operation
3.6.1
Counting rising edges using the event count
■ Overview
This program uses Timer 1 to count the rising edges of the external signal input from the TM1IO input pin with a
binary counter.
When the external input signal is detected 5 times, an interrupt is generated and LED connected to P44 flashes.
The setting stored in the base register determines the number of rising edge detections that is counted until an
interrupt is generated.
■ Hardware allocation list
Source frequency
Ports used
Timers used
Count clock source
Interrupts used
Interrupt level
Interrupt source
fosc (10 MHz)
Port 3 (P31)
Timer 1
TIM0IO input
Timer 1 interrupt
0
Binary counter underflow
Event input pin
Event count timer
LED connected to P44 flashes
8-bit timer operation
Chapter 3
Microcomputer Basics 1
III−37

Advertisement

loading