EasyManua.ls Logo

Holtek BS82B12A-3 - Pe�Iodic T�Pe TM Registe� Desc�Iption

Holtek BS82B12A-3
168 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...
Rev. 1.20 86 January 23, 2015 Rev. 1.20 87 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
Periodic Type TM Register Description
OveralloperationofthePeriodicTypeTMiscontrolledusingaseriesofregisters.Areadonly
registerpairexiststostoretheinternalcounter10-bitvalue,whiletworead/writeregisterpairsexist
tostoretheinternal10-bitCCRAvalueandCCRPvalue.Theremainingtworegistersarecontrol
registerswhichsetupthedifferentoperatingandcontrolmodes.
Register
Name
Bit
7 6 5 4 3 2 1 0
PTM0C0 PT0PAU PT0CK2 PT0CK1 PT0CK0 PT0ON
PTM0C1 PT0M1 PT0M0 PT0IO1 PT0IO0 PT0OC PT0POL PT0CKS PT0CCLR
PTM0DL D7 D6
D5 D4 D3 D2 D1 D0
PTM0DH D9 D8
PTM0AL D7 D6
D5 D4 D3 D2 D1 D0
PTM0AH D9 D8
PTM0RPL D7 D6
D5 D4 D3 D2 D1 D0
PTM0RPH D9 D8
10-bit Periodic TM Register List
PTM0C0 Register
Bit 7 6 5 4 3 2 1 0
Name PT0PAU PT0CK2 PT0CK1 PT0CK0 PT0ON
R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0
Bit7 PT0PAU:PTM0CounterPauseControl
0:Run
1:Pause
Thecountercanbepausedbysettingthisbithigh.Clearingthebittozerorestores
normalcounteroperation.WheninaPauseconditionthePTM1willremainpowered
upandcontinuetoconsumepower.Thecounterwillretainitsresidualvaluewhen
thisbitchangesfromlowtohighandresumecountingfromthisvaluewhenthebit
changestoalowvalueagain.
Bit6~4 PT0CK2 ~ PT0CK0:SelectPTM0Counterclock
000:f
SYS
/4
001:f
SYS
010:f
H
/16
011:f
H
/64
100:f
SUB
101:f
SUB
110:TCK1risingedgeclock
111:TCK1fallingedgeclock
ThesethreebitsareusedtoselecttheclocksourceforthePTM0.Theexternalpin
clocksourcecanbechosentobeactiveontherasingorfallingedge.Theclocksource
f
SYS
isthesystemclock,whilef
H
andf
SUB
areotherinternalclocks,thedetailsofwhich
canbefoundintheoscillatorsection.

Table of Contents

Related product manuals