RA8900 Revision 1.4 8-Bit Micro-Controller RAiO RA8900 8-Bit Micro-Controller Revision 1.4 October, 2003 RAiO Technology Inc. Copyright RAiO Technology Inc. 2002, 2003 RAiO TECHNOLOGYINC. 1/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller Overview The RA8900 is an 8-bit downloadable micro-controller. It supports multiple timer/counter sources, versatile interrupt-handling architecture and two built-in DAC’s (Digital-to-Analog Converters). It provides a complete speech interface and 32K-bps ADPCM solution that make this chip an excellent choice as the embedded microcontroller for educational speech products. The built-in 4K-bytes ROM support the on-chip RAiO ICE Monitor program which controls the UART and enables the RS232 connection between the RA8900 and a PC host. The RA8900 support the ISP(In-System Programming) and ISD(In-System Debugging) functions. Users can download their programs as well as data from a PC host to the external Flash ROM. RAiO also support a windows based ICE driver for customers to very easy programming & debugging their program. Using RS232 connection between a speech toy to a PC host running RAiO’s download utility program, toy makers are able to implement the Internet Game/Speech download features easily and give the toys multiple attractive characteristics. Feature 8-bit Micro Processor Internal 128-Byte SRAM Flexible External Flash Support Support LVD (Low Voltage Detector) Support External Memory & LCD Interface Support PWM Output with 50% or 100% duty select Two 8-Bits Programmable I/O Port Three 12-Bits Timer and Three Time-Base Options (2KHz, 500Hz, 62Hz) One 4-Bits Watch Dog Timer One User’s UART with Baud Rate Generator, Up to 115200bps Two 8-bits Current Mode DAC UART Provide IrDA & ASK IR Mode Support UART and Timer Wake-Up Mode Flexible I/O Interrupt & Wake-Up Mode Support Wake-Up Reset Mode Support Idle/Sleep Power Saving Mode Built in PLL, Only need one 32768Hz X’tal Oscillator can produce system clock 7.3MHz On-Chip ICE and ISP (In-System Programming) Supporting Programs. Operating Voltage: 2.3V ~ 5.2V Package: Die Form or PQFP-100Pin GND VDD A9 A8 A13 FL_WE# ROM_CE# ROM_OE# BK1 BK2 BK5 PT2_0 PT2_1 PT2_2 PT2_3 AGND IOUT1 AVDD IOUT2 AGND 45 44 43 42 41 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 GND T E ST 0# T E ST 1# T E ST 2# P T 2_4 P T 2_5 VDD P T 2_6 P T 2_7 GND RXD TXD B R E AK # M O N IT O R # R E SE T # XCLKI XCLKQ C1 C2 VDD A6 A7 A12 BK0 BK3 BK4 BK6 BK7 VDD PT1_0 PT1_1 PT1_2 PT1_3 PT1_4 PT1_5 PT1_6 PT1_7 VDD GND GND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 VDD GND F L _O E # A11 F L _C E # A10 D7 D6 D5 D4 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 GND 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 Die Form RAiO TECHNOLOGYINC. 2/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller NC NC NC NC GND TEST0# TEST1# TEST2# PT2_4 PT2_5 NC VDD PT2_6 PT2_7 GND NC RXD TXD NC BREAK# MONIOR# RESET# XCLKI XCLKQ C1 C2 VDD NC NC NC Package (PQFP-100Pin) 80 81 AGND IOUT1 AVDD IOUT2 AGND PT2_3 PT2_2 PT2_1 PT2_0 BK5 BK2 BK1 ROM_OE# ROM_CE# FL_WE# A13 A8 A9 VDD GND 75 70 65 60 55 51 50 TM RAiO RA8900D 85 90 45 40 02XX 95 35 Date Code(2002年) Pin #1 5 10 15 20 25 31 30 NC NC VDD NC GND NC FL_OE# A11 FL_CE# A10 NC D7 D6 D5 D4 D3 D2 D1 D0 NC A0 A1 A2 A3 A4 A5 NC NC NC GND 100 GND GND VDD PT1_7 PT1_6 PT1_5 PT1_4 PT1_3 PT1_2 PT1_1 PT1_0 VDD BK7 BK6 BK4 BK3 BK0 A12 A7 A6 Block Diagram e-MCU e-RISC Core Core XCLKI XCLKQ C1,C2 128Byte SRAM External Memory Interface PLL Control Logic User Register LVD Timer x 3 DAC x 2 Timer Base x 3 PWM RESET# MONITOR# BREAK# RXD TXD System Interface System UART ISP/ISD TEST0# TEST1# TEST2# RAiO TECHNOLOGYINC. Watch Dog User I/O x 8 Power Saving & Wake-Up User UART System ROM/RAM (LCD Decoder, Memory Decoder, LVD) A[13:0] BK[7:0] FL_CE# FL_WE# FL_OE# D[7:0] IOUT1 IOUT2 PT1_[7:0] User I/O x 8 System Register 3/9 PT2_[7:0] www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller PAD X/Y Coordinate Order 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 PIN Name A6 A7 A12 BK0 BK3 BK4 BK6 BK7 VDD PT1_0 PT1_1 PT1_2 PT1_3 PT1_4 PT1_5 PT1_6 PT1_7 VDD GND GND VDD C2 C1 XCLKQ XCLK RESET# MONITOR# BREAK# TXD RXD GND PT2_7 PT2_6 VDD PT2_5 PT2_4 TEST2# TEST1# TEST0# GND X -989.98 -879.98 -769.98 -659.98 -549.98 -439.98 -329.98 -219.98 -109.98 0.02 110.02 220.02 330.02 440.02 550.02 660.02 770.02 880.02 990.02 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 1110.87 RAiO TECHNOLOGYINC. Y -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1220.85 -1100 -990 -880 -770 -660 -550 -440 -330 -220 -110 0 110 220 330 440 550 660 770 880 990 Order 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 4/9 PIN Name AGND IOUT2 AVDD IOUT1 AGND PT2_3 PT2_2 PT2_1 PT2_0 ROM_OE# ROM_CE# FL_WE# BK5 BK2 BK1 A13 A8 A9 VDD GND VDD GND A11 FL_OE# A10 FL_CE# D7 D6 D5 D4 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 GND X 1110.87 1004.87 898.87 792.87 686.87 550.02 440.02 330.02 220.02 110.02 0.02 -109.98 -219.98 -329.98 -439.98 -549.98 -659.98 -769.98 -879.98 -989.98 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 -1110.83 Y 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1220.85 1100 990 880 770 660 550 440 330 220 110 0 -110 -220 -330 -440 -550 -660 -770 -880 -990 -1100 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller Pin Description Signal Pin# I/O Description RESET# 59 IN BREAK# 61 IN MONITOR# 60 IN PT1_7 PWM1 47 I/O PT1_6 PWM2 46 I/O PT1_5 TX 45 I/O PT1_4 RX 44 I/O PT1_3 43 I/O PT1_2 42 I/O PT1_1 41 I/O PT1_0 40 I/O External Hardware Reset, active low. This pin is used to reset the system. User Program Break, active low. This signal is used to break the user’s program from the ISD mode. Monitor Program Select, active low. This signal is used to select the system boot from monitor program (ROM) or user program (Flash). This signal has to pull low when the user wants to download the data from PC or enter the ISP/ISD mode. Bit-7 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. The PT1_7 is also as the output of PWM. In PWM mode, the pin is always output and 30mA driving current is selected. Bit-6 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. The PT1_6 is also as the output of PWM. In PWM mode, the pin is always output and 30mA driving current is selected. Bit-5 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. The PT1_5 is also as the transmission output of user’s UART. In UART mode, the pin is always output except the power saving mode. Bit-4 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. The PT1_4 is also as the receive input of user’s UART. In UART mode, the pin is always input. Bit-3 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. Bit-2 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. Bit-1 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. Bit-0 of Port 1 This is a programmable pin for general-purpose I/O Port 1. The driving current and pull-high or pull-low can be selected by user register. RAiO TECHNOLOGYINC. 5/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller PT2_7 FL_CE2# 67 PT2_6 MEM_CE# 68 PT2_5 MEM_OE# 71 I/O PT2_4 MEM_WE# 72 I/O PT2_3 LCD_E 86 I/O PT2_2 LCD_RW 87 I/O PT2_1 LVD# 88 I/O PT2_0 WE25 89 I/O RAiO TECHNOLOGYINC. I/O I/O Bit-7 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_7 is also as the secondary external flash chip select. If the secondary flash is enabled, the pin is always output except the power saving mode. Bit-6 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_6 is also as the external memory chip selecting. If the external memory enabled, the pin is always output except the power saving mode. Bit-5 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_5 is also as the external memory output enable. If the external memory enabled, the pin is always output except the power saving mode. Bit-4 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_4 is also as the external memory write enable. If the external memory enabled, the pin is always output except the power saving mode. Bit-3 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_3 is also as the chip enable of external LCD controller. If the external LCD enabled, the pin is always output except the power saving mode. Bit-2 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_2 is also as the read/write signal of external LCD controller. If the external LCD enabled, the pin is always output except the power saving mode. Bit-1 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_1 is also as the output of LVD. If the LVD enabled, the pin is always output except the power saving mode. Bit-0 of Port 2 This is a programmable pin for general-purpose I/O Port 2. The driving current and pull-high or pull-low can be selected by user register. The PT2_0 is also as the write control of register $25. If the write register $25 enabled, the pin is always output except the power saving mode. 6/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller DAC1 Current Output This pin is the current output of DAC1. DAC2 Current Output This pin is the current output of DAC2. IOUT1 84 OUT IOUT2 82 OUT ADDR[13:0] FL_S0 FL_S1 8,10 21-26 31-33 96-98 OUT D[7:0] 12~19 I/O FL_CE# 10 OUT FL_WE# 92 OUT FL_OE# 8 OUT ROM_OE# 90 IN ROM_CE# 91 IN BK[7:0] FL_S2 FL_2# FL_TY 34-38 90-92 OUT XCLKI 58 IN XCLKQ 57 OUT C1, C2 56, 55 IN VDD 3, 39, 48, 54, 69, 99 PW R Power Supply Voltage. AVDD 83 PW R Analog Power Supply Voltage. GND 5, 30, 49, 50, 66, 76, 100 PW R Ground. AGND 81,85 PW R Analog Ground. 14-bit Address Bus. These signal are used for external memory address bus. FL_S0 ↔ A11, FL_S1 ↔ A10 jointly pin. 8-bit Data Bus. These signal are used for external memory data bus. Flash Chip Select, active low. This signal is used for external flash. Flash Write Enable, active low. This signal is used for external flash. Flash Output Enable, active low. This signal is used for external flash. Flash Type Select. This signal is used for external flash. Flash Number 1 or 2 Select. This signal is used for external flash. Flash BANK Select. This signal is used for external flash. FL_S2 ↔BK1, FL_2# ↔BK2, FL_TY ↔BK5 jointly pin. Oscillator Input. This is the input signal of internal PLL. Oscillator Output. This is the output signal of internal PLL. Capacitor Input. These two signals are connected to the external capacitor for internal PLL. Development The RA8900 support the ISP(In-System Programming) and ISD(In-System Debugging) functions for customer to develop their system. Users can download their programs as well as data from a PC host to the external Flash ROM. -ISP/ISD Mode is entered when the MONITOR# pin having been pulled down to ground voltage level. The onchip Monitor program together with RAiO’s ICE(RICE-2000) Utility Program running on a PC will be executed to support ICE debugging and ISP download of user programs from the PC Host. RAiO TECHNOLOGYINC. 7/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller RAiO ICE ISP Development Speech Toy Develop Program from ISP Mode (Customers) -User Mode is entered when the MONITOR# pin has been pulled up to logic high voltage level. User application programs can be executed only in this mode. The end-user can download the application program or data from the customer’s website through the PC interface. Because the program/data was stored in the flash so the application device of customer(such as speech toy) will operate independent that after disconnect with the PC. Internet www. toys.com Speech Toy Speech Toy A Portable Speech Toy Down load from Internet (End-Users) RICE-2000 (RICE for short) is a full-completed environment developed by RAiO especially for RA89XX series. The major reason for developing RICE is give fully convenience to program designers who are using RA89XX IC, and let them enjoy consistent and friendly design environment at planning, designing and debugging. In RICE environment, it saves a great deal of developing time by not only providing Editor for users to do direct coding, but also providing many Hot-Key functions for users to do direct compiling, linking, and downloading. Since RA89XX series carry e-MCU micro-processor and a framework of ISP(In-System-Programming), ISD(In-System Debugging), then this simple and reliable environment of RICE can let program designers to proceed design and debug in Real Chip. Moreover, the mass-production ICs is ready for clients to do planning and designing directly without diverse traits happened between developing time and mass production period. In the meanwhile, in order to support integrated speech interface, RICE provides a solution of 32K-bps ADPCM for programmers to easily combine programs and speech files. If you want to have more information and program design skills of RA8900, please refer to the user manual of RICE-2000. Application The following Block diagram is the basic application circuit of RA8900. We also give three examples on the user manual of RICE-2000 to let users have more understanding of RA8900 and the develop environment of RICE2000, and then start to proceed program designing and product developing. The examples have one simple I/O control and two speech samples. Please refer to the user manual of RICE-2000 if you needed. RAiO TECHNOLOGYINC. 8/9 www.raio.com.tw RA8900 Revision 1.4 8-Bit Micro-Controller A[13:0],BK[7:0] D[7:0] External FL_CE# FL_WE# FL_OE# Flash PT1_[7:0] Options External Display/LED PT2_[6:4] ROM/RAM PT2_[7:0] LCD Controller PT2_[3:2] Button/Key Matrix LCD Panel LCM PT1_[7:6] PWM O/P To PC RS232 TXD PT1_[5:4] RS232 RXD XCLKI VCC 32768Hz XCLKQ SPK. C1 C1, C2 C2 IOUT1 RA8900 RAiO TECHNOLOGYINC. 9/9 www.raio.com.tw