EasyManua.ls Logo

STC micro STC8A8K64D4 Series - PWM Level Output Setting Count Value Registers (Pwmnt1,Pwmnt2)

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 548 -
PWMTADCH
FF03H
-
PWMTADCL
FF04H
PWMTADCH: the upper 7 bits of the PWM triggers ADC time.
PWMTADCL: the lower 8 bits of the PWM triggers ADC time.
If EPWMTA =1 and ADC_POWER=1, {PWMTADCH, PWMTADCL} forms a 15-bit register. In the PWM counting
cycle, the hardware will trigger A/D conversion automatically when the internal PWM counting value equals to
the value of {PWMTADCH, PWMTADCL}.
19.2.8 PWM Level output setting count value Registers (PWMnT1
PWMnT2)
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0
PWM0T1H
FF10H
-
PWM0T1L
FF11H
PWM0T2H
FF12H
-
PWM0T2L
FF13H
PWM1T1H
FF18H
-
PWM1T1L
FF19H
PWM1T2H
FF1AH
-
PWM1T2L
FF1BH
PWM2T1H
FF20H
-
PWM2T1L
FF21H
PWM2T2H
FF22H
-
PWM2T2L
FF23H
PWM3T1H
FF28H
-
PWM3T1L
FF29H
PWM3T2H
FF2AH
-
PWM3T2L
FF2BH
PWM4T1H
FF30H
-
PWM4T1L
FF31H
PWM4T2H
FF32H
-
PWM4T2L
FF33H
PWM5T1H
FF38H
-
PWM5T1L
FF39H
PWM5T2H
FF3AH
-
PWM5T2L
FF3BH
PWM6T1H
FF40H
-
PWM6T1L
FF41H
PWM6T2H
FF42H
-
PWM6T2L
FF43H
PWM7T1H
FF48H
-
PWM7T1L
FF49H
PWM7T2H
FF4AH
-
PWM7T2L
FF4BH
PWMiT1H: The upper 7 bits of T1 counter value of channel i of PWM. (i= 0~7)
PWMiT1L: The lower 8 bits of T1 counter value of channel i of PWM. (i= 0~7)
PWMiT2H: The upper 7 bits of T2 counter value of channel i of PWM. (i= 0~7)
PWMiT2L: The lower 8 bits of T2counter value of channel i of PWM. (i= 0~7)
{PWMiT1H, PWMiT1L} and {PWMiT2H, PWMiT2L} of every channel of every PWM are combined into two 15-bit
registers, which are used to control the two flip points of the PWM output waveform in every PWM cycle of each
PWM. During the counting cycle of PWM, the output of PWM will be low level when the internal counting value
of PWMn is equal to the value of T1 set by{PWMiT1H, PWMiT1L}. And the output of the PWM will be high
level when the internal counting value of PWM is queal to the value of the T2 set by {PWMT2H, PWMT2L}.
Note: When the values of {PWMiT1H, PWMiT1L} and {PWMiT2H, PWMiT2L} are set equal, and if the internal
count value of PWM is equal to the set value of T1 / T2, it will output low level.

Table of Contents

Related product manuals