Panasonic MN103S User Manual page 276

Panaxseries
Hide thumbs Also See for MN103S:
Table of Contents

Advertisement

Chapter 9
16-bit Timer
Count Timing of Timer Operation
The binary counter counts up with the selected count source as a count clock. Table: 9.4.2 shows operation condi-
tion and Figure: 9.4.1 shows count timing.
Table:9.4.2 Operation Condition
Operation condition
Timer up or down selection
Timer compare/capture A mode operation mode selection
Timer counter clear enable
Count
clock
TMnLDE
flag
TMnCNE
flag
Compare register
buffer
Compare capture
register
Binary counter
Interrupt
request flag
(A) When initialization ("1") is written to the TMLDE flag, the value of the compare register buffer is loaded into
the compare/capture register, and the binary counter is initialized to 0x0000. The pin output (TMnOUT) is reset to
"L". Reset the TMnLDE flag to "0" after setting.
(B) When the TMCNE flag is set to the operation enabled ("1"), the binary counter starts to count up. The binary
counter counts at the rising edge of the count clock.
(C) The timer compare/capture interrupt request is generated when counting up is started from matching of the
binary counter and the compare/capture register. The binary counter is initialized to 0x0000 and starts to count up
again.
(D) When the TMCNE flag is set to the operation disabled ("0"), counting up is stopped. The status of the binary
counter is retained after the timer is stopped, if the TMLDE flag is not set to be initialized ("1").When the
TMCNE flag is set to operation enabled ("1"), counting up can be restarted from the status just before the timer
was stopped.
(E) When the value of the compare register buffer is changed during the counting up operation, the value of the
compare register buffer is loaded into the compare/capture register at the next counting up operation from match-
ing condition of the binary counter and compare/capture register.
IX - 40
Interval Timer
Setting description
Up count
Compare register (double buffer)
Clear operation enabled
(A)
N
0000
Figure:9.4.1 Count Timing of Timer Operation
M
(E)
N
0001 0002
N-1
N 0000 0001
(B)
(C)
(D)
M
0002

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn103sa7dMn103sa7g

Table of Contents