|
MDT10P257 Datasheet, PDF (5/18 Pages) Micon Design Technology Corporation – 8-bit micro-controlle | |||
|
◁ |
(9) TMR (Time Mode Register)
MDT10P257
Bit
2â0
3
4
5
6
7
Symbol
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
PS2â0
100
1 : 32
1 : 16
101
1 : 64
1 : 32
110
1 : 128
1 : 64
PSC
TCE
TCS
PHEN
WDTEN
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, CPIO C (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, then
the second CPIO instruction will set the corresponding pull-hi of I/O pins to enable
when global pull high Enable.
Correct instruction sequence to enable pull-high
Ex1:
LDWI 0FFH
CPIO 06H âFirstï¼set PortB I/O
LDWI 0FH âSecond
This specification are subject to be changed without notice. Any latest information please visit our web site
(http;//www.mdtic.com.tw) for detail
P. 5
2011/02 VER 1.1
|
▷ |