sh6612a SinoWealth Micro-Electronics Corp. Ltd, sh6612a Datasheet

no-image

sh6612a

Manufacturer Part Number
sh6612a
Description
2k 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
Features
n SH6610C-based single-chip 4-bit microcontroller with
n ROM: 2048 × 16 bits
n RAM: 256 × 4 bits (data memory)
n Operation Voltage Range: 2.2V - 5.4V (3V typically)
n 16 CMOS I/O pins (PORTA - D, CMOS or Open Drain
n 4 level subroutine nesting (including interrupts)
n Two 8-bit timers with pre-divider circuit
n Oscillator warm-up timer
n 4 priority interrupt sources:
General Description
SH6612A is a single-chip microcontroller integrated with an SH6610C CPU core, SRAM, timer, alarm generator, LCD driver,
I/O port, and program ROM.
Pad Configuration
LCD driver
by code option )
- External interrupt (falling edge)
- Timer0 interrupt
- Timer1 interrupt
- PortB interrupt (falling edge)
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
39
40
41
42
43
44
45
46
47
48
49
50
51
52
38
G
1
G
S
E
1
7
S
E
2
37
G
2
G
S
E
1
8
S
E
1
36
3
G
S
E
1
9
T
E
S
T
35
4
G
S
E
2
0
R
E
S
E
T
B0
34
SH6612A
5
G
S
E
2
1
V
D
D
2K 4-bit Microcontroller with LCD Driver
33
6
G
O
S
E
2
2
P
R
T
A
0
32
7
G
O
R
S
E
2
3
P
T
A
1
1/24
31
8
G
O
R
S
E
2
4
P
T
A
2
n Clock source: 32.768KHz crystal or 262K RC (code
n Instruction cycle time:
n LCD driver:
n Two low power operation modes - HALT or STOP
n Built-in alarm generator (carrier frequency: 2KHz or
n Low power consumption (Iop
n Bonding option for multi-code software
n Available in CHIP FORM
30
9
G
O
R
S
E
2
5
P
T
A
3
29
10
option)
4/32.768KHz ( 122 s) for 32.768KHz crystal
4/262KHz ( 15 s) for 262KHz RC
4 × 26 (1/4 duty , 1/3 bias or 1/3 duty , 1/2 bias)
mode
4KHz code option)
G
O
R
S
E
2
6
P
T
B
0
28
11
C
O
M
P
O
R
B
1
T
1
27
12
C
O
M
P
O
R
B
2
T
2
26
25
24
23
B1
22
21
20
19
18
17
16
15
14
13
COM3
COM4
OSCI
OSCO
GND
PORTD3
PORTD2
PORTD1
PORTD0
PORTC3
PORTC2
PORTC1
PORTC0
PORTB3
10 A, 32.768KHz, 3V)
SH6612A
Ver 0.3

Related parts for sh6612a

sh6612a Summary of contents

Page 1

... External interrupt (falling edge) - Timer0 interrupt - Timer1 interrupt - PortB interrupt (falling edge) General Description SH6612A is a single-chip microcontroller integrated with an SH6610C CPU core, SRAM, timer, alarm generator, LCD driver, I/O port, and program ROM. Pad Configuration SEG16 SEG15 SEG14 ...

Page 2

... Bit programmable I/O P Ground pin I Bonding option, internally pull-high O Oscillator output pin, connected to crystal oscillator I Oscillator input pin, connected to crystal or external resistor O Common signal output for LCD display 2/24 SH6612A TEST OSCI OSC OSCO PORTB, PORTC PORTD PORTA.0 (INT) PORTA.1(BD) PORTA.2 (BD) PORTA.3 COMMON ...

Page 3

... During an interrupt service or call instruction, the carry flag is pushed into the stack 2. ROM The SH6612A can address 2K × 16 bit words of program area from $000 to $7FF. ROM SPACE in the system is 2048 X 16 bits. (a) Vector Address Area ($000 to $004) The program is sequentially executed. There is an area address $000 through $004 that is reserved for a special interrupt service routine such as starting vector address ...

Page 4

