sh6614 SinoWealth Micro-Electronics Corp. Ltd, sh6614 Datasheet

no-image

sh6614

Manufacturer Part Number
sh6614
Description
4k 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
! SH6610C-based single-chip 4-bit microcontroller
! ROM: 4096 X 16 bits
! RAM: 512 X 4 bits
! Operation voltage: 2.4V – 6.0V
! 8 CMOS bi-directional I/O pins
! 4-Level subroutine nesting (include interrupts)
! One 8-bit auto re-load timer/counter
! Wem-up timer for power-on reset
! Powerful interrupt sources:
! 8-bit Base timer
! LCD driver:
General Description
SH6614 (SH6614B, SH6614C) is a single chip microcontroller integrated with SRAM, timer and dual-tone PSG, LCD driver, and
I/O port. This chip builds in a dual-oscillator to enhance the total chip performance.
Pin Configuration
QFP64
Features
240 dots (1/8 duty 1/4 bias) or 136 dots (1/4 duty 1/3 bias)
- External interrupts ( INT0 )
- Internal interrupt (Timer0)
- Internal interrupt (Base Timer)
- Port's falling edge interrupt: PORTB ( INT1 )
OSCXO
OSCXI
OSCO
COM1
COM2
COM3
COM4
COM5
COM6
OSCI
GND
PA1
PA0
52
53
54
55
56
57
58
59
60
61
62
63
64
51
1
C
O
M
P
A
2
7
50 49 48 47 46 45 44
2
M
P
A
C
O
8
3
3
G
P
B
0
S
E
3
0
4
P
B
S
E
G
2
9
1
5
S
E
G
P
B
2
2
8
6
G
P
B
S
E
2
7
3
7
S
E
G
V
D
D
2
6
4K 4-Bit Microcontroller with LCD Driver
SH6614B
SH6614C
SH6614
8
G
R
E
S
E
T
S
E
2
5
43 42 41 40 39 38 37 36 35 34 33
N
C
9 10 11 12 13 14 15 16 17 18 19
N
C
N
C
N
C
1
N
C
N
C
! LCD used as scan output
! Built-in dual tone PSG with one noise generator
! 2 Clock sources
! Instruction cycle time:
! Two low power operation modes: HALT and STOP
! Low power consumption
G
T
E
S
T
S
E
2
4
OSC: (code option select crystal or RC type)
V
S
E
G
2
3
4
- Crystal oscillator 32.768K
- RC oscillator: 262K
OSCX: (system register selected ceramic or RC type)
- Ceramic oscillator 455K
- RC oscillator 1.8M or 2M
- 122.07µs for 32.768 KHz crystal
- 15.27µs for 262 KHz RC
- 8.79µs for 455KHz ceramic
- 2.22µs for 1.8 MHz RC
- 2µs for 2.0 MHz RC
S
E
G
V
3
2
2
V
S
E
G
2
1
2
S
E
G
V
1
2
0
G
S
E
G
S
E
1
9
1
G
S
E
G
S
E
2
1
8
G
S
E
G
3
S
E
1
7
32
31
30
29
28
27
26
25
24
23
22
21
20
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SH6614B
SH6614C
SH6614
V2.2

Related parts for sh6614

sh6614 Summary of contents

Page 1

