
MC97F6108A User’s manual
11. PPG (Programmable Pulse Generator)
121
ATPCR (Auto Period Mode Control Register) : F9H
7
6
5
4
3
2
1
0
MAX_REQ
MIN_REQ
ATPMAX
ATPMIN
-
ATPSEL1
ATPSEL0
ATPEN
R/W
R/W
R/W
R/W
-
R/W
R/W
R/W
Initial value: 00H
MAX_REQ
If PPG period max matching occurs
, the flag becomes ‘1’. The flag is cleared
before interrupt service routine is served. It is also cleared
by writing a ‘1’.
0
PPG period max matching is not occurred
1
PPG period max matching is occurred
MIN_REQ
If PPG period min matching occurs
, the flag becomes ‘1’. The flag is cleared
before interrupt service routine is served. It is also cleared by
writing a ‘1’.
0
PPG period min matching is not occurred
1
PPG period min matching is occurred
ATPMAX
Enable or Disable max period matching in the auto period mode
0
Disable
1
Enable
ATPMIN
Enable or Disable min period matching in the auto period mode
0
Disable
1
Enable
ATPSEL[1:0] Configure PPG period, when the output of comparator 2 has not occurred, in
the auto period mode.
00
{ATPHR,ATPLR} = {ATPHR,ATPLR}
01
{ATPHR,ATPLR} = {PPGPWMPH,PPGPWMPL}
1x
{ATPHR,ATPLR} = {ATPHR,ATPLR} + USTEP
ATPEN
Auto period mode enable
0
disable
1
Enable