sh66k31c SinoWealth Micro-Electronics Corp. Ltd, sh66k31c Datasheet

no-image

sh66k31c

Manufacturer Part Number
sh66k31c
Description
Mask 4-bit Micro-controller
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
General Description
SH66K31C is a single-chip 4-bit micro-controller. This device integrates an SH6610C CPU core, RAM, 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 SH66K31C is suitable for infrared remote
control transmitter application.
Pin Configuration
Features
SH6610C-based single-chip 4-bit micro-controller
ROM: 1024 X 16 bits
RAM:
- 32 X 4 bits System Register
- 48 X 4 bits data memory
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:
- 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 Pull-high resistor for reset pin (code option)
Built-in remote control carrier synthesizer by software
option
Port interrupt source selection (code option)
Chip form or 20-pin DIP/ TSSOP package
20
19
18
17
16
15
14
13
12
11
- Ceramic resonator: 400kHz - 4MHz
- External input clock: 400kHz - 4MHz
- 4/f
- 16/f
- Built-in power-on reset (POR)
OSC
OSC
PORTA.0 / T0
PORTC.1
PORTC.0
PORTB.3
PORTB.2
PORTB.1
PORTB.0
PORTA.3
PORTA.2
PORTA.1
Mask 4-bit Micro-controller
SH66K31C
V1.0

Related parts for sh66k31c

sh66k31c Summary of contents

Page 1

... SH66K31C is a single-chip 4-bit micro-controller. This device integrates an SH6610C CPU core, RAM, 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 SH66K31C 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 SH66K31C RESET OSCO OSCI PORTA [3:1] PORTA.0/T0 PORTB [3:0] PORTC [3:0] PORTD [1:0] REM ...

Page 3

... Oscillator output pin connected to ceramic oscillator. I Oscillator input pin connected to ceramic oscillator. P Ground pin. I Reset input (active low), has internal pull-high resistor (Code Option). I/O Bit programmable I/O pin shared with external event counter input T0. I/O Bit programmable I/O pins. I/O Bit programmable I/O pins, Vector Interrupt (Active falling edge). 3 SH66K31C Description ...

Page 4

... The stack nesting includes both subroutine calls and interrupt 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 SH66K31C ...

Page 5

... LPD enable control (LPD3 - 0): 0101: LPD enable (Power-on initial) 1010: LPD disable Set PORTA to be output control Set PORTB to be output control Set PORTC to be output control Set PORTD to be output control Reserved Reserved Bit0: T0 signal edge Bit1: T0 signal source Reserved Reserved Reserved SH66K31C ...

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 PORTA/B/C interrupt service routine 6 Remarks Reserved Reserved SH66K31C ...

Page 7

... DPM.0 DPH.1 DPH.0 CF1 CF0 - - - LPD1 LPD0 PACR.1 PACR.0 PBCR.1 PBCR.0 PCCR.1 PCCR.0 - PDCR.1 PDCR T0S T0E - - - - - - - - - 7 SH66K31C Power-on Reset -x-x -x-x -xxx ---- 0000 0000 ---- ---- xxxx xxxx xxxx xxxx ---- ---0 xxxx xxxx xxxx -xxx -xxx 0000 ---- 0101 0000 0000 0000 0000 ---- ---- --00 ---- ---- ---- ...

Page 8

... Built-in 30pF capacitance, Operating Temperature range from -20 ℃ to +80 ℃ OSC - JINGBO Electronics CO., LT., Shanghai, China More manufacturer and type of ceramic resonator will be added. (2) External input clock: 400kHz - 4MHz After any Reset $000 Undefined Undefined Undefined OSCI C1 Ceramic C2 OSCO OSCI External clock source OSCO 8 SH66K31C 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 SH66K31C 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 SH66K31C Remarks V DD Weak Pull high V DD I/O Pin GND Remarks Bit3: Port Pull-high resistor Control ...

Page 11

... Set corresponding IEP to “1” and clear IRQP to “0” PORT Interrupt Block Diagram. DD Falling Edge Detector Falling Edge Detector GND emerges on the port, the following must be executed SH66K31C IEP Port Interrupt IRQP opt_pint = 0 (Default) IEP Port Interrupt IRQP opt_pint = 1 DD ...

Page 12

... SH66K31C 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

... 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 the same as the system clock input. ; ∆T = 20ns T0 = Timer0 input period 2 * ∆ T Remarks SH66K31C ...

Page 14

... Interrupt Two interrupt sources are available on SH66K31C: - Timer0 interrupt - PORTA/B/C 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 SH66K31C ...

Page 16

... LPD Enable Control (LPD3 - 0): When LPD function enable code option = 0 0101: LPD Enable (Power-on initial) LPD1 LPD0 W 1010: LPD Disable When LPD function enable code option = 1 xxxx: LPD Enable 16 SH66K31C ≤ LPD goes back to V > without any delay DD DD ...

Page 17

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

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 SH66K31C 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 SH66K31C CY ...

Page 20

... OSCI (Driven with external clock, for reference) I/O ports 3.0V 3. RESET I/O ports with pull-high GND, V I/O I/O ports with no pull-high GND, V I/O For OSCI 3. GND + 0.25 (With pull-high), V RESET V = GND + 0.25 (No pull-high), V RESET I/O ports -1.0mA 3. I/O ports 5mA Ceramic Oscillator = 455kHz SH66K31C = 3.0V ...

Page 21

... T12 T13 T14 T15 T16 IPW( Unit Condition = −20 ℃ to +70 ℃ ℃ −20 ℃ to +70 ℃ µ Unit Condition µ Prescaler divide ratio ns ns T17 T18 T19 T20 T21 T22 T29 t IPW(H) SH66K31C T30 T31 T32 ...

Page 22

... PORTB.3 20p PORTB.2 OSCO PORTB.1 4MHz PORTB.0 OSCI PORTA.3 20p PORTA.2 PORTA.1 RESET PORTA.0 10kΩ C1 0.1µF , when the user verifies the function of the remote control with SH66P31B OTP type IC SH66K31C Simplified Custom Code Selection only one switch can be closed ...

Page 23

... PORTB.2 17 PORTB.1 1340µm 16 PORTB.0 15 PORTA.3 14 PORTA.2 13 PORTA.1 12 PORTA.0 Designation X PORTA.0 472.23 PORTA.1 551.16 PORTA.2 551.16 PORTA.3 551.16 PORTB.0 551.16 PORTB.1 551.16 PORTB.2 551.16 PORTB.3 476.91 PORTC.0 368.91 PORTC.1 260.91 SH66K31C Unit: µm Y -548.91 -419.31 -264.33 -156.33 -48.33 59.67 167.67 564.21 564.21 564.21 ...

Page 24

... Ordering Information Part No. SH66K31CH SH66K31C SH66K31CX Package CHIP FORM 20L DIP 20L TSSOP 24 SH66K31C ...

Page 25

... L α 0° - 15° e 0.345 ± 0.035 A S 0.078 Max. does not include resin fins α A 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. SH66K31C unit: inches/mm ...

Page 26

... 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° SH66K31C unit: inches/mm ...

Page 27

... Data Sheet Revision History Version 1.0 Original Content 27 SH66K31C Date Dec. 2007 ...

Related keywords