EU1010 EOREX | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 21

Technical content

Features

  • 2.2V to 5.5V Input Voltage Range
  • 8 I/O ports in EU1010
  • 12 I/O ports in EU1011
  • RAM size: 128 x 8 bits
  • The STACK RAM is included.
  • Program ROM size: 4K x 8 bits OTP
  • 10 bits A/D Converter input source. EU1010: 2 channels EU1011: 4 channels
  • One set of 16-bit down count timer and one set of 8-bit timer.
  • Operating temperature: -40 ~ +85 ℃
  • Build-in Low Voltage Reset (LVR) circuit.
  • Oscillator: Internal RC oscillation.

Description

The EU101x is an OTP type 8-bit micro-controller with 2(EU1010)/4(EU1011) channels of 10-bit A/D converter using adva nced CMOS process. The EU101x is spe cially desi gned for variou s industrial fi eld ap plications. Th e EU101x incorporates two set s o f 8-bit timer/counte rs, where timer0/1 is s pecially designed for PWM (Pulse Width Modulation) generator. There are 8 I/O port s a nd 12 I/O port s with EU1 010 an d EU1011, re spectively. Co nsidering form factor and ma nufacturability, the EU101 0 is packaged into 10-pin non-JE DEC-standard com pact-size SOP while th e EU1 011 is p ackaged in to 14-pin non-JEDEC-standard compact-size SOP.

