Figure 6.8-13 Period Loading In Up-Count Mode - Nuvoton ISD94124BYI Technical Reference Manual

Isd arm cortex-m4f soc
Table of Contents

Advertisement

point 1
PERIOD
PBUF
CMPDAT
CMPBUF
PERIOD DATA1
PERIOD DATA0
PERIOD DATA2
CMPDAT DATA1
CMPDAT DATA0
CMPU
6.8.5.9
Immediately Loading Mode
If the IMMLDENn (PWM_CTL0[21:16]) bit is set to 1, PWM operates at immediately loading mode.
In
immediately loading
PERIOD(PWM_PERIODn[15:0]) or CMP(PWM_CMPDATn[15:0]), PERIOD or CMPDAT will be
load to active CPSCBUF (PWM_CPSCBUFn_m[15:0]), PBUF (PWM_PBUFn[15:0]) or CMPBUF
(PWM_CMPBUFn[15:0]) after current counter count is completed. If the updated PERIOD value is
less than current counter value, counter will count to 0xFFFF, when counter count to 0xFFFF and
prescale count to zero, the flag CNTMAXF(PWM0_STATUS[5:0]) will raise, and then counter will
count wraparound. Immediately loading mode has the highest priority. If IMMLDENn has been set,
other loading mode for channel n will become invalid. Figure 6.8-14 shows an example and its steps
sequence is described below.
1. Software writes CMPDAT DATA1 and hardware immediately loading CMPDAT DATA1 to
CMPBUF at point 1.
2. Software writes PERIOD DATA1 which is greater than current counter value at point 2; counter
will continue counting until equal to PERIOD DATA1 to finish a period loading.
3. Software writes PERIOD DATA2 which is less than the current counter value at point 3;
counter will continue counting to its maximum value 0xFFFF and count wraparound from 0 to
PERIOD DATA2 to finish this period loading.
Sep 9, 2019
ISD94100 Series Technical Reference Manual
point 2 point 3 point 4
PERIOD DATA0
PERIOD DATA1
PERIOD DATA0

Figure 6.8-13 Period Loading in Up-Count Mode

mode,
when
user
Page 414 of 928
point 5
point 6
PERIOD DATA2
PERIOD DATA1
CMPDAT DATA1
CMPDAT DATA1
CNT
update
CLKPSC(PWM_CLKPSCn_m[11:0]),
PERIOD DATA2
Note:
Write
Load
Rev1.09

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents