KS88C6108/C6116/P6116 M ICROCONTROLLERS PRODUCT OVERVIEW
1
PRODUCT OVERVIEW
SAM8 PRODUCT FAMILY
Samsung's SAM8 family of 8-bit single-chip CMOS microcont rollers of fers a fast and efficient CPU, a wide range
of integrated peripherals, and various mask-programmable RO M sizes. Important CPU features include:
— Efficient r egis ter-oriented archit ec ture
— Selectable CPU clock s our c es
— Idle and Stop power-down mode r eleas e by interrupt
— Built-in basic tim er with watchdog function
A sophisticated interrupt struc ture recognizes up to eight interrupt levels. E ac h lev el c an hav e one or m or e
interrupt sources and vectors. Fast interrupt processing (within a minimum six CPU clocks) can be assigned to
specific interr upt levels.
KS88C6108/C6116/P6116 MICROCONTROLLERS
The KS88C6108/C6116/P 6116 s ingle- c hip 8- bit
microcontroller is based on the powerful SAM8 CPU
architecture. The internal regist er file is logically
expanded to increase the on- c hip r egis ter space. The
KS88C6108/C6116/P6116 have 8/16 K bytes of onchip program ROM.
Following Samsung's modular des ign appr oac h, the
following peripherals were integrated with the SAM8
core:
— Multi master IIC-bus with DDC support.
The KS88C6108/C6116/P 6116 ar e a v er s atile
microcontroller that is ideal for use in multi-sync
monitors or in general-pur pos e applic ations that
require sophisticat ed timer/counter, PWM, sync s ignal
processing, and mult i- m as ter IIC-bus suppor t with
DDC. It is available in a 42- pin S DIP or a 44-pin QFP
package.
— Four programmable I/O ports (total 28 pins)
— One 8-bit basic t im er for oscillation stabiliz ation
and watchdog functions
— One 8-bit general-purpos e timer/counter with
selectable clock sour c es
— One 8-bit counter with selectable clock sour c es ,
including Hsync or Csync input
— One 8-bit timer for interval mode
— PWM block with s ev en 8- bit PWM circuit s
— Sync processor block (for Vsync and Hsync I/O,
Csync input, and Clamp s ignal output)
Figure 1-1. KS88C6108/C6116/P6116
Microcontrollers
1-1
PRODUCT OVERVIEW KS88C6108/C6116/P6116 MICROCONTROLLERS
FEATURES
CPU
• SAM8 CPU core
Memory
• 8/16-Kbyte internal program memory ( ROM)
• 272-byte general-purpos e r egis ter area
Instruction Set
• 78 instructions
• IDLE and STO P ins tructions added for power down modes
Instruction Execution Time
• 500 ns minimum (with 12 M Hz CP U c loc k )
Interrupts
• Nine interrupt sour c es
• Nine interrupt vec tors
• Six interrupt lev els
• Fast inter r upt processing for a selec t level
— Two selectable inter nal c loc k frequencies
— Hsync (or Csync) input from the sync
processor block
— External clock s our c e
Pulse Width Modulator
• Seven 8-bit PW M m odules :
— 8-bit basic fram e
— Four push-pull and three n- c hannel,
open-drain output channels
— Selectable clock f r equenc ies : 46.875 kHz at
12 MHz fosc.
Sync Processor
• Detection of sync input signals (Vsync-I , Hsync-I,
and Csync-I)
• Sync signal separat ion and output (Hsync-O ,
Vsync-O, and Clamp-O)
• Pseudo sync signal out put
• Programmable clamp s ignal output
General I/O
• Four I/O ports (total 28 pins):
8-Bit Basic Timer
• Programmable tim er for oscillation stabiliz ation
interval control or watchdog timer functions
• Three selectable internal clock frequencies
Timer/Counters
• One 8-bit general-pur pos e timer/counter with
programmable operating modes and the following
clock source options :
— Two selectable inter nal c loc k frequencies
• One 8-bit tim er with interval operating mode
• One 8-bit count er with the following clock sour c e
options:
DDC and Mul t i-Master IIC-Bus
• Serial peripheral interface
• Support for dis play data channel (DDC)
Oscillator Frequency
• 6 MHz to 12 MHz external crystal oscillator
• Interval Max . 12MHz CPU clock
Operating Temperature Range
•– 4 0°C to + 85°C
Operating Voltage Range
• 4.5 V to 5.5 V
Package Types
• 42-pin SDIP, 44- pin QFP
1-2
KS88C6108/C6116/P6116 M ICROCONTROLLERS PRODUCT OVERVIEW
BLOCK DIAGRAM
X
X
OUT
PWM0
PWM1
•
•
•
PWM6
Vsync-I
Hsync-I
Csync-I
Vsync-O
Hsync-O
Clamp-O
T0CAP
IN
RESET
INT0-INT2
CESSOR
MAIN
OSC
8-BIT
PWM
(7-CH)
SYNC
PRO-
TIMER 0
P0.0k 0.7/INT0-INT2
PORT 0
INTERNAL BUS
I/O PORT and INTERRUPT
SAM8 CPU
8/16-KBYTE MASK ROM
272-BYTE REGISTER FILE
CONTROL
P2.0k 2.7
PORT 2
TEST
PORT 1
PORT3
DDC and
Multi master
IIC-bus
P1.0k 1.3
P3.0k 3.7
SCL
SDA
8-blt
Counter
(TIMER 1)
T1CK
Interval
timer
(TIMER 2)
Figure 1-2. Block Diagram
1-3
PRODUCT OVERVIEW KS88C6108/C6116/P6116 MICROCONTROLLERS
PIN ASSIGNMENTS
P3.1
P3.0
P0.0 / INT0
P0.1 / INT1
P0.2 / INT2
P0.3
P0.4 / T0CAP
P0.5 / T1CK
VDD
P0.6
P0.7
P1.0
P1.1
P1.2
P1.3
P2.0 / PWM0
P2.1 / PWM1
P2.2 / PWM2
P2.3 / PWM3
P2.4 / PWM4
P2.5 / PWM 5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
KS88C6108/
KS88C6116
42-SDIP
(Top View)
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
P3.2
VSS2
P3.3
P3.4
P3.5
P3.6
P3.7
RESET
XOUT
XIN
VSS1
P2.7 / Csync-I
Hsync-I
Vsync-I (VCLK)
Clamp-O
Hsync-O
Vsync-O
SCL
SDA
TEST
P2.6 / PWM6
1-4
Figure 1-3. Pin Assignment Diagram (42-SDIP Package)
KS88C6108/C6116/P6116 M ICROCONTROLLERS PRODUCT OVERVIEW
PIN ASSIGNMENTS
P2.1 / PWM1
P2.2 / PWM2
P2.3 / PWM3
P2.4 / PWM4
P2.5 / PWM5
P2.6 / PWM6
(Cont.)
N.C.
TEST
SDA
SCL
Vsync-O
34
35
36
37
38
39
40
41
42
43
44
P2.0 / PWM0
P1.3
P1.2
33
32
31
P1.1
P1.0
P0.7
30
29
28
KS88C6108/
KS88C6116
44-QFP
(Top View)
P0.6
27
VDD
P0.5 / T1CK
26
25
P0.4 / T0CAP
P0.3
24
23
22
21
20
19
18
17
16
15
14
13
12
P0.2 / INT2
P0.1 / INT1
P0.0 / INT0
P3.0
P3.1
NC
P3.2
VSS2
P3.3
P3.4
P3.5
1
2
3
4
5
6
7
8
9
10
11
Hsync-O
Clamp-O
Vsync-I
Hsync-I
XIN
VSS1
P2.7 / Csync-I
XOUT
RESET
P3.7
P3.6
Figure 1-4. Pin Assignment Diagram (44-QFP Package)
1-5
PRODUCT OVERVIEW KS88C6108/C6116/P6116 MICROCONTROLLERS
PIN DESCRIPTIONS
Table 1-1. KS 88C6108/C6116/P6116 Pin Descriptions
Pin
Names
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
P1.0–P1.3 I/O General purpose, 8-bit I/O port. You can
Pin
Type
Pin
Descriptio n
I/O General-purpose, 8- bit I/O port. Share
functions include t hr ee ex ternal interrupt
inputs, I/O for timers 0 and 1. You can
selectively conf igur e por t 0 pins to input or
output mode.
Circuit
Type
SDIP Pin
Numbers
Functions
D-1 3
4
5
6
7
8
10
11
D-1 12–15 –
Shared
INT0
INT1
INT2
T0CAP
T1CK
selectively conf igur e por t 1 pins to input or
push-pull output mode.
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
P3.0–P3.7 I/O General-purpose, 8- bit I/O port. You can
I/O General purpose, 8-bit I/O port. You can
selectively conf igur e por t 2 pins to input or
output mode. T he por t 2 pin circuit are
designed to push-pull PWM output and
Csync signal input.
selectively conf igur e por t 3 pins to input or
D-1
D-1
D-1
D-1
E-1
E-1
E-1
D-1
16
17
18
19
20
21
22
31
E 2, 1, 42,
40–36
PWM0
PWM1
PWM2
PWM3
PWM4
PWM5
PWM6
Csync-I
output mode.
Hsync-I
Vsync-I
Clamp-O
Hsync-O
Vsync-O
SCL
SDA
V
DD
V
, V
SS1
XIN, X
OUT
SS2
I
The pins are sync proc es s or s ignal I/O and
I
IIC-bus clock and data I/O
O
O
O
I/O
I/O
A
A
A
A
A
G-3
G-3
30
29
28
27
26
25
24
– Power supply pins – 9
32, 41
– System clock input and output pins – 33, 34 –
RESET I System reset pin B 35 –
TEST I Fac tory test pin input
–2 3 –
0 V: normal operation
5 V: factory test mode
–
–
–
NOTE
: See ‘Pin Circuit Diagrams’ on next two pages for detailed inform ation on circuit types A, B, D-1, E, E-1, and G-3.
1-6
KS88C6108/C6116/P6116 M ICROCONTROLLERS PRODUCT OVERVIEW
PIN CIRCUITS
Vdd
Vss
Figure 1-5. Pin Circuit Type A
Data or
Other
function
Output
Disable
Vdd
280 K
Ω
Noise Filter
RESET
Figure 1-6. Pin Circuit Type B (
Vdd
Vss
RESET
)
Output
Digital Input
or TTL Input
Figure 1-7. Pin Circuit Type D-1
1-7
PRODUCT OVERVIEW KS88C6108/C6116/P6116 MICROCONTROLLERS
Vdd
Typical
47-K
Ω
Pull-up
enable
Vdd
Data
Output
Open drain
Output
Disable
Vss
Input
Data
Open drain
Output
Disable
Input
Figure 1-7. Pin Circuit Type E
Vdd
IN/OUT
Vss
1-8
Figure 1-8. Pin Circuit Type E-1