Page 4
Contents RAM Map for Special and Control Registers............ 22 7.6.1 Special and Control Registers................22 7.6.2 Other Unbanked General RAM .................23 7.6.3 Banked General RAM ..................24 LCD RAM Map ....................24 Special Function Registers................24 7.8.1 ACC (R0Ah): Accumulator ................24 7.8.2 POST_ID (R33h): Post Increase / Decrease Control Register ......25 7.8.3 BSR, FSR0, INDF0 (R02h, R01h, R00h):...
Page 5
Contents LCD Driver ....................... 50 8.6.1 LCD Driver Registers ..................51 8.6.2 LCD RAM Map ....................53 8.6.3 LCD Driving Method Circuit................54 8.6.4 LCD COM Waveforms..................55 8.6.5 LCD COM and SEG Waveforms ...............56 Characteristics ................58 Electrical VDD=1.5V Electrical Characteristics..............58 Pin Type Circuit Diagrams..................60 Application Circuits ....................
Page 6
Contents Specification Revision History Doc. Version Revision Description Date Initial version 2008/8/12 Added the code options: the Port A set and operating voltage set (Section 6) Modified the Electrical characteristics for VDD=1.5V: The pull-up R and current of the I/O ports, and ROP & RON (Section 9.1) 2009/11/2 Added a Power-on reset voltage on Section 9.1 Added a 3V Operating Voltage...
RISC II Series Microcontroller 1 General Description The ePS6610 is an 8-bit RISC MCU embedded with a 5×40 LCD driver along with two 8-bit timers, one 16-bit general timer, and a watchdog timer. It has also on-chip 1.2K bytes RAM and 8K words program ROM. It is highly ideal for advance scientific calculator application, particularly those requiring high performance and low cost solution.
RISC II Series Microcontroller 10×128 bytes banked RAM Max. of 32 levels of RAM stack Table Look-up function is fast and highly efficient when combined with Repeat instruction Register-to-Register move instruction Compare and Branch in one instruction (2 cycles) Single Repeat function (256 repeat times max.)
RISC II Series Microcontroller 5 Pin Description 5.1 MCU System Pins (7 Pins) I/O/P Name Description Note Type Digital and Analog positive power supply, the range is from 1.2V~1.8V Digital and Analog negative power supply. System reset pin. Low active, Connect 0.1 uF to RSTB Int.
RISC II Series Microcontroller 6 Code Option Located at Address 0x000C~0x000F of Program ROM Initial mode after reset: • Select “Slow” mode or “Fast” mode NOTE For Initial mode after reset, it is recommended that you set the setting to “Slow mode.”...
RISC II Series Microcontroller The PA.1’s Key matrix combination: • Select “PA.1 and SEG” or “PA.1 and Port B or none” The PA.2’s Key matrix combination: • Select “PA.2 and SEG” or “PA.2 and Port B or none” The PA.3’s Key matrix combination: •...
RISC II Series Microcontroller 7.1.1 Power-on Reset The power-on reset circuit holds the device under reset condition until VDD is above (power-on reset voltage). Whenever the voltage supply is below V , a Reset will occur. 7.1.2 RSTB Pin In normal condition, the RSTB pin is pulled up to VDD.
RISC II Series Microcontroller Sleep Mode Wake-up Timing Sleep mode Wake-up to operating mode Wake-up pin Tpwr Twup2 CPU work Tclk Figure 7-2b Sleep Mode Wake-up Timing Diagram Condition: Vdd = 1.5V, Cosc = 20pF and Ta = 25°C...
Page 16
RISC II Series Microcontroller Bit 5 (SGE): Computation result is greater than or equal to zero (positive value) after a signed arithmetic. This is affected by HEX arithmetic instruction only. NOTE 1. When OV=1 after a signed arithmetic, check the SGE bit and SLE bit to verify whether overflow (carry into sign bit) or underflow (borrow from sign bit) occurred.
RISC II Series Microcontroller Bit 6 (/PD): Reset to “0” when /PD enters Sleep mode. Set to “1” by “WDTC” instruction, power-on reset, or by Reset pin low condition. Bit 7 (/TO): Reset to “0” at WDT time out reset. Set to “1” by “WDTC” instruction, power-on reset, Reset pin low condition, or when the MCU enters into Sleep Mode.
RISC II Series Microcontroller 7.2.1 32.8kHz RC or 32.768kHz Crystal Oscillator 32.8kHz RC Internal oscillator: Select “RC oscillator for FOSC” in the code option and allow OSCI and OSCO pins to remain floating. 32.768kHz Crystal oscillator: Select “Crystal oscillator for FOSC” in the code option and connect a crystal and a resistor (10 MΩ) between OSCI and OSCO pins.
RISC II Series Microcontroller 7.3.1 Slow, Fast, Sleep, and Idle Mode Operation CPUCON (R34h): MCU Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 – – – – – GLINT...
Page 22
RISC II Series Microcontroller Sleep Mode: When the MS1 bit of the CPUCON register is set to “0,” and the “SLEP” instruction is executed, the MCU will enter into Sleep Mode. Sleep Mode suspends all system operation and put on hold the internal status immediately before the suspension of the operation.
RISC II Series Microcontroller 7.3.2 Wake-up Operation Oscillator is off during Sleep Mode. The MCU is awaken by input port (Port A), then returns to Fast Mode or Slow Mode (as determined by MS0 bit of CPUCON register described in previous section).
RISC II Series Microcontroller PAINTEN (R2Bh): Port A.7 ~ Port A.0 Interrupt Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PA7IE PA6IE PA5IE PA4IE PA3IE PA2IE PA1IE PA0IE Bit 7 (PA7IE) ~ Bit 0 (PA0IE): PortA.7 ~ PortA.0 Interrupt control bits...
RISC II Series Microcontroller 7.4.3.2 Timer 1 Interrupt Timer 1 is an 8-bit timer used for time counting and wake-up functions. When the counting value of Timer 1 underflows, interrupt occurs and the TRL1 value is reloaded to the timer.
RISC II Series Microcontroller 7.6 RAM Map for Special and Control Registers RAM Size: 86 Bytes + 10 Banks × 128 Bytes = 1366 Bytes 7.6.1 Special and Control Registers Legend: R = Readable bit W = Writable bit –...
RISC II Series Microcontroller Addr. Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 INTSTA TMR2I TMR1I TMR0I TR01CON T1WKEN T1EN T1PSR1 T1PSR0 T0EN T0CS T0PSR1 T0PSR0 TRL0L Timer 0 Auto-reload Register Low Byte...
RISC II Series Microcontroller 7.6.3 Banked General RAM Address Bank 0 Bank 1 Bank 2 Bank 3 …… Bank 9 General General General General General Purpose Purpose Purpose Purpose …… Purpose 7.7 LCD RAM Map 1/5 Duty COM0 COM1...
RISC II Series Microcontroller 7.8.2 POST_ID (R33h): Post Increase / Decrease Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 – LCD_ID – LCDPE FSR1_ID FSR0_ID FSR1PE FSR0PE Bit 0 (FSR0PE): Enable FSR0 post increase/decrease function. FSR0 will NOT carry into or borrow from BSR.
Page 32
RISC II Series Microcontroller Code Example 1: Data transform Bank 0 to Bank 1: A,#00110011B ; Enable FSR0 & FSR1 post increase POST_ID,A BANK ; BSR = 0 working Bank A,#1 BSR1,A ; BSR1 = 1 is Bank 1...
RISC II Series Microcontroller Code Example 2: ;************************************* Main start program Const => Working bank setting Mstart: ;* REG => Save or Recall register ;************************************* ***** RAM stack macro IniRAMsk Initial RAM stack IniRAMsk MACRO #Const A,#Const MnLoop: BSR1,A...
RISC II Series Microcontroller 7.8.8 Port A, Port B (R10h, R11h): General I/O Pin Registers Port A (R10h) Port A.0 ~ 7 are general I/O pin registers Port B (R11h) Port B.0 ~ 7 are general I/O pin registers 7.8.9 STBCON (R20): Strobe Output Control Register...
RISC II Series Microcontroller 7.8.11 PAWAKE (R2Ah): Port A Wake-up Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 WKEN7 WKEN6 WKEN5 WKEN4 WKEN3 WKEN2 WKEN1 WKEN0 Bits 7 ~ 0 (WKEN7 ~ WKEN0): Wake-up enable control bits of Port A.7~Port A.0.
RISC II Series Microcontroller 7.8.15 PBCON (R2Eh): Port B Pull up Resistor Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PB7PU PB6PU PB5PU PB4PU PB3PU PB2PU PB1PU PB0PU Bit 7 ~ Bit 0 (PB7PU ~ PB0PU): Port B.0 ~ Port B.7 pull-up resistor control bits...
RISC II Series Microcontroller NOTE If the program uses the event counter mode, Port B.7 will be fixed as input pin and Port B.7 cannot be controlled by the “Port B high nibble control bit” code option. Event Counter Mode Example: Figure 8-1b Event Counter Mode Example Timing Diagram 8.1.1 Timer 0 Registers...
Page 40
RISC II Series Microcontroller Bit 1 ~ Bit 0 (T0PSR1 ~ T0PSR0): Timer 0 prescaler select bits T0PSR1: T0PSR0 Prescaler Value 1:16 1:64 TR2WCON (R27h): Timer 2/Watchdog Timer Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3...
Page 41
RISC II Series Microcontroller Code Example: ; === Timer 0 interrupt TIMERINT: PUSH INTSTA,TMR0I,Q_Time INTSTA,TMR0I PORT A,7 Q_Time: RETI ; === Timer0 = [1/(300K/2)] * [1 x(1FFFh + 1)] Timer0SR: System setting 300KHz PA.7 setting output pin A,#0B00000100 TR01CON,A ;...
RISC II Series Microcontroller 8.2 Timer 1 (8 Bits) TRL1 reload Timer 1 INT or Timer 1 wake-up underflow Fosc Prescaler Timer 1 T1PSR1~0 Figure 8-2 Timer 1 Function Block Diagram Timer 1 is a general-purpose 8-bit down counter used on applications that require time counting with interrupt and wake-up functions.
Page 43
RISC II Series Microcontroller CPUCON (R34h): MCU Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 GLINT Bit 2 (GLINT): Global interrupt enable/disable bit 0: Disable all interrupt 1: Enable all un-mask interrupt...
RISC II Series Microcontroller A prescaler for the timer is also available. The T2PSR1 ~ T2PSR0 bits of TR2WCON register determine the prescaler ratio and generate different clock rates as clock source for the timer. Counter value is decreased by one (counting down) according to the timer clock source frequency.
Page 46
RISC II Series Microcontroller CPUCON (R34h): MCU Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 – – – – – GLINT Global Interrupt Enable/Disable Bit Bit 2 (GLINT): 0: Disable all interrupts...
RISC II Series Microcontroller As shown in the circuit diagram below, it is assumed that the key strobe output has resistance R , while each key has resistance K and capacitance C. Long strobe output duration will cause the LCD display to malfunction. Hence, strobe output time should be made as short as possible.
RISC II Series Microcontroller Sub clock A B C A A A A A B C A A A A A B C R1EN R2EN INTLATCH V20 SEG 30us 30us 30us COM0 DUTY COM1 DUTY …… Figure 8-7 Automatic Key Scan Timing (SCAN = 1) Timing Diagram 8.5.2 Key Strobe...
RISC II Series Microcontroller 3 C O M s: A p pro x. 1 1 .7 m s (F o sc/1 2 8 /3 H z) 4 C O M s: A p p ro x. 11 .7 m s (F osc/96 /4 H z) 5 C O M s: A p p ro x.
RISC II Series Microcontroller 8.5.2.3 Key Strobe Pin Function STBCON Key Strobe (Shared with Segments 0 ~ 15) SCAN BitST STB3~0 0:m-1 16:n-1 ×××× Display waveform 0000 0001 0010 0011 0100 0101 0110 0111 Display waveform 1000 1001 1010...
Page 53
RISC II Series Microcontroller PACON (R29h): Port A Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PA7PU PA6PU PA5PU PA4PU PA3PU PA2PU PA1PU PA0PU Bit 3 ~ Bit 0 (PA3PU ~ PA0PU): Pull-up resistor (R2 large resistor) control bits 0: Disable Port A.0 ~ Port A.3 pull-up resistor...
Page 54
RISC II Series Microcontroller STBCON (R20h): Strobe Output Control Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 SCAN R1EN BitST STB3 STB2 STB1 STB0 Bit 7 (SCAN): Automatic key scan or specify the scan signal bit by bit...
Page 55
RISC II Series Microcontroller (Continuation) ; *** Interrupt PortA data INPTINT: PUSH MOVRP A,PAINTSTA Key_No,A PAINTSTA RETI NOTE The PA.0~7’s code option must be set to “PA.0~7 and Port B or none” by setting the bit when the Key matrix combination is PA[7:0] and Port B or Ground.
RISC II Series Microcontroller (Continuation) KeyScan: ; --- Clear key number Key_No --- Key Scan is finish KeyScanOk: Key_No,A A,STBCON MOVH Key_No,A ; Key_No: XXXX XXXX NOTE The PA.0~7’s code option must be set to “PA.0~7 and SEG” by setting the bit when the Key matrix combination is PA[7:0] and SEG.
RISC II Series Microcontroller a . 1 /5 d u ty b . 1 /4 d u ty c . 1 /3 d u ty S E G 0 / K e y S tro b e 0 S E G 0 / K e y S tro b e 0...
Page 58
RISC II Series Microcontroller LCDARL (R09h): LCD RAM Column Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 LCDARL7 LCDARL6 LCDARL5 LCDARL4 LCDARL3 LCDARL2 LCDARL1 LCDARL0 Bits 7~6 (LCDARL7~6): unknown value. (Note: Do not use JDNZ at LCDARL (09h)
RISC II Series Microcontroller 1/4 Duty COM 0 COM 1 COM 2 COM 3 RAM Address LCDARL Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 SEG0 SEG39 1/3 Duty COM 0...
RISC II Series Microcontroller 8.6.4 LCD COM Waveforms 1/5 Duty and 1/3 Bias a. For 1/5 duty and 1/3 bias LCD Frame COM0 COM1 COM2 COM3 COM4 Figure 8-12a LCD COM Waveform for 1/5 Duty and 1/3 Bias 1/4 Duty and 1/3 Bias b.
RISC II Series Microcontroller 1/3 Duty and 1/2 Bias c. For 1/3duty amd 1/2 bias LCD Frame COM0 COM1 COM2 Figure 8-12c LCD COM Waveform for 1/3 Duty and 1/2 Bias 8.6.5 LCD COM and SEG Waveforms COM0 COM0...
Page 63
RISC II Series Microcontroller 1/4 Duty and 1/3 Bias b. For 1/4 duty and 1/3 bias LCD frame COM0 SEG all off COM0-SEG -V10 -V20 SEG all on COM0-SEG -V10 -V20 -V30 Figure 8-13c LCD COM and SEG Waveform for 1/4 Duty and 1/3 Bias 1/3 Duty and 1/2 Bias c.
RISC II Series Microcontroller Electrical Characteristics 9.1 VDD=1.5V Electrical Characteristics Absolute Maximum Ratings Items Sym. Condition Limits Unit –0.3 to +2.0 Supply voltage –0.5 to VDD +0.5 Input voltage (general input port) TOPR –10 to +70 °C Operating temperature range TSTR –55 to +125...
Page 65
RISC II Series Microcontroller (Continuation) Parameter Sym. Condition Min. Typ. Max. Unit Input Threshold 0.5×VDD 0.75×VDD Voltage RSTB VT– 0.2×VDD 0.4×VDD (Schmitt) Input Leakage ALL Input port (without pull up/down resistor) +/-1 µA Current Vin= VDD or GND Large Pull-up...
RISC II Series Microcontroller 10 Pin Type Circuit Diagrams Reset Pin Type RSTB Figure 10-1a Reset Pin Type Circuit Diagram Test Pin Type TEST Figure 10-1b Test Pin Type Circuit Diagram Oscillator Pin Type Fig. 10-1c Oscillator Pin Type Circuit Diagram 60 •...
Page 67
RISC II Series Microcontroller Input Pin Type(PA.0~3) R1EN PA.3~0 Figure 10-4 Input Pin Type Circuit Diagram I/O Pin Type(PA.4~7) Figure 10-1d I/O Pin Type Circuit Diagram SEG and I/O Share Pin Type Fig 10-1e SEG and I/O Share Pin Type Circuit Diagram •...
RISC II Series Microcontroller General SEG and COM Pin Type Fig 10-1f General SEG and COM Share Pin Type Circuit Diagram 11 Application Circuits Keyboard VDD=1.5V 64 keys LCD Panel 0.1uF max. 20pF ON/OFF SEG0~39 Port A.0~3 COM0~4 OSCO Port A.7...
RISC II Series Microcontroller 12 Instruction Set Legend: k: constant r: File Register addr: address b: bit i: Table pointer control p: special file register (0h~1Fh) Type Binary Instruction Mnemonic Operation Status Affected Cycle 0000 0000 0000 0000 No operation...
Page 70
RISC II Series Microcontroller Type Binary Instruction Mnemonic Operation Status Affected Cycle 0000 0010 rrrr rrrr OR A,r A .or. r 0000 0011 rrrr rrrr OR r,A r .or. A 0100 0100 kkkk kkkk OR A,#k A .or. k...
RISC II Series Microcontroller (*2) TABPTR = (TABPTRM: TABPTRL) Bit 0 = 0: Low byte of the pointed ROM data Bit 0 = 1: High byte of the pointed ROM data NOTE Bit 0 of TABPTRL is used to select either low byte or high byte of the pointed ■...
Need help?
Do you have a question about the RISC II Series and is the answer not in the manual?
Questions and answers