Rev. 1.20 98 January 23, 2015 Rev. 1.20 99 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Counter Value
YY
CCRP
PT0ON
PT0PAU
CCRP Int.
Flag PTMP0F
CCRA Int.
Flag PTMA0F
CCRA
Value
Time
Counter cleared
by CCRP
Pause
Resume
Counter
Reset
PT0M [1:0] = 01
PTM0 capture pin
TP1_0,TP1_1
or TCK1
XX
Counter
Stop
PT0IO [1:0]
Value
XX YY XX YY
Active
edge
Active
edge
Active edge
00 – Rising edge 01 – Falling edge 10 – Both edges 11 – Disable Capture
Capture Input Mode
Note:1.PT0M[1:0]=01andactiveedgesetbythePT0IO[1:0]bits
2.APTM0CaptureinputpinactiveedgetransfersthecountervaluetoCCRA
3.PT0CCLRbitnotused
4.Nooutputfunction–PT0OCandPT0POLbitsarenotused
5.CCRPdeterminesthecountervalueandthecounterhasamaximumcountvaluewhen
CCRPisequaltozero.