sh66p31b SinoWealth Micro-Electronics Corp. Ltd, sh66p31b Datasheet

no-image

sh66p31b

Manufacturer Part Number
sh66p31b
Description
Otp 1k 4-bit Micro-controller
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
General Description
SH66P31B is a single-chip 4-bit micro-controller. This device integrates an SH6610C CPU core, RAM, 1K words of OTP ROM,
timer, and programmable input/output driving buffers and carrier synthesizer. The standby function, which can be used to
stop/start the ceramic resonator oscillation, facilitates the low power dissipation of the system. The SH66P31B is suitable for
infrared remote control transmitter application.
Pin Configuration
Features
SH6610C-Based Single-Chip 4-bit Micro-Controller
OTP ROM: 1024 X 16 bits
RAM:
Operation Voltage:
14 CMOS Bi-directional I/O pins
4-level Stack (Including Interrupts)
One 8-bit Auto Re-loaded Timer/Counter
Warm-Up Timer
Powerful Interrupt Sources:
- 32 X 4 Bits System Register
- 48 X 4 bits Data Memory
- V
- V
- Timer0 Interrupt
- External Interrupts: PORTA/B/C (Falling edge)
DD
DD
= 1.8V - 3.6V
= V
LPD
- 3.6V (LPD enable)
PORTC.2
PORTC.3
PORTD.0
PORTD.1
RESET
OSCO
OSCI
REM
V
GND
DD
10
1
2
3
4
5
6
7
8
9
1
Oscillator (code option)
Instruction Cycle Time:
Two Low Power Operation Modes: HALT and STOP
Reset
Built-in remote control carrier synthesizer by software option
Port interrupt source select (code option)
20-pin DIP/SOP/TSSOP package
- Ceramic Resonator: 400kHz - 4MHz
- External Input Clock: 400kHz - 4MHz
- 4/f
- 16/f
- Built-in Power-on Reset (POR)
20
19
18
17
16
15
14
13
12
11
OSC
OSC
OTP 1K 4-bit Micro-controller
PORTA.0 / T0
PORTC.1
PORTC.0
PORTB.3
PORTB.2
PORTB.1
PORTB.0
PORTA.3
PORTA.2
PORTA.1
SH66P31B
V2.1

Related parts for sh66p31b

sh66p31b Summary of contents

Page 1

... External Interrupts: PORTA/B/C (Falling edge) General Description SH66P31B is a single-chip 4-bit micro-controller. This device integrates an SH6610C CPU core, RAM, 1K words of OTP ROM, timer, and programmable input/output driving buffers and carrier synthesizer. The standby function, which can be used to stop/start the ceramic resonator oscillation, facilitates the low power dissipation of the system. The SH66P31B is suitable for infrared remote control transmitter application ...

Page 2

... System Register ROM Bits V DD Power Circuit GND Reset Circuit Oscillator CPU PORTA (4-BITS) T0 input PORTB (4-BITS) Interrupt Circuit PORTC (4-BITS) PORTD (2-BITS) Remot Control Carrier Synthesizer REM Output TIMER 0 2 SH66P31B RESET OSCO OSCI PORTA [3:1] PORTA PORTB [3:0] PORTC [3:0] PORTD [1:0] REM ...

Page 3

