SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 79
V1.4
8.4.4 TCxIRQ and PWM Duty
In PWM mode, the frequency of TC0IRQ is depended on PWM duty range.
ALOADx TCxOUT TCx Overflow boundary PWM duty range
TCxIRQ Frequency
0
0
FFh to 00h
0/256 ~ 255/256
TCx clock / 256
0
1
3Fh to 40h
0/64 ~ 63/64
TCx clock / 64
1
0
1Fh to 20h
0/32 ~ 31/32
TCx clock / 32
1
1
0Fh to 10h
0/16 ~ 15/16
TCx clock / 16
From following diagram, the TC0IRQ frequency is related with PWM duty.
T C 0 O verflow ,
T C 0IR Q = 1
P W M 0 O utput
(D uty R ange 0~15)
0xFF
T C 0C V alue
0x00
P W M 0 O utput
(D uty R ange 0~31)
0xFF
T C 0C V alue
0x00
P W M 0 O utput
(D uty R ange 0~63)
0xFF
T C 0C V alue
0x00
0xFF
T C 0C V alue
0x00
PW M 0 O utput
(D uty R ange 0~255)
T C 0 O verflow ,
T C 0IR Q = 1
T C 0 O verflow ,
T C 0IR Q = 1
T C 0 O verflow ,
T C 0IR Q = 1