Ordering Information

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Pin Assignment VDD PA[0] PA[1] PA[2] PA[3] PA[4] PA[5] PB[0] PB[1] PB[2] PB[3] PB[4] PB[5] SOP-14 ( 12 I/O port ) VSS Pin Description Pin Name I/O Function VDD - Positive power supply VSS - Ground PA0~PA5 I/O Input and output ports. In input mod e, all P A pins could b e set an intern al pull-up resistor (R=100Kohm). In output mode, it could be optione d as CMOS or NMOS output independently. Also, PA0~PA3 could be optioned as 4 channels of 10-bit A/D converter input pins. PB0~PB5 I/O Input and output ports. In input mode, it could have optioned internal pull-up resi stor with 100K ohm. Also, it can be set as HAL T an d STOP mode released source when the input signal is changed from high to low. In output mode, it could be optioned as CMOS or NMOS output independently.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com MCU Description Item Abbreviation Description Accumulator ACC The EU101x has a n 8-bit regi ster used for d ata hold, exchange, arithmetic, transfer and I/O operation. Index Register (X,Y) In EU101x t hat build s in two ind ex registe rs ( X and Y ). These two in dex registers could be u sed to count prog ram steps or to provide an index value to be used in generating as effective address. When execu ting an instruction whi ch spe cifies i ndexed addressing, the MCU fetches the o peration co de a nd the base address, and modifies the address by adding the index register to it s prior to perf orm the de sired operation. Per or post-index of indirect address is possible. Special Function Register SFR The EU101x includes some special function control registers in zero-page. For more detailed information about the special function registers, please refer to next section. S tack pointer register SP The stack pointer is an 8 -bit register that is used to control the addressing of the variable-length stack. The stack pointer is automatically incremented and decremented under control of the microprocessor the perform stack manipulations under direction of either the program or interrupts. The stack allows a simple im plementation of nested sub routines and multiple level interrupts. The st ack pointer is initialized by the user ’s software. Program counter PC The 14-bit p rogram co unter regi ster p rovides the address that step the micr oprocessor th rough sequential p rogram instructions. Program Flag Register P The 8-bit st atus flag regi ster contains seven st atus flags. Some of the flags are con trolled by the program and others may be con trolled both by the program and the MCU. Instruction set cont ains a numb er of conditio nal branch instructions that are designed to allow testing of these flags.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Memory The EU101x has a 14-bit program counter which can totally address 16K x 8 bits. All the special function registers, data RAM, stack RAM and program ROM are assigned in this area as the following diagram. 0000H Special Function Register 0022H Un-used 00A0H ( zero page ) Data RAM : 96 x 8 bits 00FFH 0100H Data & Stack RAM : 32 x 8 bits 011FH Un-used 3000H Program ROM : 4K x 8 bits 3FFFH Figure_A Memory mapping diagram Program ROM The EU10 1x cont ains 4K x8 bit progra m OTP and it s add ressing size i s assigned from $ 3000H to $3FFFH. After power on reset, the d ata restored in addresses $3FFCH and $3FFDH are loaded into program counter. It means that RESET vector address is located in $3FFCH and $3FFDH. Data RAM and STACK RAM The EU101x data RAM are located from $A0H to $11FH. All the dat a RAM area from $A0 H to $0FFH could be accessed by zero-page addressing mode. That STACK RAM could be accessed from $100H to $11FH. Actually, the area of $100H ~ $11FH, could be accessed as data RAM or STACK RAM. Use r needs to preset stack pointer (SP) after power on reset. Program Counter (PC) should be initialized after power on reset that ROM address $3FFCH and $3FFDH content will be loaded into Program Counter.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Special Function Register (SFR) Special fun ction regi ster a rea is duri ng the addr esses from $00 H to $22H. These spe cial function registers control all I/O a nd timer fu nction setting. Some of me mory ad dresses a re not defined and un-used. It is unne cessary for the u sers to read or write data from these undefined areas. User should follow the de fault value or do not a ccess these un defined a rea. All it s functions a re li sted in next sections. Interrupt and Timers Address 00H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 NAME INTEN ADINT # # T1INT T0INT PBINT TBINT RTCINT Read or Write R/W # # R/W R/W R/W R/W R/W Default Value 0 # # 0 0 0 0 0 The EU101x builds in 8 interrupt sources: Real Time Clock interrupt, Time Base interrupt, PB input ports falling edge interrupt, Timer0 underflow interrupt, Timer1 underflow interrupt, A/D converter interrupt and RESET interrupt. By setting control register I NTEN (00H) that can enable or disable correspondi ng interrupt sources. Interrupt source, interrupt vect or address mapping and it s priority are sh own in the following table. Address Interrupt Source Priority 3FFF0H/3FF1H ADC interrupt 7 3FF2H/3FF3H Timer1 interrupt 6 3FF4H/3FF5H Timer0 interrupt 5 3FF6H/3FF7H PB port interrupt 4 3FF8H/3FF9H Time base interrupt 3 3FFAH/3FFBH RTC interrupt 2 3FFCH/3FFDH Reset 1 3FFEH/3FFFH Reserved 0

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com RTC timer, Base timer interrupt and Watch Dog timer Address 03H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 NAME UCCLK # BASE1 BASE0 RTC1 RTC0 RCSEL2 RCSEL1 RESEL0 Read or Write W W W W W W W W Default Value 0 0 0 0 0 0 0 0 Real time counter The EU1 01x build-in a re al time count er interrupt a nd its clo ck sou rce is opt ioned in UCCLK.7 bit (CKSEL). Its frequency could be optioned by UCCLK.4 & UCCLK.3 that could select real time interrupt frequency. F or exampl e, if the clock source come f rom ExCLK/ PB3 (when CKSEL=1) and the input frequency is 32,768Hz, select “[RTC1, RTC0] = [0, 1]” and it will cause 2Hz interrupt when real time counter interrupt enabled (RTCINT=1) & (RTCEN=1). RTC1 RTC0 TRTC 0 0 TT/32 0 1 TT/64 1 0 TT/128 1 1 TT/256

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Base Timer Base timer i s optioned from [BASE1, BASE0] and it will cause a period time r base interrupt enabled (TBINT=1) & (TBEN=1 ). But the real t ime counter have the same clock source and it i s optioned by UCCLK.7($03H.7=CKSEL). BASE1 BASE0 TBASE 0 0 TT/2 0 1 TT/4 1 0 TT/8 1 1 TT/16 MCU clock selection With a built-in internal RC oscilla tor, the MCU frequency is 4MHz ±3% @4.5V. MC U sys tem c lock offers 4MHz, 2MHz, 1MHz, 512KHz o r 256KHz by M CU clock options bit; RCSEL2~0. Please refer to the following table. Address 03H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name UCCLK # BASE1 BASE0 RTC1 RTC0 RCSEL2 RCSEL1 RCSEL0 Read or Write # W W W W W W W Default Value 0 0 0 0 0 0 0 0 The MCU system clock could be switched by setting RCSEL2~0. First, pre-set RCSEL2~0 register and then execute “HALT” instruction. After then, MCU wake-up from HALT mode, MCU system frequency is already changed to the new setting frequency. RCSEL2 RCSEL1 RCSEL0 Frequency of MCU system clock 0 0 0 256KHz 0 0 1 512KHz 0 1 0 1MHz 0 1 1 2MHz 1 # # 4MHz

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com TMRC register Address 01H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 NAME TMRC WDT Divide WDTEN WDTF TBEN TBF RTCEN RTCF Read or Write W W R/W R/W R/W R/W R/W R/W Default Value 0 0 0 # 0 # 0 # *TMRC.0(RTCF) : real time counter transient flag. Once TRTC signal is transient, this flag will be set as RTCF=1 by hardware. This bit could be cleared by software. *TMRC.1(RTCEN) : real time counter enable/disable flag. RTCEN = 1, enable real time counter; RTCEN = 0, disable real time counter. *TMRC.2(TBF) : base timer transient flag. Once TBASE signal is transient, this flag will be set as TBF=1 by hardware. This bit could be cleared by software. *TMRC.3(TBEN) : Base timer enable/disable flag. TBEN = 1, enable base timer; TBEN = 0, disable base timer. Watchdog Timer Watchdog timer block diagram is shown as figure_B. The clock source comes from CPU system clock. Figure_B Note: *Once TMRC.5 (WDTEN) is set as “1”, the watchdog timer will start to count till the watchdog timer overflows, and then the TMRC.4 (WDTF) is set as “1”. Meanwhile, CPU will have a warm reset by hardware and the data in addresse s $3FFCH and $3FFDH will be loaded into program counter. Watchdog timer can be cleared by setting TMRC.5 (WDTEN=0). Please n ote well tha t the EU101x watchdog timer is preset as disable after power on reset. Once watchdog timer is enabled b y setting TM RC.5=1, watchdog timer won’t be stopped b y soft ware. Set TMRC.5=0 will just clear watchdog timer counter.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com WDT divider TMRC (01H) bit7 bit6 FSYS/2 0 0 FSYS/4 0 1 FSYS/8 1 0 FSYS/16 1 1 PB ports interrupt PB6~0, in in put mode, co uld be o ptioned as external interrupt source by setting PBINT (0 0H.2) = 1. When the interrupt enabled and external signal changed from high to low, the PB port interrupt will take into action and its interrupt vector is $3FF6H and $3FF7H. A falling edge signal at PB ports will wake up CPU from HALT or STOP mode. When PB port interrupt is enabled (PBINT=1), CPU will wake up from HALT or STOP mode, and serve PB port interrupt first and then execute next instru ction. If PB port interrupt is disabl ed, CPU will just be waked up and then execute next instru ction only. User should check which PB port the falling edge sign al comes from by PBF control register. If the falling edge is from PB0, the PBF.0 will be set to “1” by hardware. These flags could be cleared by software. Address 02H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 NAME PBF # PBF6 PBF5 PBF4 PBF3 PBF2 PBF1 PBF0 Read or Write # R/W R/W R/W R/W R/W R/W R/W Default Value # 0 0 0 0 0 0 0 Timer0 Timer0 is an 8-bit dow n cou nt t imer. I ts clo ck source comes f rom CP U ma in-oscillator ( FOSC) o r ExCLK/PB3, which is liste d in figure 4-3. User can preset timer0 counter by setting dat a into timer0 preload buffer T0BF(04H). The data read from T0BF(04H) will be the current count of timer0. Timer0 will down count by every input clock whe n T0EN=1. When timer0 down count from 00H to FFH, T0F will be set to “1” and if T0INT =1, the timer0 interrupt will occur. Timer0 will automatically reload data from T0BF/0 4H (time r0 p reset buf fer). Therefore, user can preset timer0 ne w dat a into T0BF(04H) before timer0 underflow and cause different interrupt time duties. That is, tim er0 data will be loaded from T0BF buffer after T0EN bit is set as “1” or timer0 underflows.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Address 04H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name T0BF 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Read or Write R/W R/W R/W R/W R/W R/W R/W R/W Address 05H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name T0C T0EN T0F T0CK # # Timer0 pre-scaler Read or Write R/W R/W R/W # # R/W R/W R/W Note: *T0EN : timer0 enable flag T0EN = 1, load T0BF cont ent (preload buffer data) into timer0 an d enable timer0 start to down count. T0EN = 0, stop timer0 counting. Use r can get timer0 dat a by reading T0B F registe r. (L DA T0BF) * when T0EN=0, write data to T0BF(04H), data will be directly passed to timer0 counter. T0F : timer0 underflow flag T0F = 1, timer0 underflow; T0F = 0, timer0 not underflow. *T0CK : timer0 clock source option bit T0CK = 1, clock source from ExCLK/PB3 pin. User can set T0CK=1, ExCLK/PB3 is optioned as external clock input pin t hat con nect to T imer0. Before this, u ser sh ould set PBIO.3=1 an d PBPH.3 internal pull-up resistor could be enabled or disabled. T0CK = 0, clock source from Fosc. *There is no default data with T0CK bit, user should preset this bit after power on reset. bit2 bit1 bit0 Timer0 pre-scaler(FCLK0= ) 0 0 0 FOSC/1 0 0 1 FOSC/2 0 1 0 FOSC/4 0 1 1 FOSC/8 1 # # FOSC/16

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Note: *Bit2~0 are timer0 clo ck s ource sel ection bits. They must follo w the setting listed b elow. If the bit2=1, it would be divided by 16 while bit1 and bit0 could be any data. When T0CK=1, don’t care bit2~0 data. Figure_C Timer1 Address 06H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name T1BF0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Read or Write R/W R/W R/W R/W R/W R/W R/W R/W Address 07H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name T1BF1 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Read or Write R/W R/W R/W R/W R/W R/W R/W R/W Timer1 is a 16-bit down count timer. T1BF0(06H)/low byte and T1BF1(07H)/high byte are timer1 preload buffer. Timer1 clock source could come from CPU m ain oscillator (Fosc), refer to figure_D. Timer1 can work in two kinds of operating mode. One mode is normal 16-bit timer/counter mode and the other one is specially designed for different interrupt time period. Figure_D

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Timer/counter mode If T1C.4 (08H.4)=PWM1=0, timer1 works as 16-bit timer/counter mode, register timer1 will down count by every input clock when timer1 turns on by T1EN=1. When timer1 is down count from 0000H to FFFFH, T1F bit will be set to “1”. At the same time, if T1 INT=1, the timer1 interrupt occurs. T imer1 will automatically reload data from preload buffer T1BF0(06H) and T1BF1(07H). Therefore, user can preset T1BF0(06H) and T1BF1(07H) buf fer dat a before dif ferent interrupt time duties cau sed by timer1 underflow. It means that timer1 data will be loaded from T1BF0(06H) and T1BF1(07H) buffer after T1EN bit is set as “1” or timer1 underflow. Address 08H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name T1C T1EN T1F T1CK PWM # \`Timer1 pre-scaler Read or Write W R/W R/W W # W W W Note: *T1EN : timer1 enable flag T1EN = 1, enable timer1 start to down count; T1EN = 0, stop timer1 d own co unt. (when T1EN=0 and write dat a into T1 BF0(06H) and T1BF1(07H) , the data will be directly passed to timer1 counter.) *T1F : timer1 underflow flag T1F = 1, timer1 underflow; T1F = 0, timer1 not underflow. Bit2~bit0 are timer1 clock source selection bits. It must follow the setting as below. bit2 bit1 bit0 Timer1 pre-scaler (FCLK1= ) 0 0 0 FOSC/1 0 0 1 FOSC/2 0 1 0 FOSC/4 0 1 1 FOSC/8 1 # # FOSC/16

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com PWM Mode /16 T1INT Fosc T1EN Timer1 T1BF0(06H) T1BF1(07H) FCLK1 SELECTOR Timer1 interrupt (PWM=1) PB3/TMR T1CK Set T1C.4=1(PWM=1), Timer-1 will wo rk in PWM m ode. User can preset T1BF0 and T1BF 1. Timer1 interrupt will have two kinds of time duties based on T1BF0 and T1BF1 data. I/O ports PA ports (PA6 ~ PA0) are 8-bits I/O ports. System can either output data by writing dat a into PA(10H) ports or read data from input mode by reading PA(10H) ports. When PA ports are set in output mode, it can be optioned by software as CMOS or NMOS output. Set in input mode, PA ports can be optioned as internal pull up or input with floating status. Also, PA6~0 could be optioned as A/D converter analog signal input pins. Please refer to A/D Converter section. Address 10H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PA # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 PAIO register: control PA port either as input mode or output mode. PAIO register can be set partially bits in input mode and partial bits in output mode. Address 11H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PAIO # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 1 1 1 1 1 1 1 Note: *PAIO.n = 1, set as input mode. (Please be noted that PAIO.0 default data is “0”.) PAIO.n = 0, set as output mode. That n = 6 ~ 0.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com PACN register: control output mode as CMOS or NMOS output. Address 12H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PACN # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 0 0 0 0 0 0 0 Note: *PACN.n = 1, set as CMOS output; PACN.n = 0, set as NMOS output. That n = 6 ~ 0. PAPH register: enable/disable PA ports internal pull high when PA port is set as input mode. Address 13H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PAPH # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 0 0 0 0 0 0 0 Note: *PAPH.n = 1, internal pull high resister enable; PAPH.n = 0, internal pull high resister disable, where n = 6 ~ 0. PB ports PB ports (PB6 ~ PB0) are 8-bit I/O ports. User can either output data by writing data into PB(14H) ports. Or read data at input mode by reading PB(14H) ports. Address 14H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PB # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 PBR register Address 15H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PBR # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 0 0 0 0 0 0 0

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Note: *PBR.n = 1, enable HALT or STOP mode released by input falling edge signal; PBR.n = 0, disable HALT or STOP mode release, where n = 6 ~ 0. *Setting PBR.n register as “1” can enable to release HALT or STOP mode by PB port input signa l from high to low. After HALT or STOP mode released, the oscillator will oscillate at the same time. If PBINT=1, PB-interrupt subroutin e will start. If PBINT =0, the program counter will execute the next instruction after HALT or STOP. PBIO register: control PB port as input or output mode. Also, it can be set as p artial bits in input mode and partial bits in output mode. Address 16H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PBIO # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 1 1 1 1 1 1 1 Note: *PBIO.n = 1, set as input mode; PBIO.n = 0, set as output mode.; That n =6 ~0. PBMD register Address 17H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name PBMD # 1/0 1/0 1/0 1/0 1/0 1/0 1/0 Default Value # 0 0 0 0 0 0 0 Note: *When PBIO corre sponding bit is o ptioned a s o utput mode (PB IO.n=0), PBMD.n will work a s CMOS or NMOS option bit. (PBIO.n=0, PB.n works as output mode) PBMD.n = 0, PB.n is NMOS output. PBMD.n = 1, PB.n is CMOS output. *When PBIO correspon ding bit is optioned a s in put mode (PBIO.n=1 ), PBMD.n will wo rk a s internal pull-up resistor enable bit or disable bit. (PBIO.n=1, PB.n works as input mode) PBMD.n = 0, disable PB.n internal pull-up resistor, PBMD.n = 1, enable PB.n internal pull-up resistor. That n = 6 ~ 0.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com A/D Converter The EU101x is built-in with 4 channels of 10-bit Analog to Digital Converter. The analog signal input pins are shared from PA3~0. These options are controlled by ADIN(09H) and ADCC(0AH) registers. ADIN register: PA3~PA0 ports could be optioned as A/D converter analog signal input pins. User can select partial or all PA3~PA0 pins as analog input pins by ADIN3~0 for corresponding bit. Address 09H bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name ADIN # # # COMP ADIN3 ADIN2 ADIN1 ADIN0 Read or Write # # # W W W W W Default Value # # # 0 0 0 0 0 Note: *ADIN3~0: option of PA3~PA0 as analog signal input pin. *ADINn = 1, set PA3~0 pin as analog signal input pin; ADINn = 0, set PA3~0 as normal input/output pin, where n=3~0. * When PA3~0 is set as analog input pin(s), PA ports control register will be inactive to a ccess. That is, when PA port is set as analog signal input pin, all PA I/O port functions will be blocked out. Note: *COMP = 0, disable internal comparator; COMP = 1, enable internal comparator. When COMP=1, PA4 and PA5 will act as comparator input pin, and then comparator output pin will be connected to PB4 internally. ADCC register Address 0AH bit7 bit6 bit5 bit4 Bit3 bit2 bit1 bit0 Name ADCC ADEN STC # ADS1 ADS0 # # # Read or Write W R/W # W W # # #

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Note: *ADCC.7(ADEN) : enable A/D converter ADCC.7 = 1, turn on or enable A/D converter; ADCC.7 = 0, turn off or disable A/D converter. *ADCC.6(STC) : A/D co nverter finish ed interru pt flag, write a high to this bit to st art ADC conversion. ADCC.6 = 1, A/D converter translation is completed; ADCC.6 = 0, A/D converter is in BUSY or standby status. ADS1/bit4 ADS0/bit3 Select pin 0 0 PA0 0 1 PA1 1 0 PA2 1 1 PA3 Note: * ADCC.4~3(ADS1~0) : select acting analog channel input * User can preset A/D converter sampling rate from ADCC.2~0 control register. The sampling clock comes from internal ring oscillator. The reference sampling rate setting is listed below. A/D configuration and control block

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Note: *User should select PA3~0 ports as analog signal input pin(s) by setting ADIN.3~0. Set ADCC.7 (ADEN) = 1 to enable A/D converte r circuit, and then select input pin fr om ADCC.4~3 (ADS1/ADS0). The converter clock comes from FADC. After system completed an A/D converting cycle, ADC interrupt t akes into ac tion (if ADINT= 1). Use r can re ad the co nverting dat a from ADRH and ADRL registers. [ADRH + ADRL] are totally 14 bits in 2 bytes control registers. These 2 bytes of register will keep the last A/D convert data. When A/D conversion are all completed, user should turn off A/D converter by setting ADCC.7 (ADEN) =0. ADSP2~0 control register: A/D Converter sampling rate setting Address 0BH bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name ADRL Ad1 Ad0 # # # ADSP2 ADSP1 ADSP0 Read or Write R R # # # W W W ADC sampling rate ADSP2 ADSP1 ADSP0

