|
MDT10P223 Datasheet, PDF (8/21 Pages) Micon Design Technology Corporation – 8-bit micro-controller | |||
|
◁ |
(9) TMR (Time Mode Register)
MDT10P223
Bit
2â0
3
4
5
6
7
Symbol
PS2â0
PSC
TCE
TCS
PHEN
WDTEN
Function
Prescaler Value
RTCC rate
WDT rate
000
1:2
1:1
001
1:4
1:2
010
1:8
1:4
011
1 : 16
1:8
100
1 : 32
1 : 16
101
1 : 64
1 : 32
110
1 : 128
1 : 64
111
1 : 256
1 : 128
Prescaler assignment bit :
0 â RTCC
1 â Watchdog Timer
RTCC signal Edge :
0 â Increment on low-to-high transition on RTCC pin
1 â Increment on high-to-low transition on RTCC pin
RTCC signal set :
0 â Internal instruction cycle clock
1 â Transition on RTCC pin
Global Pull High Enable setï¼
0 â Enable weak internal Pull High
1 â Disable weak internal Pull High
This bit will be ignored if the âI/O pull-hiâ is disable in user
option.
Watchdog timer Enable set :
0 â Enable WDT 1 â Disable WDT
(10) CPIO A, CPIO B (Control Port I/O Mode Register)
The CPIO register is âwrite-onlyâ
ï¼â0â, I/O pin in output mode;
ï¼â1â, I/O pin in input mode.
(11)Set Pull hi mode
The Pull hi register is âwrite-onlyâ
ï¼â0â, Disable I/O pin Pull hi
ï¼â1â, Enable I/O pin Pull hi
Do the CPIO instructions twice within three instructions on the same I/O port, the
second CPIO instruction will enable the corresponding I/O pins pull-hi when global
pull high Enable.
Correct instruction sequence to enable pull-high
Ex1:
LDWI 0FFH
CPIO 06H âFirstï¼set PortB I/O
LDWI 0FFH âSecond
CPIO 06H âThirdï¼set PortB Pull hi
This specification are subject to be changed without notice. Any latest information
Please visit http;//www.mdtic.com.tw
P.8
2010/06 Ver. 1.0
|
▷ |