FEELING
TECHNOLOGY
Devices Included in this Data Sheet:
‧
FM8P54E/56E : EPROM devices
‧
FM8P54/56 : Mask ROM devices
FM8P54/56
EPROM/ROM-Based 8-Bit Microcontroller Series
FEATURES
‧
Only 42 single word instructions
‧
All instructions are single cycle except for program branches which are two-cycle
‧
13-bit wide instructions
‧
All ROM/EPROM area GOTO instruction
‧
All ROM/EPROM area subroutine CALL instruction
‧
8-bit wide data path
‧
5-level deep hardware stack
‧
Operating speed: DC-20 MHz clock input
DC-100 ns instruction cycle
Device
FM8P54/54E
FM8P56/56E
Pins #
18
18
I/O #
12
12
EPROM/ROM (Byte)
512
1K
RAM (Byte)
49
49
‧
Direct, indirect addressing modes for data accessing
‧
8-bit real time clock/counter (Timer0) with 8-bit programmable prescaler
‧
Internal Power-on Reset (POR)
‧
Built-in Low Voltage Detector (LVD) for Brown-out Reset (BOR)
‧
Power-up Reset Timer (PWRT) and Oscillator Start-up Timer(OST)
‧
On chip Watchdog Timer (WDT) with internal oscillator for reliable operation and soft-ware watch-dog
enable/disable control
‧
Two I/O ports IOA and IOB with independent direction control
‧
Soft-ware I/O pull-high/pull-down or open-drain control
‧
One internal interrupt source: Timer0 overflow; Two external interrupt source: INT pin, Port B input change
‧
Wake-up from SLEEP by INT pin or Port B input change
‧
Power saving SLEEP mode
‧
Programmable Code Protection
‧
Selectable oscillator options:
- ERC: External Resistor/Capacitor Oscillator
- XT: Crystal/Resonator Oscillator
- HF: High Frequency Crystal/Resonator Oscillator
- LF: Low Frequency Crystal Oscillator
‧
Wide-operating voltage range:
- EPROM : 2.3V to 5.5V
- ROM : 2.3V to 5.5V
This datasheet contains new product information. Feeling Technology reserves the rights to modify the product specification without notice.
No liability is assumed as a result of the use of this product. No rights under any patent accompany the sales of the product.
Rev1.21 May 31, 2005
P.1/FM8P54/56
FEELING
TECHNOLOGY
GENERAL DESCRIPTION
FM8P54/56
The FM8P54/56 series is a family of low-cost, high speed, high noise immunity, EPROM/ROM-based 8-bit CMOS
microcontrollers. It employs a RISC architecture with only 42 instructions. All instructions are single cycle except
for program branches which take two cycles. The easy to use and easy to remember instruction set reduces
development time significantly.
The FM8P54/56 series consists of Power-on Reset (POR), Brown-out Reset (BOR), Power-up Reset Timer (PWRT),
Oscillator Start-up Timer(OST), Watchdog Timer, EPROM/ROM, SRAM, tri-state I/O port, I/O
pull-high/open-drain/pull-down control, Power saving SLEEP mode, real time programmable clock/counter,
Interrupt, Wake-up from SLEEP mode, and Code Protection for EPROM products. There are four oscillator
configurations to choose from, including the power-saving LP (Low Power) oscillator and cost saving RC oscillator.
The FM8P54/54E address 512×13 of program memory, and the FM8P56/56E address 1K×13 of program memory.
The FM8P54/56 can directly or indirectly address its register files and data memory. All special function registers
including the program counter are mapped in the data memory.
BLOCK DIAGRAM
Oscillator
Circuit
5-level
STACK
Watchdog
Timer
Program
Counter
FSR
SRAM
ALU
EPROM
/ ROM
Instruction
Decoder
PORTA
PORTB
Interrupt
Control
Timer0
Accumulator
Rev1.21 May 31, 2005
P.2/FM8P54/56
FEELING
TECHNOLOGY
PIN CONNECTION
PDIP, SOP
IOA2
IOA3
T0CKI
RSTB
Vss
IOB0/INT
IOB1
IOB2
IOB3
1
2
3
4
5
6
7
8
9
18
17
16
15
13
12
11
10
IOA1
IOA0
OSCI
OSCO
IOB7
IOB6
IOB5
IOB4
FM8P54/56
SSOP
IOA2
IOA3
T0CKI
RSTB
Vss
Vss
IOB0/INT
IOB1
IOB2
IOB3
1
2
3
4
5
6
7
8
9
10
20
19
18
17
IOA1
IOA0
OSCI
OSCO
Vdd
Vdd
IOB7
IOB6
IOB5
IOB4
FM8P54/54E
14 Vdd
FM8P56/56E
FM8P54/54E
FM8P56/56E
16
15
14
13
12
11
PIN DESCRIPTIONS
Name
IOA0 ~ IOA3
IOB0/INT
IOB1 ~ IOB7
I/O
I/O
I/O
I/O
Description
IOA0 ~ IOA3 as bi-direction I/O port
Bi-direction I/O pin with system wake-up function / External interrupt input
Bi-direction I/O port with system wake-up function
Clock input to Timer0. Must be tied to Vss or Vdd, if not in use, to reduce current
T0CKI
I
consumption
RSTB
I
System clear (RESET) input. This pin is an active low RESET to the device.
X’tal type: Oscillator crystal input
OSCI
I
RC type: Clock input of RC oscillator
X’tal type: Oscillator crystal output.
OSCO
O
RC mode: Outputs with the instruction cycle rate
Vdd
-
Positive supply
Vss
-
Ground
Legend: I=input, O=output, I/O=input/output
Rev1.21 May 31, 2005
P.3/FM8P54/56
FEELING
TECHNOLOGY
1.0 MEMORY ORGANIZATION
FM8P54/56 memory is organized into program memory and data memory.
1.1 Program Memory Organization
FM8P54/56
The FM8P54/54E have a 9-bit Program Counter (PC) capable of addressing a 512×13 program memory space.
The FM8P56/56E have a 10-bit Program Counter capable of addressing a 1K×13 program memory space.
The RESET vector for the FM8P54/54E is at 1FFh. The RESET vector for the FM8P56/56E is at 3FFh.
The H/W interrupt vector is at 008h. And the S/W interrupt vector is at 002h.
FM8P54/56 supports all ROM/EPROM area CALL/GOTO instructions without page.
FIGURE 1.1: Program Memory Map and STACK
PC<9:0>
PC<8:0>
Stack 1
Stack 2
Stack 3
Stack 4
Stack 5
3FFh
Reset Vector
Stack 1
Stack 2
Stack 3
Stack 4
Stack 5
1FFh
:
:
008h H/W Interrupt Vector
002h S/W Interrupt Vector
000h
FM8P54/54E
Reset Vector
:
:
008h H/W Interrupt Vector
002h S/W Interrupt Vector
000h
FM8P56/56E
Rev1.21 May 31, 2005
P.4/FM8P54/56
FEELING
TECHNOLOGY
FM8P54/56
1.2 Data Memory Organization
Data memory is composed of Special Function Registers and General Purpose Registers.
The General Purpose Registers are accessed either directly or indirectly through the FSR register.
The Special Function Registers are registers used by the CPU and peripheral functions to control the operation of
the device.
TABLE 1.1: Registers File Map for FM8P54/56 Series
Address
Description
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h ~ 3Fh
INDF
TMR0
PCL
STATUS
FSR
PORTA
PORTB
General Purpose Register
PCON
WUCON
PCHBUF
PDCON
ODCON
PHCON
INTEN
INTFLAG
General Purpose Registers
N/A
OPTION
05h
06h
IOSTA
IOSTB
TABLE 1.2: The Registers Controlled by OPTION or IOST Instructions
Address
Name
B7
B6
B5
B4
B3
N/A (w)
05h (w)
06h (w)
OPTION
IOSTA
IOSTB
-
INTEDG
T0CS
B2
B1
PS1
B0
PS0
T0SE
PSA
PS2
Port A I/O Control Register
Port B I/O Control Register
TABLE 1.3: Operational Registers Map
Address
Name
B7
B6
00h (r/w)
01h (r/w)
02h (r/w)
03h (r/w)
04h (r/w)
05h (r/w)
06h (r/w)
07h (r/w)
08h (r/w)
09h (r/w)
0Ah (r/w)
0Bh (r/w)
0Ch (r/w)
0Dh (r/w)
0Eh (r/w)
0Fh (r/w)
INDF
TMR0
PCL
STATUS
FSR
PORTA
PORTB
SRAM
PCON
WUCON
PCHBUF
(1)
PDCON
ODCON
PHCON
INTEN
INTFLAG
B5
B4
B3
B2
B1
B0
Uses contents of FSR to address data memory (not a physical register)
8-bit real-time clock/counter
Low order 8 bits of PC
GP2
GP1
GP0
TO
PD
Z
DC
C
*
*
Indirect data memory address pointer
-
-
-
-
IOA3
IOA2
IOA1
IOA0
IOB7
IOB6
IOB5
IOB4
IOB3
IOB2
IOB1
IOB0
General Purpose Registers
WDTE
EIS
LVDTE
ROC
-
-
-
-
WUB7
WUB6
WUB5
WUB4
WUB3
WUB2
WUB1
WUB0
-
-
-
-
-
2 MSBs Buffer of PC
/PDB3
/PDB2
/PDB1
/PDB0
/PDA3
/PDA2
/PDA1
/PDA0
ODB7
ODB6
ODB5
ODB4
ODB3
ODB2
ODB1
ODB0
/PHB7
/PHB6
/PHB5
/PHB4
/PHB3
/PHB2
/PHB1
/PHB0
GIE
-
-
-
-
INTIE
PBIE
T0IE
-
-
-
-
-
INTIF
PBIF
T0IF
Legend: - = unimplemented, read as ‘0’, * = unimplemented, read as ‘1’
Note 1 : There is only 1 bit in FM8P54/54E. And there are 2 bits in FM8P56/56E.
Rev1.21 May 31, 2005
P.5/FM8P54/56