SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 72
Version 1.0
TC1R AUTO-LOAD REGISTER
TC1R is an 8-bit register for the TC1 auto-reload function. TC1R’s value applies to TC1OUT and PWM1OUT functions.
Under TC1OUT application, users must enable and set the TC1R register. The main purpose of TC1R is as following.
Store the auto-reload value and set into TC1C when the TC1C overflow. (ALOAD1 = 1).
Store the duty value of PWM1OUT function.
TC1R initial value = xxxx xxxx
0DEH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
TC1R
TC1R7 TC1R6 TC1R5 TC1R4 TC1R3 TC1R2 TC1R1 TC1R0
W W W W W W W W
The equation of TC1R initial value is like TC1C as following.
TC1R initial value = N - (TC1 interrupt interval time * input clock)
Which N is determinate by code option: TC1_Counter
TC0_Counter
N
Max. TC0R value
8-bit 256
255
6-bit 64
63
5-bit 32
31
4-bit 16
15
Note: TheTC1R must small or equal than Max. TC1R value.
Note: The TC1R is write-only register can’t be process by INCMS, DECMS instructions.