... LCD driver: 240 dots (1/8 duty 1/4 bias) or 136 dots (1/4 duty 1/3 bias) General Description SH6614 (SH6614B, SH6614C single chip microcontroller integrated with SRAM, timer and dual-tone PSG, LCD driver, and I/O port. This chip builds in a dual-oscillator to enhance the total chip performance. Pin Configuration ...

Page 2

... SH6614 50 SH6614B 51 SH6614C 52 53 GND ...

Page 3

... GND ROM (4096 X 16) RAM (512 X 4) OSCS 8-BIT TIMER0 PORTB PORTA & EXTERNAL INT COMMON LCD DRIVER RAM SEGMENT DRIVER PSG SCAN REGISTER CPU OPERATING VOLTAGE LCD VOLTAGE GENERATOR 3 SH6614/B/C OSCI OSCO OSCXI OSCXO PORTB [0:3] PA.1 (PSG) PA.0 (INT0 ) PA.2 (PSG) PA.3 COM [1:8] SEG [1:34] ...

Page 4

... Bit programmable I/O ,Vector interrupt ( INT1 ) Bit programmable I/O,PA.0 shared with INT0 I/O PA.1 , PA.2 shared with PSG output OSCXI I Oscillator X input OSCXO O Oscillator X output GND P Ground OSCO O Oscillator output OSCI I Oscillator input O Common signal output for LCD display O Common/segment signal output for LCD display 4 SH6614/B/C Description Description ...

Page 5

... V P Power supply DD I/O Bit programmable I/O, Vector interrupt ( INT1 ) Bit programmable I/O, PA.0 shared with INT0 I/O PA.1, PA.2shared with PSG output I Oscillator X input O Oscillator X output GND P Ground O Oscillator output I Oscillator input O Common signal output for LCD display O Common/segment signal output for LCD display 5 SH6614/B/C Description ...

Page 6

... It provides the following functions: Binary addition/subtraction (ADC, SBC, ADD, SUB, ADI, SBI) 2. ROM SH6614/B/C can address 4096 × 16 bit of program area $000 to $FFF. There is an area from addresses $000 through $004 that is reserved for special interrupts service routines such as starting vector address. Address Instruction ...

Page 7

... Bit3: channel 2 octave shift control Bit0, Bit1: Channel 1, 2 enable CH2EN CH1EN Bit2, Bit3: volume control Bit0, 1: PSG1, PSG2 mode control C2M C1M Bit2, 3: PSG1, PSG2 clock source selection - - Reserved 7 SH6614/B/C Initial Function Value 0000 0000 0000 0000 0000 0000 - 0000 0000 ...

Page 8

... Oscillator circuit 5.1. Circuit Configuration SH6614/B/C has two on-chip oscillation circuits OSC and OSCX. OSC is a low frequency crystal (Typ. 32.768KHz (Typ.262KHz) determined by the code option. This is designed for low frequency operation. OSCX also has two types: ceramic (Typ.455KHz (1.8M or 2MHz determined by the software option ...

Page 9

... If the OSCX is not used, it must be masked as a ceramic resonator and the OSCXI must be connected to GND. RBIAS OSCI 32768Hz RF XTL OSCO 5-6p OSCI RO Ring Oscllator OSCO OX OFF OSCXI 455KHz RF Ceramic OSCXO OX OFF OSCI RO Ring Oscllator OSCO 9 SH6614/B/C CPU STOP TO CPU RO CPU STOP TO CPU CPUSTOP TO CPU CPUSTOP TO CPU ...

Page 10

... PORTA - B These ports contain 8bi-directional I/O ports. The circuit configuration of PORTA - shown as: CONTROL REGISTER REGISTER I/O ports of SH6614/B/C can be accessed by the read/write system register. User can output any value to any I/O port bit at any time. Memory map addresses are listed as follows: Address Bit3 $08 PORTA ...

Page 11

... Heavy load protection mode is set. HEAVYLOAD Bit2 PACR.2 PACR.1 PBCR.2 PBCR.1 Bit1 Bit0 Bit1, 2:Select PA.1, PA.2 as I/O port or PSG output PAM1 HLM Bit0:Hevey load mode Bit3:Port pull-up control 0: Disable pull-up MOS 0 HLM 1 ON OFF 1 Instruction Cycle Time 11 SH6614/B/C Bit1 Bit0 PACR.0 PBCR.0 Function 1: Enable 1: Enable pull-up MOS R/W ...

Page 12

... CH1 CLK MPX CH2 CLK CHANNEL2 SEL0 SEL1 OSC /2 CLK-SLECTOR OSCX /16 OSC clk OSC = 32.768K OSC = 262K OSC = 32.768K OSC = 262K OSCX = 1.8M OSCX = 455K OSCX = 1.8M OSCX = 455K 12 SH6614/B/C PSG MIXER PSG PSG CLK PSG clk 32.768K 262K 16.384K 131K 1.8M 455K 112.5K 28.4K ...

Page 13

... Channel 2 is constructed by a 15-bit pseudo random counter. Channel 2 is enabled/disabled by CH2EN It can be a 15-bit wide-band noise generator or a 7-bit sound generator. It can also create an alarm envelope signal. Function CH2 is a Sound generator. CH2 is a Noise generator. CH2 is an Alarm mode register. 13 SH6614/B/C /2 CH1 OUT C2M SELECTOR CH2 OUT ENEVLOP ...

Page 14

... TIME SLOT VOL0 VOL1 PA.1 I/O PSG VOL TIME SLOT CONTROL PSG PA.2 I/O Function PA.1:I/O PORT PA.2: I/O PORT PA.1:PSG output PA.2: I/O PORT PA.2: PSG output PA.1:I/O PORT PA.1:PSG output PA.2: PSG output VOL1 VOL0 SH6614/B/C PAM1 PA.1 SELECTOR1 PA.2 SELECTOR2 PAM2 Vol. Level ...

Page 15

... SH6614/B/C N LSFR N (C1.6 ~ C1.0) (C2.14 ~ C2. ...

Page 16

... Music Table 1.So the channel 1 sound frequency = 112.5Khz/ 81) = 694.4Hz ≒ the F5 sound frequency . (5) Lastly, the user should select the VOL1 = 1 and VOL0 = 0, so the VOL level = 3. Example 2: CH1EN = 0; CH2EN = 1 OSCX = 1.8M, SEL0 = SEL1 = 1 So PSG clk = 112kHz; Switch clk = 28kHz; Vol. Clk = 112kHz 16 SH6614/B/C ...

Page 17

... Then select C1.6 ~ C1.0 = 7E, so that and the PSG output frequency = 455KHz/ 37.92KHz. Or select C1.6 ~ C1.0 = 78, so that and the PSG output frequency = 455KHz/ 56.87KHz. C2.1 C2.0 Alarm output control SH6614/B/C DC envelop 1Hz output 4Hz output 8Hz output 32Hz output ...

Page 18

... Timer 0 SH6614/B/C has one 8-bit timer. The timer consists of an 8-bit up counter and an 8-bit preload register. The timers provide the following functions: - Programmable internal timer function - Read the counter values 9.1. Timer 0 configuration and operation The timer 0 consists of an 8-bit write-only timer load register (TL0L, TL0H) and an 8-bit read-only timer counter (TC0L, TC0H). ...

Page 19

... BTM.0 BTM Enable the base timer BTM reset the base timer Prescaler Ratio / /16 MPX / /16 4Bit Scaler 19 SH6614/B/C Function Base timer mode register Clock source 4096Hz or 32KHz 4096Hz or 32KHz 4096Hz or 32KHz 4096Hz or 32KHz 8 Bit base timer counter reset ...

Page 20

... SH6614/B/C Bit 0 DUTY 1, 1 1/8Hz 1.7Hz 1/8Hz 6.9Hz 1/8Hz 7.6Hz 1Hz 1.7Hz 1Hz 6.9Hz 1Hz 7.6Hz ...

Page 21

... SEG11 SEG11 31BH SEG12 SEG12 31CH SEG13 SEG13 31DH SEG14 SEG14 31EH SEG15 SEG15 31FH SEG16 SEG16 320H SEG17 SEG17 321H 21 SH6614/B/C LCD com1 common ~ driver com8 LCD seg1 segment driver ~ & scan seg34 output Bit 0 - Bit3 Bit2 Bit1 COM4 COM3 ...

Page 22

... SEG30 345H Bit0 Address SEG9 360H SEG10 361H SEG11 362H SEG12 363H SEG13 364H SEG14 365H SEG15 366H SEG16 367H 22 SH6614/B/C Bit3 Bit2 Bit1 COM8 COM7 COM6 SEG1 SEG1 SEG1 SEG2 SEG2 SEG2 SEG3 SEG3 SEG3 SEG4 SEG4 SEG4 SEG5 SEG5 ...

Page 23

... SEG1 - SEG30 for COM1, COM3, COM5, COM7 are lighting. SEG1 - SEG30 for COM2, COM4, COM6, COM8 are not lighting. 1/4 DUTY 1/3 BIAS SELECT COM V4 GND V1 SELECT V2 SEG V3 V4 GND FRAME CYCLE 23 SH6614/B/C UNSELECT GND UNSELECT GND GND ...

Page 24

... Interrupt 4 interrupt sources are available on SH6614/B/C: - External interrupt ( INT0 ) - Timer0 interrupt - Base timer interrupt - Port's falling edge detection interrupt ( INT1 ) The configuration of system register $0: Address Bit 3 Bit 2 $00 IEX IET0 $01 IRQX IRQT0 12.1. External Interrupt ( INT0 ) External interrupt is shared with the PA.0, falling edge active. When the bit 3 of the register $0 (IEX) is set to 1, the external interrupt is enabled, writing a " ...

Page 25

... PC.1 PCB PC GND PC.1 PCB PC SH6614 Bonding Option CPU core Wake up (a) If RST signal valid, system will reset. RST , INT0 , Hold (b) If INT0 , INT1 signal valid, system will enter interrupt INT1 subroutine, then execute the main program to continue. (a) If RST signal valid, system will reset. ...

Page 26

... 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. 26 SH6614/B/C Flag Change Flag Change ...

Page 27

... PC ← TBR ← hhhh; AC ← ← ← X (Include p) PC ← (PC11-C8) (TBR) (AC) No Operation I Immediate data ⊕ Logical exclusive OR | Logical OR & Logical AND bbb RAM bank = 000 27 SH6614/B/C Flag Change Flag Change CY p ROM page = 0 ST Stack TBR Table Branch Register ...

Page 28

... X 0. 3.0V 0. 3.0V SH6614/B/C Conditions All output pins unload execute NOP instruction excluding LCD bias current All output pins unload (HALT mode) excluding LCD bias current All output pins unload (STOP mode), LCD off PORTA, PORTB INT0 , RESET PORTA, PORTB ...

Page 29

... 5.0V 0. 5.0V SH6614/B/C Conditions All output pins unload execute NOP instruction excluding LCD bias current All output pins unload (HALT mode) excluding LCD bias current All output pins unload (STOP mode), LCD off PORTA, PORTB INT0 , RESET ...

Page 30

... Typ. Max. Unit - PPM Min. Typ. Max. Unit - PPM Min. Typ. Max. Unit µ 100 - - 10 % Min. Typ. Max. Unit - - SH6614/B/C Conditions [F(3.0)-F(2.5)] /F (3.0), crystal oscillator Conditions [F(5.0)-F(4.5)] /F (5.0), crystal oscillator Conditions [F(3.0)-F(2.5)] /F (3.0), Bias resistance accuracy within 1% Conditions [F(4.5)-F(3.6)] /F (4.5), Bias resistance accuracy within 1% ...

Page 31

... Typical RC Oscillator Frequency vs (Reference only) 270 260 250 240 230 919KΩ 2100 1900 1700 1500 1300 108KΩ 2300 2100 1900 1700 91KΩ 31 SH6614/B (Volts (Volts (Volts) DD ...

Page 32

... OSCXI V DD 10KΩ RESET OSCXO 104 I/O PORTB PORTA.1 OSCO PORTA.2 OSCI 12p GND TEST 1/4 duty 1/3 bias OSCXI V DD 10KΩ RESET OSCXO 104 PORTA PORTB PORTA.0 OSCO Ω 930K OSCI GND TEST 32 SH6614/B/C 20p 455KHz 100 Ω BUZZER Ext.int ...

Page 33

... SEG1 PORTB0 PORTB1 PORTB2 PORTB3 SEG1 - SEG4 as SCAN outport V OSCXI DD 100 ~ 120KΩ 5v) DD RESET OSCXO 104 PORTB 10KΩ PORTA.1 OSCO OSCI PORTA.2 TEST GND LCD PANNEL 33 SH6614/B/C SPEAKETR 8050 KEY BOARD ...

Page 34

... Normal LCD pannel SH6614 SH6614B SH6614C 1/4 Bias Large LCD pannel V 1 Ext SH6614 SH6614B Ext.R SH6614C V 3 Ext floating 34 SH6614/B/C 1/3 Bias Large LCD pannel V 1 Ext SH6614 SH6614B Ext.R SH6614C V 3 Ext ...

Page 35

... E7 2636.96 21 351.56 0.67 F7 2793.77 20 370.07 0.02 #F7 2959.89 19 390.63 -0.35 G7 3135.90 18 413.60 -0.41 #G7 3322.37 17 439.45 -0.12 A7 3519.93 16 468.75 0.56 3729.23 15 #A7 502.23 1.69 B7 3950. SH6614/B/C LSFR OCT1/ Real Error% (C1.6~C1.0) OCT2 freq. (C2.14~C2. 493.42 -0. 520.83 -0. 556.93 0. 585.94 -0. 625.00 0. 661.77 0. 694.44 -0. 740.13 ...

Page 36

... F5 156.04 0.31 #F5 739.97 165.50 0.42 G5 783.99 174.30 -0.18 #G5 830.59 184.09 -0.49 A5 880.00 195.05 -0.49 #A5 932.31 207.39 -0.12 B5 987.77 221.41 0.64 C6 1046.48 16 234.06 0.42 #C6 1108.71 15 248.24 0.53 D6 1174. SH6614/B/C LSFR OCT1 Real N (C1.6~C1.0) /OCT2 freq. (C2.14~C2. 260. 277. 292. 309. 327. 348. 372. 390 ...

Page 37

... SH6614/B/C COM7/SEG32 COM6/SEG33 COM5/SEG34 COM4 COM3 COM2 COM1 1680µm OSCI OSCO PC.0 OSCXO OSCXI PA.0 PA.1 PA.2 Designation X (µm) COM [7] 900.00 COM [8] 770.00 SEG [30] 640.00 SEG [29] 520.00 SEG [28] 405 ...

Page 38

... Ordering Informations Part No. SH6614H SH6614BH SH6614CH SH6614F SH6614BF SH6614CF SH6614F_64 SH6614BF_64 SH6614CF_64 Packages CHIP FORM CHIP FORM CHIP FORM QFP 100 QFP 100 QFP 100 QFP 64 QFP 64 QFP 64 38 SH6614/B/C ...

Page 39

... D 0.976 ± 0.012 E L 0.047 ± 0.008 0.095 ± 0.008 1 y 0.006 Max. θ 0° ~ 12° & G are for PC Board surface mount pad pitch SH6614/B/C unit: inches/ Detail F 1 3.30 Max. 0.10 Min. 2.85 ± 0.13 0.40 +0.10 -0.05 0.15 +0.10 -0.05 14.00 ± 0.13 20.00 ± 0.13 1.00 ± 0.15 17 ...

Page 40

... NOM. 0.693 NOM. 0.929 NOM. 0.740 ± 0.012 0.976 ± 0.012 0.047 ± 0.008 0.095 ± 0.008 0.006 Max. 0° ~ 12° 40 SH6614/B/C unit: inches/ Detail 3.30 Max. 0.10 Min. 2.85 ± 0.13 0.31 +0.10 -0.05 0.15 +0.10 -0.05 14.00 ± ...

Related keywords