IZ7008 8-BIT MICROCONTROLLER WITH LCD DRIVER IZ7008 is one-chip 8-bit microcontroller made by CMOS technology. The microcontroller is multi-purpose and can be used in electronic watch, data acquisition systems, control systems. Low consumption power and full static CMOS logic allow to use MC in independent systems with limited energy consumption. Technical characteristics of IZ7008: ALU bit capacity RAM size ROM size RISC commands system Stack depth Interrupter Maximum number of the controlled LCD segments – 8 bits – 40 bytes – 1,5 К of commands (16–bit instructions) – 30 types of commands – 7 levels – from 8- inputs and three timers – 128 (32 LCD control drivers at multiplex levels 1/2,1/3,1/4) Operation temperature range -20°С to +70 °С. Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 1 E-mail: [email protected] URL: www.bms.by IZ7008 Electrical parameters at 1.5V supply Absolute maximum and maximum ratings Parameter, unit Symbol Primary supply voltage from voltage source, V Secondary supply voltage, V High input voltage, V Low input voltage, V UCC1 UCC2 UIH UIL Maximum ratings Value min max 1,2 1,8 2UCC1-0,3 UCC1-0,3 Uss Absolute maximum ratings Value min max -0,3 2,0 2UCC1 UCC1 Uss+0,3 -0,3 -0,3 -0,3 4,0 UCC1+0,3 UCC1+0,3 Cycle of command execution is not more than 150 mks at supply voltage 1.2V, and 100 mks at supply voltage 1.5V. IC operation is not guaranteed under absolute maximum conditions, it's guaranteed under maximum conditions. Electrical parameters ( Та = 25°С ) Parameter, unit Low output voltage on alarmclock output, V High output voltage on alarmclock output, V Dynamic consumption current in shutdown conditions, mkA Low input current on buttons inputs, mkA Oscillator start-up voltage, V Symbol UOL UOH IСС0 IIL Uosc Test conditions UСС1=1.2V IOL=200mkA UСС1=1.2V IOH=-200mkA UСС1=1,5V UСС1=1,8V UIL=0,3V Control time 3 sec - Value min max 0.2 Note 1.0 - 1,3 - 10 - 1,35 1,2 2 Oscillator supression voltage, V Uosp 1,2 2 Notes: 1 Dynamic consumption current should be measured without load. 2 The parameters are controlled with oscillator crystal with oscillator nominal frequency 32768 Hz at capacitance values on oscillator input OSCI not more than 6pF, on output OSCO - not more than 3pF. 3 Nominal value of integrated capacitances on outputs OSCI and OSCO - 12pF and 12pF(crystal load capacity CL=6 pF). Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 2 E-mail: [email protected] URL: www.bms.by IZ7008 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 3 E-mail: [email protected] URL: www.bms.by IZ7008 MICROCONTROLLER STRUCTURE ROM Internal ROM contains 1536 commands (16–bit instructions) at the addresses from 0x000 to 0x5FF. ROM area in the range from 0x000 to 0x0FF (256 commands) and from 0x3FE to 0x4A8 (178 commands) is reserved for interruptions processing programs, system reset and microcontroller testing. User's program if mainly located at the addresses from 0x100 to 0x3FD and from 0x4AA to 0x5FF (1110 commands). MICROCONTROLLER REGISTER RAM RAM is organized as banks by 8 registers and contains internal function registers, data RAM, special registers and data memory, directly displayed on LCD. Microcontroller internal function registers are in the address area from 0x000 to 0x007 (bank 00). Their purpose: R0, R1, R2, R3 - accumulators; R4, R5, R6 - base address registers BL, BM, BH of storing number of addressed bank; R7- register of microcontroller state (RGS). Internal data RAM (RAM) of 40 bytes is in the address space from 0x008 to 0x02F (banks 01, 02, 03, 04, 05). RAM registers addressing. RO-R3, R4 (or BL), R5 (or BM), R6 (or BH), R8-R1F - names of RAM registers in the commands at direct addressing. For registers RO-R7 only direct addressing is possible. For registers R8-RF (or L0-L7), R10-R17 (or M0-M7), R18-R1F (or H0-H7) direct addressing is possible only if bit 0 in state register RGS (R7) is reset into 0, i.e. (R7_0)=0. BL, BM, BH – base address registers (R4, R5, R6 respectively). At index register addressing the contents of base registers defines data bank number. At index addressing of RAM registers the contents of base registers defines data bank number. L0-L7, M0-M7, H0-H7 – names of RAM registers in commands at index addressing. For names of registers LO-L7 data bank number is defined by contents of base register BL, for names of registers MO-M7 data bank number is defined by contents of base register BM, for names of registers HO-H7 data bank number is defined by contents of base register BH. To calculate physical address, the contents of base register indicated in the command should be multiplied by 8 and a number from 0 to 7 should be added respectively. For example: when recording in the command «M5» the physical address is equal to ((BM)*8+5). Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 4 E-mail: [email protected] URL: www.bms.by IZ7008 Allocation of RAM and internal function registers addresses Bank 00 01 02 03 04 05 N of register in the bank 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Address 0x000 0x001 0x002 0x003 0x004 0x005 0x006 0x007 0x008 0x009 0x00A 0x00B 0x00C 0x00D 0x00E 0x00F 0x010 0x011 0x012 0x013 0x014 0x015 0x016 0x017 0x018 0x019 0x01A 0x01B 0x01C 0x01D 0x01E 0x01F 0x020 0x021 0x022 0x023 0x024 0x025 0x026 0x027 0x028 0x029 0x02A 0x02B 0x02C 0x02D 0x02E 0x02F Symbol at direct addressing R0 R1 R2 R3 R4 or BL R5 or BM R6 or BH R7 R8 или L0 R9 или L1 RA или L2 RB или L3 RC или L4 RD или L5 RE или L6 RF или L7 R10 илиM0 M7 R11 илиM1 R12 илиM2 R13 илиM3 R14 илиM4 R15 илиM5 R16 илиM6 R17 илиM7 R18 илиH0 R19 илиH1 R1A илиH2 R1B илиH3 R1C илиH4 R1D илиH5 R1E илиH6 R1F илиH7 - Symbol at index addressing L0,M0,H0 L1,M1,H1 L2,M2,H2 L3,M3,H3 L4,M4,H4 L5,M5,H5 L6,M6,H6 L7,M7,H7 L0,M0,H0 L1,M1,H1 L2,M2,H2 L3,M3,H3 L4,M4,H4 L5,M5,H5 L6,M6,H6 L7,M7,H7 L0,M0,H0 L1,M1,H1 L2,M2,H2 L3,M3,H3 L4,M4,H4 L5,M5,H5 L6,M6,H6 L7,M7,H7 L0,M0,H0 L1,M1,H1 L2,M2,H2 L3,M3,H3 L4,M4,H4 L5,M5,H5 L6,M6,H6 L7,M7,H7 L0,M0,H0 L1,M1,H1 L2,M2,H2 L3,M3,H3 L4,M4,H4 L5,M5,H5 L6,M6,H6 L7,M7,H7 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 5 E-mail: [email protected] URL: www.bms.by Description Accumulator Accumulator Accumulator Accumulator Base register BL Base register BM Base register BH State register Data RAM Data RAM Data RAM Data RAM Data RAM IZ7008 Index addressing is possible for all registers (except RO-R7) at setting bit 0 into 1 in the state register RGS (R7), i.e. at (R7_0)=1. State register RGS (register R7 with address 0x007). Bit Symbol Description and function State at supply switch. R7_7 MFR1 1 – masking of setting into 1 of interruption request flag 0 FR1 on timer 1 cleaning R7_6 FR3 Interruption request flag from timer 3 0 (set into 1 on timer cleaning front) R7_5 FR2 Interruption request flag from timer 2 0 (set into 1 on timer cleaning front) R7_4 FR1 Interruption request flag from timer 1 0 (set into 1 on timer cleaning front) R7_3 SVD 1 – at supply voltage less than reference 0 R7_2 SVD/LAMP 0- switching-off supply voltage detector 0 ON 1- switching-on supply voltage detector 0 R7_1 AL_EN 0 –sound inhibit (fixing output OUT_AL into 0) 1 – applying on output OUT_AL frequency 4096 Hz under tune off mode or note frequency in tune foramtion mode R7_0 INDEX 0 –RAM index addressing inhibit, enable direct addressing of registers R8-R1F 1 – enable RAM index addressing, inhibit direct addressing of registers R8-R1F 0 Memory of data, displayed on LCD of maximum size 128 bits is located in address space from 0x7E8 to 0x7F7 (banks FD, FE). For LCD memory only index addressing is possible. Configuration of LCD memory at multiplexing level at 1/4 is shown in the figure Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 6 E-mail: [email protected] URL: www.bms.by IZ7008 Bank № Addres s 0x7E8 0x7E9 0x7EA 0x7EB 0x7EC 0x7ED 0x7EE 0x7EF 0x7E0 0x7E1 0x7E2 0x7E3 0x7E4 0x7E5 0x7E6 0x7E7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 FD FE Bit_7 Bit_6 Bit_5 Bit_4 Bit_3 Bit_2 Bit_1 Bit_0 COM SEG02 SEG02 SEG02 SEG02 SEG01 SEG01 SEG01 SEG01 SEG31 SEG31 SEG31 SEG31 SEG32 SEG32 SEG32 SEG32 SEG04 SEG04 SEG04 SEG04 SEG03 SEG03 SEG03 SEG03 SEG29 SEG29 SEG29 SEG29 SEG30 SEG30 SEG30 SEG30 SEG06 SEG06 SEG06 SEG06 SEG05 SEG05 SEG05 SEG05 SEG27 SEG27 SEG27 SEG27 SEG28 SEG28 SEG28 SEG28 SEG08 SEG08 SEG08 SEG08 SEG07 SEG07 SEG07 SEG07 SEG25 SEG25 SEG25 SEG25 SEG26 SEG26 SEG26 SEG26 SEG10 SEG10 SEG10 SEG10 SEG09 SEG09 SEG09 SEG09 SEG23 SEG23 SEG23 SEG23 SEG24 SEG24 SEG24 SEG24 SEG12 SEG12 SEG12 SEG12 SEG11 SEG11 SEG11 SEG11 SEG21 SEG21 SEG21 SEG21 SEG22 SEG22 SEG22 SEG22 SEG14 SEG14 SEG14 SEG14 SEG13 SEG13 SEG13 SEG13 SEG19 SEG19 SEG19 SEG19 SEG20 SEG20 SEG20 SEG20 SEG16 SEG16 SEG16 SEG16 SEG15 SEG15 SEG15 SEG15 SEG17 SEG17 SEG17 SEG17 SEG18 SEG18 SEG18 SEG18 Com 1 Com 2 Com 3 Com 4 Com 1 Com 2 Com 3 Com 4 Com 1 Com 2 Com 3 Com 4 Com 1 Com 2 Com 3 Com 4 When multiplex level is 1/3 registers with addresses 0x7EB , 0x7EF, 0x7F3, 0x7F7 can be used as data memory, and when multiplex level is 1/2 additionally as data memory can be used the registers with addresses 0x7EA , 0x7E, 0x7F2, 0x7F6. TIMERS UNIT AND PORT System registers of timers unit have the addresses 0x7D8- 0x7DD (bank FB), of inputoutput unit have the addresses 0x7E0- 0x7E4 (bank FC). For system registers only index addressing is possible. Bank N Addres s 0 0x7D8 FB FC 1 2 3 4 5 0 0x7D9 0x7DA 0x7DB 0x7DC 0x7DB 0x7E0 1 0x7E1 2 0x7E2 3 0x7E3 4 0x7E4 Description Timers control register Timer Т1 Timer Т2 Timer Т3 Setting register Т2 Setting register Т3 Register settings PORT 1-4 Register Settings PORT 5-8 Register of flags EN/CLR 1-interruption enable 0-interruption request reset Register (indicator) of requests for interruption from bits PORT Register (indicator) of input/output port bits state Bit_7 Bit_6 IN1 IN0 T3 T3 T1_7 T1_6 T2_7 T2_6 T3_7 T3_6 KT2_7 KT2_6 KT3_7 KT3_6 M1 M0 Setting PORT4 M1 M0 Setting PORT8 EN/CL EN/CL IR8 IR7 IR8 IR7 Bit_5 Bit_4 IN1 IN0 T2 T2 T1_5 T1_4 T2_5 T2_4 T3_5 T3_4 KT2_5 KT2_4 KT3_5 KT3_4 M1 M0 Setting PORT3 M1 M0 Setting PORT7 EN/CL EN/CL IR6 IR5 IR6 IR5 Bit_3 Bit_2 CLR CLR T3 T2 T1_3 T1_2 T2_3 T2_2 T3_3 T3_2 KT2_3 KT2_2 KT3_3 KT3_2 M1 M0 Setting PORT2 M1 M0 Setting PORT6 EN/CL EN/CL IR4 IR3 IR4 IR3 Bit_1 Bit_0 EN EN T3 T2 T1_1 T1_0 T2_1 T2_0 T3_1 T3_0 KT2_1 KT2_0 KT3_1 KT3_0 M1 M0 Setting PORT1 M1 M0 Setting PORT5 EN/CL EN/CL IR2 IR1 IR2 IR1 W/R W/R R R R W/R W/R W/R W/R W/R R R НЕ НЕ НЕ НЕ НЕ НЕ НЕ НЕ PORT8 PORT7 PORT6 PORT5 PORT4 PORT3 PORT2 PORT1 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 7 E-mail: [email protected] URL: www.bms.by IZ7008 ORGANISATION OF INTERRUPTIONS. The interruptions may be initiated: а) by external devices from bits РORT1-PORT8; б) by internal devices (timers T1,T2,T3). The initial addresses of subprograms of processing interruptions as their priority decrease are shown in the table. Address 0x000 0x08F 0x09F 0x0AF 0x0CF 0x0BF 0x0DF 0x0EF 0x0FF Source of interruption Supply switching on Timers 1, 2 and 3 simultaneously Timers 2 and 3 simultaneously Timers 1 and 3 simultaneously Timers 1 and 2 simultaneously Timer 3 Timer 2 Timer 1 Input / output port Note Simultaneously with timers there may be initiated interruption from input port which should be taken into consideration in interrupt service routine Interruptions are executed after complete execution of the command of main program when there is a request. Interruptions are inhibited after the jump instructions: JMP, JMI and JC, JNC, JZ, JNZ when executing jump conditions, commands JSR of return from subprogram. Interruptions from port bits may be initiated if the corresponding bit of interrupt enabling register in register RFC_2 is program-set into 1. At the same time, reading the register RFC_3 (read-only) allows to display from which port bits interrupt requests are called. Interrupt request from any port bit can be reset after executing interrupt service routine by recording 0 into the corresponding bit in the register RFC_2 with the following setting of this bit into 1 for enabling thhe further inmterrupt request. Each port bit can be individually tuned by presetting bits M1, M0 in the registers RFC_3 and RFC_3 with the following possible options of internal states. Bits M1 0 M0 0 0 1 1 1 0 1 Internal port state OUT ZL (high-impedance 0) OUT L ( “strong” zero) IN RL (resistive 0) IN RH (resistive 1) Interrupts Notes Interrupts from external actions inhibited By mask «programming» internal level ZL (high-impedance 0) can be disconnected Interrupts from external actions enabled Interrupts evocation under high level Interrupts evocation under low level Mask «programming» can disconnect internal level (ZL, RL,RH) with possible replacement of them by external resistors. Reading of the register R FC_4 (read-only) allows to display state of all port bits given either, one or another external action. External actions may be the following: H – «strong» 1 HR – «weak» 1 L – «strong» 0 LR – «weak» 0 Z – high impedance state State of port bits under all possible combinations of external actions and internal states are shown in the table Internal state IN RH IN RL H 1 1 HR 1 1 External action L 0 0 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 8 E-mail: [email protected] URL: www.bms.by LR 0 0 Z 1 0 IZ7008 OUT L OUT ZL 1 1 0 1 0 0 0 0 0 0 It's assumed that internal state and external actions are levelized stronger as for external actions. MC includes three timers-counters T1, T2, T3. All the timers are binary octal counters with weight 128, 64, 32, 16, 8, 4, 2, 1. Timer Т1 (register RFB_1 with address 0x7D9 ) Timer Т1 is 8-bit counter with division factor 256 . The frequency of quartz oscillator 32768 Hz is applied on the counter input. The counter is for reading only. Data read out on data bus is shown below. D7 T1_7 128 Hz D6 T1_6 256 Hz D5 T1_5 512 Hz D4 T1_4 1024 Hz D3 T1_3 2048 Hz D2 T1_2 4096 Hz D1 T1_1 8192 Hz D0 T1_0 16384 Hz When reading the counter, the problems related to the possibility of reading changeable data, may occur. For the correct reading, if necessary, reading of data can be done several times in succession with the following comparison of the results. At the reset when switching on the supply, timer T1 is cleared (the counter is reset into zero state). After execution of HLT command timer counter is reset and fixed in zero state (in zero state input OCSI is also fixed) until the next program starts (from external actions on IN_PORT). At ripple-through carry of timer T1 which happens with period of 1/128 sec, FrT1 "short" pulse is formed, it sets interrupt request flag FR1 in the state register R7 into 1 (bit 4 of the state register R7), if masking bit of timer MFR1 (bit 7 of the state register R7) is reset into 0. When setting masking bit of oftimer MFR1 into 1 state of flag FR1 doesn't change, but its setting during the next ripple-through carry on timer counter T1 is inhibited. There can be done reprogramming of T1 (by mask "programming") ensuring setting of FR1 flag with periods of 1/32 sec (at LCD multiplex 1/4) or 6/256 sec (at LCD multiplex 1/3). The data read-out on data bus can be the following: D7 D6 D5 D4 D3 D2 D1 D0 T1_7 T1_6 T1_5 T1_4 T1_3 T1_2 T1_1 T1_0 32 Hz 256 Hz 512 Hz 1024 Hz 2048 Hz 4096 Hz 8192 Hz 16384 Hz ( 64 Hz) or: D7 D6 D5 D4 D3 D2 D1 D0 T1_7 T1_6 T1_5 T1_4 T1_3 T1_2 T1_1 T1_0 256/6 Hz 256 Hz 512 Hz 1024 Hz 2048 Hz 4096 Hz 8192 Hz 16384 Hz Timers Т2, Т3 (registers RFB2, RFB3 with addresses 0x7DA and 0x7DB) Timers Т2, Т3 are 8-bit counters with programmable division factor from setting registers КТ2 (register RFB4 with address 0x7DC), КТ3 (register RFB5 with address 0x7DE) . Division factors are programmed from maximum value 256 (when recording 0x00 into registers КТ2, КТ3) to the value equal to the contents of registers КТ2, КТ3 (from 0х01 to 0хFF except mode of notes frequency forming in timer T2). The counters are for reading only. When reading count register the problems related to the possibility of reading changeable data may occur. For the correct reading, if necessary, reading of the data can be done several times in succession with the following comparing of the results. When the code equal to the contents of registers KT2, KT3 (or at ripple-through carry when recording 0x00 into registers KT2, KT3), timers T2, T3 are cleared (except mode of notes freKorzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 9 E-mail: [email protected] URL: www.bms.by IZ7008 quency forming in timer 2) and "short" pulses FrT2, FrT3 setting respectively interrupt request flag FR2 into 1 (bit 5 of the state register R7) and Interrupt request flag FR3 in the states register R7 (bit 6 of the state register R7) are formed. Flag FR2 is not set into mode of notes frequency forming in timer T2 and in mode when "short" pulse FrT2 of timer T2 clearing is input signal of timer T3. The timers are controlled by timers control register RFBO (address 0x7D8) Description of RFBO control register bits: Bit Symbol RFBO_7 RFBO_6 RFBO_5 RFBO_4 RFBO_3 Description IN1-T3 IN0-T3 IN1-T2 IN0-T2 CLR-T3 RFBO_2 CLR-T2 RFBO_1 EN-T3 RFBO_0 EN-T2 After reset 7,6 bits choose source of timer T3 input signal 00 – signal of ripple-through carry of timer T1 («short» pulse FrT1) 01 – output Т1_3 of timer Т1 (2048Hz) 10 – signal of clearing timer Т2 («short» pulse FrT2), in this mode setting of flag FR2 is inhibited 11 – external signal IN6 (output 06 when disconnecting SEG 01 by mask) 5,4 bits choose source of timer T2 input signal 00 – signal of ripple-through carry of timer Т1 («short» pulse FrT1) 01 – output Т1_3 of timer Т1 (2048Hz) 10 – signal 65565 Hz (notes frequency forming mode), in this mode setting of FR2 flag is inhibited 11 –external signal IN6, IN7, IN8 (from outputs 06, 07 or 08 when disconnecting corresponding SEG 01, SEG 02, SEG 03 by mask) 1-clearing (reset and zero code fixation) of T3 timer counter, reset of FR3 flag (except mode, when T3 is clocked by FrТ2 signal; in this mode RFBO_3 and RFBO_1 shoose source of input signal Т2: 00-IN7, 01-IN6 ,1X –IN8) 1-clearing (reset and zero code fixation) of T2 timer counter, reset of FR2 flag and T3 timer with reset of FR3 flag (when T3 is clocked by FrТ2 signal) 1/0- (count enable) /(count inhibit) Т3 (except mode when Т3 is clocked by FrТ2 signal; in this mode RFBO_3 and RFBO_1 shoose source of input signal Т2: 00-IN7, 01-IN6 ,1X –IN8)) 1/0- (count enable) / (count inhibit) Т2 (always) and (count enable) / (count inhibit) Т3 (when T3 is clocked by FrТ2 signal ) Timer Т2 can be used in the mode of notes frequency forming for tunes synthesis. The mode is selected when recording code «10» into 5,4 bits of RFBO control register (IN1-T2=1, IN0T2 = 0 ) and timer count enabling. RFBO_7 RFBO_6 RFBO_5 RFBO_4 RFBO_3 RFBO_2 RFBO_1 RFBO_0 IN1-T3 IN0-T3 IN1-T2 IN0-T2 CLR-T3 CLR-T2 EN-T3 EN-T2 X X 1 0 X 0 X 1 In this mode setting of interrupt request flag FR2 in the state register R7 is inhibited. Signal of 65565 Hz is applied on counter input.. Notes frequency is formed on counter output (output T2_7) and can be applied on external output "AL" at the set into 1 flag AL_EN in the state register R7. Seven lower counter bits count in the beginning of zero semi-period of note. After reaching the code equal to the contents of 7 lower bits of KT2 register, 7 lower bits of the counter are cleared but the highest bit is switched into logic 1 and then the note second (unit) semiperiod is counted in the same way. As a result on output the frequency of 65565Hz/2N is formed, where N is number from 2 to 127, set in 7 lower bits of register KT2. To form notes period with accuracy to one period of input frequency 65565 Hz the following possibility is forseen. When setting in register KT2 the higher bit of KT register in logic 1 when counting the second (unit) semi-period at code Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 10 E-mail: [email protected] URL: www.bms.by 0 0 0 0 0 0 0 0 IZ7008 reaching, equal to the contents of 7 lower bits of register KT2, 1-6 bits of timer are set into 0, but the lowest bit is set into 1 and, thus, the following zero semi-period of note is "cut" for one period of input signal. In this case the frequency equal to 65565 Hz / (2N-1) can be formed. Formed notes frequency (output T2_7) can be supplied on external output "AL" at set into 1 flag AL_EN in the state register R7. On output "AL" output T2_7 is also applied (at set into 1 flag AL_EN) at the following state of timers control register RFBO: RFBO_7 RFBO_6 RFBO_5 RFBO_4 RFBO_3 RFBO_2 RFBO_1 RFBO_0 IN1-T3 IN0-T3 IN1-T2 IN0-T2 CLR-T3 CLR-T2 EN-T3 EN-T2 1 0 1 1 X 0 X 1 In this mode T2 is clocked by external signal (RC-oscillator), Т3 by clearing signal Т2 («short» pulse FrT2) , injection of the signal from output T2_7 on output «AL» is used for testing (measurement of RC-oscillator frequency). Configuration of timers may by the following Contents of register RFB0 00000000 0000C3C2E3E2 0001C3C2E3E2 0100C3C2E3E2 0101C3C2E3E2 0010C3C2E3E2 0110C3C2E3E2 1110C3C2E3E2 1010C3C2E3E2 1000XC32XE32 1001XC32XE32 0011C3C2E3E2 0111C3C2E3E2 1111C3C2E3E2 10110C320 E32 10110C321 E32 10111C32X E32 0(no count) FrT1 2048 Hz FrT1 2048 Hz 65536 Hz 65536 Hz 65536 Hz Interrupt request flag FR2 0 + + + + Set. inhibited Set. inhibited Set. inhibited 0(no count) FrT1 FrT1 2048 Hz 2048 Hz FrT1 2048 Hz IN6 Interrupt request flag FR3 0 + + + + + + + FrT1 2048 Hz 0(no count) 0(no count) 0(no count) IN7 IN6 IN8 Set. inhibited Set. inhibited Set. inhibited Set. inhibited Set. inhibited FrT2 FrT2 FrT1 2048 Hz IN6 FrT2 FrT2 FrT2 + + + + + + + + Input Т2 Input Т3 Note State after system reset Tune mode Inhibited combination E2 , E3 - bits (count enable) /(count inhibit) of timer 2 or 3 E32 bit (count enable) /(count inhibit) of timers 2 and 3 simultaneously С2 , С3 - bits of clearing timer 2 or 3 С32 bit of clearing timers 2 and 3 simultaneously Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 11 E-mail: [email protected] URL: www.bms.by IZ7008 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 12 E-mail: [email protected] URL: www.bms.by IZ7008 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 13 E-mail: [email protected] URL: www.bms.by IZ7008 IZ7008 pins description Contact pad No. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 Symbol GND IN3 OSCO OSCI COM1 SEG1/ IN6 SEG2/ IN7 SEG3/ IN8 SEG4 SEG5 SEG6 SEG7 SEG8 Common output Control input Output for connecting oscillator crystal Input for connecting oscillator crystal Output of LCD common electrode control Output of LCD sign electrode control / Control input* Output of LCD sign electrode control / Control input* Output of LCD sign electrode control / Control input* Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 COM3/ SEG16 P2/ EL/ Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD sign electrode control Output of LCD common electrode control / Output of LCD sign electrode control Voltage transducer output/ Electroluminiscent backlighting control output/ LCD sign electrode ocntrol output/ Output of LCD common electrode control * SEG02/ COM3 23 24 25 26 27 28 29 30 31 Description P1/ IND/ COM3/ SEG16/ SEG01 IN2 IN1 UCC1 AL COM2/ NAL SEG16/ COM2 SEG17 SEG18 Voltage transducer output/ Electroluminiscent backlighting control output/ LCD sign electrode ocntrol output/ Output of LCD common electrode control * LCD sign electrode ocntrol output// LCD sign electrode ocntrol output/* Control input Control input Supply voltage output from voltage source Alarm clock control output LCD common electrode control output/ Alarm clock control Inverse output* LCD sign electrode control output/ LCD common electrode control output* LCD sign electrode control output LCD sign electrode control output Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 14 E-mail: [email protected] URL: www.bms.by IZ7008 Table continued Contact pad No. 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 Symbol Description SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32 COM4/ SEG32 IN5 IN4 LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD sign electrode control output LCD common electrode control output / LCD sign electrode control output * Control input Control input LCD - liquid crystal display * - function to be chosen by coding 42 41 40 39 38 37 36 35 34 33 32 31 43 30 44 29 45 28 46 27 47 26 IZ7008 48 25 01 24 02 23 03 22 04 21 05 20 06 19 07 08 09 10 11 12 13 14 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 15 E-mail: [email protected] URL: www.bms.by 15 16 17 18 IZ7008 Chip size: 3420±30 х 2430±30 mkm. Chip width: 460±20 mkm. Contact pad size 100х100 mkm in «Metallization layer» Contact pad No. Co-ordinates (mkm) X Y 01 106 1068 02 106 03 Contact pad No. Co-ordinates (mkm) X Y 25 3216 1292 891 26 3216 1462 106 721 27 3216 1632 04 106 552 28 3216 1801 05 106 382 29 3216 1971 06 106 212 30 3216 2140 07 419 105 31 2902 2224 08 643 105 32 2678 2224 09 867 105 33 2454 2224 10 1091 105 34 2230 2224 11 1315 105 35 2006 2224 12 1539 105 36 1782 2224 13 1763 105 37 1558 2224 14 1987 105 38 1334 2224 15 2211 105 39 1110 2224 16 2435 105 40 886 2224 17 2659 105 41 662 2224 18 2883 105 42 438 2224 19 3216 275 43 106 2078 20 3216 444 44 106 1908 21 3216 614 45 106 1739 22 3216 784 46 106 1569 23 3216 953 47 106 1400 24 3216 1123 48 106 1230 Korzhenevskogo 12, Minsk, 220064, Republic of Belarus Fax: +375 (17) 278 28 22, Phone: +375 (17) 278 07 11, 277 24 70, 277 24 61, 277 69 16 16 E-mail: [email protected] URL: www.bms.by