sh6616 SinoWealth Micro-Electronics Corp. Ltd, sh6616 Datasheet
sh6616
Related parts for sh6616
sh6616 Summary of contents
Page 1
... Base timer clock: 32.768KHz X’tal oscillator. General Description SH6616 is a single chip 4 bit µC dedicated chip for hand-held games. This device integrates a SH6610C 4-bit CPU core with RAM, ROM, 8 bit timer, 2-channel PSG, dot matrix LCD driver and pump circuit. Pad Configuration ...
Page 2
... Bonding option Power supply I OSC input Ground O Audio output I Reset input (Active low, Internal pull-high) I Test pin (Internal pull-high). No connection for the user I/O 32.768KHz X’tal OSC input, output 2 SH6616 SEG1 - 33 RESET TEST OSCI OSCXI AOUT PSG AOUT PORTA PORT PORTB Description and V ...
Page 3
... Data Memory Data memory is organized as 480 X 4 bits ($020 - $1FF). Because of its static nature, the RAM can retain data after the CPU enters STOP or HALT. 3 SH6616 ...
Page 4
... LCD on, 1 set LCD off. Reserved for ICE LCD Mode Control: Bit 0: LCD bias current control bit 0 Bit 1: LCD bias current control bit 1 Bit 2: Voltage Pump enable (Initially 0, disable VDE) Bit 3: 0 set 8 COM (Initially 0), 1 set 16 COM Bank Register for ROM (BNK) SH6616 ...
Page 5
... OP0 bond to GND and OP1 bond OP0 bond to GND 1 1 OP1 bond GND V OP0 PCB GND V OP0 PCB SH6616 Bonding Option 5 Remarks DD DD GND OP1 DD OP0 OP1 = 1 OP0 = 1 GND OP1 DD OP0 OP1 = 1 OP0 = 0 SH6616 Power-on Pull high ...
Page 6
... ROM SH6616 can address up to 24K X 16 bit words of program area from $000 to $5FFF. ROM SPACE in the system is 24576 X 16 bits. 3.1. Interrupt Vector Address Area ($000 to $004) The program is sequentially executed. An area from address $000 through $004 is reserved for special interrupt service routines when starting execution of a vector address ...
Page 7
... Timer SH6616 has one 8-bit timer for counting up, consisting of an 8-bit counter and an 8-bit pre-loaded register. Additionally, the other base timer provides real time clock function for time-keeper. Timer0 provides the following functions: - Programmable interval timer - Read counter value 4.1. Timer0 Configuration and Operation: Timer 8-bit write-only timer load register (TL0L, TL0H), and an 8-bit read-only timer counter (TC0L, TC0H) ...
Page 8
... Before reading PORTB I/O bits, the user needs to output "1" to the same bit. Latch PORTB Q BUS R RESET Bit 2 Bit 1 Bit 0 PA.2 PA.1 PA.0 PB.2 PB.1 PB OP1 OP0 8 SH6616 V DD Weak Driving, Pull-up resistor - 20K Ω A Latch Q BUS RESET D R/W Remarks W PORTA R/W PORTB - Reserved - Reserved R Optional Register ...
Page 9
... PSG-CLK 1/256 8KHz 1/512 4KHz P.0 P.1 (1AH, 1BH) (1AH, 1BH) 9 SH6616 Remarks PSG Channel 1 low digit PSG Channel 1 high digit PSG Channel 2 low digit PSG Channel 2 PSG Channel 2 PSG Channel 2 high digit Bit 0: PSG Channel 1 enable Bit 1: PSG Channel 2 enable Bit 2, Bit 3: Volume Control ...
Page 10
... SH6616 LSFR ...
Page 11
... F5 231.88 -0.51% 698.4 246.15 -0.32% F5# 739.99 G5 262.30 0.26% 784.0 G5# 275.86 -0.48% 830.61 296.30 0.90% A5 880.0 A5# 313.73 0.84% 932.33 326.53 -0.94% B5 987.7 347.83 -0.40% C6 1046.5 C6# 372.09 0.57% 1108. SH6616 LSFR Real (C1.6 ~ C1.0) N Error % freq. (C2.14 ~ C2. 390.24 -0.44 410.26 -1.21 444.44 1.01 470.59 0.95 500.00 1.24 516.13 -1.36 551.72 -0.48 592.59 ...
Page 12
... E4 329.62 F4 115.94 -0.51% 349.22 123.08 -0.32% F4# 369.99 131.15 0.26% G4 391.99 G4# 137.93 -0.48% 415.30 148.15 0.90% A4 439.99 A4# 156.86 0.84% 466.16 B4 163.27 -0.94% 493.87 173.91 -0.40% C5 523.24 C5# 186.05 0.57% 554.37 12 SH6616 LSFR Real (C1.6 ~ C1.0) N Error % freq. (C2.14 ~ C2. 195.12 -0.44 205.13 -1.21 222.22 1.01 235.29 0.95 250.00 1.24 258.06 -1.36 275.86 -0.48 296.30 0.90% ...
Page 13
... C3# 138.59 D3 48.78 -0.44% 146.83 D3# 51.95 0.07% 155.56 54.79 -0.37% E3 164.81 F3 57.97 -0.51% 174.61 61.54 -0.32% F3# 185.00 65.57 0.26% G3 195.99 G3# 68.96 -0.48% 207.65 74.07 0.90% A3 220.00 A3# 78.43 0.84% 233.08 B3 81.63 -0.94% 246.94 86.96 -0.40% C4 261.62 C4# 93.03 0.57% 277.18 13 SH6616 LSFR Real (C1.6 ~ C1.0) N Error % freq. (C2.14 ~ C2. 97.56 -0.44 102.56 -1.21 111.11 1.01 117.65 0.95 125.00 1.24 129.03 -1.36 137.93 -0.48 148.15 0.90 153.85 -1.10 166.67 1.13 173.91 -0.40 181 ...
Page 14
... G1 16.39 0.26% 49.00 17.39 0.39% G1# 51.91 A1 18.35 -0.03% 55.00 19.42 -0.14% A1# 58.27 20.62 0.08% B1 61.73 C2 21.74 -0.40% 65.41 23.26 0.57% C2# 69.30 D2 24.39 -0.44% 73.41 D2# 25.97 0.07% 77.78 27.40 -0.37% E2 82.41 F2 28.99 -0.51% 87.31 30.77 -0.32% F2# 92.50 32.79 0.26% G2 98.00 G2# 34.48 -0.48% 103.83 37.04 0.90% A2 110.00 A2# 39.22 0.84% 116.54 B2 40.82 -0.94% 123.47 43.48 -0.40% C3 130.81 C3# 46.51 0.57% 138.59 14 SH6616 LSFR Real (C1.6 ~ C1.0) N Error % freq. (C2.14 ~ C2. 48.78 -0.44 51.28 -1.21 55.56 1.01 58.82 0.95 62.50 1.24 64.52 -1.36 68.97 -0.48 74.07 0.90 76.92 -1.10 83.33 1.13 86.96 -0.40 90.91 -1.72 100.00 2.04 105.26 1.38 111.11 1.01 117.65 0.95 125.00 1.24 133 ...
Page 15
... Voltage pump enable (initially 0, disable pump) $1EH.BIT1 LCD bias current control bit1 (initially 0) $1EH.BIT0 LCD bias current control bit0 (initially 0) Table 2. LCDI1 and LCDI0 control the LCD driving current. LCDI1 LCDI0 LCD Bias Current Minimum (Default) Maximum 15 SH6616 ...
Page 16
... SEG24 SEG24 SEG25 SEG25 SEG26 SEG26 SEG27 SEG27 SEG28 SEG28 SEG29 SEG29 SEG30 SEG30 SEG31 SEG31 SEG32 SEG32 SEG33 SEG33 16 SH6616 COM1 Bit0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 17
... SEG24 SEG24 SEG25 SEG25 SEG26 SEG26 SEG27 SEG27 SEG28 SEG28 SEG29 SEG29 SEG30 SEG30 SEG31 SEG31 SEG32 SEG32 SEG33 SEG33 17 SH6616 COM5 Bit 0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 18
... SEG24 SEG24 SEG25 SEG25 SEG26 SEG26 SEG27 SEG27 SEG28 SEG28 SEG29 SEG29 SEG30 SEG30 SEG31 SEG31 SEG32 SEG32 SEG33 SEG33 18 SH6616 COM9 Bit0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 19
... SEG24 SEG24 SEG25 SEG25 SEG26 SEG26 SEG27 SEG27 SEG28 SEG28 SEG29 SEG29 SEG30 SEG30 SEG31 SEG31 SEG32 SEG32 SEG33 SEG33 19 SH6616 COM13 Bit0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 20
... LCD voltages V1, V2, V3, V4 are obtained using resistor divider network. The LCD can be turned off by writing in the LCD OFF register. 7.1.3. LCD Waveform The output waveform of 1/16 duty and 1/5 bias is shown below COM1 V3 V4 GND COM2 V3 V4 GND COM3 V3 V4 GND COM16 V3 V4 GND SEG V3 V4 GND 20 SH6616 ...
Page 21
... SEG32 SEG32 SEG33 SEG33 SEG34 SEG34 SEG35 SEG35 SEG36 SEG36 SEG37 SEG37 SEG38 SEG38 SEG39 SEG39 SEG40 SEG40 SEG41 SEG41 21 SH6616 COM1 Bit0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 22
... SEG32 SEG32 SEG33 SEG33 SEG34 SEG34 SEG35 SEG35 SEG36 SEG36 SEG37 SEG37 SEG38 SEG38 SEG39 SEG39 SEG40 SEG40 SEG41 SEG41 22 SH6616 COM5 Bit 0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 ...
Page 23
... LCD voltages V1, V2, V3 are obtained using resistor divider network. The LCD can be turned off using the LCDOFF register. 7.2.3. LCD Waveform The output waveform of 1/8 duty and 1/4 bias is shown below COM1 V3 GND COM2 V3 GND COM3 V3 GND SEG V3 GND 23 SH6616 ...
Page 24
... MHz clock. 10. HALT or STOP - After execution of HALT, SH6616 will enter HALT state. In HALT state, the CPU will stop operating, but the peripheral circuit (timer) will operate. - After execution of STOP, SH6616 will enter STOP. In STOP, the entire chip (including RC oscillator) will stop operating ...
Page 25
... Interrupt Enable Flags Interrupt Request Flags DPH, DPM, DPL TBR LCD Driver Output Base Timer PORT A PORT B COMSE VDE LCDI1, LCDI1 Bank After Power-on Reset $000 Undefined Undefined Undefined Undefined Undefined Undefined 0 0 Undefined Undefined active stop $ SH6616 ...
Page 26
... M ⊕ AC, M ← ← Function ← Decimal adjust for add. AC ← Decimal adjust for sub. AC SH6616 Flag Change Flag Change Flag Change CY CY ...
Page 27
... PC ← TBR← hhhh; AC← ← ← X (Includes p) ← (PC11-C8) (TBR) (AC Operation I Immediate data Logical exclusive OR ⊕ | Logical OR & Logical AND bbb RAM bank = 000 27 SH6616 Flag Change Flag Change CY p ROM page = 0 ST Stack TBR Table Branch Register ...
Page 28
... -0.3 GND + 0.5 3.5 500 2 2 25.0 35.0 20 100 28 SH6616 Unit Conditions 4.5V, 32.768KHz OSC off, all DD mA outputs (ports AOUT, AOUT ) unloaded, execute NOP instruction V = 4.5V, Stop (RC OSC stop, Base DD µA Timer on, LCD off, all outputs unloaded 4.5V, Stop (OSC and DD µA 32.768KHz OSC off, Base Timer stop, LCD off, all outputs unloaded ) µ ...
Page 29
... V = 3.0V DD µA V (input) = 3.0V or GND PORTA and PORTB 0.5V OL µA PORTA 0. 0.6V OUT 0.5V OUT V = 3.0V, LCD on current, (LCDI1, DD µA LCDI0) = (0, 0), no Pump. (For reference only 3.0V, LCD on current, (LCDI1, DD µA LCDI0) = (0, 0), Pump enable. (For reference only) KΩ PORTB SH6616 ...
Page 30
... V OSCI DD 10KΩ RESET SH6616 I/O PORTB AOUT OSCXO AOUT OSCXI TEST GND DV0 DV1 VPP 0.1µF 0.1µ 200 400 600 Resister (KΩ 120K Ω 100 Ω BUZZER V DD SH6616 800 ...
Page 31
... SH6616 2330 unit: µ PORTB0 908.05 -1092.60 PORTA3 773.05 -1092.60 PORTA2 648.05 -1092.60 PORTA1 533.05 -1092.60 PORTA0 413.05 -1092.60 OSCI 293.05 -1092.60 OP1 165.10 -1092.60 VCC 65 ...
Page 32
... Ordering Information Part No. SH6616H Package CHIP FORM 32 SH6616 ...