Panasonic MN103S User Manual page 292

Panaxseries
Hide thumbs Also See for MN103S:
Table of Contents

Advertisement

Chapter 9
16-bit Timer
(9) Initialize the timer 8
TM8MD(0x0000A200)
bp6: TMLDE=1
(10) Set the output pin (pin function)
P3MD(0x0000A033)
bp6: P36M=1
(11) Set the output pin (I/O function)
P3DIR(0x0000A023)
bp6: P36D=1
(12) Start the timer operation
TM8MD(0x0000A200)
bp7: TMCNE=1
TM8BC counter counts up. When the TM8BC counter and the TM8CA register match, the condition of the output
pin (TM8AIO) is inverted at the rising edge of the next count clock.
The value of the TM8BC counter is initialized to 0x0000 and starts to count up again.
Timer output cycle = (TMnCA value + 1) × Count clock source cycle × 2
IX - 56
Timer Output
Setup Procedure
(9) Set the TMLDE flag of the TM8MD register to "1" to
initialize the timer 8. The value of the compare register
buffer is loaded into the TM8CA register. Reset the
TMLDE flag to "0" after setting.
(10) Set the P36M flag of the port 3 output mode register
(P3MD) to "1" to set the port to the pin function.
(11) Set the P36D flag of the port 3 I/O control register
(P3DIR) to "1" to set the I/O control to the output pin.
(12) Set the TMCNE flag of the TM8MD register to "1" to
operate the timer 8.
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn103sa7dMn103sa7g

Table of Contents