Sino Wealth SH79F1640 Manual

Enhanced 8051 microcontroller with 20 channels touch-key input and pwm
Table of Contents

Advertisement

Quick Links

Enhanced 8051 Microcontroller with 20 channels Touch-key input and PWM

1. Features

8 bits micro-controller with Pipe-line structured 8051
compatible instruction set
Flash ROM: 16K Bytes
RAM: internal 256 Bytes, external 1280 Bytes, LCD
RAM 11 Bytes, Touchkey RAM 40 Bytes
EEPROM-Like: build-in 4096 Bytes (code option)
Operation Voltage:
f
= 32.768kHz - 24MHz, V
OSC
Oscillator (code option)
- Crystal oscillator: 32.768kHz
- Crystal oscillator: 2MHZ - 16MHz
- Ceramic oscillator: 2MHZ - 16MHz
- Internal RC oscillator: 24MHz (± 2%)/128K (± 10%)
26 CMOS bi-directional I/O pins (28 Pins)
Built-in pull-up resistor for input pin (Typical value 30kΩ)
Four large current driver I/O
20 channels touch-key input
Two 16-bit timer T3 and T5, one 16-bit timer/counter T4
PCA0 containing two comparison/ capture modules.
Two channels 12-bits PWM timer
TWI (I2C Interface)
Powerful interrupt sources:
- Timer3, 4, 5, PCA0
- INT0-3
- INT4: 8 input
- ADC, EUART, TouchKey
- PWM, SCM, CRC, TWI, LPD, LED
Internal Logic Configuration Module (LCM)

2. General Description

The SH79F1640 is a high performance 8051 compatible micro-controller. Regard to its build-in Pipe-line instruction fetch
structure, that helps the SH79F1640 can perform more fast operation speed and higher calculation performance, if compare
SH79F1640 with standard 8051 at same clock speed.
The SH79F1640 retains most features of the standard 8051. These features include internal 256 bytes RAM, Two UART and
INT0, INT1, INT2, INT3, INT4. In addition, SH79F1640 provides external 1280 bytes RAM. It also contains 16K bytes Flash
memory block for program storage.
The SH79F1640 not only include many standard communication modules, such as EUART, TWI and so on, but also include
dimming LED, LCD diver, 12bit ADC, PWM timer, etc.
In addition, the SH79F1640 also have Touch Key module, CRC module, Logic configurable module (LCM) built in it.
For high reliability and low cost issues, the SH79F1640 builds in Watchdog Timer, Low Voltage Reset function and system
clock monitor. And SH79F1640 also supports two power saving modes to reduce power consumption.
= 2.0V - 5.5V
DD
Two Enhanced UART (EUART) with own baud
rate generator
4 Analog inputs 12-bit Analog Digital Converter
LED driver:
- 4 COM/8 SEG LED driver with diming mode
LCD driver:
- 4 X 11dots (1/4 duty 1/3 bias)
Built-in low voltage Reset (LVR) function (code
option)
- LVR voltage1: 4.1V
- LVR voltage2: 3.7V
- LVR voltage3: 2.8V
- LVR voltage4: 2.1V
Built-in CRC verification module, the verify size
can be selected
Low Power Detect (LPD) Module with 16 level
optional
Support single line simulation and download
CPU Machine period:
- 1 oscillator clock
Built-in Watch Dog Timer (WDT)
Built-in oscillator Warm-up timer
Support Low power operation modes:
- Idle Mode
- Power-Down Mode
Flash Type
Package:
- SOP28
1
SH79F1640
V2.2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SH79F1640 and is the answer not in the manual?

Questions and answers

