TIMER A
7.6 Pulse width modulation (PWM) mode
<When operating as a 16-bit pulse width modulator>
Timer A0 register (Addresses 4716, 4616)
Timer A1 register (Addresses 4916, 4816)
Timer A2 register (Addresses 4B16, 4A16)
Timer A3 register (Addresses 4D16, 4C16)
Timer A4 register (Addresses 4F16, 4E16)
Timer A5 register (Addresses C716, C616)
Timer A6 register (Addresses C916, C816)
Timer A7 register (Addresses CB16, CA16)
Timer A8 register (Addresses CD16, CC16)
Timer A9 register (Addresses CF16, CE16)
(b8)
(b15)
b7
b0 b7
b0
Bit
Function
At reset R/W
15 to 0
Undefined WO
Any value in the range from “000016” to “FFFE16” can be set.
Assuming that the set value = n, the “H” level width of the PWM pulse which is output
n
fi
from the TAiOUT pin is expressed as follows :
16
2 –1
(PWM pulse period =
)
fi
fi: Frequency of count source
Note: Use the MOVM or STA(STAD) instruction for writing to this register.
Writing to this register must be performed in a unit of 16 bits.
<When operating as an 8-bit pulse width modulator>
Timer A0 register (Addresses 4716, 4616)
Timer A1 register (Addresses 4916, 4816)
Timer A2 register (Addresses 4B16, 4A16)
Timer A3 register (Addresses 4D16, 4C16)
Timer A4 register (Addresses 4F16, 4E16)
Timer A5 register (Addresses C716, C616)
Timer A6 register (Addresses C916, C816)
Timer A7 register (Addresses CB16, CA16)
Timer A8 register (Addresses CD16, CC16)
Timer A9 register (Addresses CF16, CE16)
(b15)
b7
(b8)
b0
b7
b0
Bit
Function
Any value in the range from “0016” to “FF16” can be set.
At reset R/W
7 to 0
Undefined WO
Assuming that the set value = m, the period of the PWM pulse which is output from the
8
TAiOUT pin is expressed as follows:
(m + 1) (2 – 1)
fi
Undefined WO
15 to 8
Any value in the range from “0016” to “FF16” can be set.
Assuming that the set value = n, the “H” level width of the PWM pulse which is output
from the TAiOUT pin is expressed as follows:
n(m + 1)
fi
fi: Frequency of count source
Note: Use the MOVM or STA(STAD) instruction for writing to this register.
Writing to this register must be performed in a unit of 16 bits.
Fig. 7.6.1 Structures of timer Ai register in PWM mode
7905 Group User’s Manual Rev.1.0
7-39