... Data pointer for INX low nibble Data pointer for INX middle nibble Data pointer for INX high nibble Bit0: set PA.1, PA.2 as Alarm O/P Bit1: HEAVY LOAD Mode Bit2: LCD off Bit3: set LCD segment as outport Alarm Envelope Control Bit0: change LCD duty to 1/4 duty, 1/3 bias Reserved SH6612A Ver 0.3 ...

Page 5

... System Clock and Oscillator SH6612A has one clock source. Oscillator is determined by code option. The oscillator generates the basic clock pulses that provide the system clock to supply CPU and on-chip peripherals. System clock = FOSC/4. (a) Instruction cycle time: (1) 4/32768Hz ( 122.1 s) for 32768Hz oscillator. ...

Page 6

... Timer0 & Timer1 SH6612A has two 8-bit timers. The timer / counter has the following features: - 8-bit up-counting timer/counter. - Automatic re-loads counter. - 8-level prescaler. - Interrupt on overflow from $FF to $00. The following is a simplified timer block diagram. Tosc SYNC Fosc/4 PRESCALER COUNTER TM.2 TM.1 TM.0 The timers provide the following functions: - Programmable interval timer function ...

Page 7

... I/O Port SH6612A has 16 CMOS quasi-I/O ports, PORTA, PORTB, PORTC, PORTD. All I/O ports are bit programmable. If PORTA,B,C,D are pull-high internally weak drive. The equivalent circuit is below: Port I/O Data Register: (PDR) Address Bit3 $08 PORT A.3 $09 PORT B.3 $0A PORT C.3 $0B PORT D.3 Data-Out Data-In Bit2 PORT A.2 PORT B.2 PORT C ...

Page 8

... Four interrupt sources are available on SH6612A: - External interrupt ( INT shared with PA.0) - Timer0 interrupt - Timer1 interrupt PortB 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 ...

Page 9

... Seg1 - 4 as output ports Bit 1 Bit 0 R/W - DUTY R/W 1: 1/4 duty, 1/3 bias Bit 2 Bit 1 Bit 0 COM3 COM2 COM1 - - DATA_BIT - - DATA_BIT - - DATA_BIT - - DATA_BIT 9/24 SH6612A Description Bit0: set PA.1, PA.2 as Alarm O/P Bit1: HEAVY LOAD Mode Bit2: LCD off Bit3: set LCD segment as outport Description LCD duty control Ver 0.3 ...

Page 10

... SEG9 313H SEG10 SEG10 314H SEG11 SEG11 315H SEG12 SEG12 316H SEG13 SEG13 317H SEG14 SEG14 318H SEG15 SEG15 319H 10/24 SH6612A Bit 0 COM1 SEG1 SEG2 SEG3 SEG4 Bit 3 Bit 2 Bit 1 COM4 COM3 COM2 SEG16 SEG16 SEG16 SEG17 SEG17 SEG17 SEG18 SEG18 ...

Page 11

... DD3 COM2 V COM2 DD2 V DD1 COM1 GND V DD3 V DD2 COM3 V DD1 GND V DD3 V DD2 COM4 V DD1 GND SEGn+1 V SEGn DD3 SEGn V DD2 V DD1 GND SEGn+1 V DD3 V DD2 V DD1 GND V COM4 - SEGn DD3 V DD2 V DD1 GND -V DD1 -V DD2 -V DD3 11/24 SH6612A Unlight Ver 0.3 ...

Page 12

... COM3 V COM1 DD2 V DD1 GND COM2 COM1 V DD2 COM2 V SEGn+2 DD1 GND V DD2 COM3 V DD1 GND SEGn+1 SEGn V COM4 DD2 V DD1 GND V DD2 SEGn V DD1 GND V SEGn+1 DD2 V DD1 GND V COM1 - SEGn DD2 V DD1 GND -V DD1 -V DD2 12/24 SH6612A Unlight Ver 0.3 ...

Page 13

... The consumption of power will increase during the use of the HLM mode, but it will not affect the RC oscillator. Note: The HLM needs about 5 instruction cycles to set-up the oscillation for 32.768KHz crystal oscillator. HLM waveform HLM Heavy load OFF 1ms or more 13/24 SH6612A Ver 0.3 ...

Page 14