Summary of Contents for Sino Wealth SH79F1640

  • Page 1: Features

    SH79F1640 with standard 8051 at same clock speed. The SH79F1640 retains most features of the standard 8051. These features include internal 256 bytes RAM, Two UART and INT0, INT1, INT2, INT3, INT4. In addition, SH79F1640 provides external 1280 bytes RAM. It also contains 16K bytes Flash memory block for program storage.
  • Page 2: Block Diagram

    SH79F1640 3. Block Diagram Power Pipelined 8051 architecture Watch Dog 16K Bytes Flash ROM Port 5 Configuration I/Os Internal 256 Bytes P5.0 - P5.1 External 1280Bytes (Exclude System Port 4 Register) Configuration I/Os P4.0 - P4.3 Timer3 (16bit) Port 3...
  • Page 3: Pin Configration

    SH79F1640 4. Pin Configration SOP28 Package TK15/P0.6 P0.5/INT1/TK14 C/INT3/P0.7 P0.4/INT0/TK13 P0.3/T4/TK12 XTAL1/TK16/P5.0 P0.2/SEG19/TK11 XTAL2/TK17/P5.1 P0.1/SEG18/TK10 P0.0/SEG17/TK9 TK22/AN3/INT43/P4.3 P1.7/SEG8/LED_S8/TK8 TK23/AN2/INT42/P4.2 P1.6/SEG7/LED_S7/TK7 TK24/AN1/INT41/P4.1 P1.5/SEG6/LED_S6/TK6 SWE/AN0/INT40/P4.0 P1.4/SEG5/LED_S5/TK5 LED_C4/COM4/P3.3 P1.3/INT47/SEG4/LED_S4/TK4/TCK LED_C3/COM3/P3.2 P1.2/INT46/SEG3/LED_S3/TK3/TDI P1.1/INT45/SEG2/LED_S2/TK2/TMS LED_C2/COM2/P3.1 LED_C1/COM1/P3.0 P1.0/INT44/SEG1/LED_S1/TK1/TDO Function UART0 UART1 PWM0 PWM1 PCA0 INT2 RXD0...
  • Page 4: Pin Function And Pin Description

    SH79F1640 5. Pin Function and Pin Description Pin No. Type Description I/O PORT P0.0 - P0.7 8-bit bi-directional I/O port P1.0 - P1.7 8-bit bi-directional I/O port P3.0 - P3.3 4-bit bi-directional I/O port P4.0 - P4.3 4-bit bi-directional I/O port P5.0 - P5.1...
  • Page 5 SH79F1640 (continue) PCA Controller P0CEX0 Input/output pin for PCA0 module 0 P0CEX1 Input/output pin for PCA0 module 1 ECI0 The external clock input for PCA0 Single line simulation interface One line Debug interface: Test data out SWE(P4.0) If the power on/off slope is large than 500ms/V, for the stability of the chip, it is...
  • Page 6: Product Information

    SH79F1640 6. Product Information SH79F1640: SOP28 Flash PCA0 EUART Part Num TouchK Timerx ExINT Package (byte) (byte) (byte) (12bit) (16bit) (12bit) SH79F1640 1280 4096 4 X 8 3,4,5 4+8 ±0.5% 26 4 X 11 SOP28...
  • Page 7: Sfr Mapping

    SH79F1640 7. SFR Mapping The SH79F1640 provides 256 bytes of internal RAM to contain general-purpose data memory and Special Function Register (SFR).The SFR of the SH79F1640 fall into the following categories: CPU Core Registers: ACC, B, PSW, SP, DPL, DPH...
  • Page 8 SH79F1640 Table 7.1 CPU Core SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset Value Accumulator 00000000 ACC.7 ACC.6 ACC.5 ACC.4 ACC.3 ACC.2 ACC.1 ACC.0 B Register 00000000 AUXC C Register 00000000 Program Status Word 00000000...
  • Page 9 SH79F1640 Table 7.3 Flash control SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset Value IB_OFF IB_OFF IB_OFF IB_OFF IB_OFF IB_OFF IB_OFF IB_OFF IB_OFF Offset Register for Programming 00000000 Bank0 SET.7 SET.6 SET.5 SET.4 SET.3 SET.2 SET.1...
  • Page 10 SH79F1640 Table 7.6 Interrupt SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset Value IEN0 Interrupt Enable Control 0 00000000 EADC Bank0 IEN1 Interrupt Enable Control 1 00000000 ESCM ELPD ELED ETWI Bank0 IEN2 Interrupt Enable Control 2...
  • Page 11 SH79F1640 Table 7.8 Port SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset Value 8-bit Port0 00000000 P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 Bank0 8-bit Port1 00000000 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0...
  • Page 12 SH79F1640 Table 7.9 Timer SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset value T3CON Timer/Counter3 Control 0-00-000 T3PS.1 T3PS.0 T3CLKS.1 T3CLKS.0 Bank1 Timer/Counter3 Low Byte 00000000 TL3.7 TL3.6 TL3.5 TL3.4 TL3.3 TL3.2 TL3.1 TL3.0 Bank1...
  • Page 13 SH79F1640 (continue) PCA0 capture/compare module 0 P0CPH0 00000000 P0CPH0.7 P0CPH0.6 P0CPH0.5 P0CPH0.4 P0CPH0.3 P0CPH0.2 P0CPH0.1 P0CPH0.0 Bank1 high byte PCA0 capture/compare module 1 P0CPL1 00000000 P0CPL1.7 P0CPL1.6 P0CPL1.5 P0CPL1.4 P0CPL1.3 P0CPL1.2 P0CPL1.1 P0CPL1.0 Bank1 low byte PCA0 capture/compare module 1...
  • Page 14 SH79F1640 (continue) SADDR1 Slave Address1 00000000 SADDR1.7 SADDR1.6 SADDR1.5 SADDR1.4 SADDR1.3 SADDR1.2 SADDR1.1 SADDR1.0 Bank1 SBRTH1 Baudrate Generator1 00000000 SBRTEN SBRT1.14 SBRT1.13 SBRT1.12 SBRT1.11 SBRT1.10 SBRT1.9 SBRT1.8 Bank1 SBRTL1 Baudrate Generator1 00000000 SBRT1.7 SBRT1.6 SBRT1.5 SBRT1.4 SBRT1.3 SBRT1.2 SBRT1.1 SBRT1.0...
  • Page 15 SH79F1640 Table 7.13 LCD SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset value LCDCON LCD Control register 000-0000 LCDON MODSW ELCC VOL3 VOL2 VOL1 VOL0 Bank0 DISPCON1 LCD Control register1 ---00000 RLCD FCCTL1 FCCTL2 MOD1...
  • Page 16 SH79F1640 Table 7.15 PWM0/1 SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset value PWM0CO PWM0 Control register 00000000 PWM0EN PWM0S PWM0CK2 PWM0CK1 PWM0CK0 PWM0IE PWM0IF PWM0SS Bank0 PWM1CO PWM1 Control register 00000000 PWM1EN PWM1S PWM1CK2...
  • Page 17 SH79F1640 Table 7.18 TK SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset value TKGO/ TKCON1 Touch Key Control Register 0-000-00 TKCON DATACON MODE FSW1 FSW0 ---- ---- ---- ---- Bank0 TKF0 Touch Key interrupt flag Register...
  • Page 18 SH79F1640 Table 7.19 LCM SFRs POR/WDT/LVR Mnem Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Reset value UART0CR TXD0&RXD0 selection register -001-000 TX0CR2 TX0CR1 TX0CR0 RX0CR2 RX0CR1 RX0CR0 Bank1 UART1CR TXD1&RXD1 selection register -001-000 TX1CR2 TX1CR1 TX1CR0 RX1CR2 RX1CR1...
  • Page 19 SH79F1640 SFR Map Bank0 Non Bit addressable addressable CRCDL CRCDH IB_OFFSET IB_DATA CRCCON TWITOUT AUXC IB_CON1 IB_CON2 IB_CON3 IB_CON4 IB_CON5 XPAGE EXF0 P0PCR P1PCR P3PCR P4PCR UTOS ELEDCON P0CR P1CR P3CR P4CR LCDSEG0 LCDSEG1 EXF1 PWM0CON PWM0PL PWM0PH PWM0DL PWM0DH...
  • Page 20: Normal Functio

    SH79F1640 8. Normal Functio 8.1 CPU 8.1.1 CPU Feature Feature ◼ CPU core registers: ACC, B, PSW, SP, DPL, DPH Accumulator ACC is the a common spectial register.The instruction system use A as the mnemonic of the accumulator. B Register The B register is used during multiply and divide operations.
  • Page 21: Enhanced Cpu Core Sfrs

    ◼ Dual Data Pointer ◼ Enhanced CPU core registers: AUXC, DPL1, DPH1, INSCON The SH79F1640 has modified 'MUL' and 'DIV' instructions. These instructions support 16 bits operand. A new register - the register is applied to hold the upper part of the operand/result.
  • Page 22: Ram

    256 bytes RAM; MOVX A, @DPTR or MOVX @DPTR, A also to access external 1291 bytes RAM. In SH79F1640 the user can also use XPAGE register to access external RAM only with MOVX A, @Ri or MOVX @Ri, A instructions.
  • Page 23: Flash Program Memory

    0000H Program Memory Block Information Block The SH79F1640 embeds 16K flash program memory for program code. The flash program memory provides electrical erasure and programming and supports In-Circuit Programming (ICP) mode and Self-Sector Programming (SSP) mode.Every sector is 512 bytes.
  • Page 24 SH79F1640 (2) Mass Erase Regardless of the state of the code protection control mode, the overall erasure operation will erase all programs, code options, the code protection bit, but they will not erase EEPROM-like memory block. The user must use the following way to complete the overall erasure: Flash programmer in ICP mode send overall erasure instruction to run overall erasure.
  • Page 25: Flash Operation In Icp Mode

    SH79F1640 8.3.2 Flash Operation in ICP Mode Single Line Simulation Model ICP mode is performed without removing the micro-controller from the system. In ICP mode, the user system must be power-off, and the programmer can refresh the program memory through ICP programming interface. The ICP programming interface consists of 3 pins (V , GND, SWE).
  • Page 26: Ssp Function

    But once sector has been programmed, it cannot be reprogrammed before sector erase. The SH79F1640 builds in a complex control flow to prevent the code from carelessly modification. If the dedicated conditions are not met (IB_CON1-5), the SSP will be terminated.
  • Page 27 SH79F1640 Table 8.7 Data Register for Programming FCH,Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 IB_DATA IB_DATA.7 IB_DATA.6 IB_DATA.5 IB_DATA.4 IB_DATA.3 IB_DATA.2 IB_DATA.1 IB_DATA.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description IB_DATA[7:0] Data to be programmed Table 8.8 SSP Type select Register F2H,Bank0...
  • Page 28 SH79F1640 Table 8.11 SSP Flow Control Register3 F5H,Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 IB_CON4 IB_CON4.3 IB_CON4.2 IB_CON4.1 IB_CON4.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description IB_CON4[3:0] Must be 09H, else Flash Programming will terminate Table 8.12 SSP Flow Control Register4 F6H,Bank0...
  • Page 29: Flash Control Flow

    SH79F1640 8.4.2 Flash Control Flow Set IB_OFFSET Set XPAGE Set IB_DATA Set IB_CON1 IB_CON2[3:0]≠5H Set IB_CON2[3:0]=5H IB_CON2≠5H IB_CON3≠AH IB_CON2≠5H Set IB_CON3=AH ELSE IB_CON3≠AH Set IB_CON4=9H IB_CON4≠9H Reset IB_CON1-5 Set IB_CON5=6H Sector Erase IB_CON1=E6H &IB_CON2[3:0]=5H &IB_CON3=AH &IB_CON4=9H &IB_CON5=6H IB_CON1=6EH &IB_CON2[3:0]=5H &IB_CON3=AH &IB_CON4=9H...
  • Page 30: Ssp Programming Note

    SH79F1640 8.4.3 SSP Programming Note To successfully complete SSP programming, the user’s software must following the steps below: (1) For Code/Data Programming 1. Disable interrupt; 2. Fill in the XPAGE, IB_OFFSET for the corresponding address; 3. Fill in IB_DATA if programming is wanted;...
  • Page 31: Readable Identificantion Code

    SH79F1640 8.4.4 Readable identificantion Code A 40-Byte readable identificantion code is burned in the chip after produced, Every byte is between 0 and 0xffffffffff. They can not be erased,and can be read by program and program tool. Reading the identificantion code program: Unsigned char Temp1, Temp2, Temp3, Temp4, Temp5;...
  • Page 32: System Clock And Oscillator

    (24MHz/128KHz), External Clock(30kHz~16MHz), which is selected by code option OP_OSC (Refer to code option section for details). SH79F1640 has 2 Oscillator pins (XTAL1, XTAL2), which can generates one or two clock sources from four oscillator types. It is selected by code option OP_OSC (Refer to code option section for details). The oscillator generates the basic clock pulse that provides the system clock to supply CPU and on-chip peripherals.
  • Page 33: Registers

    SH79F1640 8.5.4 Registers Table 8.14 System Clock Control Register B2H,Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 CLKCON 32k_SPDUP CLKS1 CLKS0 SCMIF HFON Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description 32.768kHz oscillator speed up mode control bit 0: 32.768kHz oscillator normal mode, cleared by software.
  • Page 34: Oscillator Type

    SH79F1640 8.5.5 Oscillator Type (1) OP_OSC = 0000, 0011: internal 24M/128K RC, XTAL shared with IO. XTAL1 XTAL2 (2) OP_OSC = 1010: 32.768kHz Crystal Oscillator from XTAL input, internal 24M RC Oscillator can be enabled. XTAL1 32.768kHz XTAL2 (3) OP_OSC = 1110: 2M - 16M Crystal/Ceramic Oscillator input from XTAL.
  • Page 35: Capacitor Selection For Oscillator

    SH79F1640 8.5.6 Capacitor Selection for Oscillator Ceramitor Oscillator Remarks Frequency 2MHz 21 - 30pF 21 - 30pF no bulit-in ceramic resonator load capacitance 25 - 30pF 25 - 30pF 4MHz 12 - 15pF 12 - 15pF Different parameters under model...
  • Page 36: System Clock Monitor (Scm)

    8.6 System Clock Monitor (SCM) In order to enhance the system reliability, SH79F1640 contains a system clock monitor (SCM) module. If the system clock fails (for example the oscillator stops oscillating), the built-in SCM will switch the OSCSCLK to the internal clock and set system clock monitor bit (SCMIF) to 1.
  • Page 37: I/O Port

    PORT is used as input (x = 0-1,3-5, y = 0-7). For SH79F1640, some I/O pins can share with alternative functions. There exists a priority rule in CPU to avoid these functions be conflict when all the functions are enabled. (Refer to Port Share Section for details).
  • Page 38 SH79F1640 Table 8.18 Port Data Register 80H - C0H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0 (80H, Bank0) P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 P1 (90H, Bank0) P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 P3 (B0H, Bank0) P3.3...
  • Page 39: Port Diagram

    SH79F1640 8.7.3 Port Diagram SFEN PxPCRy Output Mode Input Mode 0 = ON (Pull-up) PxCRy 1 = OFF I/O Pad Write Data Data Bus Register Read Port Data Register Read Read Data Register/Pad Selection 0: From Pad 1: From data register...
  • Page 40: Port Share

    SH79F1640 8.7.4 Port Share The 26 bi-directional I/O ports can also share second or third special function. But the share priority should obey the Outer Most Inner Lest rule: The out most pin function in Pin Configuration has the highest priority, and the inner most pin function has the lowest priority.
  • Page 41 SH79F1640 PORT1: - TK1-TK8: Touch Key Channels (P1.0 - P1.7) - LED SEG 1-8 (P1.0 - P1.7) - LCD SEG 1-8 (P1.0 - P1.7) - INT44-INT47 (P1.0-P1.3): external interrupt4 Table 8.21 PORT1 Share Function Table Pin No. Priority Function Enable bit TK1-4 set P0SS.0-3 bit in P1SS register...
  • Page 42 SH79F1640 PORT4: - INT40-INT43 (P4.0-P4.3): external interrupt4 - AN0-AN3 (P4.0-P4.3): ADC channel - TK20-TK24: Touch Key Channels (P4.1-P4.3) Table 8.23 PORT4 Share Function Table Pin No. Priority Function Enable bit TK22 Set P4SS.3 bit in P4SS register Set CH3 bit in ADCH1 register and set ADON bit in ADCON register , and set...
  • Page 43: Timer

    SH79F1640 8.8 Timer 8.8.1 Timer3 Timer3 is a 16-bit auto-reload timer. It is implemented as a 16-bit register accessed as two cascaded Data Registers: TH3 and TL3. It is controlled by the T3CON register. The Timer3 interrupt can be enabled by setting ET3 bit in IEN1 register (Refer to Interrupt Section for details).
  • Page 44 SH79F1640 Registers Table 8.25 Timer3 Control Register 88H, Bank1 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 T3CON T3PS.1 T3PS.0 T3CLKS.1 T3CLKS.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Timer3 overflow flag bit 0: No overflow (cleared by hardware)
  • Page 45: Timer4

    SH79F1640 8.8.2 Timer4 Timer4 is a 16-bit auto-reload timer. It is accessed as two cascaded data registers: TH4 and TL4. It is controlled by the T4CON register. The Timer 4 interrupt can be enabled by setting ET4 bit in IEN1 register (Refer to interrupt Section for details).
  • Page 46 SH79F1640 Mode2: 16 bit Auto-Reload Timer with T4 Edge Trig Timer4 operates as 16-bit timer in Mode2.Timer4 can select system clock as clock source. Other setting accords with mode 0. In Mode2, After Setting the TR4 bit (T4CON.1), Timer4 does not start counting but waits the trig signal (rising or falling edge controlled by T4M[1:0]) from T4.
  • Page 47 SH79F1640 Registers Table 8.27 Timer4 Control Register C8H,Bank1 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 T4CON T4PS1 T4PS0 T4M1 T4M0 T4CLKS Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Timer4 overflow flag bit 0: No overflow (cleared by hardware)
  • Page 48: Timer5

    SH79F1640 8.8.3 Timer5 Timer5 is a 16-bit auto-reload timer. It is accessed as two cascaded data registers: TH5 and TL5. It is controlled by the T5CON register. The interrupt can be enabled by setting ET5 bit in IEN0 register (Refer to interrupt Section for details).
  • Page 49 SH79F1640 Registers Table 8.29 Timer5 Control Register C0H,Bank1 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 T5CON T5PS1 T5PS0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Timer5 overflow flag bit 0: No overflow (cleared by hardware) 1: Overflow (Set by hardware)
  • Page 50: Programmable Counter Array (Pca0)

    SH79F1640 8.9 Programmable counter array (PCA0) 8.9.1 Features ◼ SH79F1640 have a PCA, which is a general purpose 16-bit Timer/Counter module, with two independent Output Compare Units ◼ Phase Correct PWM Mode, Phase frequency Correct PWM Mode The Programmable Counter Array (PCA0) provides enhanced timer functionality while requiring less CPU intervention than the standard 8051 counter/timers.
  • Page 51 SH79F1640 The 16-bit PCA0 counter/timer consists of a 16-bit SFRs, PxTOPH and PxTOPL.consist of the 16-bit counter/timer. PxTOPH and PxTOPL can be configured TOP value, initial value of PxTOPH and PxTOPL is 0XFFFF. 16 bit counter / timer is the most basic module of PCA0, Enable or disable bit PRX of PCACON register can Start or Stop counter, when PR0 is set to logic '0', 16 bit counter was also forced the clear '0'.
  • Page 52 SH79F1640 PCAx Mode Select Table Mode P0SDEN P0SMPn P0SMNn P0FSPn P0FSNn Function Capture triggered by positive edge (single slope) Mode0 Capture triggered by negative edge on (single slope) Capture triggered by transition (single slope) Continuous software timer (single slope) Mode1...
  • Page 53: Mode0: Edge-Triggered Capture Mode

    SH79F1640 8.9.2 Mode0: Edge-triggered Capture Mode In this mode, a valid transition on the P0CEXn pin causes the PCA0 to capture the value of the PCA counter/timer and load it into the corresponding module's 16-bit capture/compare register (P0CPLn and P0CPHn). The P0FSPn and P0FSNn bits in...
  • Page 54: Mode1: Software Timer Mode

    SH79F1640 8.9.3 Mode1: Software Timer Mode In Software Timer mode (P0SMPn:P0SMNn = 01, P0FSPn:P0FSNn = 0x), the PCA counter/timer value is compared to the module's 16-bit capture/compare register (P0CPHn and P0CPLn). When a match occurs, the Capture/Compare Flag (P0CCFn) in PCA0CF is set to logic 1 and an interrupt request is generated if P0CCFn interrupts are enabled. When P0TCPn = 1, the state of P0CEXn port pin can be changed.
  • Page 55: Mode2: Frequency Output Mode

    SH79F1640 8.9.4 Mode2: Frequency Output Mode Frequency Output Mode produces a programmable-frequency square wave on the module’s associated P0CEXn pin. The capture/compare module high byte holds the number of PCA clocks to count before the output is toggled. The square wave...
  • Page 56: Mode3: Pwm Mode

    SH79F1640 8.9.5 Mode3: PWM Mode Each PCA0 module can be used independently to generate a pulse width modulated (PWM) output. The following Table summarizes the bit (P0FSPn, P0FSNn) settings in the P0CPMn registers used to select the PCA capture/compare module’s operating PWM modes.
  • Page 57: 16-Bit Pulse Width Modulator Mode

    SH79F1640 The following Figure 8.9-9, the state of P0CEXn pin is default at the first time clock cycle.the state of P0CEXn pin at the first clock cycle for P0CPLn = 0. P0CEXn pin output pwm wave from second time clock cycle to fourth time clock for P0CPLn = 01H, 80H, FEH.
  • Page 58: The 16 Bit Phase Correct Pwm Mode

    SH79F1640 DutyCycle = (P0TOP -(P0CPn+1))/ P0TOP The following Figure 8.9-11, the state of P0CEXn pin is default at the first time clock cycle.the state of P0CEXn pin at the first clock cycle for P0CPLn = 0. P0CEXn pin output pwm wave from second time clock cycle to fourth time clock for P0CPLn=0001H、8000H、FFFEH.the state of P0CEXn pin output pwm wave from sixth time clock cycle to eighth time clock...
  • Page 59: The 16 Phase And Frequency Correct Pulse Width Modulator (Xppwm16) Mode

    SH79F1640 The dual-slope operation has lower maximum operation frequency than single slope operation.However, due to the symmetric feature of the dual-slope PWM modes, these modes are preferred for motor control applications. The PWM resolution for the phase correct PWM mode can be configured by P0TOP. The minimum resolution allowed is 2-bit (P0TOP set to 0x003), and the maximum resolution is 16-bit.
  • Page 60 SH79F1640 The dual-slope operation has lower maximum operation frequency than single slope operation.However, due to the symmetric feature of the dual-slope PWM modes, these modes are preferred for motor control applications. The main difference between the phase correct, and the phase and frequency correct PWM mode is the time the P0TOP and P0CPn Register is updated by the P0TOP and P0CPn Buffer Register(see Figure 8.9-13 and Figure8.9-15).
  • Page 61: Register

    SH79F1640 8.9.6 Register Table 8.31 PCA0 Flag Register 98H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0CF P0CCF1 P0CCF0 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description PCA0 Counter/Timer Overflow Flag Set by hardware when the PCA0 Counter/Timer overflows from 0xFFFF to 0x0000. When the Counter/Timer Overflow (CF0) interrupt is enabled, setting this bit causes the CPU to jump to the PCA interrupt service routine.
  • Page 62 SH79F1640 Table 8.34 P0CPMn:PCA capturre/compare Register 9AH - 9BH (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0CPM0 P0SMP0 P0SMN0 P0FSP0 P0FSN0 P0ECOM0 P0TCP0 P0MAT0 P0ECCF0 P0CPM1 P0SMP1 P0SMN1 P0FSP1 P0FSN1 P0ECOM1 P0TCP1 P0MAT1 P0ECCF1 RESET Value (POR/WDT/LVR) Bit Number...
  • Page 63 SH79F1640 Table 8.35 P0FORCE Forced Output Control Register DCH (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0FORCE P0OSC1 P0OSC0 P0FCO1 P0FCO0 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description P0CEX1 output registers of Module1, the bit is effective only when the...
  • Page 64 SH79F1640 Table 8.37 PCA0 Count Maximum High Byte 9FH (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0TOPH P0TOPH.7 P0TOPH.6 P0TOPH.5 P0TOPH.4 P0TOPH.3 P0TOPH.2 P0TOPH.1 P0TOPH.0 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description P0TOPH.y P0TOPH: PCA0 TOP defines high byte (MSB) (y = 0-7) Table 8.38 PCA0 Capture/Compare Module Low Byte...
  • Page 65: Interrupt

    (Timer3-5), 1 PCA0 interrupts, 2 EUART interrupts, SCM interrupt , ADC interrupt, 2 PWM interrupts, Touch Key interrupt and LED interrupt, 1 TWI interrupt, 1 CRC interrupt, 1 LPD interrupt. The SH79F1640 have 4 interrupt priority levels, which make operating 20 interrupt sources becoming flexible.
  • Page 66 SH79F1640 Table 8.41 Secondary Interrupt Enable Registe1 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 IEN1 ESCM ELPD ELED ETWI Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description SCM interrupt enable bit ESCM 0: Disable SCM interrupt 1: Enable SCM interrupt...
  • Page 67 SH79F1640 (continued) PWM0 interrupt enable bit EPWM0 0: Disable PWM0 interrupt 1: Enable PWM0 interrupt CRC interrupt enable bit ECRC 0: Disable CRC interrupt 1: Enable CRC interrupt EUART1 interrupt enable bit 0: Disable EUART1 interrupt 1: Enable EUART1 interrupt Table 8.43 Interrupt channel Enable Register...
  • Page 68: Interrupt Flag

    SH79F1640 8.10.3 Interrupt Flag Each Interrupt source has its own interrupt flag, when interrupt occurs, corresponding flag will be set by hardware, the interrupt flag bits are listed in Table bellow. For external interrupt (INT0/1), when an external interrupt0/1 is generated, if the interrupt was edge trigged, the flag(IE0/1 in EXF0)that generated this interrupt is cleared by hardware when the service routine is vectored.
  • Page 69 SH79F1640 Table 8.46 External Interrupt Control Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 EXF0 IT4.1 IT4.0 IT3.1 IT3.0 IT2.1 IT2.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description External interrupt4 trigger mode selection bits 00: Low Level trigger...
  • Page 70: Interrupt Vector

    SH79F1640 8.10.4 Interrupt Vector When an interrupt occurs, the program counter is pushed onto the stack and the corresponding interrupt vector address is loaded into the program counter. The interrupt vector addresses are listed in Interrupt Summary table. 8.10.5 Interrupt Priority Each interrupt source can be individually programmed to one of four priority levels by setting or clearing corresponding bits in the interrupt priority control registers IPL0, IPH0, IPL1, and IPH1.
  • Page 71: Interrupt Handling

    SH79F1640 8.10.6 Interrupt Handling The interrupt flags are sampled and polled at the fetch period of each machine period. All interrupts are sampled at the rising edge of the clock. If one of the flags was set, the CPU will find it and the interrupt system will generate a LCALL to the appropriate service routine, provided this hardware-generated LCALL is not blocked by any of the following conditions: An interrupt of equal or higher priority is already in progress.
  • Page 72: External Interrupt Input

    The operation of INT4 is similar with INT0,1, but it has more trigger modes. When SH79F1640 is in IDLE mode or Power-Down mode, interrupt will cause the processor to wake up and resume operation, refer to “Power Management” chapter for details.
  • Page 73 SH79F1640 Table 8.49 External Interrupt Sample Times Control Registrer 8BH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 EXCON I1PS1 I1PS0 I1SN1 I1SN0 I0PS1 I0PS0 I0SN1 I0SN0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description INT4 sample clock Prescaler Select bits...
  • Page 74: Interrupt Summary

    SH79F1640 8.10.9 Interrupt Summary Vector Polling Interrupt No. Source Enable bits Flag bits Address Priority (C51) Reset 0000H 0 (higest) INT0 0003H 000BH IFERR+IFGO+IFAVE+IFCOUNT INT1 0013H Timer5 001BH EUART0 0023H RI+TI Timer3 002BH 0033H EADC ADCIF/ADGIF/ADLIF 003BH ETWI TWINT 0043H...
  • Page 75: Enhanced Function

    SH79F1640 built-in Touch Key function module, which can connect at most 20 keys. SH79F1640 built-in simplified operating circuit in Touch Key function module, the application of it only need to use a external connected C1 capacitor. The value of C1 capacitor choose 10nF -100nF, must use polyester capacitor of 10% or more accuracy, X7R capacitor or NPO capacitor.
  • Page 76 SH79F1640 When used as Touch Key, the step of startup as follows: (1) Select key channel which is needed to scan; (2) Set TKCON bit, enable Touch Key module works; (3) Set switch frequency, reference voltage (Vref), key sampling times and the sequence of scan;...
  • Page 77 SH79F1640 Operating Flow: START TKCON = 1 CHOSE CHANNELS REGISTER: TKU1-TKU3 FUNCTION REGISTER: VREF[0:1] ,VTK[0:1] ,CMPD[0:1] ,VTK[0:1] ,RANDOM [0:1] ,TKST[0:7],FSW[0:1],TKRANDOM[0:7] 28Bit AMPLIFICATION FACTOR REGISTER: TKDIV01~TKDIV04 DELAY 10uS TKGO=1 WATING FOR THE TOUCH-KEY INTERRUPT PRODUCE OR SCANNING TKIF. TOUCH KEY INTERRUPT...
  • Page 78: Register

    SH79F1640 9.1.1 Register Table 9.1 Touch Key Functional Control Register C1H (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TKGO TKCON1 TKCON DATACON MODE FSW1 FSW0 ---- ---- ---- ---- RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Touch Key Enable bit...
  • Page 79 SH79F1640 Table 9.3 Touch Key Frequency Random Setting Register C2H, Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TKRANDOM TKRADON TKOFFSET TKHYSW TKOSM RANDOM1 RANDOM0 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Touch Key Random Frequency Enable bit...
  • Page 80 SH79F1640 Table 9.4 Touch Key Interrupt Flag Register (The register only can be cleared) C7H (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TKF0 IFERR IFGO IFAVE IFCOUNT RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Calculated Result Overflow Interrupt Flag bit 0: Calculated result high-bit don’t overflow...
  • Page 81 SH79F1640 Table 9.6 Port Function Control Register BCH-BFH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 P0SS (BCH) P0SS.6 P0SS.5 P0SS.4 P0SS.3 P0SS.2 P0SS.1 P0SS.0 P1SS (BDH) P1SS.7 P1SS.6 P1SS.5 P1SS.4 P1SS.3 P1SS.2 P1SS.1 P1SS.0 P4SS (BEH) P4SS.3 P4SS.2 P4SS.1...
  • Page 82 SH79F1640 Table 9.8 Reference Voltage Selection Register CEH,Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TKVREF VREF1 VREF0 CMPD1 CMPD0 VTK1 VTK0 TUNE1 TUNE0 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Internal Reference Voltage Selection bit 00: VREF = 2.0V VREF[1:0] 01: VREF = 1.5V...
  • Page 83 SH79F1640 Table 9.9 Key Scan Sequence Register C9H-CBH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TKU1 (C9H) TKU2 (CAH) TK16 TK15 TK14 TK13 TK12 TK11 TK10 TKU3 (CBH) TK24 TK23 TK22 TK17 RESET Value (POR/WDT/LVR) Bit Number Bit Mnemonic...
  • Page 84 SH79F1640 (continue) 516H TK12L 517H TK12H 518H TK13L 519H TK13H 51AH TK14L 51BH TK14H 51CH TK15L 51DH TK15H 51EH TK16L 51FH TK16H 520H TK17L 521H TK17H 52AH TK22L 52BH TK22H 52CH TK23L 52DH TK23H 52EH TK24L 52FH TK24H Note: (1) OP output voltage is supply voltage of Touch Key, V is reference voltage source of Touch Key.
  • Page 85: Lcd Driver

    Therefore, SH79F1640 provides both the low power consumption and display effect of the display mode: fast charge mode. Set MOD[1:0] = 10 to select this mode. When refresh the display data 20k bias resistors are selected to provide larger current.
  • Page 86 SH79F1640 one frame COM4 COM1 COM3 COM2 COM2 COM1 COM3 COM4 SEGn+1 SEGn SEGn SEGn+1 COM4 - SEGn -Vcc LCD Waveform (1/4duty, 1/3bias)
  • Page 87: Register

    1101: VLCD = 0.938VDD 1110: VLCD = 0.969VDD 1111: VLCD = 1.000VDD Note: SH79F1640 has LCD and LED driver,but can not work in the same time , When enabled LED and LCD function at the disabled same time, LCD will be...
  • Page 88 SH79F1640 Table 9.12 LCD Control Register1 AEH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 DISPCON1 RLCD FCCTL1 FCCTL2 MOD1 MOD0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description LCD bias resistor selection bit RLCD 0: LCD bias resistor sum is 900k 1: LCD bias resistor sum is 1.5M...
  • Page 89 SH79F1640 Table 9.14 Px Mode Selection Register E6H (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LCDSEG0 P0S2 P0S1 P0S0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description P0 port mode selection bit P0S[2:0] 0: P0.0-P0.2 is I/O 1: P0.0-P0.2 is SEG (SEG17 - SEG19) Table 9.15 P1 Mode Selection Register...
  • Page 90: Lcd Ram Configuration

    SH79F1640 9.2.2 LCD RAM Configuration LCD 1/4 duty, 1/3 bias (COM1 - 4, SEG1 - 8, 17-19) Address COM4 COM3 COM2 COM1 530H SEG1 SEG1 SEG1 SEG1 531H SEG2 SEG2 SEG2 SEG2 532H SEG3 SEG3 SEG3 SEG3 533H SEG4 SEG4...
  • Page 91: Led Driver

    SH79F1640 9.3 LED Driver The LED driver contains a controller, 4 Common signal pins and 8 Segment driver pins.Support 1/1~1/4 duty voltage driving mode. The LED driver have two kind of operate mode. Mode 1: Light LED mode When LED driver working under the light LED mode, each LEDRAM control a LED light, if LEDRAM bit is 0, LED light out; If LEDRAM bit is 1, LED light on;...
  • Page 92: Register

    IO pin . when MODSW = 0, LED pin will turn back to LED function pin, the clock switch back to LED clock and continue scaning. Note: SH79F1640 has LCD and LED driver,but can not work in the same time, When enabled LED and LCD function at the disabled,...
  • Page 93 SH79F1640 Table 9.19 LED Dead Zone Width Control Register D7H (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LEDDZ DZ.7 DZ.6 DZ.5 DZ.4 DZ.3 DZ.2 DZ.1 DZ.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description LED dead zone width selection bits...
  • Page 94 SH79F1640 Mode2 Example: is the width of single LED COM scan, T is the width of system clock, T is the width of LED scan time. *256*DISCOM S is the quantity of scan LED COM: scan 3COM:S = 3, scan 4COM: S = 4, and so on.
  • Page 95 SH79F1640 Mode2 Dimming Diagram: COMIF=1 COMIF=1 COMIF=1 COMIF=1 COMIF=1 interrupt interrupt interrupt interrupt interrupt Initialization COM1 COM2 SEG0daty=0xFF SEG0daty=0x00 SEG0daty=0x00 SEG0daty=0x00 SEG0 SEG1daty=0x00 SEG1daty=0x00 SEG1 SEG1daty=0x00 SEG1daty=0x7F SEG2daty=0x00 SEG2daty=0xFF SEG2daty=0xFF SEG2daty=0x00 SEG2 SEG3daty=0x00 SEG3daty=0x00 SEG3daty=0x55 SEG3daty=0x00 SEG3 SEG4daty=0x00 SEG4daty=0xFF SEG4daty=0x00...
  • Page 96 SEG[8:1] 0: used as I/O 1: used as SEG (LED_S1 - LED_S8) Note: the VCC_IN of SH79F1640 have maximum overcurrent restriction (refers to Electrical Characteristics chapter). Please evaluate the current which flowing through VDD. Table 9.21 COM Mode Selection Register...
  • Page 97 SH79F1640 LED RAM Mode 1: Address 530H COM1 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 532H COM2 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 534H COM3 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 536H COM4 SEG8 SEG7...
  • Page 98: Bit Pulse Width Modulation (Pwm0/1

    ◼ Selectable output polarity The SH79F1640 has two 12-bit PWM module. Which can provide two channel pulse width modulation waveform with the period and the duty being controlled individually by corresponding register. PWMxEN (x = 0-1) used to enable PWM modules.
  • Page 99 SH79F1640 Table 9.23 PWM0 Period Register PWM0PH/L DBH-DAH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 PWM0PH (DBH) PWM0P.11 PWM0P.10 PWM0P.9 PWM0P.8 PWM0PL (DAH) PWM0P.7 PWM0P.6 PWM0P.5 PWM0P.4 PWM0P.3 PWM0P.2 PWM0P.1 PWM0P.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic...
  • Page 100 SH79F1640 Table 9.26 PWM1 Duty Control Register PWM1DH/L C5H, C4H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 PWM1DH (C5H) PWM1D.11 PWM1D.10 PWM1D.9 PWM1D.8 PWM1DL (C4H) PWM1D.7 PWM1D.6 PWM1D.5 PWM1D.4 PWM1D.3 PWM1D.2 PWM1D.1 PWM1D.0 Reset Value (POR/WDT/LVR) Bit Number...
  • Page 101 SH79F1640 PWM clock t PWM output (PWMS=0) PWM output (PWMS=1) PWMP = F0H PWM output duty cycle = 7FH x t PWMD = 7FH PWM output period cycle = F0H x t PWM Output Example 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 01 02 03 04 05 06 07...
  • Page 102: Euart0/1

    This mode provides synchronous communication with external devices. In this mode serial data is transmitted and received on the RXDx line. TXDx is used to output the shift clock. The TXDx clock is provided by the SH79F1640 whether the device is transmitting or receiving.
  • Page 103 SH79F1640 Any instruction that uses SBUFx as a destination register (“write to SBUFx” signal) will start the transmission. The next system clock tells the Tx control block to commence a transmission. The data shift occurs at the falling edge of the SHIFT CLOCK, and the contents of the transmit shift register is shifted one position to the right.
  • Page 104 SH79F1640 Transmission begins with a “write to SBUFx” signal, and it actually commences at the next system clock following the next rollover in the divide-by-16 counter (divide baud-rate by 16), thus, the bit times are synchronized to the divide-by-16 counter, not to the “write to SBUFx”...
  • Page 105: Mode2: 9-Bit Euartx, Fixed Baud Rate, Asynchronous Full-Duplex

    SH79F1640 Mode2: 9-Bit EUARTx, Fixed Baud Rate, Asynchronous Full-Duplex This mode provides the 11 bits full duplex asynchronous communication. The 11 bits consists of one start bit (logical 0), 8 data bits (LSB first), a programmable 9 data bit, and a stop bit (logical 1). Mode 2 supports multiprocessor communications and hardware address recognition (Refer to Multiprocessor Communication Section for details).
  • Page 106: Mode3: 9-Bit Euart, Variable Baud Rate, Asynchronous Full-Duplex

    SH79F1640 Reception is enabled only if RXDx is high. The serial port actually starts the receiving of serial data, with the detection of a falling edge on the RXDx pin. For this purpose RXDx is sampled at the rate of 16 times baud rate. When a falling edge is detected, the divide-by-16 counter is immediately reset.
  • Page 107: Baud Rate Generate

    SH79F1640 9.5.3 Baud Rate Generate EUARTx with own baud rate generator, the baud rate generator is an 15-bit up-counting timer. Overflow 15-bit timer To EUART Fsys From 7FFFH to 0000H SBRTEN=1 SBRTH[14:8],SBRTL7:0] Baudrate Generator for EUART The overflow rate of baud rate generator can be calculated as follow:...
  • Page 108: Multi-Processor Communication

    SH79F1640 9.5.4 Multi-Processor Communication Software Address Recognition Modes 2 and 3 of the EUARTx have a special provision for multi-processor communication. In these modes, 9 data bits are received. The 9th bit goes into RB8. Then a stop bit follows. The EUARTx can be programmed such that when the stop bit is received, the EUARTx interrupt will be activated (i.e.
  • Page 109: Error Detection

    SH79F1640 9.5.5 Error Detection Error detection is available when the SSTAT bit in register PCON is set to logic 1. All the 3 bits should be cleared by software after they are set, even when the following frames received without any error will not be cleared automatically.
  • Page 110 SH79F1640 Table 9.28 EUART0 Control & Status Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SCON /RXOV /TXCOL Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description EUART0 Serial mode control bits, when SSTAT = 0 00: mode 0, Synchronous Mode, fixed baud rate...
  • Page 111 SH79F1640 Table 9.29 EUART0 Data Buffer Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SBUF SBUF.7 SBUF.6 SBUF.5 SBUF.4 SBUF.3 SBUF.2 SBUF.1 SBUF.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description This SFR accesses two registers; a transmit shift register and a receive latch...
  • Page 112 SH79F1640 Table 9.33 EUART1 Control & Status Register A0H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SM11/ SM12/ SCON1 SM10/FE1 REN1 TB81 RB81 RXOV1 TXCOL1 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description EUART1 Serial mode control bits, when SSTAT1 = 0...
  • Page 113 SH79F1640 Table 9.34 EUART1 Data Buffer Register A7H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 PCON1 SMOD1 SSTAT1 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description EUART1 Baud rate doubler SMOD1 0: in Mode2, the baud-rate of EUART is 1/64 of the system clock...
  • Page 114 SH79F1640 Table 9.37 EUART1 Baudrate Generator Register A5H - A4H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SBRTH1 (A5H) SBRTEN1 SBRT1.14 SBRT1.13 SBRT1.12 SBRT1.11 SBRT1.10 SBRT1.9 SBRT1.8 SBRTL1 (A4H) SBRT1.7 SBRT1.6 SBRT1.5 SBRT1.4 SBRT1.3 SBRT1.2 SBRT1.1 SBRT1.0 Reset Value...
  • Page 115: Twi Serial Interface

    ◼ System in Idle state can be Wake-up ◼ Programmable Slave Address The TWI Interface complete the transition with SDA and SCL, between Master and Slaver.SH79F1640 has the ability to process and transmit byte, and track the serial transaction automaticly ,which conforms to TWI protocol.
  • Page 116: Clock Synchronization

    STOP SH79F1640 generates an ACK by pulling the SDA line low. After the interrupt flag be set, SH79F1640 pulls the SCL line low, and releases SDA line. When the interrupt process has completed, SCL line should be released and TWINT flag should be cleared.
  • Page 117: Data Arbitration

    SH79F1640 Data Arbitration A master may start a transfer only if the bus is free. Two or more masters may generate a START condition within the minimum hold time (tHD;STA) of the START condition which results in a defined START condition to the bus.
  • Page 118: Overview Of The Twi Moudle

    FREE> The function is only used in the transmission process of one packet (8 + 1 bit). When SH79F1640 is in slave transfer mode and the first byte of transferred message is low, the function can be used. STA and RSTA is not situable for this function. If SH79F1640 generates interrupt, TFREE bit in TWICON regiser will be set (if control bit EFREE bit has been set).
  • Page 119: Bit Rate Generator Unit

    SH79F1640 Bit Rate Generator Unit This unit controls the period of SCL when operating in a Master mode. The SCL period is controlled by settings in the TWI Bit Rate Register (TWIBR) and in the TWICON (CR[1:0]). The SCL frequency is generated according to the following equation:...
  • Page 120 SH79F1640 Master Transmitter Mode In the Master Transmitter mode, a number of data bytes are transmitted to a Slave Receiver. In order to enter a Master mode, a START condition must be transmitted. The format of the following address packet determines whether Master Transmitter or Master Receiver mode is to be entered.
  • Page 121 Arbitration lost in slave Ack or Nack Ack or Nack address or data byte Other Master Other Master Continue Continue Arbitration lost and addressed as slave To Corresponding state in slave mode 68H/78H/B0H Other Device Actions SH79F1640 Actions...
  • Page 122 SH79F1640 Master Receiver Mode In the Master Receiver mode, a number of data bytes are received from a Slave Transmitter. In order to enter a Master mode, a START condition mustbe transmitted. The format of the following address packet determines whether MasterTransmitter or Master Receiver mode is to be entered.
  • Page 123 Transmitter Arbitration lost in slave Ack or address or not acknowledged Nack Other Master Other Master Continue Continue Arbitration lost and addressed as slave To Corresponding state in slave mode Other Device Actions 68H/78H/B0H SH79F1640 Actions...
  • Page 124 TWICON register and TWIADR register must be initialized: set ENTWI bit and AA bit in TWICON register, clearing STA, STO and TWINT; The high 7-bit in TWIADR register is used to prepare the corresponding address for SH79F1640. If GC is set, SH79F1640 will respond the general address (00H);...
  • Page 125 When AA = 0, SH79F1640 can’t respond the visit to its own address. However, SH79F1640 still monitors the bus status, and address recognition may resume at any time by setting AA. This implies that the AA bit may be used to temporarity isolate SH79F1640 from the bus.
  • Page 126 SH79F1640 (continue) Arbitration lost in SLA + Receive data byte; Transmit NACK R/W as master; General No TWIDAT address has been action received; Receive data byte; Transmit ACK ACK has been received Previously addressed Receive data byte; Transmit NACK with own SLA address;...
  • Page 127 P or S not acknowledged Other Device Actions SH79F1640 Actions Other Mode There are two status codes that do not correspond to a defined TWI state. Status 0xF8 indicates that no relevant information is available because the TWINT Flag is not set, and when the TWI is not involved in a serial transfer.
  • Page 128: Register

    SH79F1640 9.6.5 Register Table 9.40 TWI Control Register C8H (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TWICON TOUT ENTWI TWINT TFREE EFREE Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Bus Timeout Flag 0: No Timeout TOUT 1: Timeout happened when the periods of bus low level is more than N X Tsys.
  • Page 129 SH79F1640 Table 9.41 Timeout For Bus Low level Count Register FEH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TWITOUT CNT1 CNT0 TWIPCR Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Bus Timeout Count 00: N = 25000 01: N = 50000...
  • Page 130 SH79F1640 Table 9.44 TWI Bit Rate Register 8AH (Bank0) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TWIBR TWIBR.7 TWIBR.6 TWIBR.5 TWIBR.4 TWIBR.3 TWIBR.2 TWIBR.1 TWIBR.0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description TWIBR[7:0] selects the division factor for the bit rate generator Table 9.45 TWI (Slave) Address Register...
  • Page 131: Logic Configurable Module(Lcm

    SH79F1640 9.7 Logic Configurable Module(LCM) 9.7.1 Features ◼ Though the Logic Configurable Module 12 kinds of Logic function port can be remap to I/O, and each function can choose one of the eight IO to map. The Logic Configurable Module( LCM) used to realize the remap of some logic function port, and keep the one-to-one match between logic and hardware.
  • Page 132 SH79F1640 Function UART0 UART1 PWM0 PWM1 PCA0 INT2 RXD0 TXD0 RXD1 TXD1 PWM0 PWM1 P0CEX0 P0CEX1 ECI0 INT2 ◼ ● ● ● ● P0.0 ◼ ● ● ● ● P0.1 ◼ ● ● P0.2 ● ● ● P0.3 ● P0.4 ◼...
  • Page 133: Register

    SH79F1640 9.7.2 Register Table 9.48 TXD0 and RXD0 selection Register E2H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 UART0CR TX0CR2 TX0CR1 TX0CR0 RX0CR2 RX0CR1 RX0CR0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description TXD0 Selection Bits 000: TXD0 map to P0.0 001: TXD0 map to P0.1 (Default)
  • Page 134 SH79F1640 Table 9.50 SCK and SDA selection Register E5H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TWICR SCKCR2 SCKCR1 SCKCR0 SDACR2 SDACR1 SDACR0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description SCK Selection Bits 000: SCK map to P0.0 001: SCK map to P0.1...
  • Page 135 SH79F1640 Table 9.52 P0CEX1 and P0CEX0 selection Register E7H (Bank1) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 CEXCR CE1CR2 CE1CR1 CE1CR0 CE0CR2 CE0CR1 CE0CR0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description P0CEX1 Selection Bits 000: P0CEX1 map to P0.0 001: P0CEX1 map to P0.1...
  • Page 136: Analog Digital Converter(Adc

    ◼ INT2 (rising-edge, falling-edge, double-edge), the overflow of PCA0, PWM1 or Timer4 can trigger ADC conversion ◼ Up to 1MSPS The SH79F1640 includes a single ended, 12-bit SAR Analog to Digital Converter (ADC Analog-to-Digit Converter). Module as shown in figure 9.8-1. After reset, the default reference voltage of ADC is VDD.
  • Page 137: Adc Diagram

    SH79F1640 9.8.2 ADC Diagram Software Trigger Event Trigger sequence mode SEQCH0 State pointer GRP[2:0] SEQCHn SEQCH7 Mode Arbiter ADD0L/H 12-Bits ADDnL/H ADD7L/H (1.20V) ADC_Clk Time Gap Refc Logic Pre-Counter for ADC clock,4-bit SOC Stands for Start of Convertion System Clock...
  • Page 138: Adc Register

    SH79F1640 9.8.3 ADC Register The registers of ADC moldule are as follows: Function Name Register Description ADC Clock Register Configuration of ADC clock, sample time Enable of ADC module, start a conversion, reference voltage selection, ADCON1 trigger mode and sources, interrupt flag...
  • Page 139 SH79F1640 For Example: System Clock TADC[2:0] TS[3:0] Sample time Conversion time SYSCLK 0.083*1=0.083us 2*0.083=0.166us 14*0.083+0.166=1.328us 0000 0000 0.083*1=0.083us 8*0.083=0.664us 14*0.083+0.664=1.826us 0000 0111 0.083*1=0.083us 15*0.083=1.245us 14*0.083+1.245=2.407us 0000 1111 12MHz 0.083*192=15.936us 2*15.936=31.872us 14*15.936+31.872=254.976us 1111 0000 0.083*192=15.936us 8*15.936=127.488us 14*15.936+127.488=350.592us 1111 0111 0.083*192=15.936us 15*15.936=239.04us 14*15.936+239.04=462.144us...
  • Page 140 SH79F1640 Table 9.56 ADC Control Register2 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 ADCON2 GRP2 GRP1 GRP0 TGAP2 TGAP1 TGAP0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Reference source switch bit 0: Disable 1.20V Reference 1: Enable 1.20V Reference...
  • Page 141 SH79F1640 Table 9.57 Map Control Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SEQCON REG2 REG1 REG0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description ADC result left & right aligned selection bit 0: The 12-bits result stored in result register ADDxL/H (x = 0 - 7) are stored in left aligned.
  • Page 142 SH79F1640 Table 9.59 Channel Register x (x = 0 - 7) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SEQCHX SEQx3 SEQx2 SEQx1 SEQx0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description Channel selection bits 0000: Channel0 (CH0) 0001: Channel1 (CH1)
  • Page 143 SH79F1640 (continue) Bit Number Bit Mnemonic Description Left alignment mode (ALR = 0) After the conversion of a channel, the data updated immediately and stored in ADDxL/H (x = 0 - 7) High 8 bits are stored in ADDxH, the low 4 bits are stored in the high 4 bits in ADDxL register.
  • Page 144: Sequence Conversion Mode

    SH79F1640 9.8.4 Sequence Conversion Mode The ADC sequence consist of one or more channels, the conversion of sequence is to convert the channels in the sequence one by one. It makes multiple signals to convert at the same time become possible in hardware. (the minmum sampling gap between two channels is 1us,so it can be regard as at the same time approximately) The conversion result is stored in the corresponding result register ADDxL/H (x = 0 - 7), the result register is read only register.
  • Page 145 SH79F1640 GRP[2:0] = 2 Result SEQCH0 = 3 ADD0L/H SEQCH1 = 2 ADD1L/H SEQCH2 = 0 ADD2L/H SEQCH3 = x ADD3L/H sequencer SEQCH6 = x ADD6L/H SEQCH7 = x ADD7L/H Figure 9.8-4 The configuration of gap time between adjacent channel during sequence conversion During sequence conversion, the time between last channel finished conversion and next channel start sampling can be set by TGAP bit in ADCON2 register.
  • Page 146: The Configuration Of Adc Conversion Time

    SH79F1640 9.8.5 The Configuration of ADC Conversion Time The ADC clock and sampling time can be set through ADT register. By setting the TADC[3:0] bits in the ADT can set the ADC clock. The TS[3:0] bits in the register ADT can be used to set the sampling time (t...
  • Page 147: Low Power Detect (Lpd)

    SH79F1640 9.9 Low Power Detect (LPD) 9.9.1 Feature ◼ An internal flag indicates low power is detected ◼ LPD detect voltage is selectable ◼ LPD include bilateral debounce Low Power Detect (LPD) function is used to monitor the supply voltage and generate an internal flag if the voltage decrease below the specified value.
  • Page 148 SH79F1640 Table 9.62 LPD Voltage Selection Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 LPDSEL LPDS3 LPDS2 LPDS1 LPDS0 Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description LPD Voltage Select Bit 0000: 2.4V 0001: 2.55V 0010: 2.7V 0011: 2.85V 0100: 3.00V...
  • Page 149: Low Voltage Reset (Lvr)

    SH79F1640 9.10 Low Voltage Reset (LVR) 9.10.1 Features ◼ Enabled by the code option and VLVR is 2.1V, 2.7V, 3.7V or 4.1V ◼ LVR de-bounce timer TLVR is about 30-60s ◼ An internal reset flag indicates low voltage reset generates The LVR function is used to monitor the supply voltage and generate an internal reset in the device when the supply voltage below the specified value VLVR.
  • Page 150: Watchdog Timer (Wdt) And Reset State

    OVL Reset To enhance the anti-noise ability, SH79F1640 built in Program Counter (PC) over range detect circuit, if program counter value is larger than flash romsize, or detect operation code equal to A5H which is not exist in 8051 instruction set, a OVL reset will be generate to reset CPU, and set WDOF bit.
  • Page 151: Crc Verification Module

    ◼ CRC generator polynomial adopt the CRC-CCITT Standard: X +1, high bit first. To improve the system reliability, the SH79F1640 has one CRC verification module built-in, CRC check code can be used to generate real-time code, using the generation polynomial: X +1.
  • Page 152 SH79F1640 Table 9.65 CRC Result Register (Note: low bits address in front, high bits address in the post) F9H, FAH, Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 CRCDL (F9H) CRCD.7 CRCD.6 CRCD.5 CRCD.4 CRCD.3 CRCD.2 CRCD.1 CRCD.0 CRCDH (FAH) CRCD.15...
  • Page 153: Power Management

    The setting of PD bit will be the last instruction that CPU executed. Note: If IDL bit and PD bit are set simultaneously, the SH79F1640 enters Power-Down mode. The CPU will not go in Idle mode when exiting from Power-Down mode, and the hardware will clear both IDL & PD bit after exit form Power-Down mode.
  • Page 154: Register

    SH79F1640 9.13.4 Register Table 9.67 Power Control Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 PCON SMOD SSTAT Reset Value (POR/WDT/LVR) Bit Number Bit Mnemonic Description SMOD EUART0 Baud rate doubler SSTAT SCON[7:5] function select bit GF[1:0] General purpose flags for software use...
  • Page 155: Warm-Up Timer

    ◼ Built-in oscillator warm-up counter to eliminate unstable state when oscillation startup SH79F1640 has a built-in power warm-up counter; it is designed to eliminate unstable state after power on or to do some internal initial operation such as read customer option etc.
  • Page 156: Code Option

    SH79F1640 9.15 Code Option OP_WDT: 0101: Disable WDT function (Default) Others: Enable WDT function OP_WDTPD: 0: Disable WDT function in Power-Down mode (Default) 1: Enable WDT function in Power-Down mode OP_WMT: (unavailable for 32kHz crystal and Internal RC) 00: longest warm up time (Default)
  • Page 157 SH79F1640 OP_EEPROMSIZE: 0000: 8 X 512Bytes (Default) 0001: 7 X 512Bytes 0010: 6 X 512Bytes 0011: 5 X 512Bytes 0100: 4 X 512Bytes 0101: 3 X 512Bytes 0110: 2 X 512Bytes 0111: 1 X 512Bytes 1000: 0 Bytes Other: 0 Bytes OP_MODSW: 0: LCD/LED Counter RUN,when MODSW set 1 (Default)
  • Page 158: Instruction Set

    SH79F1640 10. Instruction Set ARITHMETIC OPERATIONS Opcode Description Code Byte Cycle ADD A, Rn Add register to accumulator 0x28-0x2F ADD A, direct Add direct byte to accumulator 0x25 ADD A, @Ri Add indirect RAM to accumulator 0x26-0x27 ADD A, #data...
  • Page 159 SH79F1640 LOGIC OPERATIONS Opcode Description Code Byte Cycle ANL A, Rn AND register to accumulator 0x58-0x5F ANL A, direct AND direct byte to accumulator 0x55 ANL A, @Ri AND indirect RAM to accumulator 0x56-0x57 ANL A, #data AND immediate data to accumulator...
  • Page 160 SH79F1640 DATA TRANSFERS Opcode Description Code Byte Cycle MOV A, Rn Move register to accumulator 0xE8-0xEF MOV A, direct Move direct byte to accumulator 0xE5 MOV A, @Ri Move indirect RAM to accumulator 0xE6-0xE7 MOV A, #data Move immediate data to accumulator...
  • Page 161 SH79F1640 PROGRAM BRANCHES Opcode Description Code Byte Cycle ACALL addr11 Absolute subroutine call 0x11-0xF1 LCALL addr16 Long subroutine call 0x12 Return from subroutine 0x22 RETI Return from interrupt 0x32 AJMP addr11 Absolute jump 0x01-0xE1 LJMP addr16 Long jump 0x02 SJMP rel...
  • Page 162 SH79F1640 BOOLEAN MANIPULATION Opcode Description Code Byte Cycle CLR C Clear carry flag 0xC3 CLR bit Clear direct bit 0xC2 SETB C Set carry flag 0xD3 SETB bit Set direct bit 0xD2 CPL C Complement carry flag 0xB3 CPL bit...
  • Page 163: Electrical Characteristics

    SH79F1640 11. Electrical Characteristics Absolute Maximum Ratings* *Comments Stresses exceed those listed under “Absolute Maximum DC Supply Voltage....-0.3V to +6.0V Ratings” may cause permanent damage to this device.
  • Page 164 SH79F1640 (continue) Input low Voltage1 0.3 X V I/O port Input High Voltage1 0.7 X V I/O port T4, INT0/1/2/3/4, RXD0, RXD1, Input low Voltage2 0.2 X V = 2.0 - 5.5V, UART TTL turn off T4, INT0/1/2/3/4, RXD0, RXD1, Input High Voltage2 0.8 X V...
  • Page 165 SH79F1640 A/D Converter Electrical Characteristics (The conversion rate of 1M SPS: 1LSB = V /4096 (V = 2.0 - 5.5V, GND = 0V, T = +25° C, unless otherwise specified) Parameter Symbol Min. Max. Unit Condition operating voltage range Resolution = 5.0V...
  • Page 166 SH79F1640 AC Electrical Characteristics (V =2.0 - 5.5V, GND = 0V, T = +25° C, unless otherwise specified) Parameter Symbol Min. Max. Unit Condition = 32.768kHz Oscillator start time = 16MHz WDT RC Frequency Internal RC: |F - 24MHz|/24MHz = 2.0 - 5.5V, T = +25°...
  • Page 167: Ordering Information

    SH79F1640 12. Ordering Information Part No. Package SH79F1640M/028MU SOP28...
  • Page 168: Product Naming Rules

    SH79F1640 13. Product Naming Rules SH 79 F 16 40 M/ 028 M U U: Tube packing M: SOP package 028: Package pins is 28 /: Divider M: SOP Package 40: Product serial number 16: Product flash size 16K bytes...
  • Page 169: Package Information

    SH79F1640 14. Package Information SOP28L Outline Dimensions unit: inches/mm  Detail F See Detail F Seating Plane Dimensions in inches Dimensions in mm Symbol 0.085 0.104 2.15 2.65 0.004 0.012 0.10 0.30 0.081 0.098 2.05 2.50 0.013 0.02 0.33 0.51 0.006...
  • Page 170: Product Spec. Change Notice

    SH79F1640 15. Product SPEC. Change Notice Version Content Date Original Jun. 2023...
  • Page 171 SH79F1640 IMPORTANT NOTICE This manual is the property of Sino Wealth Electronic Ltd. and its affiliates ("Company"). This manual, including all of the Company's products ("Products") described herein, is owned by the Company according to relevant laws or treaties. The Company reserves all rights under such laws and treaties, and does not grant you any license to use its patents, copyrights, trademarks and other intellectual property rights.
  • Page 172: Table Of Contents

    SH79F1640 Content FEATURES ......................................1 GENERAL DESCRIPTION ................................1 BLOCK DIAGRAM .................................... 2 PIN CONFIGRATION ..................................3 PIN FUNCTION AND PIN DESCRIPTION ............................ 4 PRODUCT INFORMATION ................................6 SFR MAPPING ....................................7 NORMAL FUNCTIO ..................................20 8.1 CPU ........................................20 8.1.1 CPU Feature....................................
  • Page 173 SH79F1640 8.10.4 Interrupt Vector ..................................70 8.10.5 Interrupt Priority ..................................70 8.10.6 Interrupt Handling ..................................71 8.10.7 Interrupt Response Timing ................................ 71 8.10.8 External Interrupt Input ................................72 8.10.9 Interrupt Summary ..................................74 ENHANCED FUNCTION ................................75 9.1 T ..................................75...
  • Page 174 SH79F1640 9.13.2 Idle Mode ....................................153 9.13.3 Power-Down Mode ................................. 153 9.13.4 Register ....................................154 9.14 W .................................... 155 IMER 9.14.1 Featueres ....................................155 9.15 C ....................................156 PTION INSTRUCTION SET................................... 158 ELECTRICAL CHARACTERISTICS ............................. 163 * ................................163 BSOLUTE...

Table of Contents