![Samsung KS86C6004 Manual Download Page 125](http://html.mh-extra.com/html/samsung/ks86c6004/ks86c6004_manual_349396125.webp)
KS86C6004/C6008/P6008 MICROCONTROLLER (Preliminary Spec)
I/O PORTS
9-1
9
I/O PORTS
OVERVIEW
The KS86C6004/C6008/P6008 has five I/O ports (0–4) with a total of 32 pins. You can access these ports
directly by writing or reading port data register addresses.
For keyboard applications, ports 0, 1 and 2 are usually configured as keyboard matrix input/output. Port 3 can be
configured as LED drive. Port 4 is used for host communication or for controlling a mouse or other external
device.
Table 9-1. KS86C6004/C6008/P6008 Port Configuration Overview
Port
Function Description
Programmability
0
Bit-programmable I/O port for Schmitt trigger input or open-drain output.
Port0 can be individually configured as external interrupt inputs. Pull-up
resistors are assignable by software.
Bit
1
Bit-programmable I/O port for Schmitt trigger input or open-drain output.
Pull-up resistors are assignable by software.
Bit
2
Bit-programmable I/O port for Schmitt trigger input or open-drain output.
Port2 can be individually configured as external interrupt inputs. Pull-up
resistors are assignable by software.
Bit
3
Bit-programmable I/O port for Schmitt trigger input, open-drain or push-
pull output. P3.3 can be used to system clock output (CLO) pin.
Bit
4
Bit-programmable I/O port for Schmitt trigger input or open-drain output
or push-pull output. Port4 can be individually configured as external
interrupt inputs. In output mode, pull-up resistors are assignable by
software. But in input mode, pull-up resistors are fixed.
Bit
Summary of Contents for KS86C6004
Page 19: ...ADDRESS SPACES KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec 2 8 NOTES ...
Page 61: ...CONTROL REGISTERS KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec 4 30 NOTES ...
Page 120: ...CLOCK CIRCUIT KS86C6004 C6008 P6008 MICROCONTROLLERS Preliminary Spec 7 4 NOTES ...
Page 134: ...I O PORTS KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec 9 10 NOTES ...
Page 143: ...KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec BASIC TIMER and TIMER 0 10 9 NOTES ...
Page 162: ...KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec ELECTRICAL DATA 12 9 ...
Page 164: ...KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec ELECTRICAL DATA 12 11 NOTES ...
Page 172: ...KS86P6008 OTP KS86C6004 C6008 P6008 MICROCONTROLLER Preliminary Spec 14 6 NOTES ...