... Bit programmable I/O pins. I/O Bit programmable I/O pins, Vector Interrupt (Active falling edge). I/O Shared Programming Power supply (+5.5V Programming high voltage Power supply (+11.0V). RESET P GND Ground. I OSCI Programming Clock input pin. I/O PORTA.0 Programming Data pin. 3 SH66P31B Description power supply (+5.5V). DD power supply (+11.0V). PP Description ...

Page 4

... The stack nesting includes both subroutine calls and interrupts requests. The maximum allowed for subroutine calls and interrupts are 4 levels. If the number of calls and interrupt requests exceeds 4, then the bottom of stack will be shifted out, that program execution may enter an abnormal state. 4 SH66P31B ...

Page 5

... Set PORTA to be output control PBCR.1 PBCR.0 W Set PORTB to be output control PCCR.1 PCCR.0 W Set PORTC to be output control PDCR.1 PDCR.0 W Set PORTD to be output control - - - Reserved - - - Reserved Bit0: T0 signal edge T0S T0E W Bit1: T0 signal source - - - Reserved - - - Reserved - - - Reserved 5 SH66P31B Remarks ...

Page 6

... Address Instruction $000 $001 $002 $003 $004 * JMP instruction can be replaced by any instruction. JMP* Jump to RESET service routine NOP JMP* Jump to TIMER0 service routine NOP JMP * Jump to Port interrupt service routine 6 Remarks Reserved Reserved SH66P31B ...

Page 7

... LPD1 LPD0 PACR.1 PACR.0 PBCR.1 PBCR.0 PCCR.1 PCCR.0 - PDCR.1 PDCR T0S T0E - - - - - - - - - After any Reset $000 Undefined Undefined Undefined 7 SH66P31B Power-on reset -x-x -x-x -xxx 0000 0000 xxxx xxxx xxxx xxxx ---0 xxxx xxxx xxxx xxxx xxxx 0000 0101 0000 0000 0000 0000 --00 ...

Page 8

... Built-in 30pF capacitance, Operating Temperature range from -20 ℃ to +80 ℃ OSC - From China Shanghai JINGBO Electronics CO., LTD More manufacturer and type of ceramic resonator will be added in. (2) External input clock: 400kHz - 4MHz OSCI C1 Ceramic C2 OSCO OSCI External clock source OSCO 8 SH66P31B GND ...

Page 9

... Recommend Type 100pF ZT 455E - ZT 3.58M 4M* Recommend Type φ 12.5pF 8 - 15pF 49S-4.000M-F16E 8 - 15pF 49S-8.000M-F16E 9 SH66P31B Manufacturer JingBo Electronic Shanghai JingBo Electronic Shanghai JingBo Electronic Shanghai Manufacturer KDS JingBo Electronic Shanghai JingBo Electronic Shanghai manufacturers. ...

Page 10

... PORTA input/output control PBCR.1 PBCR.0 W PORTB input/output control PCCR.1 PCCR.0 W PORTC input/output control PDCR.1 PDCR.0 W PORTD input/output control READ DATA IN READ Bit 1 Bit 0 R/W CF1 CF0 W 10 SH66P31B Remarks V DD Weak Pull high V DD I/O Pad GND Remarks Bit3: Port Pull-high resistor Control ...

Page 11

... And further falling edge transition would not be able to make interrupt request until all of the pins return Set corresponding IEP to “1” and clear IRQP to “0” Falling Edge Detector Falling Edge Detector IEP Port Interrupt IRQP opt_pint = 0 (Default) IEP Port Interrupt IRQP opt_pint = 1 to GND emerges on the port, the following must be DD SH66P31B . DD ...

Page 12

... SH66P31B Low nibble first High nibble to update the counter High nibble first Low nibble followed. Load Reg. L Load Reg. H 8-bit timer counter Latch Reg. L Clock Source System clock/T0 System clock/T0 System clock/T0 System clock/T0 ...

Page 13

... T OSC ≥ N Bit 1 Bit 0 R/W Bit0: T0 signal edge T0S T0E W Bit1: T0 signal source Increment on low-to-high transition T0 pin (Power-on initial Increment on high-to-low transition T0 pin System clock (Power-on initial Transition on T0 pin ∆ Remarks SH66P31B ...

Page 14

... Interrupt Two interrupt sources are available on SH66P31B: - Timer0 interrupt - PORTA interrupts (Falling edge) Interrupt Control Bits and Interrupt Service The interrupt control flags are mapped on $00 and $01 of the system register. They can be accessed or tested by the program. Those flags are clear to “0” at initialization by the chip reset. ...

Page 15

... /12, 1/3 duty /12, 1/2 duty X CPS /8 fx MUX /8 /12 1/2 duty 1/3 duty 1/2 duty No Carrier Carrier Synthesizer Remote Control Functional Block Diagram fx fx/8, 1/2 duty fx/12, 1/2 duty fx/12, 1/3duty Remote Carrier Duty 15 Remarks Remarks (default) OSC /8 OSC CF1 CF0 REM REMO MUX SH66P31B ...

Page 16

... LPD3 LPD2 11. HALT and STOP Mode After the execution of HALT instruction, SH66P31B will enter HALT mode. In HALT mode, the CPU will stop operating; but the peripheral circuit (timer) will keep operating. After the execution of STOP instruction, SH66P31B will enter STOP mode. ...

Page 17

... Connect the programming interface with OTP writer and begin programming. (3) Disconnect OTP writer and short these jumpers when programming is completed. For more detail information, please refer to the OTP writer user manual SCK SDA GND Jumper 17 SH66P31B , V , SDA OTP Writer ...

Page 18

... AC shift right one bit Function AC < AC, Mx < < AC, Mx < AC, Mx <- Mx ⊕ I AC, Mx < AC, Mx <- Mx & I Function AC, Mx <- Decimal adjust for add AC, Mx <- Decimal adjust for sub 18 SH66P31B Flag Change Flag Change CY ...

Page 19

... Accumulator Carry flag Data memory ROM page Stack 19 Function Flag Change AC < <- AC AC, Mx <- I Function Flag Change PC <- ST; CY, PC < Operation I Immediate data ⊕ Logical exclusive OR | Logical OR & Logical AND bbb RAM bank TBR Table Branch Register SH66P31B CY ...

Page 20

... GND + 0 Ceramic Oscillator = 455kHz SH66P31B Condition LPD function disable LPD function enable All output pins unload (Execute NOP instruction 3. 455kHz; CPU stop OSC = ALL output pins unload, LPD off , 4M; CPU stop OSC ALL output pins unload, LPD off, V ...

Page 21

... T12 T13 T14 T15 T16 IPW( Max. Unit Condition 2 -20 ℃ to +70 ℃ ℃ A µA 3 -20 ℃ to +70 ℃ A Max. Unit Condition µ Prescaler divide ratio - T17 T18 T19 T20 T21 T22 T29 t IPW(H) SH66P31B T30 T31 T32 ...

Page 22

... PORTA.2 PORTA.1 RESET 10kΩ PORTA.0 C1 0.1µF V PORTD.1 DD PORTD.0 GND PORTC.3 PORTC.2 PORTC.1 R1 PORTC.0 REM PORTB.3 20p PORTB.2 OSCO PORTB.1 4MHz PORTB.0 OSCI PORTA.3 20p PORTA.2 PORTA.1 RESET PORTA.0 C1 0.1µF 22 SH66P31B Simplified Custom Code Selection only one switch can be closed ...

Page 23

... PORTB.1 15 PORTB.0 1884µm 14 PORTA.3 13 PORTA.2 12 PORTA.1 11 Designation X PORTA.1 871.95 PORTA.2 871.95 PORTA.3 871.95 PORTB.0 871.95 PORTB.1 871.95 PORTB.2 871.95 PORTB.3 787.9 PORTC.0 677.9 PORTC.1 457.9 GND.1 347.9 SH66P31B Unit: µm Y -707 -487 -377 145.8 255.8 475.8 736 736 736 736 ...

Page 24

... Ordering Information Part No. SH66P31B SH66P31BM SH66P31BX Package 20L DIP 20L SOP 20L TSSOP 24 SH66P31B ...

Page 25

... L α 0° - 15° e 0.345 ± 0.035 A S 0.078 Max. does not include resin fins Dimensions in mm 4.45 Max. 0.25 Min. 3.30 ± 0.25 0.46 +0.10 -0.05 1.45± 0.2 0.25 +0.10 -0.05 26.06 Typ. (26.57 Max.) 7.62 ± 0.25 6.35 Typ. (6.65 Max.) 2.54 ± 0.25 3.30 ± 0.25 0° - 15° 8.76 ± 0.89 1.98 Max. SH66P31B unit: inches/mm ...

Page 26

... Max. θ 0° - 10° is for PC Board surface mount pad pitch design reference only θ L Detail See Detail F Dimensions in mm 2.69 Max. 0.10 Min. 2.33 ± 0.13 0.41+0.10 -0.05 0.25+0.10 -0.05 12.80 ± 0.51 7.49 ± 0.25 1.27 ± 0.15 9.50 NOM. 10.31 ± 0.31 0.81 ± 0.20 1.40 ± 0.20 1.07 Max. 0.10 Max. 0° - 10° SH66P31B unit: inches/mm ...

Page 27

... L Detail F See Detail F Dimensions in mm MIN NOM MAX --- --- 1.20 0.05 --- 0.15 0.80 1.00 1.05 0.19 --- 0.30 0.09 --- 0.20 6.40 6.50 6.60 --- 6.40 --- 4.30 4.40 4.50 --- 0.65 --- 0.45 0.60 0.75 --- --- 0.10 --- 0° 8° --- --- 12° SH66P31B unit: inches/mm ...

Page 28

... Data Sheet Revision History Version 2.1 Add Pad GND1 in Bonding diagram 2.0 Package information update 1.0 Original Content 28 SH66P31B Date Jan. 2008 Apr. 2007 Sep. 2005 ...

Related keywords