8 Hz 0 0 0

16 Hz 0 0 1

32 Hz 0 1 0

64 Hz 0 1 1

128 Hz 1 0 0

256 Hz 1 0 1

512 Hz 1 1 0

1024 Hz 1 1 1

Address 0CH bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Name ADRH Ad9 Ad8 Ad7 Ad6 Ad5 Ad4 Ad3 Ad2 Read or Write R R R R R R R R

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Low Voltage Reset Circuit ( or Power Failed Detector ) 2.4V The EU101x is built in Lo w-Voltage-Reset circuit to detect an d against power noise. Th e low volt age reset will be active when Vdd is dropped lower than 2.4V. Note that, in ST OP mode, low v oltage reset function will be disabled by hardware. The low volt age reset function will be active when CPU is not working in STOP mode. HALT mode The EU101x will enter HALT mode by setting an instruction as “STA $0EH”. The data in ACC could be any data am ong # 00H~#FFH. In HALT mode, CPU core will suspend and j ust hol d at t hat program counter. All the internal ci rcuit will suspend, except system clock and timer/counter kept running. HALT mode could be released from timer underflow or PB ports input signal from high to low. When halt mode is released, program counter will execute next instruction after “STA $0EH”. If timer interrupt is enabled, it serves timer interrupt first, and then e xecute next instruction after “STA $0EH”. When HALT mode is released by PB ports falling-edge, program counter execute next instruction. If PB interru pt is enabled, PBINT =1, PB interrupt subroutine will be activated. Address 0EH bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 STOP mode When executed “STA $0FH”, whole chip will enter stop mode. The dat a in A CC could be any dat a of #00H~#FFH. In stop mode, system clock and timer/counter will be stopped. At this condition, operating current could be down less than 1µA. Only input signal from high to low of PB ports can release the chip from STOP mode. When STOP mode is rele ased by PB/PD port s, program counter will execute next instruction of “STA $0FH”. If PB interrupt is enabled, PBINT=1, PB interrupt subroutine will be activated first. Address 0FH bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 MCU system clock This CPU is built-in internal RC oscillator whose frequency is 4MHz. The tolerance of the freque ncy is within 3%.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com Package Description SOP-10L DIMENSIONS Millimeters REF. Min Max A 5.80 6.20 B 4.80 5.00 C 3.80 4.00 D 0° 8° E 0.40 0.90 F 0.19 0.25 M 0.10 0.25 H 0.30 0.44 L 1.35 1.75 J 0.375 REF. K 45° G 1.00 TYP.

eorex (Preliminary) EU1010 / EU1011 Aug.2007 www.eorex.com SOP-14L A H e B C M L D J K F E 0.25 DIMENSIONS Millimeters REF. Min Max A 5.80 6.20 B 4.80 5.00 C 3.80 4.00 D 0° 8° E 0.40 0.90 F 0.19 0.25 M 0.10 0.25 H 0.20 0.30 L 1.35 1.75 J 0.375 REF. K 45° e 0.65 REF.