... AEC = $0 PAM = 1 AEC = $8 PAM = 1 AEC = $C PAM = 1 AEC = $A PAM = 1 AEC = $F PAM = 1 14/24 SH6612A Remarks ALARM envelope control DC envelope 1Hz envelope 2Hz envelope 4Hz envelope 8Hz envelope RD $14 To Sound Mixer 16Hz 8Hz 4Hz 2Hz 1Hz $14 ...

Page 15

... After the execution of STOP instruction, SH6612A will enter stop mode. In stop mode, the whole chip (including oscillator) will stop operating. In HALT mode, SH6612A can be waked up if any interrupt occurs. In STOP mode, SH6612A can be waked up if port interrupt occurs or external interrupt occurs. R/W B0 ...

Page 16

... Mx & AC[3]; AC[0] CY; AC shift right one bit Function AC, AC, AC, AC, AC,Mx Mx & I Function AC;Mx Decimal adjust for add. AC;Mx Decimal adjust for sub. 16/24 SH6612A Flag Change Flag Change Flag Change CY CY Ver 0.3 ...

Page 17

... AC(1)= AC(2)= AC(3)= X(Not include p) PC ST; TBR hhhh; A llll CY; X(Include p) PC (PC11-PC8) (TBR) (A) No Operation I Immediate data Logical exclusive OR | Logical OR & Logical AND bbb RAM bank=000 TBR Table Branch Register 17/24 SH6612A Flag Change Flag Change CY Ver 0.3 ...

Page 18

... V 2.8 V 0.2 V 6.5 7.5 A 18/24 SH6612A = 32.768KHz, unless otherwise specified) OSC Conditions All output pins unload execute NOP instruction All output pins unload (HALT mode) exclude LCD current All output pins unload (STOP mode) LCD off, no current PORTA, PORTB, PORTC, PORTD PORTA, PORTB, PORTC, PORTD ...

Page 19

... SB2x SB1 Min. Typ. Max. 1.6 1.9 2.2 19/24 SH6612A = 32.768KHz, unless otherwise specified) OSC Conditions All output pins unload execute NOP instruction All output pins unload (HALT mode) exclude LCD current All output pins unload (STOP mode) LCD off, no current PORTA, PORTB, PORTC, PORTD ...

Page 20

... Unit reference only) variation caused by process variation (for 15 % reference only) 20/24 SH6612A Conditions reduces to I after instruction executing sb1 reduces to I after instruction executing sb2 Conditions reduces to I after instruction executing DD sb1 reduces to I after instruction executing DD sb3 ƒ ...

Page 21

... Application Circuits (for reference only) SH6612A chip substrate connects to system ground. AP1 OSC : RC: 262K (code option) LCD Panel: 1/4 duty, 1/3 bias; (S/W select 1/4 duty, auto 1/3 bias) LCD Panel: 1/3 duty, 1/3 bias; (S/W select 1/4 duty, auto 1/3 bias; ignore duty 4 segments) PORTA - D : I/O AP2 OSC: 32.768KHz crystal (code option) ...

Page 22

... V toV can regulate the voltage. DD DD1 LCD 1/2 bias 50K RESET 0.1uF OSCI SH6612A OSCO PORTB.1 GND TEST DD1 LCD 1/3 bias RESET SH6612A OSCI PORTA - D GND TEST 22/24 SH6612A 20p 32768Hz 20p V DD 750K Ver 0.3 ...

Page 23

... PORTB2 13 PORTB3 14 PORTC0 15 PORTC1 16 PORTC2 17 PORTC3 18 PORTD0 19 PORTD1 20 PORTD2 21 PORTD3 22 GND B1 23 OSCO 24 OSCI 25 COM4 Notice: The Pad Locations of SH6612A are different from the SH6612. Please pay attention ...

Page 24

... Change the description of “LCD divider resistor control” Use “LVR” instead of “LPD” Change the “Operating Ambient Temperature” Add AP4 0.2 Add pad location, “O/S” description, PORTD V 0.1 PII Spec 0.0 Original Package CHIP FORM SH6612A Specification Revision History Content , 24/24 SH6612A Nov.2003 Description Nov.2003 Octo.2003 Sept.2003 Date Ver 0 ...

Related keywords