FM8P51
Rev1.2 Mar 15, 2005
P.19/FM8P51
FEELING
TECHNOLOGY
PS2:PS0
: Prescaler rate select bits.
PS2:PS0
Timer0 Rate
WDT Rate
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
1:2
1:4
1:8
1:16
1:32
1:64
1:128
1:256
1:1
1:2
1:4
1:8
1:16
1:32
1:64
1:128
PSA
: Prescaler assign bit.
= 1, WDT (watch-dog timer).
= 0, TMR0 (Timer0).
GIE
: Global interrupt enable bit.
= 0, Disable all interrupts. For wake-up from SLEEP mode through an interrupt event, the device will continue
execution at the instruction after the SLEEP instruction.
= 1, Enable all un-masked interrupts. For wake-up from SLEEP mode through an interrupt event, the device
will branch to the interrupt address (001h).
Note : 1. The GIE bit is not writable bit. This bit is only set by ENI or RETFIE instructions, and cleared by DISI
instruction or entering into interrupt subroutine.
2. When an interrupt event occur with the GIE bit and its corresponding interrupt enable bit are all set,
the GIE bit will be cleared by hardware to disable any further interrupts. The RETFIE instruction will
exit the interrupt routine and set the GIE bit to re-enable interrupt.
/PHBCE
: = 0, Enable the internal pull-high of IOB0~ IOB7, IOC4~IOC5, and IOE0~IOE5 pins.
= 1, Disable the internal pull-high of IOB0~ IOB7, IOC4~IOC5, and IOE0~IOE5 pins.
Note : /PHB, /PHE are “AND” gating with /PHBCE, that is each one written “0” will enable pull-high.
2.1.32 IOSTA, IOSTB, IOSTC, IOSTD & IOSTE (Port I/O Control Registers)
Address
Name
B7
B6
B5
05h (r/w)
IOSTA
Port A I/O Control Register
06h (r/w)
IOSTB
Port B I/O Control Register
07h (r/w)
IOSTC
Port C I/O Control Register
08h (r/w)
IOSTD
Port D I/O Control Register
09h (r/w)
IOSTE
Port E I/O Control Register
Accessed by IOST/IOSTR instructions.
The Port I/O Control Registers are loaded with the contents of the ACC Register by executing the IOST R (05h~09h)
instruction. By executing the IOSTR instruction, user can read these registers into ACC.
A ‘1’ from a IOST Register bit puts the corresponding output driver in hi-impedance state (input mode). A ‘0’ enables
the output buffer and puts the contents of the output data latch on the selected pins (output mode).
The IOST Registers are set all “1”s (output drivers disabled) upon RESET.
2.1.33 T1CON (Timer 1 Control Register)
Address
Name
B7
B6
B5
0Ch (r/w)
T1CON
Accessed by IOST/IOSTR instructions.
B4
B3
B2
B1
B0
B4
B3
B2
T1ON
B1
T1P1
B0
T1P0