0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
R8810LV

R8810LV

  • 厂商:

    RDC

  • 封装:

  • 描述:

    R8810LV - 16-Bit RISC Microcontroller User’s Manual - RDC Semiconductor

  • 数据手册
  • 价格&库存
R8810LV 数据手册
R DC RDC ® RISC DSP Controller R8810LV R8810LV 16-Bit RISC Microcontroller User’s Manual RDC RISC DSP Controller RDC Semiconductor Co., Ltd http:\\www.rdc.com.tw Tel. 886-3-666-2866 Fax 886-3-563-1498 RDC Semiconductor Co. Subject to change without notice 1 Rev:1.4 R DC RDC Contents ® RISC DSP Controller R8810LV ----------------------------------------------------------------- page - Features -----------------------------------------------------------------------------4 - Block Diagram --------------------------------------------------------------------4 - Pin Configuration -----------------------------------------------------------------5 - PQFP and LQFP Pin-Out Table --------------------------------------------------------- 7 - Pin Description --------------------------------------------------------------------8 - Basic Application System Block ---------------------------------------------- 13 - Oscillator Characteristics ----------------------------------------------------- 14 - Read/Write timing Diagram -------------------------------------------------- 15 - Execution Unit ------------------------------------------------------------------- 17 = General Register ------------------------------------------------------------- 17 = Segment Register ------------------------------------------------------------- 17 = Instruction Pointer and Status Flags Register --------------------------- 18 = Address Generation---------------------------------------------------------- 19 - Peripheral Control Block Register ------------------------------------------ 20 - System Clock Block ------------------------------------------------------------- 22 - Reset-------------------------------------------------------------------------------- 23 - Bus Interface Unit --------------------------------------------------------------- 25 = Memory and I/O Interface -------------------------------------------------- 25 = Data Bus----------------------------------------------------------------------- 25 = Wait States -------------------------------------------------------------------- 26 = Bus Hold ---------------------------------------------------------------------- 27 - Chip Select Unit ----------------------------------------------------------------- 29 = UCS -------------------------------------------------------------------------- 29 = LCS -------------------------------------------------------------------------- 30 = MCSx ------------------------------------------------------------------------ 31 = PCSx ------------------------------------------------------------------------ 32 - Interrupt Controller Unit------------------------------------------------------ 34 = Master Mode and Slave Mode ---------------------------------------------- 34 = Interrupt Vector, Type and Priority --------------------------------------- 35 = Interrupt Request ----------------------------------------------------------- 36 = Interrupt Acknowledge------------------------------------------------------ 36 = Programming Register ------------------------------------------------------ 37 RDC Semiconductor Co. Subject to change without notice 2 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV - DMA Unit ------------------------------------------------------------------------- 50 = DMA Operation ------------------------------------------------------------ 50 = External Request ----------------------------------------------------------- 55 - Timer Control Unit ------------------------------------------------------------- 57 = Watchdog Timer ---------------------------------------------------------- 61 = Timer/Counter Unit Output Mode --------------------------------------- 62 - Asynchronous Serial Port ----------------------------------------------------- 63 - Synchronous Serial Port ------------------------------------------------------- 67 = Synchronous Serial Port Operation ---------------------------------- 69 - PIO Unit --------------------------------------------------------------------------- 71 = PIO Multi-Function Pin list Table ---------------------------------------- 71 - PSRAM Control Unit----------------------------------------------------------- 74 - Instruction Set Opcodes and Clock Cycle --------------------------------- 75 = R8810LV Execution Timings -------------------------------------------- 79 - DC Characteristics -------------------------------------------------------------- 80 - AC Characteristics -------------------------------------------------------------- 82 - Package Information ----------------------------------------------------------- 91 - Revision History ----------------------------------------------------------------- 93 RDC Semiconductor Co. Subject to change without notice 3 Rev:1.4 R DC RDC Features ® RISC DSP Controller R8810LV 16-Bit Microcontroller with 8-bit external data bus Five-stages pipeline RISC architecture Static Design & Synthesizable design Bus interface - Multiplexed address and Data bus which compatible with 80C188 microprocessor - Supports nonmultiplexed address bus [A19 : A0] - 1M byte memory address space - 64K byte I/O space Software compatible with the 80C186 Support one Asynchronous serial channel & one Synchronous serial channel Supports 32 PIO pins PSRAM (Pseudo static RAM) interface with auto-refresh control Three independent 16-bit timers and Timer 1 can be programed as a watchdog timer The Interrupt controller with five maskable external interrupts and one nonmaskable external interrupt Two independent DMA channels Programble chip-select logic for Memory or I/O bus cycle decoder Programmable wait-state generator Block Diagram INT2/INTA0 INT1/SELECT CLKOUTA INT3/INTA1/IRQ CLKOUTB INT4 INT0 NMI TMROUT0 TMROUT1 TMRIN0 TMRIN1 DRQ0 DRQ1 X1 VCC GND X2 Clock and Power Management Interrupt Control Unit Timer Control Unit DMA Unit RST LCS/ONCE0 MCS3/RFSH MCS2-MCS0 UCS/ONCE1 PCS3-PCS0 PCS5/A1 PCS6/A2 Chip Select Unit PSRAM Control Unit Instruction Queue (64bits) Instruction Decoder Control Signal Micro ROM PIO Unit ARDY SRDY S2~S0 DT/R DEN Refresh Control Unit Register File General, Segment, Eflag Register EA / LA Address Asynchronous Serial Port TXD RXD HOLD HLDA S6/CLKDIV2 UZI Bus Interface Unit ALU (Special, Logic, Adder, BSF) Execution Unit Synchronous Serial Interface SCLK A19~A0 ALE AD7~AD0 AO15~AO8 RD WB WR RFSH/ADEN SDATA SDEN0 SDEN1 RDC Semiconductor Co. Subject to change without notice 4 Rev:1.4 R DC RDC (PQFP) ® RISC DSP Controller R8810LV Pin Configuration S6/CLKDIV2/PIO29 SDATA/PIO21 RXD/PIO28 TXD/PIO27 UZI/PIO26 AO15 AO14 AO13 AO12 AO11 AO10 AD7 VCC AD6 GND AD5 AD4 AD3 AD2 82 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 SDEN1/PIO23 SDEN0/PIO22 SCLK/PIO20 RFSH2/ADEN WR RD ALE ARDY S2 S1 S0 GND X1 X2 VCC CLKOUTA CLKOUTB GND A19/PIO9 A18/PIO8 VCC A17/PIO7 A16 A15 A14 A13 A12 A11 A10 A9 81 AO9 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 41 42 43 44 45 46 47 48 49 50 80 79 78 77 76 75 74 73 72 71 70 69 68 AD1 AO8 AD0 DRQ0/PIO12 DRQ1/PIO13 TMRIN0/PIO11 TMROUT0/PIO10 TMROUT1/PIO1 TMRIN1/PIO0 RST GND MCS3/RFSH/PIO25 MCS2/PIO24 VCC PCS0/PIO16 PCS1/PIO17 CND PCS2/PIO18 PCS3/PIO19 VCC PCS5/A1/PIO3 PCS6/A2/PIO2 LCS/ONCE0 UCS/ONCE1 INT0 INT1/SELECT INT2/INTA0/PIO31 INT3/INTA1/IRQ INT4/PIO30 MCS1/PIO15 R8810LV Microcontroller 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 SRDY/PIO6 DT/R/PIO4 DEN/PIO5 MCS0/PIO14 A8 A7 A6 A5 A4 A3 A2 A1 VCC A0 GND GND HLDA HOLD NMI WB RDC Semiconductor Co. Subject to change without notice 5 Rev:1.4 R DC RDC (LQFP) S6/CLKDIV2/PIO29 SDEN0/PIO22 RXD/PIO28 AD7 VCC AD6 GND AD5 AD4 AD3 AD2 AO9 AD1 AO8 AD0 AO15 AO14 AO13 AO12 AO11 AO10 9 8 7 6 5 4 3 2 1 SDEN1/PIO23 TXD/PIO27 UZI/PIO26 24 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 23 22 21 20 19 18 17 16 15 14 13 12 11 10 SDATA/PIO21 ® 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 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 RISC DSP Controller RDC Semiconductor Co. Subject to change without notice DRQ0/PIO12 DRQ1/PIO13 TMRIN0/PIO11 TMROUT0/PIO10 TMROUT1/PIO1 TMRIN1/PIO0 RST GND MCS3/RFSH/PIO25 MCS2/PIO24 VCC PCS0/PIO16 PCS1/PIO17 GND PCS2/PIO18 PCS3/PIO19 VCC PCS5/A1/PIO3 PCS6/A2/PIO2 LCS/ONCE0 UCS/ONCE1 INT0 INT1/SELECT INT2/INTA0/PIO31 INT3/INTA1/IRQ SCLK/PIO20 BHE/ADEN WR RD ALE ARDY S2 S1 S0 GND X1 X2 R8810LV 6 WB A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 A11 A10 VCC GND GND NMI DT/R/PIO4 SRDY/PIO6 HLDA HOLD DEN/PIO5 VCC CLKOUTA CLKOUTB GND A19/PIO9 A18/PIO8 VCC A17/PIO7 A16 A15 A14 A13 A12 R8810LV INT4/PIO30 MCS0/PIO14 MCS1/PIO15 Rev:1.4 R DC RDC Pin name AD0 AO8 AD1 AO9 AD2 AO10 AD3 AO11 AD4 AO12 AD5 GND AO13 AD6 VCC AO14 ® RISC DSP Controller R8810LV R8810LV Pin Number Comparison Table PQFP Pin No. 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 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 Pin name A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 VCC A1 A0 GND GND LQFP Pin No. 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 PQFP Pin No. 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 31 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 LQFP Pin No. 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 41 42 43 44 45 46 47 48 49 50 WB HLDA HOLD SRDY/PI O6 NMI DT/ R /PI O4 DEN /PI O5 AD7 AO15 S6/ UZI /PI O29 UZI /PI O26 TXD/PI O27 RXD/PI O28 SDATA/PI O21 SDEN1/PI O23 SDEN0/PI O22 SCLK/PI O20 MCS0 /PI O14 MCS1 /PI O15 I NT4/ PI O30 I NT3/ INTA1 /I RQ I NT2/ INTA0 /PI O31 I NT1/ SELECT I NT0 UCS / CNCE1 LCS/ CNCE0 RFSH 2 / ADEN WR RD ALE ARDY S2 S1 PCS6 /A2/PI O2 PCS5 /A1/PI O3 VCC S0 GND X1 X2 VCC CLKOUTA CLKOUTB GND A19/PI O9 A18/PI O8 VCC A17/PI O7 A16 A15 A14 A13 A12 PCS3 /PI O19 PCS2 /PI O18 GND PCS1 /PI O17 PCS0 /PI O16 VCC MCS2 /PI O24 MCS3 / RFSH /PI O25 GND RST TMRI N1/PI O0 TMROUT1/PI O1 TMROUT0/PI O10 TMRI N0/PI O11 DRQ1/PI O13 DRQ0/PI O12 RDC Semiconductor Co. Subject to change without notice 7 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Type Input Input Input* Input Output Output System ground. Reset input. When RST is asserted, the CPU immediately terminate all operation, clears the internal registers & logic, and the address transfers to the reset address FFFF0h. Input to the oscillator amplifier. Output from the inverting oscillator amplifier. Clock output A. The CLKOUTA operation is the same as crystal input frequency (X1). CLKOUTA remains active during reset and bus hold conditions. Clock output B. The CLKOUTB operation is the same as crystal input frequency (X1). CLKOUTB remains active during reset and bus hold conditions. Pin Description Pin No.(PQFP) 15, 21, 38, 61, 67, 92 12, 18, 41, 42, 64, 70, 89 71 13 14 16 Symbol VCC GND Description System power: +3.3 volt power supply. RST X1 X2 CLKOUTA 17 CLKOUTB Output Synchronous Serial Port Interface 1 2 3 100 SDEN1/PIO23 SDEN0/PIO22 SCLK/PIO20 SDATA/PIO21 Serial data enables. Active-high. These pins enable data Output/Input transfers of the synchronous serial interface. SDEN1 for port1, SDEN0 for port0. Synchronous serial data clock. This pin provides the shift clock Output/Input to an external device. SCLK=X1/2, 4, 8 or 16 depending on register setting. This pin held high during the UART inactive. Synchronous serial data. This pin provides the shift data to or Input/Output receives a serial data from an external device. Output/Input Input Transmit data. This pin transmits asynchronous serial data from the UART of the microcontroller. Receive data. This pin receives asynchronous serial data. For RFSH 2 feature, this pin actice low to indicate a DRAM refresh bus cycle. For ADEN feature, when this pin is held high on power-on reset the address portion of the AD bus can be disabled or enabled by DA bit in the LMCS and UMCS register during 4 RFSH 2 / ADEN Output/Input LCS or UCS bus cycle access. The RFSH 2 / ADEN with a internal weak pull-up resister, so no external pull-up resister is reqired. The AD bus always drives both address and data during LCS or UCS bus cycle access, if the RFSH 2 / ADEN pin with external pull-Low resister during reset. Write strobe. This pin indicates that the data on the bus is to be 5 WR Output written into a memory or an I/O device. WR is active during T2, T3 and Tw of any write cycle, floats during a bus hold or reset. Read Strobe. Active low signal which indicates that the microcontroller is performing a memory or I/O read cycle. RD floats during bus hold or reset. Address latch enable. Active high. This pin indicates that an address output on the AD bus. Address is guaranteed to be valid on the trailing edge of ALE. This pin is tri-stated during Asynchronous Serial Port Interface 98 99 TXD/PIO27 RXD Bus Interface 6 RD Output 7 ALE Output RDC Semiconductor Co. Subject to change without notice 8 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV ONCE mode and is never floating during a bus hold or reset. Asynchronous ready. This pin performs the microcontroller that the address memory space or I/O device will complete a data transfer. The ARDY pin accepts a rising edge that is asynchronous to CLKOUTA and is active high. The falling edge of ARDY must be synchronized to CLKOUTA. Tie ARDY high, the microcontroller is always asserted in the ready condition. If the ARDY is not used, tie this pin low to yield control to SRDY. Both SRDY and ARDY should be tied to high if the system need not assert wait state by externality. Bus cycle status. These pins are encoded to indicate the bus status. S2 can be used as memory or I/O indicator. S1 can be used as DT/ R indicator. These pins are floating during hold and reset. Bus Cycle Encoding Description Bus Cycle S2 S1 S0 0 Interrupt acknowledge 0 0 1 Read data from I/O 0 0 0 Write data to I/O 1 0 1 Halt 1 0 0 Instruction fetch 0 1 1 Read data from memory 0 1 0 Write data to memory 1 1 1 Passive 1 1 8 ARDY Input 9 10 11 S2 S1 S0 Output 19 20 22 23-37 39, 40 A19/PIO9 A18/PIO8 A17/PIO7 A16-A2 A1 , A0 Address bus. Non-multiplex memory or I/O address. The A bus is one-half of a CLKOUTA period earlier than the AD bus. Output/Input These pins are high-impedance during bus hold or reset. 78,80,82,84,86,88 91,94 AD0-AD7 79,81,83,85,87,90 93,95 43 AO8-AO15 WB 44 HLDA The multiplexed address and data bus for memory or I/O accessing. The address is present during the t1 clock phase, and the data bus phase is in t2-t4 cycle. The address phase of the AD bus can be disabled when the Input/Output BHE / ADEN pin with external pull-Low resister during reset. The AD bus is in high-impedance state during bus hold or reset condition and this bus also be used to load system configuration information (with pull-up or pull-Low resister) into the RESCON(F6h) register when the reset input from low go high. Address Only Bus, In the multiplexed address bus, the AO15 – Output AO8 combine with the AD7 – AD0 to form a 16 bit address bus. These pins are floating during a bus hold or reset. Write Byte. This pin active low to indicate a write cycle on the Output bus. It is floating during reset. Bus hold acknowledge. Active high. The microcontroller will issue a HLDA in response to a HOLD request by external bus master at the end of T4 or Ti. When the microcontroller is in hold status (HLDA is high), the AD15-D0, A19-A0, WR , Output RD , DEN , S0 - S1 , S6 , BHE , DT/ R , WHB and WLB are floating, and the UCS , LCS , PCS6 - PCS5 , MCS3 - MCS0 and PCS3 - PCS0 will be drive high. After HOLD is detected as being low, the microcontroller will lower HLDA. RDC Semiconductor Co. Subject to change without notice 9 Rev:1.4 R DC RDC 45 ® RISC DSP Controller R8810LV HOLD Bus hold request. Active high. This pin indicates that another bus master is requesting the local bus. Synchronous ready. This pin performs the microcontroller that the address memory space or I/O device will complete a data transfer. The SRDY pin accepts a falling edge that is asynchronous to CLKOUTA and is active high. SRDY is accomplished by elimination of the one-half clock period Input/Output required to internally synchronize ARDY. Tie SRDY high the microcontroller is always assert in the ready condition. If the SRDY is not used, tie this pin low to yield control to ARDY. Input 46 SRDY/PIO6 Both SRDY and ARDY should be tied to high if the system need not assert wait state by externality. 48 Data transmit or receive. This pin indicates the direction of Output/Input data flow through an external data-bus transceiver. DT/ R low, DT/ R /PIO4 the microcontroller receives data. When DT/R is asserted high, the microcontroller writes data to the data bus. Data enable. This pin is provided as a data bus transceiver output enable. DEN is asserted during memory and I/O access. Output/Input DEN /PIO5 DEN is drived high when DT/ R changes state. It is floating during bus hold or reset condition. Bus cycle status bit6/clock divided by 2. For S6 feature, this pin is low to indicate a microcontroller-initiated bus cycle or high to indicate a DMA-initiated bus cycle during T2, T3, Tw and T4. For CLKDIV2 feature. The internal clock of S6/ CLKDIV2 /PIO29 Output/Input microcontroller is the external clock be divided by 2. (CLKOUTA, CLKOUTB=X1/2), if this pin held low during power-on reset. The pin is sampled on the rising edge of RST . Upper zero indicate. This pin is the logical OR of the inverted Output/Input UZI /PIO26 A19-A16. It asserts in the T1 and is held throughout the cycle. 49 96 97 Chip Select Unit Interface 50 51 68 69 MCS0 /PIO14 MCS1 /PIO15 MCS2 /PIO24 MCS3 / RFSH /PIO25 Midrange memory chip selects. For MCS feature, these pins are active low when enable the MMCS(A6h) register to access a memory. The address ranges are programmable. Output/Input MCS3 - MCS0 are held high during bus hold. When programming LMCS(A2h) register, pin69 is as a RFSH pin to auto refresh the PSRAM. Upper memory chip select/ONCE mode request 1. For UCS feature, this pin acts low when system accesses the defined portion memory block of the upper 512K bytes (80000hFFFFFh) memory region. UCS default acted address region is from F0000h to FFFFFh after power-on reset. The address Output/Input range acting UCS is programmed by software. For ONCE1 feature. If ONCE0 and ONCE1 are sampled low on the rising edge of RST . The microcontroller enters ONCE mode. In ONCE mode, all pins are high-impedance. This pin incorporates weakly pull-up resistor. Lower memory chip select/ONCE mode request 0. For LCS feature, this pin acts low when the microcontroller accesses the Output/Input defined portion memory block of the lower 512K (00000h7FFFFh) memory region. The address range acting LCS is 57 UCS / ONCE1 58 LCS / ONCE0 RDC Semiconductor Co. Subject to change without notice 10 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV programmed by software. For ONCE 0 feature, see UCS / ONCE1 description. This pin incorporates weakly pull-up register. Peripheral chip selects/latched address bit. For PCS feature, these pins act low when the microcontroller accesses the fifth or sixth region of the peripheral memory (I/O or memory space). The base address of PCS is programmable. These pins Output/Input assert with the AD address bus and are not float during bus hold. For latched address bit feature. These pins output the latched address A2, A1 when cleared the EX bit in the MCS and PCS auxiliary register. The A2, A1 retains previous latched data during bus hold. Peripheral chip selects. These pins act low when the microcontroller accesses the defined memory area of the peripheral memory block (I/O or memory address). For I/O accessed, the base address can be programmed in the region Output/Input 00000h to 0FFFFh. For memory address access, the base address can be located in the 1M byte memory address region. These pins assert with the multiplexed AD address bus and are not float during bus hold. 59 60 PCS6 /A2/PIO2 PCS5 /A1/PIO3 62 63 65 66 PCS3 /PIO19 PCS2 /PIO18 PCS1 /PIO17 PCS0 /PIO16 Interrupt Control Unit Interface Nonmaskable Interrupt. The NMI is the highest priority hardware interrupt and is nonmaskable. When this pin is asserted (NMI transition from low to high), the microcontroller NMI Input always transfers the address bus to the location specified by the nonmaskable interrupt vector in the microcontroller interrupt vector table. The NMI pin must be asserted for at least one CLKOUTA period to guarantee that the interrupt is recognized. Maskable interrupt request 4. Act high. This pin indicates that an interrupt request has occurred. The microcontroller will jump to the INT4 address vector to execute the service routine INT4/PIO30 Input/Output if the INT4 is enable. The interrupt input can be configured to be either edge- or level-triggered. The requesting device must holt the INT4 until the request is acknowledged to guarantee interrupt recognition. Maskable interrupt request 3/interrupt acknowledge 1/slave interrupt request. For INT3 feature, except the difference interrupt line and interrupt address vector, the function of INT3 is the same as INT4. INT3/ INTA1 /IRQ Input/Output For INTA1 feature, in cascade mode or special fully-nested mode, this pin corresponds the INT1. For IRQ feature, when the microcontroller is as a slave device, this pin issues an interrupt request to the master interrupt controller. Maskable interrupt request 2/interrupt acknowledge 0. For INT2 feature, except the difference interrupt line and interrupt address vector, the function of INT2 is the same as INT4. INT2/ INTA 0 /PIO31 Input/Output For INTA 0 feature, in cascade mode or special fully-nested mode, this pin corresponds the INT0. Maskable interrupt request 1/slave select. For INT1 feature, Input/Output except the difference interrupt line and interrupt address vector, the function of INT1 is the same as INT4. 47 52 53 54 55 INT1/ SELECT RDC Semiconductor Co. Subject to change without notice 11 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV For SELECT feature, when the microcontroller is as a slave device, this pin is drived from the master interrupt controller decoding. This pin acts to indicate that an interrupt appears on the address and data bus. The INT0 must act before SELECT acts when the interrupt type appears on the bus. Maskable interrupt request 0. Except the interrupt line and interrupt address vector, the function of INT0 is the same as INT4. 56 INT0 Input Timer Control Unit Interface 72 75 Timer input. These pins can be as clock or control signal input, which depend upon the programmed timer mode. After TMRIN1/PIO0 Input/Output internally synchronizing low to high transitions on TMRIN, the TMRIN0/PIO11 timer controller increments. These pins must be pull-up if not being used. Timer output. Depending on timer mode select these pins provide single pulse or continuous waveform. The duty cycle TMROUT1/PIO1 Output/Input of the waveform can be programmable. These pins are floated TMROUT0/PIO10 during a bus hold or reset. 73 74 DMA Unit Interface 76 77 DRQ1/PIO13 DRQ0/PIO12 DMA request. These pins are asserted high by an external device when the device is ready for DMA channel 1 or channel Input/Output 0 to perform a transfer. These pins are level-triggered and internally synchronized. The DRQ signals must remain act until finish serviced and are not latched. Notes: 1.When enable the PIO Data register, there are 32 MUX definition pins can be as a PIO pin. For example, the DRD1/PIO13 (pin76) can be as a PIO13 when enable the PIO Data register. 2.The PIO status during Power-On reset : PIO1, PIO10, PIO22, PIO23 are input with pull-down, PIO4 to PIO9 are normal operation and the others are input with pull-up. RDC Semiconductor Co. Subject to change without notice 12 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Basic Application System Block Flash ROM AD7-AD0 X1 X2 RD UCS OE CE A19-A0 WR Data(8) Address WE SRAM RS232 Level Converter Serial port0 Data(8) Address R8810LV Timer0-1 INTx DMA LCS WE OE CE Peripheral Data Address VCC PIO 100K RST 1uF PCSx CS WE OE BASIC APPLICATION SYSTEM BLOCK (A) Flash ROM DEN X1 X2 DT/R AD7-AD0 G DIR D7-D0 Data(8) Address WE Transciver UCS OE CE SRAM RS232 Level Converter Serial port0 Data(8) AD7-AD0 AO15-AO8 A19-A16 ALE A19-A0 Address WE R8810LV Timer0-1 INTx DMA Latch OE CE LCS Peripheral Data Address VCC PIO 100K RST 1uF PCSx WR RD CS WE OE BASIC APPLICATION SYSTEM BLOCK (B) RDC Semiconductor Co. Subject to change without notice 13 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Oscillator Characteristics X1 Rf C1 C2 L X2 R8810LV C3 For fundamental -mode crystal: Reference valve Frequency Rf C1 C2 C3 L 10.8288M Hz None 10Pf 10Pf None None 19.66M Hz None 10Pf 10Pf None None 30M Hz None None 10Pf None None 33M Hz None None 10Pf None None 40M Hz None None 10Pf None None For third-overtone mode crystal: Reference valve Frequency Rf C1 C2 C3 L 22.1184M Hz 1M 15Pf 30Pf 28.322M Hz 1.5M 15Pf 30Pf 220Pf 10uL 33.177M Hz 1.5M 15Pf 30Pf 220Pf 4.7uL 40M Hz 1.5M 15Pf 30Pf 220Pf 2.7uL 44.1M Hz 1.5M 15Pf 30Pf 120Pf 2.7uL RDC Semiconductor Co. Subject to change without notice 14 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Read/Write timing Diagram T1 CLKOUTA T2 T3 TW T4 A19:A0 ADDRESS S6 AD7:AD0 ADDRESS DATA AO15:AO8 ADDRESS ALE RD UCS,LCS PCSx,MCSX DEN DT/R S2:S0 7 5 7 UZI READ CYCLE RDC Semiconductor Co. Subject to change without notice 15 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA T2 T3 TW T4 A19:A0 ADDRESS S6 AD7:AD0 ADDRESS DATA AO15:AO8 ADDRESS ALE WR WB UCS,LCS PCSx,MCSX DEN DT/R S2:S0 7 6 7 UZI WRITE CYCLE RDC Semiconductor Co. Subject to change without notice 16 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Execution Unit General Register The R8810 has eight 16-bit general registers. And the AX,BX,CX,DX can be subdivided into two 8-bit register (AH,AL,BH, BL,CH,CL,DH,DL). The functions of these registers are described as follows. AX : Word Divide , Word Multiply, Word I/O operation. AH : Byte Divide , Byte Multiply, Byte I/O , Decimal Arithmetic, Translate operation. AL : Byte Divide , Byte Multiply operation. BX : Translate operation. CX : Loops, String operation CL : Variable Shift and Rotate operation. DX : Word Divide , Word Multiply, Indirect I/O operation SP : Stack operations (POP, POPA, POPF, PUSH, PUSHA, PUSHF) BP : General-purpose register which can be used to determine offset address of operands in Memory. SI : String operations DI : String operations High 15 87 Low 0 AX Data Group BX CX DX AH BH CH DH SP AL BL CL DL Accumulator Base Register Count/Loop/Repeat/Shift Data Stack Pointer Base Pointer Source Index Destination Index Index Group and Pointer BP SI DI GENERAL REGISTERS Segment Register R8810 has four 16-bit segment registers, CS, DS, SS, ES. The segment registers contain the base addresses (starting location) of these memory segments, and they are immediately addressable for code (CS), data (DS & ES), and stack (SS) memory. CS (Code Segment) : The CS register points to the current code segment, which contains instruction to be fetched. The default location memory space for all instruction is 64K. The initial value of CS register is 0FFFFh. RDC Semiconductor Co. Subject to change without notice 17 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV DS (Data Segment) : The DS register points to the current data segment, which generally contains program variables. The DS register initialize to 0000H. SS (Stack Segment ) : The SS register points to the current stack segment, which is for all stack operations, such as pushes and pops. The stack segment is used for temporary space. The SS register initialize to 0000H. ES (Extra Segment) : The ES register points to the current extra segment which is typically for data storage, such as large string operations and large data structures. The DS register initialize to 0000H. 15 87 0 CS DS SS ES Code Segment Data Segment Stack Segment Extra Segment SEGMENT REGISTERS Instruction Pointer and Status Flags Register IP (Instruction Pointer) : The IP is a 16-bit register and it contains the offset of the next instruction to be fetched. Software can not to direct access the IP register and this register is updated by the Bus Interface Unit. It can change, be saved or be restored as a result of program execution. The IP register initialize to 0000H and the CS:IP starting execution address is at 0FFFF0H. Processor Status Flags Registers 15 14 13 12 11 OF 10 DF 9 IF 8 TF 7 SF 6 ZF 5 Res 4 AF FLAGS Reset Value : 0000h 3 Res 2 PF 1 Res 0 CF Reserved These flags reflect the status after the Execution Unit is executed. Bit 15-12 : Reserved Bit 11: OF, Overflow Flag. An arithmetic overflow has occurred, this flag will be set. Bit 10 : DF, Direction Flag. If this flag is set, the string instructions are increment address process. If DF is cleared, the string instructions are decrement address process. Refer the STD and CLD instructions for how to set and clear the DF flag. Bit 9 : IF, Interrupt-Enable Flag. Refer the STI and CLI instructions for how to set and clear the IF flag. Set to 1 : The CPU enables the maskable interrupt request. RDC Semiconductor Co. Subject to change without notice 18 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set to 0 : The CPU disables the maskable interrupt request. Bit 8: TF, Trace Flag. Set to enable single-step mode for debugging; Clear to disable the single-step mode. If an application program sets the TF flag using POPF or IRET instruction, a debug exception is generated after the instruction (The CPU automatically generates an interrupt after each instruction) that follows the POPF or IRET instruction. Bit 7: SF, Sign Flag. If this flag is set, the high-order bit of the result of an operation is 1,indicating it is negative. Bit 6: ZF, Zero Flag. The result of operation is zero, this flag is set. Bit 5: Reserved Bit 4: AF, Auxiliary Flag. If this flag is set, there has been a carry from the low nibble to the high or a borrow from the high nibble to the low nibble of the AL general-purpose register. Used in BCD operation. Bit 3: Reserved. Bit 2: PF, Parity Flag. The result of low-order 8 bits operation has even parity, this flag is set. Bit 1: Reserved Bit 0: CF, Carry Flag. If CF is set, there has been a carry out or a borrow into the high-order bit of the instruction result. Address generation The Execution Unit generates a 20-bit physical address to Bus Interface Unit by the Address Generation. Memory is organized in sets of segments. Each segment contains a 16 bits value. Memory is addressed using a two-component address that consists of a 16-bit segment and 16-bit offset. The Physical Address Generation figure describes how the logical address transfers to the physical address. Shift left 4 bits 1 15 2 F 9 0 Segment Base Logical Address Offset 1 19 2 F 9 0 0 0 15 0 1 2 0 0 15 0 1 2 0 1 19 2 F A 2 0 Physical Address TO Memory Physical Address Generation RDC Semiconductor Co. Subject to change without notice 19 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Peripheral Control Block Register The peripheral control block can be mapped into either memory or I/O space which is to program the FEh register. And it starts at FF00h in I/O space when reset the microprocessor. The following table is the definition of all the peripheral Control Block Register , and the detail description will arrange on the relation Block Unit. Offset (HEX) FE F6 F4 F0 E4 E2 E0 DA D8 D6 D4 D2 D0 CA C8 C6 C4 C2 C0 A8 A6 A4 A2 A0 88 86 84 82 80 7A 78 76 74 72 70 Register Name Peripheral Control Block Relocation Register Reset Configuration Register Processor Release Level Register PDCON Register Enable RCU Register Clock Prescaler Register Memory Partition Register DMA 1 Control Register DMA 1 Transfer Count Register DMA 1 Destination Address High Register DMA 1 Destination Address Low Register DMA 1 Source Address High Register DMA 1 Source Address Low Register DMA 0 Control Register DMA 0 Transfer Count Register DMA 0 Destination Address High Register DMA 0 Destination Address Low Register DMA 0 Source Address High Register DMA 0 Source Address Low Register PCS and MCS Auxiliary Register Midrange Memory Chip Select Register Peripheral Chip Select Register Low Memory Chip Select Register Upper Memory Chip Select Register Serial Port Baud Rate Divisor Register Serial Port Receive Register Serial Port Transmit Register Serial Port Status Register Serial Port Control Register PIO Data 1 Register PIO Direction 1 Register PIO Mode 1 Register PIO Data 0 Register PIO Direction 0 Register PIO Mode 0 Register Page 21 24 21 22 74 74 74 52 54 54 54 55 55 51 51 51 52 52 52 32 31 33 30 29 66 65 65 64 63 72 72 72 73 73 73 Offset (HEX) 66 62 60 5E 5C 5A 58 56 54 52 50 44 42 40 3E 3C 3A 38 36 34 32 30 2E 2C 2A 28 26 24 22 20 18 16 14 12 10 Register Name Timer 2 Mode / Control Register Timer 2 Maxcount Compare A Register Timer 2 Count Register Timer 1 Mode / Control Register Timer 1 Maxcount Compare B Register Timer 1 Maxcount Compare A Register Timer 1 Count Register Timer 0 Mode / Control Register Timer 0 Maxcount Compare B Register Timer 0 Maxcount Compare A Register Timer 0 Count Register Serial Port Interrupt Control Register Watchdog Timer Control Register INT4 Control Register INT3 Control Register INT2 Control Register INT1 Control Register INT0 Control Register DMA 1 Interrupt Control Register DMA 0 Interrupt Control Register Timer Interrupt Control Register Interrupt Status Register Interrupt Request Register In-service Register Priority Mask Register Interrupt Mask Register Poll Status Register Poll Register End-of-Interrupt Interrupt Vector Register Synchronous Serial Receive Register Synchronous Serial Transmit 0 Register Synchronous Serial Transmit 1 Register Synchronous Serial Enable Register Synchronous Serial Status Register Page 60 61 61 58 60 60 60 57 58 58 57 37 61 38 39 39 40 40 41 42 42 43 44 45 46 47 47 48 48 49 68 68 68 67 67 RDC Semiconductor Co. Subject to change without notice 20 Rev:1.4 R DC RDC 15 Res 14 S/M 13 ® RISC DSP Controller R8810LV Peripheral Control Block Relocation Register: 12 M/IO 11 10 9 8 7 6 5 4 Offset : FEh Reset Value : 20FFh 3 2 1 0 Res R19 - R8 The peripheral control block is mapped into either memory or I/O space by programming this register. When the other chip selects ( PCSx or MCSx ) are programmed to zero wait states and ignore the external ready, the PCSx or MCSx can overlap the control block. Bit 15: Reserved Bit 14: S/ M , Slave/Master – Configures the interrupt controller set 0 : Master mode, set 1: Slaved mode Bit 13 : Reserved Bit 12: M/ IO , Memory/IO space. At reset, this bit is set to 0 and the PCB map start at FF00h in I/O space. set 1- The peripheral control block (PCB) is located in memory space. set 0- The PCB is located in I/O space. Bit 11-0 : R19-R8 , Relocation Address Bits The upper address bits of the PCB base address. The lower eight bits default to 00h. When the PCB is mapped to I/O space, the R19-R16 must be programmed to 0000b. Processor Release Level Register 15 14 13 12 PRL 11 10 9 8 7 1 6 1 5 0 4 1 Offset : F4h Reset Value : 3 1 2 0 D9h 1 0 0 1 Read only register that specifies the processor release version and RDC identify number Bit 15-8 : Processor version 01h : version A , 02h : version B, 03h : version C, 04h : version D Bit 7-0 : RDC identify number - D9h RDC Semiconductor Co. Subject to change without notice 21 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV System Clock Block PSEN(F0h.15) enable/disable Microprocessor Internal Clock X1 X2 CLKIN CLKIN or CLKIN/2 CLK CLOCK Divisior (CLK/2-CLK/128) MUX CAD(F0h.8) CLKOUTA CLKIN/2 Select Divisor Select CAF(F0h.9) F2-F0(F0h.2-F0h.0) S6/CLKDIV2 MUX CBD(F0h.10) CBF(F0h.11) CLKOUTB System Clock Power-Save Control Register 15 PSEN 14 0 13 0 12 0 11 CBF 10 CBD 9 CAF 8 CAD 7 0 6 0 5 0 4 0 Offset : F0h Reset Value : 0000h 3 0 2 F2 1 F1 0 F0 Bit 15: PSEN , Enable Power-save Mode. This bit is cleared by hardware when an external interrupt occurs. This bit dose not be changed when software interrupts (INT instruction) and exceptions occurs. Set 1: enable power-save mode and divides the internal operating clock by the value in F2-F0. Bit14-12: Reserved Bit 11: CBF, CLKOUTB Output Frequency selection. Set 1: CLKOUTB output frequency is same as crystal input frequency. Set 0 : CLKOUTB output frequency is from the clock divisor, which frequency is same as that of microprocessor internal clock. Bit 10 : CBD, CLKOUTB Drive Disable Set 1: Disable the CLKOUTB. This pin will be three-state. Set 0 : Enable the CLKOUTB. Bit 9: CAF, CLKOUTA Output Frequency selection. Set 1: CLKOUTA output frequency is same as crystal input frequency. Set 0 : CLKOUTB output frequency is from the clock divisor, which frequency is same as that of microprocessor internal clock . Bit 8: CAD, CLKOUTA Drive Disable. Set 1: Disable the CLKOUTA. This pin will be three-state. RDC Semiconductor Co. Subject to change without notice 22 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set 0 : Enable the CLKOUTA. Bit 7-3 : Reserved Bit 2-0: F2- F0, Clock Divisor Select. F2, F1, F0 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0 1 0 1 0 1 0 1 ----------------------------Divider Factor Divide by 1 Divide by 2 Divide by 4 Divide by 8 Divide by 16 Divide by 32 Divide by 64 Divide by 128 Reset Processor initialization is accomplished with activation of the RST pin. To reset the processor, this pin should be held low for at least seven oscillator periods. The Reset Status Figure shows the status of the RST pin and others relation pins. When RST from low go high , the state of input pin (with weakly pull-up or pull-down) will be latched , and each pin will perform the individual function. The AD7-AD0, AO15-AO8 will be latched into the register F6h. UCS / ONCE1 , LCS / ONCE 0 enter ONCE mode (All of the pins will floating except X1 , X2) when with pull-low resisters. The input clock will be divided by 2 when S6/ CLKDIV2 with pull-low resister. The AD7-AD0, AO15-AO8 will not drive the address phase during UCS , LCS cycle if BHE / ADEN with pull-low resister RDC Semiconductor Co. Subject to change without notice 23 Rev:1.4 R DC RDC CLKOUTA ® RISC DSP Controller R8810LV RST min 7T A19-A0 (float) ffff0 (input) S6 AD7-AD0 (input) f0 ea AO15-AO8 (input) ff ALE (float) (float) RD (input) BHE (input) UCS (float) DEN DT/R (float) S2-S0 (float) 7 4 7 4 Reset Status Reset Configuration Register 15 14 13 12 11 10 9 8 RC 7 6 5 4 Offset : F6h Reset Value : AD15-AD0 3 2 1 0 Bit 15- 0 : RC ,Reset Configuration AO15-AO8, AD7-AD0 . The (AO15 to AO8, AD7 to AD0) must with weakly pull-up or pull-down resistors to correspond the contents when (AO15 to AO8, AD7 to AD0) be latched into this register during the RST pin from low go high. And the value of the reset configuration register provides the system information when software read this register. This register is read only and the contents remain valid until the next processor reset. Bus Interface Unit RDC Semiconductor Co. Subject to change without notice 24 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV The bus interface unit drives address, data, status and control information to define a bus cycle. The bus A19-A0 are nonmultiplex memory or I/O address. The AD7-AD0 are multiplexed address and data bus for memory or I/O accessing. The S2 - S1 are encoded to indicate the bus status, which is described in the Pin Description table in page 6. The Basic Application System Block (page 8) and Read/Write Timing Diagram (page 12) describe the basic bus operation. Memory and I/O interface The memory space consists of 1M bytes and the I/O space consists of 64k bytes. Memory devices exchange information with the CPU during memory read, memory write and instruction fetch bus cycles. I/O read and I/O write bus cycles use a separate I/O address space. Only IN/OUT instruction can access I/O address space, and information must be transferred between the peripheral device and the AX register. The first 256 bytes of I/O space can be accessed directly by the I/O instructions. The entire 64k bytes I/O address space can be accessed indirectly, through the DX register. I/O instructions always force address A19-A16 to low level. FFFFFH Memory Space 1M Bytes 0FFFFH I/O Space 0 0 64K Bytes Memory and I/O Space 1M Bytes FFFFF FFFFE (X+1) (X) 2 1 0 First Bus Cycle Second Bus Cycle A19:0 D7:0 A19:0 D7:0 A19:0 D7:0 8-Bit Data Bus Word Transfers Physical Data Bus Models Data Bus The memory address space data bus is physically implemented as one bank of 1M bytes. Address lines A19-A0 select a specific byte within the bank. Byte transfers to even or odd addresses transfer information in one bus cycle. Word transfers to even or odd addresses transfer information in two bus cycles. The Bus Interface Unit automatically converts the word access RDC Semiconductor Co. Subject to change without notice 25 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV into two consecutive byte accesses, making the operation transparent to the programmer. For word transfers, the word address defines the first byte transferred. The second byte transfer occurs from the word address plus one. Wait States SRDY R2 bit in control registers D ARDY D Q CLKOUTA CLKOUTA Rising Edge Q Wait State Counter Bus Ready Falling Edge CLKOUTA Wait-state block Diagram Bus Ready is active High R2 bit in UMCS default is"0", so CPU is required external ready at power-on reset. The wait state counter value is located at control registers in chip select unit. Wait states extend the data phase of the bus cycle. The ARDY or SRDY input with low level will insert wait states. If R2 bit=0, The user also can inserts wait state by programmed the internal chip select registers. The R2 bit of UMCS ( offset 0A0h) default is low, so each one of the ARDY or SRDY should in ready state (with pull high resistor) when at power on reset or external reset. The wait state counter value is decided by the R3, R1,R0 bits in each chip select register. There are five group R3,R1,R0 bits in the registers offset A0h, A2h, A4h, A6h, A8h. Each group is independent. Bus Hold When the bus hold requested ( HOLD pin active high) by the another bus master, the microprocessor will issue a HLDA RDC Semiconductor Co. Subject to change without notice 26 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV in response to a HOLD request at the end of T4 or Ti. When the microprocessor is in hold status (HLDA is high), the AO15AO8, AD7-AD0, A19-A0, WR , RD , DEN , S1 - S0 , S6 , BHE , DT/ R , and WB are floating, and the UCS , LCS , PCS6 - PCS5 , MCS3 - MCS0 and PCS3 - PCS0 will be drive high. After HOLD is detected as being low, the microprocessor will lower the HLDA. Case 1 Case 2 Ti T3 Ti T4 Ti Ti Ti Ti CLKOUTA HOLD HLDA AD7:AD0 Floating AO15:AO8 Floating Floating Floating A19:A0 DEN Floating S6 RD Floating WR Floating DT/R Floating S2:S0 2 7 Floating Floating WLB BUS HOLD ENTER WAVEFORM RDC Semiconductor Co. Subject to change without notice 27 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Case 1 Case 2 Ti Ti Ti Ti Ti Ti Ti T4 T1 T1 CLKOUTA HOLD HLDA AD7:AD0 Floating DATA AO15:AO8 Floating Floating Floating Address A19:A0 ADDRESS DEN Floating S6 RD Floating WR Floating DT/R Floating S2:S0 Floating Floating 7 6 WLB BUS HOLD LEAVE WAVEFORM RDC Semiconductor Co. Subject to change without notice 28 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Chip Select Unit The Chip Select Unit provides 12 programmable chip select pins to access a specific memory or peripheral device. The chip selects are programmed through five peripheral control registers (A0h, A2h, A4h, A6h, A8h). And all of the chip selects can be insert wait states by programmed the peripheral control register. UCS The UCS default to active on reset for program code access. The memory active range is upper 512k (80000h – FFFFFh), which is programmable. And the default memory active range of UCS is 64k ( F0000h – FFFFFh). The UCS active to drive low four CLKOUTA oscillators if no wait state inserts. There are three wait-states insert to UCS active cycle on reset. Upper Memory Chip Select Register 15 1 14 13 LB2 - LB0 12 11 0 10 0 9 0 8 0 7 DA 6 0 5 1 4 1 Offset : A0h Reset Value :F03Bh 3 1 2 R2 1 R1 0 R0 Bit 15 : Reserved Bit 14-12 : LB2-LB0, Memory block size selection for UCS chip select pin. The UCS chip select pin active region can be configured by the LB2-LB0. The default memory block size is from F0000h to FFFFFh. LB2, LB1, LB0 ---- Memory Block size , Start address, End Address 1, 1, 1, 0, Bit 11-8 : Reserved Bit 7 : DA , Disable Address. If the BHE / ADEN pin is held high on the rising edge of RST , then the DA bit is valid to enable/disable the address phase of the AD bus. If the BHE / ADEN pin is held low on the rising edge of RST , the AD bus always drive the address and data. Set 1 : Disable the address phase of the AD7 – AD0 bus cycle when UCS is asserted. The AO15-AO8 are driven Address bus even the bit is set to 1. Set 0 : Enable the address phase of the AD7 – AD0 bus cycle when UCS is asserted. Bit 6-3: Reserved Bit 2 : R2, Ready Mode. This bit is used to configure the ready mode for UCS chip select. Set 1: external ready is ignored. Set 0: external ready is required. RDC Semiconductor Co. Subject to change without notice 29 1, 1, 0, 0, 1 0 0 0 ------------64k 128k 256k 512k , F0000h , E0000h , C0000h , 80000h , FFFFFh , FFFFFh , FFFFFh , FFFFFh Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV ; (R1,R0) = (0,1) ; (R1,R0) = (1,1) -- 1 wait-state -- 3 wait-state Bit 1-0 : R1-R0, Wait-State value. When R2 is set to 0, it can inserted wait-state into an access to the UCS memory area. (R1,R0) = (0,0) (R1,R0) = (1,0) -- 0 wait-state -- 2 wait-state LCS The lower 512k bytes (00000h-9FFFFh) memory region chip selects. The memory active range is programmable, which has no default size on reset. So the A2h register must be programmed first before to access the target memory range. The LCS pin is not active on reset, but any read or write access to the A2h register activates this pin. Low Memory Chip Select Register 15 0 14 13 UB2 - UB0 12 11 1 10 1 9 1 8 1 7 DA 6 PSE 5 1 4 1 Offset : A2h Reset Value : 3 1 2 R2 1 R1 0 R0 Bit 15: Reserved Bit 14-12 : UB2-UB0, Memory block size selection for LCS chip select pin The LCS chip select pin active region can be configured by the UB2-UB0. The LCS pin is not active on reset, but any read or write access to the A2h (LMCS) register activates this pin. UB2, UB1, UB0 ---- Memory Block size , Start address, End Address 0, 0, 0, 1, 0, 0, 1, 1, 0 1 1 1 ---64k , , , , 00000h 00000h 00000h 00000h , , , , 0FFFFh 1FFFFh 3FFFFh 7FFFFh ---- 128k ---- 256k ---- 512k Bit 11-8 : Reserved Bit 7 : DA , Disable Address. If the BHE / ADEN pin is held high on the rising edge of RST , then the DA bit is valid to enable/disable the address phase of the AD bus. If the BHE / ADEN pin is held high on the rising edge of RST, the AD bus always drive the address and data. Set 1 : Disable the address phase of the AD7 – AD0 bus cycle when LCS is asserted. The AO15-AO8 are driven address bus even the bit is set to 1. Set 0 : Enable the address phase of the AD7 – AD0 bus cycle when LCS is asserted. Bit 6 : PSE, PSRAM Mode Enable. This bit is used to enable PSRAM support for the LCS chip select memory space. The refresh control unit registers E0h,E2h,E4h must be configured for auto refresh before PSRAM support is enabled. PSE set to 1: PSRAM support is enable PSE set to 0: PSRAM support is disable Bit 5-3: Reserved Bit 2 : R2, Ready Mode. This bit is used to configure the ready mode for LCS chip select. RDC Semiconductor Co. Subject to change without notice 30 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set 1: external ready is ignored. Set 0: external ready is required. Bit 1-0 : R1-R0, Wait-State value. When R2 is set to 0, it can inserted wait-state into an access to the LCS memory area. (R1,R0) = (0,0) (R1,R0) = (1,0) -- 0 wait-state -- 2 wait-state ; (R1,R0) = (0,1) ; (R1,R0) = (1,1) -- 1 wait-state -- 3 wait-state MCSx The memory block of MCS4 - MCS0 can be located anywhere within the 1M bytes memory space, exclusive of the areas associated with the UCS and LCS chip selects. The maximum MCSx active memory range is 512k bytes. The MCS chip selects are programmed through two registers A6h and A8h, and these select pins are not active on reset. Both A6h and A8h registers must be accessed with a read or write to activate MCS4 - MCS0 . There aren’t default value on A6h and A8h registers, so the A6h and A8h must be programmed first before MCS4 - MCS0 active. Midranage Memory Chip Select Register 15 14 13 12 11 10 9 8 7 1 6 1 5 1 4 1 Offset : A6h Reset Value : 3 1 2 R2 1 R1 0 R0 BA19 - BA13 Bit 15-7 : BA19-BA13, Base Address. The BA19-BA13 correspond to bits 19-13 of the 1M bytes (20-bits) programmable base address of the MCS chip select block. The bits 12 to 0 of the base address are always 0. The base address can be set to any integer multiple of the size of the memory block size selected in these bits. For example, if the midrange block is 32Kbytes, only the bits BA19 to BA15 can be programmed. So the block address could be locate at 20000h or 38000h but not in 22000h. The base address of the MCS chip select can be set to 00000h only if the LCS chip select is not active. And the MCS chip select address range is not allowed to overlap the LCS chip select address range. The MCS chip select address range also is not allowed to overlap the UCS chip select address range. Bit 8-3 : Reserved Bit 2: R2, Ready Mode. This bit is configured to enable/disable the wait states inserted for the MCS chip selects. The R1,R0 bits of this register determine the number of wait state to insert. set to 1: external ready is ignored set to 0: external ready is required Bit 1-0 : R1-R0, Wait-State value. The R1,R0 determines the number of wait states inserted into a MCS access. (R1,R0) : (1,1) – 3 wait states , (1,0) – 2 wait states, (0,1) – 1 wait states , (0,0) – 0 wait states RDC Semiconductor Co. Subject to change without notice 31 Rev:1.4 R DC RDC 15 1 14 13 ® RISC DSP Controller R8810LV PCS and MCS Auxiliary Register 12 11 M6 - M0 10 9 8 7 EX 6 MS 5 1 4 1 Offset : A8h Reset Value : 3 1 2 R2 1 R1 0 R0 Bit 15: Reserved Bit 14-8: M6-M0, MCS Block Size. These bits determines the total block size for the MCS3 - MCS0 chip selects. Each individual chip select is active for one quarter of the total block size. For example, if the block size is 32K bytes and the base address is located at 20000h. The individual active memory address range of MCS3 to MCS0 is MCS0 – 20000h to 21FFF, MCS1 -22000 to 23FFFh, MCS2- 24000h to 25FFFh, MCS3- 26000h to 27FFFh. MCS total block size is defined by M6-M0, M6-M0 0000001b 0000010b 0000100b 0001000b 0010000b 0100000b 1000000b , Total block size, MCSx address active range , , , , , , , 8k 16k 32k 64k 128k 256k 512k , , , , , , , 2k 4k 8k 16k 32k 64k 128k Bit 7 : EX, Pin Selector. This bit configures the multiplex output which the PCS6 - PCS5 pins as chip selects or A2-A1. Set 1 : PCS6 , PCS5 are configured as peripheral chip select pins. Set 0: PCS6 is configured as address bit A2, PCS5 is configured as A1. Bit 6: MS, Memory or I/O space Selector. Set 1: The PCSx pins are active for memory bus cycle. Set 0: The PCSx pins are active for I/O bus cycle. Bit 5-3 : Reserved Bit 2 : R2, Ready Mode. This bit is configured to enable/disable the wait states inserted for the PCS5,PCS6 chip selects. The R1,R0 bits of this register determine the number of wait state to insert. set to 1: external ready is ignored set to 0: external ready is required Bit 1-0 : R1-R0, Wait-State value. The R1,R0 determines the number of wait states inserted into a PCS5 - PCS6 access. (R1,R0) : (1,1) – 3 wait states , (1,0) – 2 wait states, (0,1) – 1 wait states , (0,0) – 0 wait states PCSx The peripheral or memory chip selects which are programmed through A4h and A8h register to define these pins. The base address memory block can be located anywhere within the 1M bytes memory space, exclusive of the areas associated RDC Semiconductor Co. Subject to change without notice 32 Rev:1.4 R DC RDC states. ® RISC DSP Controller R8810LV with the MCS4 , LCS and MCS chip elects. If the chip selects are mapped to I/O space, the access range is 64k bytes. PCS6 – PCS5 can be configured from 0 wait-state to 3 wait-states. PCS3 – PCS0 can be configured from 0 wait-state to 15 wait- Peripheral Chip Select Register 15 14 13 12 11 10 9 8 7 6 1 5 1 4 1 Offset : A4h Reset Value : 3 R3 2 R2 1 R1 0 R0 BA19 - BA11 Bit 15-7 : BA19-BA11, Base Address. BA19-BA11 correspond to bit 19-11 of the 1M bytes (20-bits) programmable base address of the PCS chip select block. When the PCS chip selects are mapped to I/O space, BA19-BA16 must be wrote to 0000b because the I/O address bus in only 64K bytes (16-bits) wide. PCSx address range: PCS0 PCS1 PCS2 PCS3 PCS5 : : : : : : Base Address Base Address + 100h Base Address + 200h Base Address + 300h - Base Address + FFh Base Address + 1FFh Base Address + 2FFh Base Address + 3FFh Base Address + 5FFh Base Address + 6FFh Base Address + 500h Base Address + 600h - PCS6 Bit 6-4: Reserved Bit 3: R3; Bit 1-0: R1,R0 ,Wait-State Value. The R3,R1,R0 determines the number of wait-states inserted into a PCS3 PCS0 access. R3, R1, R0 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0 1 0 1 0 1 0 1 -- Wait States --------0 1 2 3 5 7 9 15 Bit 2 : R2, Ready Mode. This bit is configured to enable/disable the wait states inserted for the PCS3 - PCS0 chip selects. The R3,R1,R0 bits determine the number of wait state to insert. set to 1: external ready is ignored set to 0: external ready is required RDC Semiconductor Co. Subject to change without notice 33 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Interrupt Controller Unit There are twelve interrupt requests source connect to the controller: five maskable interrupt pins ( INT0 – INT4); one nonmaskable interrupt pin (NMI) ; Six internal unit request source ( Timer 0, 1,2 ;DMA 0,1 ; Asynchronous serial unit). Master/Slave Mode Select (FEH.14) Timer0/1/2 Interrupt REQ. Timer0 REQ. 0 1 Interrupt Type INT0 Timer1 REQ. 0 1 Interrupt Control Logic Interrupt REQ. Execation Unit 0 Timer2 REQ. DMA0 Interrupt REQ. DMA1 Interrupt REQ. INT2 INT3 INT4 Asynchronous Serial Port 1 EOI Register 16 Bit Acknowledge In-Service Register Acknowledge to DMA, Timer,Serial port Unit 16 Bit Internal Address/Data Bus Interrupt Control Unit Block Diagram Master Mode and Slave Mode The interrupt controller can be programmed as a master or slave mode. (program FEh , bit 14). The master mode has two connections : Fully Nested Mode connection or Cascade Mode connection. INT0 INT1 INT2 INT3 INT4 Interrupt Interrupt Interrupt Interrupt Interrupt Source Source Source Source Source R8810LV Fully Nested Mode Connections RDC Semiconductor Co. Subject to change without notice 34 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Interrupt Sources IR7 INT INT4 INT0 8259 8259 INTA0 CAS3-CAS0 INTA CAS3-CAS0 Interrupt Sources R8810LV IR7 INT1 Interrupt Sources 8259 INTA1 CAS3-CAS0 8259 INT INTA CAS3-CAS0 Interrupt Sources Cascade Mode Connection INT0 8259 INTA0 R8810LV Select Cascade Address Dccode IRQ Slave Mode Connection Interrupt Vector, Type and Priority The following table shows the interrupt vector addresses, type and the priority. The maskable interrupt priority can be changed by programmed the priority register. The Vector addresses for each interrupt are fixed. Interrupt Type Divide Error Exception 00h Trace interrupt 01h NMI 02h Breakpoint Interrupt 03h INTO Detected Over Flow Exception 04h RDC Semiconductor Co. Subject to change without notice 35 Interrupt source Vector EOI Address Type 00h 1 04h 1-1 08h 1-2 0Ch 1 10h 1 Priority Note * * Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 11h 12h 13h 14h 15h-1Fh 14h 18h 1Ch 20h 28h 2Ch 30h 34h 38h 3Ch 40h 44h 48h 4Ch 50h 1 1 1 2-1 3 4 5 6 7 8 9 9 2-2 2-3 9 Array Bounds Exception Undefined Opcode Exception ESC Opcode Exception Timer 0 Reserved DMA 0 DMA 1 INT0 INT1 INT2 INT3 INT4 Watchdog Timer Timer 1 Timer 2 Asynchronous Serial port Reserved 08 0A 0B 0C 0D 0E 0F 10 11 08 08 14 */** ** ** */** */** Note * : When the interrupt occurs in the same time, the priority is (1-1 > 1-2) ; (2-1> 2-2 > 2-3) Note **: The interrupt types of these sources are programmable in slave mode. Interrupt Request When an interrupt is request, the internal interrupt controller verifies the interrupt is enable (The IF flag is enable, no MSK bit set ) and that there are no higher priority interrupt requests being serviced or pending. If the interrupt is granted , the interrupt controller uses the interrupt type to access a vector from the interrupt vector table. If the external INT is active (level-trigger) to request the interrupt controller service, and the INT pins must hold till the microcontroller enter the interrupt service routine. There is no interrupt-acknowledge output when running in fully nested mode, so it should use PIO pin to simulate the interrupt-acknowledge pin if necessary. Interrupt Acknowledge The processor requires the interrupt type as an index into the interrupt table. The internal interrupt can provide the interrupt type or an external controller can provide the interrupt type. The internal interrupt controller provides the interrupt type to processor without external bus cycles generation. When an external interrupt controller is supplying the interrupt type, the processor generates two acknowledge bus cycles, and the interrupt type is written to the AD7-AD0 lines by the external interrupt controller. RDC Semiconductor Co. Subject to change without notice 36 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA T2 T3 T4 T1 T2 T3 T4 ADDRESS[19:0] ADDRESS S6 AD7:AD0 Interrupt TYPE ALE BHE INTA0,INTA1 DEN DT/R S2:S0 7 0 INTR ACK 7 0 INTR ACK INTERRUPT ACKNOWLEDGE CYCLE (CASECADE OR SLAVE MODE) Programming the Registers Software is programmed through the registers ( Master mode: 44h, 42h, 40h, 3Eh, 3Ch, 3Ah, 38h, 36h, 34h, 32h, 30h, 2Eh, 2Ch, 2Ah, 28h, 26h, 24h, 22h; interrupt controller operation. Slave Mode: 3Ah, 38h, 36h, 34h, 32h, 30h, 2Eh, 2Ch, 2Ah, 28h,22h, 20h ) to define the Serial Port Interrupt Control Register 15 14 13 12 11 10 Reserved 9 8 7 6 5 4 1 Offset : 44h Reset Value : 001Fh 3 MSK 2 PR2 1 PR1 0 PR0 (Master Mode) Bit 15-4 : Reserved Bit 3: MSK, Mask. Set 1: Mask the interrupt source of the asynchronous serial port. RDC Semiconductor Co. Subject to change without notice 37 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set 0: Enable the serial port interrupt. Bit 2-0 : PR2-PR0, Priority. These bits determine the priority of the serial port relative to the other interrupt signals. The priority selection: PR2, PR1, PR0 -- Priority 0 0 0 0 1 1 1 1 , , , , , , , , 0, 0, 1, 1, 0, 0, 1, 1, 0 1 0 1 0 1 0 1 --------0 1 2 3 4 5 6 7 ( Low ) ( High) INT4 Control Register 15 14 13 12 11 10 9 8 7 ETM 6 5 4 LTM Offset : 40h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved (Master Mode) Bit 15- 8, bit 6-5 : Reserved Bit 7: ETM, Edge trigger enable. When this bit set to 1 and Bit 4 set to 0, interrupt is triggered by low go high edge. The low go high edge will be latched (one level ) till this interrupt is been serviced. Bit 4: LTM, Level-Triggered Mode. Set 1: Interrupt is triggered by high active level Set 0 : Interrupt is triggered by low go high edge. Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the INT4 Set 0: Enable the INT4 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of 44h RDC Semiconductor Co. Subject to change without notice 38 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV INT3 Control Register 12 11 10 9 8 7 ETM 6 5 4 LTM Offset : 3Eh Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved (Master Mode) Bit 15-8, bit 6-5 : Reserved Bit 7: ETM, Edge trigger enable. When this bit set to 1 and Bit 4 set to 0, interrupt is triggered by low go high edge. The low go high edge will be latched (one level ) till this interrupt is been serviced. Bit 4: LTM, Level-Triggered Mode. Set 1: Interrupt is triggered by high active level Set 0 : Interrupt is triggered by low go high edge. Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the INT3 Set 0: Enable the INT3 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of 44h INT2 Control Register 15 14 13 12 11 10 9 8 7 ETM 6 5 4 LTM Offset : 3Ch Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved (Master Mode) Bit 15- 8, bit 6-5 : Reserved Bit 7: ETM, Edge trigger enable. When this bit set to 1 and Bit 4 set to 0, interrupt is triggered by low go high edge. The low go high edge will be latched (one level ) till this interrupt is been serviced. Bit 4: LTM, Level-Triggered Mode. Set 1: Interrupt is triggered by high active level Set 0 : Interrupt is triggered by low go high edge. Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the INT2 Set 0: Enable the INT2 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h RDC Semiconductor Co. Subject to change without notice 39 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV INT1 Control Register 12 11 10 9 8 7 6 5 C 4 LTM Offset : 3Ah Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved ETM SFNM (Master Mode) Bit 15-8 : Reserved Bit 7: ETM, Edge trigger enable. When this bit set to 1 and Bit 4 set to 0, interrupt is triggered by low go high edge. The low go high edge will be latched (one level ) till this interrupt is been serviced. Bit 6: SFNM, Special Fully Nested Mode. Set 1: Enable the special fully nested mode of INT1 Bit 5 : C, Cascade mode. Set to 1 to enable cascade mode. Bit 4: LTM, Level-Triggered Mode. Set 1: Interrupt is triggered by high active level Set 0 : Interrupt is triggered by low go high edge. Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the INT1 Set 0: Enable the INT1 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h (Slave Mode), Timer 2 Interrupt Control Register, reset value is 0000h Bit 15- 4 : Reserved Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the Timer 2 Set 0: Enable the Timer 2 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h INT0 Control Register 15 14 13 12 11 10 9 8 7 6 5 C 4 LTM Offset : 38h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved ETM SFNM (Master Mode) RDC Semiconductor Co. Subject to change without notice 40 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 15-8 : Reserved Bit 7: ETM, Edge trigger enable. When this bit set to 1 and Bit 4 set to 0, interrupt is triggered by low go high edge. The low go high edge will be latched (one level ) till this interrupt is been serviced. Bit 6: SFNM, Special Fully Nested Mode. Set 1: Enable the special fully nested mode of INT0. Bit 5 : C, cascade Mode Set to 1 to enable cascade mode Bit 4: LTM, Level-Triggered Mode. Set 1: Interrupt is triggered by high active level Set 0 : Interrupt is triggered by low go high edge. Bit 3 : MSK, Mask. Set 1: Mask the interrupt source of the INT0 Set 0: Enable the INT0 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h (Slave Mode), Timer 1 Interrupt Control Register, reset value is 0000h Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the timer 1 Set 0: Enable the timer 1 interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h DMA 1 Interrupt Control Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 Offset : 36h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 (Master Mode) Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the DMA 1 controller Set 0: Enable the DMA 1 controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h (Slave Mode), reset value is 0000h RDC Semiconductor Co. Subject to change without notice 41 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the DMA 1 controller Set 0: Enable the DMA 1 controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h DMA 0 Interrupt Control Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 Offset : 34h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 (Master Mode) Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the DMA 0 controller Set 0: Enable the DMA 0 controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h (Slave Mode), reset value is 0000h Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the DMA 0 controller Set 0: Enable the DMA 0 controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h Timer Interrupt Control Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 Offset : 32h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 (Master Mode) Bit 15-4 : Reserved RDC Semiconductor Co. Subject to change without notice 42 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the Timer controller Set 0: Enable the Timer controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h (Slave Mode), Timer 0 Interrupt Control Register, reset value is 0000h Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the Timer 0 controller Set 0: Enable the Timer 0 controller interrupt. Bit 2-0: PR, Interrupt Priority These bits setting for priority selection is same as bit 2-0 of the register 44h Interrupt Status Register 15 DHLT 14 13 12 11 10 9 8 7 6 5 4 Offset : 30h Reset Value : 3 2 1 0 Reserved TMR2 TMR1 TMR0 (Master Mode), Reset value un-define Bit 15 : DHLT, DMA Halt. Set 1: halts any DMA activity. When non-maskable interrupts occur. Set 0: When an IRET instruction is executed. Bit 14-3 : Reserved. Bit 2-0 : TMR2-TMR0, Set 1: indicates the corresponding timer has an interrupt request pending. (Slave Mode), Reset value is 0000h Bit 15 : DHLT, DMA Halt. Set 1: halts any DMA activity. When non-maskable interrupts occur. Set 0: When an IRET instruction is executed. Bit 14-3 : Reserved. Bit 2-0 : TMR2-TMR0, Set 1: indicates the corresponding timer has an interrupt request pending. RDC Semiconductor Co. Subject to change without notice 43 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV Interrupt Request Register 12 11 10 SPI 9 WD 8 I4 7 I3 6 I2 5 I1 4 I0 Offset : 2Eh Reset Value : 3 D1 2 D0 1 Res 0 TMR Reserved (Master Mode) The Interrupt Request register is a read-only register. For internal interrupts (SPI, WD, D1, D0, and TMR), the corresponding bit is set to 1 when the device requests an interrupt. The bit is reset during the internally generated interrupt acknowledge. For INT4-INT0 external interrupts, the corresponding bit (I4-I0) reflects the current value of the external signal. Bit 15-11 : Reserved. Bit 10 : SPI, Serial Port Interrupt Request. Indicates the interrupt state of the serial port. Bit 9 : WD, Watchdog Timer Interrupt Request. Set 1: The Watchdog Timer has an interrupt pending. Bit 8-4 : I4-I0, Interrupt Requests. Set 1: The corresponding INT pin has an interrupt pending. Bit 3-2 : D1-D0, DMA Channel Interrupt Request. Set 1: The corresponding DMA channel has an interrupt pending. Bit 1: Reserved. Bit 0 : TMR, Timer Interrupt Request. Set 1: The timer control unit has an interrupt pending. Interrupt Request Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 2Eh Reset Value : 0000h 3 D1 2 D0 1 Res 0 TMR0 Reserved TMR2 TMR1 (Slave Mode) The Interrupt Request register is a read-only register. For internal interrupts (D1, D0, TMR2, TMR1, and TMR0), the corresponding bit is set to 1 when the device requests an interrupt. The bit is reset during the internally generated interrupt acknowledge. Bit 15-6 : Reserved. Bit 5-4 : TMR2/TMR1, Timer2/Timer1 Interrupt Request. Set 1: Indicates the state of any interrupt requests form the associated timer. Bit 3-2 : D1-D0, DMA Channel Interrupt Request. Set 1: Indicates the corresponding DMA channel has an interrupt pending. RDC Semiconductor Co. Subject to change without notice 44 Rev:1.4 R DC RDC Bit 1 : Reserved. ® RISC DSP Controller R8810LV Bit 0 : TMR0, Timer 0 Interrupt Request. Set 1: Indicates the state of an interrupt request from Timer 0. In - Service Register 15 14 13 Reserved 12 11 10 SPI 9 WD 8 I4 7 I3 6 I2 5 I1 4 I0 Offset : 2Ch Reset Value : 0000h 3 D1 2 D0 1 Res 0 TMR (Master Mode) The bits in the INSERV register are set by the interrupt controller when the interrupt is taken. Each bit in the register is cleared by writing the corresponding interrupt type to the EOI register. Bit 15-11 : Reserved. Bit 10 : SPI, Serial Port Interrupt In-Service. Set 1: the serial port interrupt is currently being serviced. Bit 9 : WD, Watchdog Timer Interrupt In-Service. Set 1: the watchdog timer interrupt is currently being serviced. Bit 8-4 : I4-I0, Interrupt In-Service. Set 1: the corresponding INT interrupt is currently being serviced. Bit 3-2 : D1-D0, DMA Channel Interrupt In-Service. Set 1: the corresponding DMA channel interrupt is currently being serviced. Bit 1 : Reserved. Bit 0 : TMR, Timer Interrupt In-Service. Set 1: the timer interrupt is currently being serviced. In - Service Register 15 14 13 Reserved 12 11 10 SPI 9 WD 8 I4 7 I3 6 I2 5 I1 4 I0 Offset : 2Ch Reset Value : 0000h 3 D1 2 D0 1 Res 0 TMR (Slave Mode) The bits in the In-Service register are set by the interrupt controller when the interrupt is taken. The in-service bits cleared by writing to the EOI register. Bit 15-6 : Reserved. Bit 5-4 : TMR2-TMR1, Timer2/Timer1 Interrupt In-Service. are RDC Semiconductor Co. Subject to change without notice 45 Rev:1.4 R DC RDC Bit 1 : Reserved. ® RISC DSP Controller R8810LV Set 1: the corresponding timer interrupt is currently being serviced. Bit 3-2 : D1-D0, DMA Channel Interrupt In-Service. Set 1: the corresponding DMA Channel is currently being serviced. Bit 0 : TMR0, Timer 0 Interrupt In-Service. Set 1: the Timer 0 interrupt is currently being serviced. Priority Mask Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 Offset : 2Ah Reset Value : 0007h 3 0 2 1 0 PRM2 PRM1 PRM0 (Master Mode) Determining the minimum priority level at which maskable interrupts can generate an interrupt. Bit 15-3 : Reserved. Bit 2-0 : PRM2-PRM0, Priority Field Mask. Determining the minimum priority that is required in order for a maskable interrupt source to generate an interrupt. Priority (High) 0 1 2 3 4 5 6 (Low) 7 (Slave Mode) Determining the minimum priority level at which maskable interrupts can generate an interrupt. Bit 15-3 : Reserved. Bit 2-0 : PRM2-PRM0, Priority Field Mask. Determining the minimum priority that is required in order for a maskable interrupt source to generate an interrupt. Priority (High) 0 1 2 3 4 5 6 (Low) 7 PR2-PR0 000 001 010 011 100 101 110 111 PR2-PR0 000 001 010 011 100 101 110 111 RDC Semiconductor Co. Subject to change without notice 46 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV Interrupt Mask Register 12 11 10 SPI 9 WD 8 I4 7 I3 6 I2 5 I1 4 I0 Offset : 28h Reset Value : 07FDh 3 D1 2 D0 1 Res 0 TMR Reserved (Master Mode) Bit 15-11 : Reserved. Bit 10 : SPI, Serial Port Interrupt Mask. The state of the mask bit of the asynchronous serial port interrupt. Bit 9 : WD, Virtual Watchdog Timer Interrupt Mask. The state of the mask bit of the Watchdog Timer interrupt. Bit 8-4 : I4-I0, Interrupt Masks. Indicates the state of the mask bit of the corresponding interrupt. Bit 3-2 : D1-D0, DMA Channel Interrupt Masks. Indicates the state of the mask bit of the corresponding DMA Channel interrupt. Bit 1: Reserved. Bit 0 : TMR, Timer Interrupt Mask. The state of the mask bit of the timer control unit . Interrupt Request Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 28h Reset Value : 003Dh 3 D1 2 D0 1 Res 0 TMR0 Reserved TMR2 TMR1 (Slave Mode) Bit 15-6 : Reserved. Bit 5-4 : TMR2-TMR1, Timer 2/Timer1 Interrupt Mask. The state of the mask bit of the Timer Interrupt Control register. Set 1: Timer2 or Time1 has its interrupt requests masked Bit 3-2 : D1-D0, DMA Channel Interrupt Mask. The state of the mask bits of the corresponding DMA control register. Bit 1 : Reserved. Bit 0 : TMR0, Timer 0 Interrupt Mask. The state of the mask bit of the Timer Interrupt Control Register Poll Status Register 15 IREQ 14 13 12 11 10 9 8 7 6 5 4 Offset : 26h Reset Value : 3 2 S4 - S0 1 0 Reserved (Master Mode) The Poll Status (POLLST) register mirrors the current state of the Poll register. the POLLST register can be read without RDC Semiconductor Co. Subject to change without notice 47 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV affecting the current interrupt request. Bit 15 : IREQ, Interrupt Request. Set 1: if an interrupt is pending. The S4-S0 field contains valid data. Bit 14-5 : Reserved. Bit 4-0 : S4-S0, Poll Status. Indicates the interrupt type of the highest priority pending interrupt. Poll Register                       Offset : 24h Reset Value :               (Master Mode) When the Poll register is read, the current interrupt is acknowledged and the next interrupt takes its place in the Poll register. Bit 15 : IREQ, Interrupt Request. Set 1: if an interrupt is pending. The S4-S0 field contains valid data. Bit 14-5 : Reserved. Bit 4-0 : S4-S0, Poll Status. Indicates the interrupt type of the highest priority pending interrupt. End - Of - Interrupt 15 NSPEC 14 13 12 11 10 9 8 7 6 5 4 Offset : 22h Reset Value : 3 2 S4 - S0 1 0 (Master Mode) Bit 15 : NSPEC, Non-Specific EOI. Set 1: indicates non-specific EOI. Set 0: indicates the specific EOI interrupt type in S4-S0. Bit 14-5 : Reserved. Bit 4-0: S4-S0, Source EOI Type. Specifies the EOI type of the interrupt that is currently being processed. RDC Semiconductor Co. Subject to change without notice 48 Rev:1.4 R DC RDC Specific EOI 15 0 14 0 13 0 ® RISC DSP Controller R8810LV Offset : 22h Reset Value : 0000h 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 0 4 0 3 0 2 L2 1 L1 0 L0 (Slave Mode) Bit 15-3 : Reserved. Bit 2-0 : L2-L0, Interrupt Type. Encoded value indicating the priority of the IS(interrupt service) bit to reset. Writes to these bits cause an EOI to be issued for the interrupt type in slave mode. Interrupt Vector Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 6 5 T4 - T0 4 Offset : 20h Reset Value : 3 2 0 1 0 0 0 (Slave Mode) Bit 15-8 : Reserved Bit 7-3 : T4-T0, Interrupt Type. The following interrupt type of slave mode can be programmed. Timer 2 interrupt controller : Timer 1 interrupt controller : (T4,T3,T2,T1,T0, 1, 0, 1)b (T4,T3,T2,T1,T0, 1, 0, 0)b DMA 1 interrupt controller : (T4,T3,T2,T1,T0, 0, 1, 1)b DMA 0 interrupt controller : (T4,T3,T2,T1,T0, 0, 1, 0)b Timer 0 interrupt controller : Bit 2-0 :Reserved (T4,T3,T2,T1,T0, 0, 0, 0)b RDC Semiconductor Co. Subject to change without notice 49 Rev:1.4 R DC RDC DMA Unit ® RISC DSP Controller R8810LV The DMA controller provides the data transfer between the memory and peripherals without the intervention of the CPU. There are two DMA channels in the DMA unit. Each channel can accept DMA request from one of two source : external pin (DRQ0 for channel 0 or DRQ1 for channel 1) or Timer 2 overflow. The data transfer from source to destination can be memory to memory or memory, to I/O, or I/O to I/O, or I/O to memory. Either bytes or words can be transferred to or from even or odd addresses and two bus cycles are necessary (read from source and write to destination) for each data transfer. 20-bit Adder/Subtractor 20 bit Adder Control Logic CAH.4-Channel 0 TDRQ DAH.4-Channel 1 C8h-Transfer Counter Channel 0 C2h,C0h-Source Address Channel 0 C6h,C4h-Destination Address Channel 0 D8h-Transfer Counter Channel 1 D2h,D0h-Source Address Channel 1 D6h,D4h-Destination Address Channel 1 CAh.8-Channel 0 INT CAh.8-Channel 1 DMA Control Logic Request Arbitration Logic Timer 2 Request DRQ0 DRQ1 Interrupt Request Channel Control Register0,CAh 20 bit Channel Control Register1,DAh 16 bit Internal Address/Data Bus DMA Unit Block DMA Operation Every DMA transfer consists of two bus cycles (figure of Typical DMA Transfer) and the two bus cycles can not be separated by a bus hold request, a refresh request or another DMA request. The registers ( CAh, C8h, C6h, C4h, C2h, C0h, DAh, D8h, D6h, D4h, D2h, D0h) are used to configure and operate the two DMA channels. RDC Semiconductor Co. Subject to change without notice 50 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA ALE A19-A0 AD7-AD0 RD WR T2 T3 T4 T1 T2 T3 T4 Address Address Address Data Address Data Typical DMA Trarsfer DMA Control Registers 15 14 13 12 11 10 9 TC 8 INT 7 6 5 P 4 Offset : CAh (DMA0) Reset Value : FFF9h 3 2 CHG 1 ST 0 B/W DM/IO DDEC DINC SM/IO SDEC SINC SYN1 SYN0 TDRQ Res The definition of Bits 15-0 for DMA0 are same as the Bits 15-0 of register DAh for DMA1. DMA Transfer Count Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : C8h (DMA0) Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0: TC15-TC0, DMA 0 transfer Count. The value of this register is decremented by 1 after each transfer. DMA Destination Address High Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : C6h (DMA0) Reset Value : 3 2 1 0 Reserved DDA19 - DDA16 Bit 15-4: Reserved RDC Semiconductor Co. Subject to change without notice 51 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 3-0: DDA19-DDA16, High DMA 0 Destination Address. These bits are mapped to A19- A16 during a DMA transfer when the destination address is in memory space or I/O space. If the destination address is in I/O space (64Kbytes), these bits must be programmed to 0000b. DMA Destination Address Low Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : C4h (DMA0) Reset Value : 3 2 1 0 DDA15 - DDA0 Bit 15-0: DDA15-DDA0, Low DMA 0 Destination Address. These bits are mapped to A15- A0 during a DMA transfer. The value of (DDA19-DDA0)b will increment or decrement by 2 after each DMA transfer. DMA Source Address High Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : C2h (DMA0) Reset Value : 3 2 1 0 DSA19 - DSA16 Bit 15-4: Reserved Bit 3-0: DSA19-DSA16, High DMA 0 Source Address. These bits are mapped to A19- A16 during a DMA transfer when the source address is in memory space or I/O space. If the source address is in I/O space (64Kbytes), these bits must be programmed to 0000b. DMA Source Address Low Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : C0h (DMA0) Reset Value : 3 2 1 0 DSA15 - DSA0 Bit 15-0: DSA15-DSA0, Low DMA 0 Source Address. These bits are mapped to A15- A0 during a DMA transfer. The value of (DSA19-DSA0)b will increment or decrement by 2 after each DMA transfer. DMA Control Registers 15 14 13 12 11 10 9 TC 8 INT 7 6 5 P 4 Offset : DAh (DMA1) Reset Value : FFF9h 3 2 CHG 1 ST 0 B/W DM/IO DDEC DINC SM/IO SDEC SINC SYN1 SYN0 TDRQ Res RDC Semiconductor Co. Subject to change without notice 52 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 15: DM / IO , Destination Address Space Select. Set 1: The destination address is in memory space. Set 0: The destination address is in I/O space. Bit 14: DDEC, Destination Decrement. Set 1: The destination address is automatically decrement after each transfer. Set 0 : Disable the decrement function. Bit 13: DINC, Destination Increment. Set 1: The destination address is automatically increment after each transfer. Set 0 : Disable the decrement function. Bit 12: SM/ IO , Source Address Space Select. Set 1: The Source address is in memory space. Set 0: The Source address is in I/O space Bit 11: SDEC, Source Decrement. Set 1: The Source address is automatically decrement after each transfer. Set 0 : Disable the decrement function. Bit 10: SINC, Source Increment. Set 1: The Source address is automatically increment after each transfer. Set 0 : Disable the decrement function Bit 9 : TC, Terminal Count. Set 1: The synchronized DMA transfer is terminated when the DMA transfer count register reaches 0. Set 0: The synchronized DMA transfer is terminated when the DMA transfer count register reaches 0. Unsynchronized DMA transfer is always terminated when the DMA transfer count register reaches 0, regardless the setting of this bit. Bit 8 : INT, Interrupt. Set 1: DMA unit generates an interrupt request when complete the transfer count . The TC bit must set to 1 to generate an interrupt. Bit 7-6: SYN1-SYN0, Synchronization Type Selection. SYN1 , SYN0 0 0 1 1 , , , , 0 1 0 1 -- Synchronization Type -- Unsynchronized -- Source synchronized -- Destination synchronized -- Reserved Bit 5: P , Priority. Set 1: It selects high priority for this channel when both DMA 0 and DMA 1 are transfer in same time. Bit 4: TDRQ, Timer Enable/Disable Request Set 1: Enable the DMA requests from timer 2. RDC Semiconductor Co. Subject to change without notice 53 Rev:1.4 R DC RDC Bit 3: Reserved ® RISC DSP Controller R8810LV Set 0: Disable the DMA requests from timer 2. Bit 2: CHG, Changed Start Bit. This bit must set to 1 when will modify the ST bit. Bit 1: ST, Start/Stop DMA channel. Set 1: Start the DMA channel Set 0: Stop the DMA channel Bit 0 : B /W, Byte/Word Select. This bit is fixed to low. DMA Transfer Count Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : D8h (DMA1) Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0: TC15-TC0, DMA 1 transfer Count. The value of this register is decremented by 1 after each transfer. DMA Destination Address High Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : D6h (DMA1) Reset Value : 3 2 1 0 Reserved DDA19 - DDA16 Bit 15-4: Reserved Bit 3-0: DDA19-DDA16, High DMA 1 Destination Address. These bits are map to A19- A16 during a DMA transfer when the destination address is in memory space or I/O space. If the destination address is in I/O space (64Kbytes), these bits must be programmed to 0000b. DMA Destination Address Low Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : D4h (DMA1) Reset Value : 3 2 1 0 DDA15 - DDA0 Bit 15-0: DDA15-DDA0, Low DMA 1 Destination Address. These bits are mapped to A15- A0 during a DMA transfer. The value of (DDA19-DDA0)b will increment or decrement by 2 after each DMA transfer. RDC Semiconductor Co. Subject to change without notice 54 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV DMA Source Address High Register 12 11 10 9 8 7 6 5 4 Offset : D2h (DMA1) Reset Value : 3 2 1 0 Reserved DSA19 - DSA16 Bit 15-4: Reserved Bit 3-0: DSA19-DSA16, High DMA 1 Source Address. These bits are mapped to A19- A16 during a DMA transfer when the source address is in memory space or I/O space. If the source address is in I/O space (64Kbytes), these bits must be programmed to 0000b. DMA Source Address Low Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : D0h (DMA1) Reset Value : 3 2 1 0 DSA15 - DSA0 Bit 15-0: DSA15-DSA0, Low DMA 1 Source Address. These bits are map to A15- A0 during a DMA transfer. The value of (DSA19-DSA0)b will increment or decrement by 2 after each DMA transfer. External Requests External DMA requests are asserted on the DRQ pins. The DRQ pins are sampled on the falling edge of CLKOUTA. It takes a minimum of four clocks before the DMA cycle is initiated by the Bus Interface. The DMA request is cleared four clocks before the end of the DMA cycle. And no DMA acknowledge is provided, since the chip-selects (MCSx, PCSx) can be programmed to be active for a given block of memory or I/O space, and the DMA source and destination address registers can be programmed to point to the same given block. DMA transfer can be either source or destination synchronized, and it can also be unsynchronized. The Source-Synchronized Transfer figure shows the typical source-synchronized transfer which provides the source device at least three clock cycles from the time it is acknowledged to deassert its DRQ line. RDC Semiconductor Co. Subject to change without notice 55 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Fetch Cycle T1 T2 T3 T4 T1 Fetch Cycle T2 T3 T4 CLKOUTA DRQ(Case1) DRQ(Case2) NOTES: Case1 : Current source synchronized transfer will not be immediately followed by another DMA transfer. Case2 : Current source synchronized transfer will be immediately followed by antoher DMA transfer. Source-Synchronized Transfers The Destination-Synchronized Transfer figure shows the typical destination-synchronized transfer which differs from a sourcesynchronized transfer in that two idle states are added to the end of the deposit cycle. The two idle states extend the DMA cycle to allow the destination device to deassert its DRQ pin four clocks before the end of the cycle. If the two idle states were not inserted, the destination device would not have time to deassert its DRQ signal. Fetch Cycle T1 CLKOUTA T2 T3 T4 T1 Fetch Cycle T2 T3 T4 TI TI DRQ(Case1) DRQ(Case2) NETES: Case1 : Current destination synchronized transfer will not be immediately followed by another DMA transfer. Case2 : Current destination synchronized transfer will be immediately followed by another DMA transfer. Destination-Synchronized Transfers RDC Semiconductor Co. Subject to change without notice 56 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Timer Control Unit TMRIN1 TMRIN0 Microprocessor Clock 50h,Timer 0 Count Register TMROUT1 52h,54h,Timer0 Maxcount Compare Register 58h,Timer 1 Compare Register 5Ah,5Ch,Timer 1 Maxcount Compare Register 60h,Timer 2 count Register 62h,Timer 2 Count Register 16 bit Counter Element & Control Logic TMROUT2 (Timer2) (Timer0,1,2) DMA Request Interrupt Request 56h,Timer 0 Control Register 16 bit 5Eh,Timer 1 Control Register 66h,Timer 2 Control Register 16 bit Internal Address/Data Bus Timer / Counter Unit Block There are three 16-bit programmable timers in the R8810. The timer operation is independent of the CPU. The three timers can be programmed as a timer element or as a counter element. Timers 0 and 1 are each connect to two external pins (TMRIN0, TMROUT0, TMRIN1, TMROUT1) which can be used to count or time external events, or they can be used to generate a variable-duty-cycle waveforms. Timer 2 is not connected any external pins. It can be used as a prescale to timer 0 and timer 1 or as a DMA request source. Timer 0 Mode / Control Register 15 EN 14 INH 13 INT 12 RIU 11 0 10 0 9 0 8 0 7 0 6 0 5 MC 4 RTG Offset : 56h Reset Value : 0000h 3 P 2 EXT 1 0 ALT CONT These bits definition for timer 0 are same as the bits of register 5Eh for timer 1. Timer 0 Count Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 50h Reset Value : 3 2 1 0 TC15 - TC0 RDC Semiconductor Co. Subject to change without notice 57 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 15 – 0: TC15-TC0, Timer 0 Count Value. This register contains the current count of timer 0. The count is incremented by one every four internal processor clocks or by prescaled the timer 2, or by one every four external clock which is configured the external clock select bit to refer the TMRIN1 signal. Timer 0 Maxcount Compare A Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 52h Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0 : TC15 – TC0, Timer 0 Compare A Value. Timer 0 Maxcount Compare B Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 54h Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0 : TC15 – TC0, Timer 0 Compare B Value. Timer 1 Mode / Control Register 15 EN 14 INH 13 INT 12 RIU 11 0 10 0 9 0 8 0 7 0 6 0 5 MC 4 RTG Offset : 5Eh Reset Value : 0000h 3 P 2 EXT 1 0 ALT CONT Bit 15: EN, Enable Bit. Set 1: The timer 1 is enable. Set 0: The timer 1 is inhibited from counting. The INH bit must be set 1 during writing the EN bit, and the INH bit and EN bit must be in the same write. Bit 14: INH , Inhibit Bit. This bit is allows selective updating the EN bit. The INH bit must be set 1 during writing the EN bit, and both the INH bit and EN bit must be in the same write. This bit is not stored and is always read as 0. Bit 13: INT, Interrupt Bit. Set 1: A interrupt request is generated when the count register equals a maximum count. If the timer is configured in dual max-count mode, an interrupt is generated each time the count reaches max-count A or max-count B Set 0: Timer 1 will not issue interrupt request. Bit 12: RIU, Register in Use Bit. Set 1: The Maxcount Compare B register of timer 1 is being used RDC Semiconductor Co. Subject to change without notice 58 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set 0: The Maxcount Compare A register of timer 1 is being used Bit 11-6 : Reserved. Bit 5: MC, Maximum Count Bit. When the timer reaches its maximum count, the MC bit will set to 1 by H/W. In dual maxcount mode, this bit is set each time either Maxcount Compare A or Maxcount Compare B register is reached. This bit is set regardless of the EN bit (66h.15). Bit 4: RTG, Re-trigger Bit. This bit define the control function by the input signal of TMRIN1 pin. When EXT=1 (5Eh.2), this bit is ignored. Set 1: Timer1 Count Register (58h) counts internal events; Reset the counting on every TMRIN1 input signal from low go high (rising edge trigger). Set 0: Low input holds the timer 1 Count Register (58h) value; High input enables the counting which counts internal events. The definition of setting the (EXT , RTG ) ( 0 , 0 ) – Timer1 counts the internal events. if the TMRIN1 pin remains high. ( 0 , 1 ) -- Timer1 counts the internal events; count register reset on every rising transition on the TMRIN1 pin ( 1 , x ) -- TMRIN1 pin input acts as clock source and timer1 count register increase one every four external clock. Bit 3: P, Prescaler Bit. This bit and EXT(5Eh.2) define the timer 1 clock source. The definition of setting the (EXT , P ) ( 0 , 0 ) – Timer1 Count Register increase one every four internal processor clock. ( 0 , 1 ) – Timer1 count register increase one which prescal by timer 2. ( 1 , x ) -- TMRIN1 pin input acts as clock source and Timer1 Count Register increase one every four external clock. Bit 2: EXT, External Clock Bit. Set 1: Timer 1 clock source from external Set 0: Timer 1 clock source from internal Bit 1 : ALT, Alternate Compare Bit. This bit controls whether the timer runs in single or dual maximum count mode. Set 1: Specify dual maximum count mode. In this mode the timer counts to Maxcount Compare A, then resets the count register to 0. Then the timer counts to Maxcount Compare B, then resets the count register to 0 again, and starts over with Maxcount Compare A. Set 0: Specify single maximum count mode. In this mode the timer will count to the valve contained in Maxcount Compare A and reset to 0, and then the timer counts to Maxcount Compare A again. Maxcount Compare B is not used in this mode. Bit 0: CONT, Continuous Mode Bit. Set 1: The timer to run continuously. Set 0: The timer will halt after each counting to the maximum count and the EN bit will be cleared. RDC Semiconductor Co. Subject to change without notice 59 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV Timer 1 Count Register 12 11 10 9 8 7 6 5 4 Offset : 58h Reset Value : 3 2 1 0 TC15 - TC0 Bit 15 – 0: TC15-TC0, Timer 1 Count Value. This register contains the current count of timer 1. The count is incremented by one every four internal processor clocks or by prescaled the timer 2, or by one every four external clock which is configured the external clock select bit to refer the TMRIN1 signal. Timer 1 Maxcount Compare A Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 5Ah Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0 : TC15 – TC0, Timer 1 Compare A Value. Timer 1 Maxcount Compare B Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 5Ch Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0 : TC15 – TC0, Timer 1 Compare B Value. Timer 2 Mode / Control Register 15 EN 14 INH 13 INT 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 MC 4 0 Offset : 66h Reset Value : 0000h 3 0 2 0 1 0 0 CONT Bit 15: EN, Enable Bit. Set 1: The timer 2 is enable. Set 0: The timer 2 is inhibited from counting. The INH bit must be set 1 during writing the EN bit, and the INH bit and EN bit must be in the same write. Bit 14: INH , Inhibit Bit. This bit is allows selective updating the EN bit. The INH bit must be set 1 during writing the EN bit, and both the INH bit and EN bit must be in the same write. This bit is not stored and is always read as 0. Bit 13: INT, Interrupt Bit. RDC Semiconductor Co. Subject to change without notice 60 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Set 1: A interrupt request is generated when the count register equals a maximum count. Set 0: Timer 2 will not issue interrupt request. Bit 12-6 : Reserved. Bit 5: MC, Maximum Count Bit. When the timer reaches its maximum count, the MC bit will set to 1 by H/W. This bit is set regardless of the EN bit (66h.15). Bit 4-1: Reserved. Bit 0: COUNT, Continuous Mode Bit. Set 1: Timer is continuously running when timer reaches the maximum count. Set 0: The EN bit (66h.15) is cleared and the timer is hold after each timer count reaches the maximum count. Timer 2 Count Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 60h Reset Value : 3 2 1 0 TC15 - TC0 Bit 15 – 0: TC15-TC0, Timer 2 Count Value. This register contains the current count of timer 2. The count is incremented by one every four internal processor clocks. Timer 2 Maxcount Compare A Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 62h Reset Value : 3 2 1 0 TC15 - TC0 Bit 15-0 : TC15 – TC0, Timer 2 Compare A Value. Watchdog Timer Timer 1 can also be configure as a watchdog timer. Software must fist programmed the Timer 1 Mode/Control (5Eh), Count (58h), and Max Count (5Ah, 5Ch) registers and then program the Watchdog Timer Interrupt Control Register ( 42h) to enable the watchdog timer interrupt , The Timer 1 Count Register must be reloaded at intervals less than the Timer 1 Maxcount value to assure the watchdog interrupt is not occurred. Watchdog Timer Interrupt Control Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 42h Reset Value : 000Fh 3 MSK 2 PR2 1 PR1 0 PR0 Reserved RDC Semiconductor Co. Subject to change without notice 61 Rev:1.4 R DC RDC (Master Mode) ® RISC DSP Controller R8810LV Bit 15-4 : Reserved Bit 3: MSK , Mask. Set 1: Mask the interrupt source of the watchdog timer Set 0: Enable the watchdog timer interrupt. Bit 2- 0: PR, Priority. The priority selection: PR2, PR1, PR0 -- Priority 0 0 0 0 1 1 1 1 , , , , , , , , 0, 0, 1, 1, 0, 0, 1, 1, 0 1 0 1 0 1 0 1 --------0 1 2 3 4 5 6 7 (Low ) (High) Timer/Counter Unit Output Mode Timers 0 and 1 can use one maximum count value or two maximum count value. Timer 2 can use only one maximum count value. Timer 0 and timer1 can be configured to single or dual Maximum Compare count mode, the TMROUT0 or TMROUT1 signals can be used to generated waveform of various duty cycle. Maxcount A Dual Maximum Count Mode Single Maximum Count Mode Maxcount A Maxcount B Maxcount A Maxcount B 1T Maxcount A 1T Maxcount A * 1T:One Microprocessor clock Timer/Counter Unit Output Modes RDC Semiconductor Co. Subject to change without notice 62 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Asynchronous Serial Port R8810 asynchronous serial port provides the TXD, RXD pins for the full duplex bi-directional data transfer and without handshaking signals. The UART port supports : 8-bit or 7-bit data transfer; odd parity, even parity, or no parity; 1 or 2 stop bits. DMA transfers through the serial port are not supported The receive/transmit clock is based on the microprocessor clock. The serial port can be used in power-saved mode, but the transfer rate must be adjusted to correctly reflect the new internal operating frequency. Software is programmed through the 80h, 82h, 84h, 86h, 88h registers to configure the asynchronous serial port. Internal Address/Data Bus 16 bit 16 bit Receive Data Register(86h) 16 bit 8 bit 8 bit TXD Transmit Shift Regoster Transmit Hold Register Receive Buffer 8 bit Transmit Data Register(84h) 8 bit Receive Shift Register Control Register(80h) Interrupt Request Control Logic Status Register(82h) Baud Rate Divisor Register(88h) RXD Serial Port Block Diagram Serial Port Control Register 15 14 13 12 11 10 9 8 7 BRKVAL 6 5 4 WLGN Offset : 80h Reset Value : 0000h 3 2 1 0 RMODE Reserved TXIE RXIE LOOP BRK PMODE STP TMOD RSIE Bit 15-12: Reserved Bit 11: TXIE, Transmit Holding Register Empty Interrupt Enable. This bit is set 1 to enable serial port to generates an interrupt request when the transmit holding register is empty. Bit 9: LOOP, Loopback. Set 1: The serial port in the loopback mode. In this mode, the transmit shift register is connect to the transmit shift register internal and the TXD pin output high. It provides the serial port testing in this mode. Bit 8: BRK, Send Break. RDC Semiconductor Co. Subject to change without notice 63 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV It should to check the TEMT bit (82h.6) is a 1 before setting the BRK bit. Set 1: The serial port send a frame of continues level output on the TXD pin and the output level depends on the BRAVAL bit status, when any data is written to transmit data register. Bit 7: BRKVAL, Break Value. Set 1: TXD pin continuous drive high level signal during send break operation. Set 0: TXD pin continuous drive low level signal during send break operation. Bit 6-5: PMODE, Parity Mode. Parity generation and checking during transmission and reception. Parity mode selection by (Bit 6 , Bit 5) : ( 0 , x) – No parity bit in frame , ( 1 , 0) – Odd number of 1s in frame. ( 1 , 1 ) – Even number of 1s in frame. Bit 4: WLGN, Word Length. Set 1: The serial port sends and receives 8 bits of data per frame. Set 0: The serial port sends and receives 7 bits of data per frame. Bit 3: STP, Stop Bits. Set 1: Two stop bits are used to signify the end of a frame. Set 0: One stop bit are used to signify the end of a frame. Bit 2: TMODE, Transmit Mode. Set 1: Enable the transmit section of the serial port. Set 0: Disable the transmit section of the serial port. Bit 1: RSIE, Receive Status interrupt Enable. Set 1: Enable the receive section of serial port to generate an interrupt Set 0: Disable the receive section of serial port to generate an interrupt Bit 0: RMODE, Receive Mode. Set 1: Enable the receive section of the serial port. Set 0: Disable the receive section of the serial port. Serial Port Status Register 15 14 13 12 11 Reserved 10 9 8 7 6 5 4 Offset : 82h Reset Value : 3 2 1 PER 0 OER TEMT THRE RDR BRK1 FER Bit 15-7 : Reserved Bit 6: TEMT, Transmitter Empty. Read only bit. This bit is set by H/W when the the transmit shift register is empty. It can not disable the transmit function when the bit is 0. Bit 5: THRE, Transmit Holding Register Empty. Read only bit. When this bit is 1, the transmit holding buffer contains invalid data and the transmit data register (84h) can be written a new data. When this bit is 0, it indicate that transmit holding buffer contains valid data that not yet been copied to transmit shift register and the transmit data register (84h) RDC Semiconductor Co. Subject to change without notice 64 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV can not be written a new data. When the transmit interrupt is enabled, a serial port interrupt is generated when this bit is 1. The THRE bit is automatically cleared by H/W during copy data to transmit holding buffer. Bit 4: RDR, Receive Data Ready. Read only bit. When the receive data register is ready to read, this bit is 1. When the bit is 0, the receive data register dose not contain valid data. This bit will be cleared by H/W when reading the receive data register. Bit 3: BRKI, Break Interrupt. It indicates that a break has been receive when this bit is set 1 and it will generate a serial pot interrupt request if the RISE bit (80h.1) is enabled. This bit is set by H/W and should be cleared by software. Bit 2: FER, Framing Error. This bit is set to indicate that a framing error occurred during reception of data and it will generate a serial pot interrupt request if the RISE bit (80h.1) is enabled. This bit is set by H/W and should be cleared by software. Bit 1: PER, Parity Error. This bit is set to indicate that a party error occurred during reception of data and it will generate a serial pot interrupt request if the RISE bit (80h.1) is enabled. This bit is set by H/W and should be cleared by software. Bit 0: OER, Overrun Error. This bit is set to indicate that a overrun error occurred during reception of data and it will generate a serial port interrupt request if the RISE bit (80h.1) is enabled. This bit is set by H/W and should be cleared by software. Serial Port Transmit Data Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 84h Reset Value : 3 2 1 0 Reserved TDATA Bit 15-8: Reserved Bit 7-0 : TDATA, Transmit Data. Software writes this register with data to be transmitted on the serial port. The THRE bit (82h.5) should be read as a 1 before writing this register to avoid overwriting data to this register. When writing data to this register, the THRE bit will be cleared by H/W in the same time. Serial Port Receive Data Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 86h Reset Value : 3 2 1 0 Reserved RDATA Bit 15-8: Reserved Bit 7-0: RDATA, Received DATA. The PDR bit (82h.4) should be read as 1 before read the RDATA register to avoid reading invalid data. RDC Semiconductor Co. Subject to change without notice 65 Rev:1.4 R DC RDC 15 14 13 ® RISC DSP Controller R8810LV Serial Port Baud Rate Divisor Register 12 11 10 9 8 7 6 5 4 Offset : 88h Reset Value : 3 2 1 0 BAUDDIV Bit 15-0: BAUDDIV, Baud Rate Divisor. The general formula for baud rate divisor is Baud Rate = Microprocessor Clock / [32 * (BAUDDIV+1)] For example, The Microprocessor clock is 22.1184MHz and the BAUDDIV=5 (Decimal), the baud rate of serial port is 115.2k. RDC Semiconductor Co. Subject to change without notice 66 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Synchronous Serial Port There are four pins for synchronous serial port interface, which is half duplex, bi-directional data transfer. The synchronous serial interface operates in a master/slave configuration, and the synchronous serial port of R8810 as a master mode. The SCLK frequency is affected by the reduced microprocessor clock frequency when in power-save mode. Software is programmed the 10h, 12h, 14h,16h, 18h to configured the synchronous serial port interface. Synchronous Serial Status Register 15 14 13 12 11 10 9 Reserved 8 7 6 5 4 Offset : 10h Reset Value : 0000h 3 2 1 0 PB RE/TE DR/DT Read only register that indicates the state of the SSI port. Bit 15-3 : Reserved. Bit 2 : RE/TE, Receive/Transmit Error Detect. Set 1: Either a read of Synchronous Serial Receive register or a write to one transmit registers while the SSI is busy (PB=1). Set 0: SDEN output is inactive. Bit 1: DR/TR, Data Receive/Transmit Complete. Set 1: End of the transfer of data bit 7 (SCLK rising edge) during a transmit or receive operation. Set 0: When the SSR register is read, when one of the SSD0 or SSD1 registers is written, when the SSS register is read, or when both SDEN0 and SDEN1 become inactive. Bit 0: PB, SSI port Busy. Set 1: a transmit or receive operation is in progress. Set 0: the port is ready to transmit or receive data. Synchronous Serial Control Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 12h Reset Value : 0000h 3 Res 2 1 DE1 0 DE0 Reserved SCLKDIV This read/write register controls the operation of the SDEN0-SDEN1 outputs the transfer rate of the SSI port. Bit 15-3 : Reserved. Bit 3-2 : SCLKDIV, SCLK Divide. SCLKDIV SCLK Frequency Divider 00b Processor clock/2 01b Processor clock/4 RDC Semiconductor Co. Subject to change without notice 67 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Processor clock/8 Processor clock/16 10b 11b Bit 1 : DE1, SDEN1 Enable. Set 1: SDEN1 pin is held High. Set 0: SDEN1 pint is Low. Bit 0 : DE0, SDEN0 Enable. Set 1: SDEN0 pin is held High. Set 0: SDEN0 pint is Low. Synchronous Serial Transmit 1 Register 15 14 13 12 11 10 9 8 7 6 5 4 SD Offset : 14h Reset Value : 3 2 1 0 Reserved Synchronous Serial Transmit 1 Register. The register contains data to be transfer from the processor to the peripheral on a write operation. Bit 15-8 : Reserved. Bit 7-0: SD, Send Data. Data to transmit over the SDATA pin. Synchronous Serial Transmit 0 Register 15 14 13 12 11 10 9 8 7 6 5 4 SD Offset : 16h Reset Value : 3 2 1 0 Reserved Synchronous Serial Transmit 0 Register. The register contains data to be transfer from the processor to the peripheral on a write operation. Bit 15-8 : Reserved. Bit 7-0: SD, Send Data. Data to transmit over the SDATA pin. Synchronous Serial receive Register 15 14 13 12 11 10 9 8 7 6 5 4 SR Offset : 18h Reset Value : 3 2 1 0 Reserved Th Synchronous Serial Receive Register contains the data transferred from the peripheral to the processor on a read RDC Semiconductor Co. Subject to change without notice 68 Rev:1.4 R DC RDC operation. ® RISC DSP Controller R8810LV Bit 15-8 : Reserved. Bit 7-0: SR, Receive Data. Data received over the SDATA pin. Synchronous serial port operation The following figures show the data transmit and data receive operation. Write 12h.0 or 12h.1 (DE0=1 or De1=1) Write 12h.0 or 12h.1 (DE0=0 or De1=0) SDEN0 or SDEN1 SDATA SCLK PB=1 DR/DT=0 (Write to 14h or 16h) (Write to 14h or 16h) (Write to 14h or 16h) Bit0 Bit7 Bit0 Bit7 Bit0 Bit7 PB=0 DR/DT=1 PB=1 DR/DT=0 PB=0 DR/DT=1 PB=1 DR/DT=0 PB=0 DR/DT=1 Synchronous Serial Port Multiple Write Write 12h.0 or 12h.1 (DE0=1 or De1=1) Write 12h.0 or 12h.1 (DE0=0 or De1=0) SDEN0 or SDEN1 SDATA SCLK PB=1 DR/DT=0 (Write to 14h or 16h) Read From 10h (dummy) Read From 10h Bit0 Bit7 Bit0 Bit7 Bit0 Bit7 PB=0 DR/DT=1 PB=1 DR/DT=0 PB=0 DR/DT=1 PB=1 DR/DT=0 PB=0 DR/DT=1 Synchronous Serial Port Multiple Read RDC Semiconductor Co. Subject to change without notice 69 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA SDEN SCLK SDATA(RX) SDATA(TX) T2 T3 T4 DATA DATA Synchronous Serial Interface Waveforms RDC Semiconductor Co. Subject to change without notice 70 Rev:1.4 R DC RDC PIO Unit function. ® RISC DSP Controller R8810LV R8810 provides 32 programmable I/O signals, which are multi-function pins with others normal function signals. Software is programmed through the registers ( 7Ah, 78h, 76h, 74h, 72h, 70h) to configure the multi-function pins for PIO or normal For internal pull-up VCC PIO PIO Mode Direction Normal Function Pin PIO Data In/Out Write PDATA D Q VCC Q Read PDATA OE D Microprocessor Clock For internal pull-down Normal Data In "0":un-normal function PIO pin Operation Diagram PIO multi-function Pin list table PIO No. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Pin No. 72 73 59 60 48 49 46 22 20 19 74 75 77 76 50 51 66 65 Multi Function TMRIN1 TMROUT1 PCS6 /A2 PCS5 /A1 DT/ R DEN SRDY A17 A18 A19 TMROUT0 TMRIN0 DRQ0 DRQ1 MCS0 MCS1 PCS0 PCS1 Reset status/PIO internal resister Input with 10k pull-up Input with 10k pull-down Input with 10k pull-up Input with 10k pull-up Normal operation/ Input with 10k pull-up Normal operation/ Input with 10k pull-up Normal operation/ Input with 10k pull-down Normal operation/ Input with 10k pull-up Normal operation/ Input with 10k pull-up Normal operation/ Input with 10k pull-up Input with 10k pull-down Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up RDC Semiconductor Co. Subject to change without notice 71 Rev:1.4 R DC RDC 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ® RISC DSP Controller R8810LV PCS2 PCS3 SCLK SDATA SDEN0 SDEN1 MCS2 MCS3 / RFSH UZI TXD RXD S6/ CLKDIV2 INT4 INT2 Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-down Input with 10k pull-down Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up Input with 10k pull-up 63 62 3 100 2 1 68 69 97 98 99 96 52 54 PIO Data 1 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 7Ah Reset Value : 3 2 1 0 PDATA (31 - 16) Bit 15- 0 : PDATA31-PDATA16, PIO Data Bits. These bits PDATA31- PDATA16 map to the PIO31 –PIO16 which indicate the driven level when the PIO pin as an output or reflects the external level when the PIO pin as an input . PIO Direction 1 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 78h Reset Value : FFFFh 3 2 1 0 PDIR (31 - 16) Bit 15-0 : PDIR 31- PDIR16, PIO Direction Register. Set 1: Configure the PIO pin as an input. Set 0: Configure the PIO pin as an output or as normal pin function. PIO Mode 1 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 76h Reset Value : 0000h 3 2 1 0 PMODE (31 - 16) RDC Semiconductor Co. Subject to change without notice 72 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Bit 15-0: PMODE31-PMODE16, PIO Mode Bit. The definition of PIO pins are configured by the combination of PIO Mode and PIO Direction. And the PIO pin is programmed individual. The definition (PIO Mode, PIO Direction) for PIO pin function: ( 0 , 0 ) – Normal operation , ( 1 , 0 ) – PIO output , ( 0 , 1 ) – PIO input with pullup/pulldown ( 1 , 1 ) -- PIO input without pullup/pulldown PIO Data 0 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 74h Reset Value : 3 2 1 0 PDATA (15 - 0) Bit 15-0 : PDATA15- PDATA0 : PIO Data Bus. These bits PDATA15- PDATA0 map to the PIO15 –PIO0 which indicate the driven level when the PIO pin as an output or reflects the external level when the PIO pin as an input. PIO Direction 0 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 72h Reset Value : FC0Fh 3 2 1 0 PDIR (15 - 0) Bit 15-0 : PDIR 15- PDIR0, PIO Direction Register. Set 1: Configure the PIO pin as an input. Set 0: Configure the PIO pin as an output or as normal pin function. PIO Mode 0 Register 15 14 13 12 11 10 9 8 7 6 5 4 Offset : 70h Reset Value : 0000h 3 2 1 0 PMODE (15 - 0) Bit 15-0: PMODE15-PMODE0, PIO Mode Bit. RDC Semiconductor Co. Subject to change without notice 73 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV PSRAM Control Unit The PSRAM interface is provided by the R8810 and the refresh control unit automatically generates refresh bus cycles. The refresh control unit uses the internal microprocessor clock as a operating source clock. if the power-saved mode is enabled, the refresh control unit must be programmed to reflect the new clock rate. Software programs the registers (E0, E2, E4) to control the refresh control unit operation. Memory Partition Register 15 14 13 12 M6 - M0 11 10 9 8 0 7 0 6 0 5 0 4 0 Offset : E0h Reset Value : 0000h 3 0 2 0 1 0 0 0 Bit 15-9: M6-M0, Refresh Base. M6-M0 map to A19-A13 of the 20-bit memory refresh address. Bit 8-0 : Reserved. Clock Prescaler Register 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 7 6 5 4 RC8 - RC0 Offset : E2h Reset Value : 3 2 1 0 Bit 15-9 : Reserved Bit 8-0: RC8-RC0, Refresh Counter Reload Value. Enable RCU Register 15 E 14 0 13 0 12 0 11 0 10 0 9 0 8 7 6 5 4 T8 - T0 Offset : E4h Reset Value : 0000h 3 2 1 0 Bit 15: E, Enable RCU. Set 1: Enable the refresh counter unit Set 0 : Disable the refresh counter unit. Bit 14-9 : Reserved Bit 8-0: T8-T0, Refresh Count. Read only bits and these bits present value of the down counter which triggers refresh requests. RDC Semiconductor Co. Subject to change without notice 74 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Format Clocks Notes INSTUCTION SET OPCODES AND CLOCK CYCLES Function DATA TRANSFER INSTRUCTIONS MOV = Move register to register/memory register/memory to register immediate to register/memory immediate to register memory to accumulator accumulator to memory register/memory to segment register segment register to register/memory PUSH = Push memory register segment register immediate POP = Pop memory register segment register PUSHA = Push all POPA = Pop all XCHG = Exchange register/memory register with accumulator XTAL = Translate byte to AL IN = Input from fixed port variable port OUT = Output from fixed port variable port LEA = Load EA to register LDS = Load pointer to DS LES = Load pointer to ES ENTER = Build stack frame L=0 L=1 L>1 LEAVE = Tear down stack frame LAHF = Load AH with flags SAHF = Store AH into flags PUSHF = Push flags POPF = Pop flags 1000100w 1000101w 1100011w mod reg r/m mod reg r/m mod 000 r/m 1011w reg 1010000w 1010001w 10001110 10001100 11111111 01010 reg 000reg110 011010s0 data addr-low addr-low mod 0 reg r/m mod 0 reg r/m mod 110 r/m data data if w=1 addr-high addr-high data if w=1 1/1 1/6 1/1 1 6 1 3/8 2/2 8 3 2 1 8 6 8 36 44 3/8 3 10 12 12 12 12 1 14 14 data data if s=0 10001111 mod 000 r/m 01011 reg 000 reg 111 (reg≠01) 01100000 01100001 1000011w 10010 reg 11010111 1110010w 1110110w 1110010w 1110110w 10001101 11000101 11000100 11001000 mod reg r/m port port mod reg r/m mod reg r/m mod reg r/m data-low (mod≠11) (mod≠11) data-high L 11001001 10011111 10011110 10011100 10011101 7 11 11+10(L-1) 7 2 2 2 11 ARITHMETIC INSTRUCTIONS ADD = Add reg/memory with register to either immediate to register/memory immediate to accumulator 000000dw 100000sw 0000010w mod reg r/m mod 000 r/m data data data if w=1 data if sw=01 1/7 1/8 1 RDC Semiconductor Co. Subject to change without notice 75 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Format 000100dw 100000sw 0001010w 1111111w 01000 reg 001010dw 100000sw 0001110w 000110dw 100000sw 0001110w 1111111w 01001 reg 1111011w 0011101w 0011100w 100000sw 0011110w 1111011w mod reg r/m mod 010 r/m data mod 000 r/m Function ADC = Add with carry reg/memory with register to either immediate to register/memory immediate to accumulator INC = Increment register/memory register SUB = Subtract reg/memory with register to either immediate from register/memory immediate from accumulator SBB = Subtract with borrow reg/memory with register to either immediate from register/memory immediate from accumulator DEC = Decrement register/memory register NEG = Change sign register/memory CMP = Compare register/memory with register register with register/memory immediate with register/memory immediate with accumulator MUL = multiply (unsigned) register-byte register-word memory-byte memory-word IMUL = Integer multiply (signed) register-byte register-word memory-byte memory-word register/memory multiply immediate (signed) DIV = Divide (unsigned) register-byte register-word memory-byte memory-word IDIV = Integer divide (signed) register-byte register-word memory-byte memory-word AAS = ASCII adjust for subtraction DAS = Decimal adjust for subtraction AAA = ASCII adjust for addition DAA = Decimal adjust for addition AAD = ASCII adjust for divide AAM = ASCII adjust for multiply CBW = Corrvert byte to word CWD = Convert word to double-word Clocks 1/7 1/8 1 1/8 1 1/7 1/8 1 1/7 1/8 1 1/8 1 1/8 1/7 1/7 1/7 1 Notes data data if w=1 data if sw=01 mod reg r/m mod 101 r/m data mod reg r/m mod 011 r/m data mod 001 r/m data data if w=1 data if sw=01 data if w=1 mod reg r/m mod reg r/m mod reg r/m mod 111 r/m data mod 100 r/m data data if w=1 data if sw=01 13 21 18 26 1111011w mod 101 r/m 16 24 21 29 23/28 011010s1 1111011W mod reg r/m mod 110 r/m data data if s=0 18 26 23 31 1111011w mod 111 r/m 18 26 23 31 00111111 00101111 00110111 00100111 11010101 11010100 10011000 10011001 3 2 3 2 14 15 2 2 00001010 00001010 RDC Semiconductor Co. Subject to change without notice 76 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Format 1111011w 001000dw 1000000w 0010010w 000010dw 1000000w 0000110w 001100dw 1000000w 0011010w 1000010w 1111011w 1010100w 1101000w 1101001w 1100000w mod 010 r/m mod reg r/m mod 100 r/m data mod reg r/m mod 001 r/m data mod reg r/m mod 110 r/m data mod reg r/m mod 000 r/m data mod TTT r/m mod TTT r/m mod TTT r/m Function BIT MANIPULATION INSTRUCTUIONS NOT = Invert register/memory AND = And reg/memory and register to either immediate to register/memory immediate to accumulator OR = Or reg/memory and register to either immediate to register/memory immediate to accumulator XOR = Exclusive or reg/memory and register to either immediate to register/memory immediate to accumulator TEST = And function to flags , no result register/memory and register immediate data and register/memory immediate data and accumulator Sifts/Rotates register/memory by 1 register/memory by CL register/memory by Count STRING MANIPULATION INSTRUCTIONS MOVS = Move byte/word INS = Input byte/word from DX port OUTS = Output byte/word to DX port CMPS = Compare byte/word SCAS = Scan byte/word LODS = Load byte/word to AL/AX STOS = Store byte/word from AL/AX Repeated by count in CX: Clocks 1/7 1/7 1/8 1 1/7 1/8 1 1/7 1/8 1 1/7 1/8 1 2/8 1+n / 7+n 1+n / 7+n Notes data data if w=1 data if w=1 data data if w=1 data if w=1 data data if w=1 data if w=1 data data if w=1 data if w=1 count 1010010w 0110110w 0110111w 1010011w 101011w 1010110w 1010101w 11110010 11110010 11110010 1111011z 1111001z 11110010 11110100 1010010w 0110110w 0110111w 1010011w 1010111w 0101001w 0101001w 13 13 13 18 13 13 7 4+9n 5+9n 5+9n 4+18n 4+13n 3+9n 4+3n MOVS = Move byte/word INS = Input byte/word from DX port OUTS = Output byte/word to DX port CMPS = Compare byte/word SCAS = Scan byte/word LODS = Load byte/word to AL/AX STOS = Store byte/word from AL/AX PROGRAM TRANSFER INSTRUCTIONS Conditional Transfers — jump if: JE/JZ = equal/zero JL/JNGE = less/not greater or equal JLE/JNG = less or equal/not greater JC/JB/JNAE = carry/below/not above or equal JBE/JNA = below or equal/not above JP/JPE = parity/parity even JO = overflow JS = sign JNE/JNZ = not equal/not zero JNL/JGE = not less/greater or equal JNLE/JG = not less or equal/greater JNC/JNB/JAE = not carry/not below /above or equal JNBE/JA = not below or equal/above JNP/JPO = not parity/parity odd JNO = not overflow JNS = not sign 01110100 01111100 01111110 01110010 01110110 01111010 01110000 01111000 01110101 01111101 01111111 01110011 01110111 01111011 01110001 01111001 disp disp disp disp disp disp disp disp disp disp disp disp disp disp disp disp 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 RDC Semiconductor Co. Subject to change without notice 77 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Format 11101000 11111111 11111111 10011010 disp-low mod 010 r/m mod 011 r/m segment offset selector disp-high (mod≠11) Function Unconditional Transfers Clocks 11 12/17 25 18 Notes CALL = Call procedure direct within segment reg/memory indirect within segment indirect intersegment direct intersegment RET = Retum from procedure within segment within segment adding immed to SP intersegment instersegment adding immed to SP JMP = Unconditional jump short/long direct within segment reg/memory indirect within segment indirect intersegment direct intersegment 11000011 11000010 11001011 1001010 11101011 11101001 11111111 11111111 11101010 data-low data-low disp-low disp-low mod 100 r/m mod 101 r/m segment offset selector data-high data-high 16 16 23 23 9/9 9 11/16 18 11 disp-high (mod ?11) Iteration Control LOOP = Loop CX times LOOPZ/LOOPE = Loop while zero/equal LOOPNZ/LOOPNE = Loop while not zero/equal JCXZ = Jump if CX = zero Interrupt INT = Interrupt Type specified Type 3 INTO = Interrupt on overflow BOUND = Detect value out of range IRET = Interrupt return PROCESSOR CONTROL INSTRUCTIONS CLC = clear carry CMC = Complement carry STC = Set carry CLD = Clear direction STD = Set direction CLI = Clear interrupt STI = Set interrupt HLT = Halt WAIT = Wait LOCK = Bus lock prefix ESC = Math coprocessor escape NOP = No operation SEGMENT OVERRIDE PREFIX CS SS DS ES 11100010 11100001 11100000 11100011 disp disp disp disp 7/16 7/16 7/16 7/15 11001101 11001100 11001110 01100010 11001111 type mod reg r/m 41 41 43/4 21-60 31 11111000 11110101 11111001 11111100 11111101 11111010 11111011 11110100 10011011 11110000 11011MMM mod PPP r/m 10010000 2 2 2 2 2 5 5 1 1 1 1 1 00101110 00110110 00111110 00100110 2 2 2 2 RDC Semiconductor Co. Subject to change without notice 78 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV R8810LV Execution Timings The above instruction timing represent the minimum execution time in clock cycles for each instruction. The timings given are based on the following assumptions: 1. The opcode, along with and data or displacement required for execution, has been prefetched and resides in the instruction queue at the time is needed. 2. No wait states or bus HOLDs occur. 3. All word -data is located on even-address boundaries. 4. One RISC micro operation(uOP) maps one cycle(according the pipeline stages described below) , except the following case: Pipeline Stages for single micro operation(one cycle): Fetch Fetch Decode Decode op_r EA ALU Access WB WB (For ALU function uOP) (For Memory function uOP) 4.1 Memory read uOP need 6 cycles for bus. Pipeline stages for Memory read uOP(6 cycles): Fetch Decode EA Access Idle T0 T1 T2 T3 WB Bus Cycle 4.2 Memory push uOP need 1 cycle if it has no previous Memory push uOP, and 5 cycles if it has previous Memory push or Memory Write uOP. Pipeline stages for Memory push uOP after Memory push uOP (another 5 cycles): Fetch Decode EA Decode Access Idle Access T0 Access T1 Access T2 Access T3 Access WB Idle T0 (1st Memory push uOP) T1 T2 T3 WB (2nd uOP) Fetch EA pipeline stall 4.3 MUL uOP and DIV of ALU function uOP for 8 bits operation need both 8 cycles, for 16 bits operation need both 16 cycles. 4.4 All jumps, calls, ret and loopXX instructions required to fetch the next instruction for the destination address(Unconditional Fetch uOP) will need 9 cycles. Pipeline stages for unconditional fetch: Fetch Decode EA Decode Access Idle Access T0 Access T1 Access T2 Access T3 Access Fetch Idle T0 T1 (Fetch uOP) T2 T3 WB (next uOP) Fetch EA will be flushed These 9 cycles caused branch penalty Fetch Decode following stages...(New uOP) Note: op_r : operand read stage, EA : Calculate Effective Address stage, Idle : Bus Idle stage, T0..T3 : Bus T0..T3 stage, Access : Access data from cache memory stage. RDC Semiconductor Co. Subject to change without notice 79 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV DC Characteristics Absolute Maximum Rating Symbol Rating Vterm Terminal Voltage with Respect To GND Ta Operating Temperature Pt Power Dissipation Commercial -0.5 to Vcc+0.5 V V 0 to +70 1.5 Unit Note Centigrade W Recommended DC Operating Conditions Symbol Parameter Vcc GND Vih Vih1 Vih2 Vil Note 1: Supply Voltage Ground Input High Voltage(1) Input High Voltage(RES) Input High Voltage (X1) Input Low voltage Min. 3.0 0 2.0 2.5 2.5 -0.5 Typ. 3.3 0 --- Max. 3.6 0 Vcc+0.5 Vcc+0.5 Vcc+0.5 Unit V V V V V V 0 0.8 RST ,X1 pins not included DC Electrical Characteristics Symbol Parameter Ili Input Leakage Current (for 32 Pio Pins) Input Leakage Current (Others) Output Leakage Current Test Condition Vcc=Vmax Vin=GND to Vcc Vcc=Vmax Vin=GND to Vcc Vcc=Vmax Vin=GND to Vcc Iol=2mA, Vcc=Min. Ioh=-2.4mA, Vcc=Min. Min Max 300 Unit uA Ili 80 uA Ilo 300 uA VOL VOH Note1:Vmax=3.6V Output Low Voltage Output High Voltagr Vmin=3.0V _____ 2.4 0.4 ____ V V RDC Semiconductor Co. Subject to change without notice 80 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV Test condition Vcc=3.6V, 33MHz Min --5 5 Max 85 33 25 Unit mA Mhz Mhz Note DC Electrical Characteristics Symbol Parameter Icc Max Operating Current Fmax Max operation clock frequency Fmax Max operation clock frequency Vcc+-5% Vcc+-10% RDC Semiconductor Co. Subject to change without notice 81 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV AC Characteristics T1 CLKOUTA 2 T2 T3 TW T4 A19:A0 1 3 4 ADDRESS S6 5 6 ADDRESS 9 10 11 12 13 14 7 15 DATA 8 AD15:AD0 ALE RD BHE 16 17 UCS,LCS 18 19 PCSx,MCSX 20 21 DEN 22 23 DTR 24 25 S2:S0 26 STATUS 27 UZI READ CYCLE RDC Semiconductor Co. Subject to change without notice 82 Rev:1.4 R DC RDC No. 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 ® RISC DSP Controller R8810LV MIN 0 1.5T-12 0 0 0 0 10 3 0 0 1/2T-10 T-10 0 2T-15 0 0 0 0 0 0 0 0 0 0 0 0 0 MAX 15 20 20 20 12 Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns Description CLKOUTA high to A Address Valid A address valid to RD low S6 active delay S6 inactive delay AD address Valid Delay Address Hold Data in setup Data in Hold ALE active delay ALE inactive delay Address Valid after ALE inactive ALE width RD active delay RD Pulse Width RD inactive delay CLKOUTA HIGH to LCS UCS valid UCS,LCS inactive delay PCS , MCS active delay PCS , MCS inactive delay DEN active delay DEN inactive delay DTR active delay DTR inactive delay Status active delay Status inactive delay UZI active delay UZI inactive delay 20 20 15 20 20 20 20 20 20 20 20 20 20 20 20 20 1. T means a clock period time 2. All timing parameters are measured at 1.5V with 50 PF loading on CLKOUTA . All output test conditions are with CL=50 pF RDC Semiconductor Co. Subject to change without notice 83 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA 2 T2 T3 TW T4 A19:A0 1 3 4 ADDRESS S6 5 6 ADDRESS 7 8 9 10 11 12 13 DATA AD15:AD0 ALE WR 14 15 WHB,WLB 16 17 BHE 18 19 UCS,LCS 20 21 PCSx,MCSX 22 23 DEN 24 25 DTR 26 27 S2:S0 28 STATUS 29 UZI WRITE CYCLE RDC Semiconductor Co. Subject to change without notice 84 Rev:1.4 R DC RDC No. 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 ® RISC DSP Controller R8810LV MIN 0 1.5T-12 0 0 0 MAX 15 20 20 15 Unit ns ns ns ns ns ns ns ns ns ns ns ns 15 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns Description CLKOUTA high to A Address Valid A address valid to WR low S6 active delay S6 inactive delay AD address Valid Delay Address Hold ALE active delay ALE width ALE inactive delay Address valid after ALE inactive WR active delay WR pulse width WR inactive delay WHB , WLB active delay WHB , WLB inactive delay BHE active delay BHE inactive delay CLKOUTA high to UCS , LCS valid UCS , LCS inactive delay PCS , MCS active delay PCS , MCS inactive delay DEN active delay DEN inactive delay DTR active delay DTR inactive delay Status active delay Status inactive delay UZI active delay UZI inactive delay 0 20 T-10 0 20 1/2T-10 0 15 2T-15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDC Semiconductor Co. Subject to change without notice 85 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA T2 T3 T4 T1 T2 T3 T4 T1 A19:A0 d00C0 c0000 20000 0 101fc AD15:AD0 0 2211 0 2211 * 1fc * ALE RD WR WLB WHB UCS DEN DT/R S2:S0 7 5 7 6 7 6 S6 1 DRQ0 DMA (1) * The source-synchronized transfer is not followed immediately by another DMA transfer No. Description 1 DRQ is confirmed time MIN 0 MAX 10 Unit ns RDC Semiconductor Co. Subject to change without notice 86 Rev:1.4 R DC RDC CLKOUTA ® RISC DSP Controller R8810LV T1 T2 T3 T4 T1 T2 T3 T4 T1 T2 T3 T4 T1 T2 T3 T4 T1 A19:A0 c0000 20000 * C0002 20002 * 101fc AD15:AD0 0 2211 0 2211 2 4433 2 4433 1fc ALE RD WR WLB WHB UCS DEN DT/R S2:S0 5 7 6 7 5 7 6 7 6 S6 1 DRQ0 DMA (2) * The source-synchronized transfer is followed immediately by another DMA transfer No. 1 Description DRQ is confirmed time MIN 0 MAX 3 Unit ns RDC Semiconductor Co. Subject to change without notice 87 Rev:1.4 R DC RDC CLKOUTA ® RISC DSP Controller R8810LV T1 T2 T3 Tw Tw Tw T4 Ti Ti Ti Ti Ti Ti Ti Ti Ti Ti Ti Ti T1 A19:A0 ffff4 ffff6 zZZZZ fff* f0000 AD15:AD0 f0 fff6 0 fff6 0 b8 ALE RD WR WLB UCS DEN DT/R S2:S0 4 7 1 4 7 z 3 7 4 HOLD 2 HLDA 4 HOLD/HLDA Timing No. 1 2 3 4 Description HOLD setup time HLDA Valid Delay HOLD hold time HLDA Valid Delay MIN 0 0 0 0 MAX 10 20 3 20 Unit ns ns ns ns RDC Semiconductor Co. Subject to change without notice 88 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA T2 T3 Tw Tw Tw Tw Tw Tw T4 T1 ALE 2 1 ARDY SRDY LCS ARDY Timing No. 1 2 Description ARDY Resolution Transition setup time ARDY active hold time MIN 0 0 MAX 10 10 Unit ns ns RDC Semiconductor Co. Subject to change without notice 89 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV T1 CLKOUTA T2 T3 Tw Tw Tw Tw Tw T4 T1 ALE ARDY 1 SRDY 2 LCS SRDY Timing No. 1 2 Description SRDY transition setup time SRDY transition hold time MIN 0 0 MAX 10 3 Unit ns ns RDC Semiconductor Co. Subject to change without notice 90 Rev:1.4 R DC RDC ® RISC DSP Controller R8810LV PACKAGE INFORMATION (PQFP) D 23.20 0.25 0.10 D1 20.00 "A" 0.10 E1 14.00 SEATING PLANE "A" 0.65 BSC E 17.20 0.25 0.089 c 0.22/0.38 0.13/0.23 WITH PLATING c b c1 0.13/0.17 b1 0.22/0.30/0.33 BASE METAL 3.40 MAX DETAIL A 1.60 REF L1 0~7 A2 2.75 0.12 0.25 DETAIL A 15 TYP 7 TYP L 0.88 0.15 0.25 MIN A1 RDC Semiconductor Co. Subject to change without notice 91 Rev:1.4 R DC RDC (LQFP) ® RISC DSP Controller R8810LV 16.00 14.00 100 0.10 0.10 76 1 75 0.10 14.00 25 51 26 50 0.127(TYP) 0.50(TYP) Sealing Plane 0.22 0.05 "A" 0.076(MAX) 1.60(MAX) 0.05 0~7 0.05 0.60 1.00(REF) 0.10 0.2S(TYP) GAUGE PLANE 1.40 0.15 UNIT:mm 16.00 0.10 RDC Semiconductor Co. Subject to change without notice 92 Rev:1.4 R DC RDC Rev. 1.0 1.1 1.2 1.3 1.4 ® RISC DSP Controller R8810LV Revision History Date 2001/4/30 2001/6/19 2001/8/15 2001/12/31 2002/05/07 History Formal release Address and Phone number update. Modify Wait State Description (Page 26) Modify Oscillator Characteristics Modify Wait State Description RDC Semiconductor Co. Subject to change without notice 93 Rev:1.4
R8810LV 价格&库存

很抱歉,暂时无法提供与“R8810LV”相匹配的价格&库存,您可以联系我们找货

免费人工找货