sh6613 SinoWealth Micro-Electronics Corp. Ltd, sh6613 Datasheet - Page 8

no-image

sh6613

Manufacturer Part Number
sh6613
Description
4k 4-bit Microcontroller With Lcd Driver
Manufacturer
SinoWealth Micro-Electronics Corp. Ltd
Datasheet
7.2 Controlling the pull-up MOS
These ports contain pull-up MOS controlled by program. Bit3 of the PMOD register controls On/Off of all pull-up MOS
simultaneously. Pull-up MOS also controlled by the port data registers (PA, PB) of each port also. So the pull-up MOS can be
turned On/Off.
7.3 Port Interrupt
PORTB interrupt (falling edge) is not controlled by Port I/O register. It is means that if a interrupt request ﹙ IEx is set to 1 & one
port bit high go low ﹚ is been touched and that the condition is the other port bits are high level whenever the port bit is output or
input.
7.4 External INT
PortA.0 is shared by external interrupts (active low).
7.5 Port I/O control register:
I/O control register: PACR.X, PBCR.X (X=0,1,2,3)
1: Use as an output buffer.
0: Use as input buffer (Power on initial).
7.6 Port mode register (PMOD)
PAM1, PAM2:
HLM:
PPULL:
7.7 Heavy load mode (HLM)
The MCU has a heavy load protection circuit for when the battery load becomes heavy. For examples, when an external buzzer
sound or an external speaker is turned on. In this mode, the crystal oscillator circuit has been backup for high gain. When setup
this mode, more power would be provided to oscillator circuit. Unless it is necessary, be careful not to set this mode with
software. Since the mode enter would delay for one instruction. Please activate heavy load driving only after setting HLM at
least one instruction wait cycle through the software. Following shows the programming setting.
Address
$0B
$0C
$13
HLM: 0=Heavy load protection mode is released
Bit3
PPULL
1=Heavy load protection mode is set.
Please sees the PSG
Enable heavy load mode 0:Disable
Port pull-up MOS
Bit2
PAM2
Bit3
PACR.3
PBCR.3
HEAVYLOAD
HLM
Bit1
PAM1
0:Disable pull-up MOS
OFF
ON
0
1
Bit0
HLM
Bit2
PACR.2
PBCR.2
Function
Bit1,2:Select PA.1,PA.2 as I/O port or PSG output
Bit0:Hevey load mode
Bit3:Port pull-up control
8/33
1 Instruction Cycle Time
Bit1
PACR.1
PBCR.1
1:Enable
1:Enable pull-up MOS
Bit0
PACR.0
PBCR.0
SH6613/B/C
R/W
V1.2

Related parts for sh6613