Circuit PDF
Circuit PDF
Circuit PDF
LTD GE 微电子有限公司
地址:中山市南头镇南头大道 295 号
TEL: 0760-23830669 FAX : 0760-23830665 Email: ZS_KLF@163.COM
Title Page
Ver.
CKM005(IH MCU)
1 of 52
0.0-
Preliminary
IH MCU.
§ General Description:
IH MCU is an easy-used 4-bit CPU base microcontroller. It contains 4K-word ROM、
128-nibble RAM、timer/Counter、interrupt service 、IO control hardware and special feature
for IH applications.
§ Features:
1. Tontek RISC 4-bit CPU core
2. Total 24 crucial instructions and two addressing mode
3. Most instructions need 1 word and 1 machine cycle(2 system clocks) except read table
instruction(RTB)
4. advance CMOS process
5. Working memory with 4K*16 program ROM and 128*4 SRAM
6. 4-level stacks
7. Operating voltage: 4.5V~5.5V
8. System operating frequency: (at VDD=5V )
. High speed system oscillator (OSCH):
² Built-in RC oscillator: 4MHz(typical at 5V)
.Low speed peripheral oscillator (OSCL):
² Built-in RC oscillator: 16KHz(typical)
² RTC 32K oscillator come from OSCH
9. Offer 6~16 general programmable I/O or input pins
² Built-in key wake-up feature enable by software setting
² Providing external interrupt inputs and Timer clock inputs
² Offering internal signal outputs, like buzzer(PFD)
10. One 8-bit auto-reload timer/counter & one time base counter
² 4 timer clock sources(internal & external) selected by software
² Timer provides the PFD feature for Buzzer output driver
² Time base offers 2 various period interrupt request
11. MCU system protection and power saving controlled mode:
² Built-in watch dog timer (WDT) circuit
² Providing high system operating speed.
V1.0
Preliminary
² Built-in low voltage reset (LVR) function
12. Induction Heating special peripheral device
² Power measurement and production
² Thermal measurement and production
² IGBT driver and production
13. Provides 8 interrupt sources
² External: INT shared with IO pad
² Internal: Timer/counter A, peripheral device & Time base timer
14. Provide package types
² DIP/SOP/SSOP 20/24/28/32 pins
§ Applications:
1. Household electric appliances (IH cooker)
2. Consumer products
3. Measurement controller
§ Package type:
V1.0
Preliminary
SR05A SR05A
PB1/PFDB 1 20 PB0/PFD PB1/PFDB 1 20 PB0/PFD
PWMO 2 19 PA3 PWMO 2 19 PA3
RT1 3 1 18 PA2/INT1 RT1 3 1 18 PA2/INT1
RT2 4 17 PA1/TCPA RTX 4 17 PA1/TCPA
RTX 5 16 PA0/INT0 OPO 5 16 PA0/INT0
IIN 6 15 VDD IIN 6 15 VDD
ICOM 7 14 RSTB ICOM 7 14 RSTB
VAC 8 13 VSS VAC 8 13 VSS
SURGE 9 12 MC- SURGE 9 12 MC-
OV 10 11 MC+ OV 10 11 MC+
20-SDIP/DIP-A 20-SDIP/DIP-B
V1.0
Preliminary
SR05A SR05A
PB1/PFDB 1 24 PB0/PFD PB1/PFDB 1 28 PB0/PFD
PWMO 2 23 PA3 PB2 2 27 PA3
RT1 3 22 PA2/INT1 PB3 3 26 PA2/INT1
RT2 4 21 PA1/TCPA PWMO 4 25 PA1/TCPA
RTX 5 20 PA0/INT0 RT1 5 24 PA0/INT0
OPINN 6 19 PD1 RT2 6 23 PD3
OPO 7 18 PD0 RTX 7 22 PD2
IIN 8 17 VDD OPINN 8 21 PD1
ICOM 9 16 RSTB OPO 9 20 PD0
VAC 10 15 VSS IIN 10 19 VDD
SURGE 11 14 MC- ICOM 11 18 RSTB
OV 12 13 MC+ VAC 12 17 VSS
SURGE 13 16 MC-
24-SDIP/DIP-A
OV 14 15 MC+
SR05A
28-SDIP/DIP-A
PWMO 1 32 PB3
PC0 2 31 PB2
PC1 3 30 PB1/PFDB SR05A
PC2 4 29 PB0/PFD PMWO 1 20 PB1/PFDB
PC3 5 28 PA3 RT1 2 19 PB0/PFD
RT1 6 27 PA2/INT1 RT2 3 1 18 PA3
RT2 7 26 PA1/TCPA RTX 4 17 PA2/INT1
RTX 8 25 PA0/INT0 OPO 5 16 PA1/TCPA
OPINN 9 24 PD3 IIN 6 15 PA0/INT0
OPO 10 23 PD2 ICOM 7 14 PD0
IIN 11 22 PD1 VAC 8 13 VDD
ICOM 12 21 PD0 MC+ 9 12 RSTB
VAC 13 20 VDD MC- 10 11 VSS
SURGE 14 19 RSTB
20-SDIP/DIP-C
OV 15 18 VSS
MC+ 16 17 MC-
32-SDIP/DIP-A
V1.0
Preliminary
§ Block Diagram:
² System Block
OSCH &
Base Timer
OSCL
PA3~PA0
Timer/Counter A
ROM PB3~PB0
RAM
PD3~PD0
T426 MCU
Interrupt
RSTB
IH
RESET
Special Hardware
LVR WDT
V1.0
Preliminary
² IH Block
18V
AC
OV
MC- MC+
SURGE
OPINN OPO PWMO
5V
Vac
4V
IIN
ICOM
IGBT Control
Portect I/O
4V
RT1
§ Pin Description:
V1.0
Preliminary
Pin Name I/O Pin Description
RSTB/VPP I External reset input, active low 50kΩ pull-up(5v)
VDD Power Positive power supply
PA0(INT) IO I/O port with external interrupt input (PA0). PA1 used as clock inputs of timer/counter A
PA1(TCPA) IO
PA2 IO
PA3 IO
PB0(PFD) IO I/O port with internal signal output
PB1(PFDB) IO
PB2 IO
PB3 IO
VSS Power Negative power supply, ground
PC0~PC3 IO IO port
PD0~PD3 IO IO port
MC+ I PWM synchronic positive input
MC- I PWM synchronic negative input
Vac I AC power over range
OV I IGBT overshot voltage detector input
IIN I Power current input
OPINN I OP negative input
OPO O OP Amp output
ICOM I OP positive input
RTX I Common input
RT1 O RT1 enable output
RT2 O RT2 enable output
SURGE I AC line surge input
PWMO O PWM output NMOS open drain
V1.0
Preliminary
Pin Name I/O Type Description
PA0~PA2 Figure IO-A STD IO with external input
PB0~PB1 Figure IO-B STD IO with internal output
PA3,PB2~PB3 Figure IO-C STD IO
PC0~PC3 Figure IO-A STD IO with external input
PD0~PD3 Figure IO-A STD IO with external input
V1.0
Preliminary
Output port Sink Current IOL VDD=5.0V, VOL=0.6V - 8 - mA
Output Port Source Current IOH VDD=5V, VOH=VDD-0.7V - -4 - mA
I/O Port Pull-High Resistor RPH VDD=5.0V 100 150 200 KΩ
RESET Pull-High Resistor RPH VDD=5.0V 30 50 80 KΩ
Low Voltage Reset (LVR) VLVR1 For AC application 2.4 3.2 4.0 V
Oscillator Start up voltage VST FOSC=4MHz 2.4 - - V
§ AC Characteristics:
Parameter Test Condition Min Typ. Max Unit
External Reset Low active pulse width tRES 2 - - CPU
Interrupt input Low active pulse width tINT 2 - - clock
Wake up input Low active pulse width twkup, 2 - - OSCL
Application de-bounce should
be manipulated by user’
software
System FOSCH VDD=5.0V - 4M -
Oscillator Hz
Frequency
System Stable After power up, the system
Time after needs to initialize the - - 64 ms
Power up configured state and OST.
§ Memory Map:
ROM ADDRESS RAM ADDRESS Function Block
000H~FFFH Program ROM [4K*16]
000H ~ 007H File Registers
008H~01FH Peripheral registers (I)
V1.0
Preliminary
020H~09FH Working RAM [128*4]
120H~133H Peripheral registers (II)
§ Interrupt Vectors:
Interrupt Vectors Function Description
$000 hardware RESETB
$001 Hardware IRQB1
§ File registers:
Address Symbol R/W Default Description
000H (DP1) R/W - Indirect addressing register
001H ACC R/W - Accumulator & Read Table 1st data
002H TB1 R/W - Read Table 2nd data
003H TB2 R/W - Read Table 3rd data
004H TB3 R/W - Read Table 4th data
005H DPL R/W - Data Pointer low nibble
006H DPM R/W - Data Pointer middle nibble
007H DPH R/W - Data Pointer high nibble
V1.0
Preliminary
00CH TCPAC R/W 0000 TCPA Timer/counter A control register
00DH TCPAL R/W 0000 TCPA Timer/counter A data low register
00EH TCPAH R/W 0000 TCPA Timer/counter A data high register
00FH PAC R/W 1111 I/O port A control register
010H PA R/W 1111 I/O port A data register
011H PBC R/W 1111 I/O port B control register
012H PB R/W 1111 I/O port B data register
013H PCC R/W 1111 I/O port C control register
014H PC R/W 1111 I/O port C data register
015H PDC R/W 1111 I/O port D control register
016H PD R/W 1111 I/O port D data register
017H PSP R/W --00 Peripheral power saving control register
018H INTC1 R/W 0000 Extended interrupt enable register
019H INTF1 R/W 0000 Extended interrupt request flag register
01AH TCPFS R/W -000 TCP clock source FS pre-scale register
01BH CPACK R 0000 CP acknowledge date register
01EH PWMDL R/W 0000 Low nibble PWM output data
01FH PWMDH R/W 0000 High nibble PWM output data
120H MESDL R 0000 Low nibble MES output data
121H MESDH R 0000 High nibble MES output data
122H CPSEL R/W -000 Comparator channel select register
123H TZERO R/W -000 Adjustable time for zero voltage register
127H TBCC W ---- Time base counter clear address
129H PAI R ---- Port A pad data reading address
12AH PBI R ---- Port B pad data reading address
12BH PCI R ---- Port C pad data reading address
12CH PDI R ---- Port D pad data reading address
12DH MESCKSEL R/W -000 Measure clock selection register
12EH OPGFSEL R/W 0000 OP Amp Gain factor selection register
130H RESETF R/W 0-00 Reset flag
131H MRO W ---- Mask option register write enable address
Note: a. Default means initial value after power on or reset.
b. R is “read” only, W is “write” only, R/W is both of “read” & “write”.
V1.0
Preliminary
2: Peripheral Oscillators
The peripheral oscillator comes from built-in 4M RC oscillator provides 32KHZ frequency.
3: CPU clock
The CPU clock comes from system oscillator which was built-in 4M RC oscillator.
OSCEN
OSCH
OSCH
CPU operating clock
÷128
Peripheral clock
(32K Hz)
÷2
TBCK
V1.0
Preliminary
The clock of watch dog timer comes from time base overflow (TB1OV). User can use the
time up signal to prevent a software malfunction or abnormal sequence from jumping to an
unknown memory location causing a system fatal failure. Normally, if the watchdog timer
time up signal active that will reset the chip. At the same time, program and hardware can be
initialized and resume system under normal operation. The chip also provides clear watchdog
command as the programmer writes INTF with $F data. Completely finishes the two write
steps will clear the watch dog timer. User should well arrange the two command steps for
avoiding the dead lock loop.
User should keep in minds that always reset WDT at main program and
never clear the WDT in the interrupt routine.
TB1OV Q WDT
TFF TFF TFF QB DFF
as clock Overflow
POR+RESET
The low voltage reset (LVR) forces the MCU in reset state during power failure, especially
V1.0
Preliminary
as MCU working in AC power application, preventing from abnormal state is the key issue.
VDD
R1
R2
R3
V+
+ Reset
_ Debounce
LVREN=1
62.5-125us
6: RESET
The chip has five kinds of reset sources: POR (power on reset), External reset, Watch dog
timer reset, LVR (low voltage reset), LVNCR (low voltage reset for no clock detection).
.POR (power on reset)
The chip provides automatic reset function when the power is turned on. The VDD
should be below 1.6V and its rising slope (from 0.1VDD up to o.9VDD) needs less than 10ms.
Preliminary
the watchdog timer is cleared regularly by users’ program, no watchdog reset will occur.
Unless the MCU is forced into abnormal state, the software controlled procedure is disrupted
and causing watch dog timer overflow, then it will generate reset signal to initializes the chip
returning to normal operation.
Preliminary
Read/write - - R/W R/W
PWMEN: PWM enable (0: disable; 1: enable)
PFDEN: PFD & PFDB output enable (0: disable; 1: enable)
8. Interrupts
The CPU provides only 1 interrupt vector ($001H) and no priority, but can expand to
multi-sources. The interrupt control registers (INTC0 and INTC1 contain the interrupt control
bits to enable and disable corresponding interrupt request and the corresponding interrupt
request flags in the (INTF0 and INTF1) registers. Before finishing the INT service routine,
another INT request will keep waiting until program return from interrupt routine.
Preliminary
SYNCIE: SYNC interrupt request enable. (0: disable; 1: enable)
IGBTOVIE: IGBT over voltage interrupt enable. (0: disable; 1: enable)
SURGEIE: Surge interrupt enable. (0: disable; 1: enable)
If the interrupt request needs service, the programmer may set the corresponding INT
enable bit to allow interrupt active. External interrupts are triggered by trigger type and set
the related interrupt request flag (INTxF). The internal timer/counter interrupt is setting the
TCPAF to 1, resulting from the timer/counter overflow. The time base interrupt TBxINT was
provided 2 periodic interrupt request cycles for user operating a periodic routine.
When the corresponding interrupt enable and flag bits is set to 1, the CPU will active the
interrupt service routine. Then CPU reads the service flag and check the request priority then
V1.0
Preliminary
proceeds with the relative interrupt service. After CPU writes the corresponding bits to 0 in
the INTxF register, the service flag will be cleared to 0(using STX #n, $m instruction). The
INTF & INTF1 registers’ bit can only write “0” to clear the flag. User writes “1” to Flag bit with
no effect.
The time base counter has 2 interrupt sources and both of them come from the
peripheral internal RC oscillator or external RTC optioned by mask option. The time base 1st
overflow output (TB1OV) can cause interrupt and the period is selected by TB1S2~TB1S0 in
TBC register. The time base 2nd frequency (TB2OV) also offers two sample frequency
options by TB2S bit in the TBC register.
V1.0
Preliminary
TBCK
16KHz
TBCK/2
8KHz TB1OV
TBCK/16
1KHz
TBCK/64
256Hz
TBCK/256
64Hz
TBCK/2048
8Hz
TBCK TBCK/8192
14 bit Binary 2Hz
TBCK/16384 TB2OV
Counter 1Hz
MUX
Write TBC &
CLEAR counter TB2 TB1S2~TB1S0
Preliminary
V1.0
Preliminary
One 8-bits timer/counters/PFD (TCPA) with 4 kind clock sources and preload data
buffer can implement as a timer or counter feature , PFD is programmable frequency divider
can support sound /melody/carrier generator. The clock sources of TCPA are selected by
TCPAS0 & TCPAS1 two bits of the timer control registers (TCPAC). TCPAOV is the timer or
counter overflow signal and the rising edge will set the relative INT flag.
PFD Output
TCP A PFD
V1.0
Preliminary
The special R/W function for TCPA has different target, AS writing TCPAH/L registers that are
updating preload data of the TCPAD. As read TCPAH/L registers that are the brand new TCPA
counter value.
² INTC0: Interrupt control register [R/W], default value [0000]
INTC0 Bit3 Bit2 Bit1 Bit0
Bit Name MESIE TCPAIE TB2IE TB1IE
Read/Write R/W R/W R/W R/W
TCPAIE: Enable interrupt of timer/counter A. (0: disable; 1: enable)
² INTF0: Interrupt request flag register [R/W], default value [0000]
INTF0 Bit3 Bit2 Bit1 Bit0
Bit Name MESF TCPAF TB2F TB1F
Read/Write R/W R/W R/W R/W
TCPAF: Timer/counter A’ interrupt request flag. (0: inactive; 1: active)
V1.0
Preliminary
.Timer
When TCPA works as a Timer, user needs give the preload data TCPAD for periodic interrupt.
After initial setting, user starts the TCPA counting by setting TCPAEN=1, the TCPA cycle period is:
Tc = (selected clock cycle) * (TCPAD)
When user writes data to the TCPAD, the data just keep in TCPADL/H register. During the
TCPAEN=1 command executed, the TCPAD 1’s complement value will load into counter TCPA as
initial value and start the timer function. Necessary TCPALD=1, timer run with reload feature as
TCPA up counts and reaches the value 0f “FFH” or 255. At the same time, interrupt request flag
TCPAF will set activated, if software enables the corresponding interrupt enable bit, INT hardware
will cause MCU interrupt service routine.
.PFD
The PFD Mode includes in timer mode and the output frequency is:
PFD frequency = (selected clock frequency) / (2) / (TCPAD)
At this time, most users will disable the interrupt feature for tone or melody generation.
.Counter
Counter feature is implemented only by TCPALD=0, the TCPAD can be zero or not that
depends on software needs. User starts & stops the counter by changing the TCPAEN bit
value. On the save side, reading the counter value after stopping the count by disable
TCPAEN=0, if reading the counter value during value changing that means clock in
happening at the same time. The reading of counter value may disrupt for transient state. If
8 bit counter is not enough for counting, user can enable the interrupt and using the data
RAM as software counter for extending the counter stage.
CK0
M Data Bus
CK1 PFD
U 1/2
CK2 Timer Counter
X
CK3
Preload Data TCPAOV
TCPAS1
TCPAS0
TCPALD
Data Bus
TCPAEN
V1.0
Figure: Timer/Counter/PFD
PDF created with pdfFactory Pro trial version www.pdffactory.com
G E-Chip Technology CO.LTD GE 微电子有限公司
地址:中山市南头镇南头大道 295 号
TEL: 0760-23830669 FAX : 0760-23830665 Email: ZS_KLF@163.COM
Title Page
Ver.
CKM005(IH MCU)
24 of 52
0.0-
Preliminary
4: Induction heating control
a. Common comparator and 8 bits counter for measuring:
Vac CPO
Data Bus
OPO +
Debounce
_
62.5-125us
RTX MESCP
2V
CPF
Or selected by CMPS
INT
RT1 CPIE
RT2
Decoder CPSEL
4MHz
MUX
MESCK 8 bit up counter. FF MESOV
32KHz CPO CLK RB
MESCKSEL CPSEL=0H
One 8-bits counter (MES) with 8 kind clock sources can implement as a measuring
meter feature, and a comparator (MESCP) can be arranged to support Voltage/ Current/
Thermal measuring. The clock sources of MES are selected by MESCKS0 & MESCKS1 &
MESCKS2 three bits of the clock control registers (MESCKSEL). MESOV is the timer
overflow signal and the rising edge will set the relative INT flag (MESF). To clear the
MESF flag, user can write “0” or set CPSEL to “0”. User write “1” to MESF flag bit with no
effect.
The comparator (MESCP) with the channel selection register CPSEL can multiplex a
channel once a time for measuring. No matter what channel selected, the comparator
output signal CPO is always strobe, and filtered 100us to generate CPF through falling
V1.0
Preliminary
edge detector. If CPF results to “active” and programmer set the interrupt request CPIE
“enable”, the CPU will active the interrupt service routine. The CPF registers’ bit can
write “0” to clear the flag. User writes “1” to flag bit with no effect. When CPSEL set to
“0” or “F” also clear the CPF bit.
² MESCKSEL: Measuring clock of signal pulse width selection data register [R/W],
default value [-000]
Register Bit3 Bit2 Bit1 Bit0
Bit Name - MESCKS2 MESCKS1 MESCKS0
Read/Write - R/W R/W R/W
² MESDL: Low nibble Measure data register [R], default value [0000]
Register Bit3 Bit2 Bit1 Bit0
Bit Name MESD3 MESD2 MESD1 MESD0
Read/Write R R R R
² MESDH: High nibble Measure data register [R], default value [0000]
Register Bit3 Bit2 Bit1 Bit0
Bit Name MESD7 MESD6 MESD5 MESD4
Read/Write R R R R
MES data =128*MESD7+ 64*MESD6+ 32*MESD5+ 16*MESD4+ 8*MESD3+
4*MESD2+ 2*MESD1+ MESD0
V1.0
Preliminary
INTF0 Bit3 Bit2 Bit1 Bit0
Bit Name MESF TCPAF TB2F TB1F
Read/Write R/W R/W R/W R/W
MESF: MES counter interrupt request flag. (0: inactive; 1: active)
² CPACK: Comparator acknowledge data register [R/W], default value [u-00]
Register Bit3 Bit2 Bit1 Bit0
Bit Name CPO SYNC CPF CPIE
Read/Write R R R/W R/W
CPIE: Enable interrupt of CPO falling-edge. (0: disable; 1: enable)
CPF: CPO falling-edge interrupt request flag. (0: inactive; 1: active)
CPO: Comparator data out signal.
SYNC: Magnetic coil synchronous signal
² CPSEL: Comparator channel Selection data register [R/W], default value [-000]
Register Bit3 Bit2 Bit2 Bit0
Bit Name - CPSEL2 CPSEL1 CPSEL0
Read/Write - R/W R/W R/W
V1.0
Preliminary
b. IGBT control:
1. Sync edge detector for PWM duty start, MC+ & MC- are come from Magnetic coil
terminal.
SYNCF
SYNCIE INT
V1.0
Preliminary
11 Dual edge trigger
0H
OSCH CLK 6-bits Timer
Sync RB
SB
IGBTEN
D Q
CLK
4-bits comparator EQ
RB
Data Bus
² TZERO: Adjustable time for zero voltage turn-on data register [R], default value
[0000]
Register Bit3 Bit2 BiT2 Bit0
Bit Name TZERO3 TZERO2 TZERO1 TZERO0
Read/Write R/W R/W R/W R/W
TZERO data=8*TZERO3+4*TZERO2+2*TZERO1+TZERO0
TZERO time = (OSCH/4) * (TZERO)
V1.0
Preliminary
3. 20~40KHz PWM duty control with target data
D Q
PWMO
OSCH CLK
CLK FF
PWMEN RB OEN
8 bits Timer LD
IGBTEN
OEN OEN
Data Bus
² PWMDL: Low nibble PWM data register [R/W], default value [0000]
Register Bit3 Bit2 Bit1 Bit0
Bit Name PWMD3 PWMD2 PWMD1 PWMD0
Read/Write R/W R/W R/W R/W
² PWMDH: High nibble PWM data register [R/W], default value [0000]
Register Bit3 Bit2 Bit1 Bit0
Bit Name PWMD7 PWMD6 PWMD5 PWMD4
Read/Write R/W R/W R/W R/W
PWM data = 128*PWMD7 + 64*PWMD6 + 32*PWMD5 + 16*PWMD4 + 8*PWMD3 +
4*PWMD2 + 2*PWMD1+ PWMD0.
The PWM works as same as Timer, user needs give the preload data PWMDL/H for
periodic operating. After initial setting, user starts the PWMO counting by setting
PWMEN=1, the PWMO period is:
PWMO = (OSCH clock cycle)* (PWM) +TZERO time
When user writes data to the PWM, the data just keep in PWMDL/H register. During
the PWMEN=1 command executed, the PWM 1’s complement value will load into counter
PWM as initial value and start the timer function. Necessary PWMEN=1, PWM run with
reload feature as PWM up counts and reaches the value 0f “FFH” or 255.
Preliminary
II. Wait TZEO counter runs, and if TZREO counter overflow then set
IGBTEN=1.
III. PWM counter runs, and PWM counter reaches the target duty then IGBT
off
IV. Wait SYNC signal transition
V. Go to I for next cycle
When PWMEN=1 & IGBTEN=1, the relationship between PWMO and SYNC has four
kinds at different PWM duty with TZERO time. The timing diagrams are figured as
follow:
V1.0
Preliminary
i. SYNC Cycling: as TZERO=m (m≠0, m<16), PWM=n (n<256), OSCH=4MHz
SYNC ‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Line (MC-) > IGBT (MC+) Line (MC-) < IGBT (MC+) Line (MC-) > IGBT (MC+)
OSCH ‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗
PWMO ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗
│←- mx4 clock →│←----- n clock ----→│ │←-- mx4 clock --→│←----- n clock -----
↑Asynchronous deviation
ii. SYNC Cycling: as TZERO=0, PWM =k (k<256), OSCH=4MHz
SYNC ‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗
Line (MC-) > IGBT (MC+) Line (MC-) < IGBT (MC+) Line (MC-) > IGBT (MC+) Line (MC-) < IGBT (MC+)
OSCH ‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗
PWMO ¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
│←------ k clock -------→│ │←------ k clock -------→│
V1.0
Preliminary
iii. SYNC Not Cycling: as TZERO=m (m≠0, m<16), PWM=n (n<256), OSCH=4MHz
SYNC ‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Line (MC-) > IGBT (MC+) Line (MC-) > IGBT (MC+) Line (MC-) > IGBT (MC+)
OSCH ‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗
PWMO ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
│←- mx4 clock →│←----- n clock ----→│←--------- (16~15) x4 clock --------→│←-- n clock ---→│←-- (16~15) x4 clock
SYNC‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Line (MC-) > IGBT (MC+) Line (MC-) >IGBT (MC+) Line (MC-) > IGBT (MC+) Line (MC-) > IGBT (MC+)
OSCH ‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗∏‗∏‗≈‗∏‗∏‗∏‗∏‗∏‗
PWMO ¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯│‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗│¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
│←------ k clock -------→│←--------- (16~15) x4 clock ---------→│←------ k clock -------→│←----------- (16~15) x4 clock--
V1.0
Preliminary
Usually 20K~40Kdepend on
MC-
MC+
Sync
MC+
MC-
V1.0
50/60 Hz
Preliminary
OV +
100ns LPF IGBTOVF
4V _
SURGE +
100ns LPF
4V _ SURGEF
IH interrupt (IGBTOV & Surge) works as warning request as the error conditions are
detected. Any error condition happening, the hardware will STOP the PWM and stop the
power. When IGBTOVF & SURGEF occurs, PWMEN automatically clears to be 0.
Preliminary
In the measurement application, a resistor type sensor can rely on this kind RC network
to convert the various resistance value as relative different counter that uses as the same
clock source of counter. First all, the external C was discharged to VDD while CPSEL set the
appropriate value as 111 or 000. Then, select a thermometer channel (RT1 or RT2) to
measure the charge time by the common comparator and 8 bits counter.
The resister of RC network is the main role to measure temperature. User can configure
I/O pin as open drain to select which resister will act as the role. And select RT1 or RT2 which
is as the common channel for measuring. The application is as follow:
Decoder CPSEL
External C
RTX
External External
External
Thermometer1 Thermometer2
Thermomete3
V1.0
Preliminary
IIN R R R R
OPINN _
+ OPO
R/50 ICOM
² OPGFSEL: OP AMP Gain Factor selection register [R/W], default value [--00]
OPGFSEL Bit3 Bit2 Bit1 Bit0
Bit Name CMPS1 CMPS0 OPGFS1 OPGFS0
Read/Write R/W R/W R/W R/W
OPGFS[1:0] Gain
00 25
01 50
10 100
11 200
CMPS[1:0] Comparator
Voltage Level
00 0.5V
01 1.0V
10 2.0V
11 3.0V
V1.0
Preliminary
5: IO Pad Cells
The main features of pad cell are including ESD/EFT protection and general I/O access. A
general I/O pad cell can be configured as input with or without pull-up resistor, or working as a
CMOS or NMOS output driver. The input pad cell must have pull-up resistor for avoiding a floating
state when user doesn’t care or not be used. For concerning the standby current, user can use
data register or I/O control register to fit the application.
Preliminary
V1.0
Preliminary
The input/output port has the I/O control register for switching input or output mode and
output data register stores the output data in output mode. If control register=1 and output
data=1, the I/O port is programmed as input with pull-up resister and also actives the wake-up
function. User intends to read the port data with differed read instruction. The read PI is reading
data comes from PAD input data. The data register reading result will have the same value with
output register data. Software can performs a configuration (data=0, changing the control 0 or 1)
for open drain type that specifies suitable for key scan application. An additional feature supports
the interrupt input triggers and Timer external clock sources.
V1.0
Preliminary
Pull-High
R
S
Data Bus
D Q P
I/O control
Register Write CK QB
PR
S
P
D Q
Output Data CK QB
N PAD
Register Write
Read PI
M 0
U
Read 1
X
Wake-up N
External interrupt
Preliminary
The standard input/output port has the I/O control register for switching input or output
mode and output data register stores the output data in output mode. If control register=1 and
output data=1, the I/O port is programmed as input with pull-up resister and also actives the
wake-up function. User intends to read the port data with differed read instruction. The read PI is
reading data comes from PAD input data. The data register reading result will have the same
value with output register data. If enable internal output by mask option, the internal output will
control by output data (on/off) and outputs to PAD.
V1.0
Preliminary
Write
PR
S
P
D Q
Data register CK QB
N PAD
Write
Read PI
M 0
U
Read 1
X
Wake-up
N
MUX
Internal output signal
Output enable
V1.0
Preliminary
Standard IO Port
The standard input/output port has the I/O control register for switching input or output mode
and output data register stores the output data in output mode. If control register=1 and output
data=1, the I/O port is programmed as input with pull-up resister and also actives the wake-up
function. User intends to read the port data with differed read instruction. The read PI is reading
data comes from PAD input data. The data register reading result will have the same value with
output register data. Software can performs a configuration (data=0, changing the control 0 or 1)
for open drain type that specifies suitable for key scan application.
Preliminary
Pull-High
R
S
Data Bus
D Q P
I/O control
Register Write CK QB
PR
S
P
D Q
Output Data CK QB
N PAD
Register Write
Read PI
M 0
U
1
Read X
Wake-up N
Preliminary
² MOP1: external INT type option register [R/W], default value [0000]
Mask option Bit3 Bit2 Bit1 Bit0
Bit Name SYNCS 1 SYNCS0 INTS1 INTS0
Read/Write R/W R/W R/W R/W
² MOP2: PFDB enable register [R/W], default value [0000]
Mask option Bit3 Bit2 Bit1 Bit0
Bit Name - - - PFDB
Read/Write - - - R/W
The following table shows the mask option in this chip. All the mask options must be defined
clearly and ensure to meet user’s proper function.
No. Mask Option Function Descriptions
SYNCF trigger type 00 High level trigger
+2 SYNCS1,SYNCS0 01 Rising edge trigger
10 Falling edge trigger
11 Dual edge trigger
INTF trigger type 00 Low level trigger
+2 INTS1,INTS0 01 Falling edge trigger
10 Rising edge trigger
11 Dual edge trigger
+1 PFDB 0 PFDB output disable
1 PFDB output enable
V1.0
Preliminary
V1.0
Preliminary
24-SOP
§ Application Circuit:
V1.0
Preliminary
18V
AC
PWM
ICOM
OV
V OV
5V
18V
RTX
6 3 7805
VI V OU T
7 2 N
G ND
8 1
§ Ordering Form:
V1.0
Preliminary
a. Package form : TTU(R)03A-zzz
b. Chip form : TCU(R)03A-zzz
c. Wafer base : TDU(R)03A-zzz
Modified Record:
Date Name Version Page Content
V1.0
Preliminary
5 Modify IH Block
V1.0
Preliminary
25 Modify CPSEL
5 Modify IH Block
6 Add ICOM
Preliminary
2007/11/30 Hans Yang V1.0-000 29 Modify SYNC not Cycling timing diagram
V1.0