Document
www.DataSheet4U.com
FEELING TECHNOLOGY
Devices Included in this Data Sheet:
‧ FM8P51E : EPROM device ‧ FM8P51 : Mask ROM device
FM8P51
EPROM/ROM-Based 8-Bit Microcontroller
FEATURES
‧ Only 47 single word instructions ‧ All instructions are single cycle except for program branches which are two-cycle ‧ 13-bit wide instructions ‧ 8-bit wide data path ‧ 5-level deep hardware stack ‧ 4K x 13 bits on chip EPROM/ROM ‧ 140 x 8 bits on chip general purpose registers (SRAM) ‧ Operating speed: DC-20 MHz clock input DC-100 ns instruction cycle ‧ Direct, indirect addressing modes for data accessing ‧ One 8-bit real time clock/counter (Timer0) with 8-bit programmable prescaler ‧ Three 8-bit real time clock/counter (Timer1, Timer2, and Timer3) with period setting ‧ 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 ‧ Five I/O ports (38 I/O pins) with independent direction control ‧ 32 programmable pull-high input pins ‧ 12 wake-up pins ‧ 2 open-drain pins ‧ 2 R-option pins ‧ Clock output with high driving ability ‧ 19 channels of 15-bit resolution Resistor to Frequency Converter (RFC) output ‧ 2 channels of maximum 10-bit resolution Pulse Width Modulation (PWM) output ‧ Built-in 8-bit data comparator ‧ Seven internal interrupt source: Timer0 overflow, Timer1 match, Timer2 match, Timer3 match, SPI module (Receive & Transmit), RFC module; One external interrupt source: INT pin change ‧ Wake-up from SLEEP by port input change ‧ Power saving SLEEP mode ‧ Programmable Code Protection ‧ Built-in RC oscillator with external resistor ‧ Selectable oscillator options: - ERC: External Resistor/Capacitor Oscillator - ERIC: External Resistor/Internal Capacitor 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.2 Mar 15, 2005 P.1/FM8P51
FEELING TECHNOLOGY
GENERAL DESCRIPTION
FM8P51
The FM8P51 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 47 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 FM8P51 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 control, Power saving SLEEP mode, 4 real time programmable clock/counter, Interrupt, SPI, RFC, data compare, 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 FM8P51 series address 4K×13 of program memory. The FM8P51 series 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
SRAM
Watchdog Timer
Program Counter
FSR
PORTE
PORTD ALU EPROM / ROM Instruction Decoder
PORTC
PORTB Interrupt Control Timer 0 ~ 3 Accumulator PORTA
PWM
RFC
SPI
Rev1.2 Mar 15, 2005 P.2/FM8P51
FEELING TECHNOLOGY
PIN CONNECTION
PDIP
Vss INT DATA/RFC17 CLK/RFC18 IOE0 IOE1 IOE2/SDI IOE3/SDO IOE4/SCK IOE5/SSB IOA0/PWM0 IOA1/CX IOA2/RFC0 IOA3/RFC1 IOA4/RFC2 IOA5/RFC3 IOA6/RFC4 IOA7/RFC5 IOD0/RFC6 IOD1/RFC7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 OSCO OSCI Vdd IOC0/PWM1 IOC1/RFC16 IOC2/RFC15 IOB7/RFC14 IOB6/RFC13 IOB5/RFC12 IOB4/RFC11 IOB3/RFC10 IOB2/RFC9 IOB1/RFC8 IOB0/T23CKI IOD7 IOB5 IOD6 IOD5 IOD4 IOD3 IOD2
FM8P51
FM8P51 FM8P51E
31 30 29 28 27 26 17 25 24 23 22 21
IOE7/CKOUT
DATA/RFC17
IOC0/PWM1
CLK/RFC18
QFP
OSCO
OSCI
IOC3
IOE6
Vdd
Vss
INT 42
44
43
41
40
39
38
37
36
35
34
IOE0 IOE1 IOE2/SDI IOE3/SDO IOE4/SCK IOE5/SSB IOA0/PWM0 IOA1/CX IOA2/RFC0 IOA3/RFC1 IOA4/RFC2
1 2 3 4 5 6 7 8 9 10 11
33 32 31 30 29 28 27 26 25 24 23
IOC1/RFC16 IOC2/RFC15 IOB7/RFC14 IOB6/RFC13 IOB5/RFC12 IOB4/RFC11 IOB3/RFC10 IOB2/RFC9 IOB1/RFC8 IOB0/T23CKI IOD7
FM8P51 FM8P51E
22 21
12 IOA5/RFC3
13 IOA6/RFC4
14 IOA7/RFC5
15 IOD0/RFC6
16 IOD1/RFC7
17 RSTB
18 IOD2
19 IOD3
20 IOD4
IOD5
IOD6 Rev1.2 Mar 15, 2005 P.3/FM8P51
FEELING TECHNOLOGY
PIN DESCRIPTIONS
Name I/O
FM8P51
Description Bi-direction I/O port IOA0 ~ IOA7 I/O Softw.