Advance
Information
TM58PC20A
Data Sheet
Tenx reserves the right to change or
discontinue this product without notice.
tenx technology inc.
tenx technology, inc.
Preliminary
Rev.1.4, 2009/01/13
Advance Information
DS-TM58PC20A
1. Features
ROM: 2K x 14 bits
RAM: 72 x 8 bits
STACK: 2 Levels
Advance mode and General mode
I/O ports: 20 I/O PAD
Timer/counter: 8bits x1 (TMR0)
Prescaler: 3 Bits
Watchdog Timer: The On-chip WDT is formed by an integrated RC oscillator. The
shortest period is 21mS; user can extend the WDT overflow period
to 2.688S by using prescaler.
Power-On Reset & Watchdog timer overflow Reset & Low Voltage reset.
Reset Timer: 21 mS (5V)
Four external Oscillate modes: RC, LP Crystal, NT Crystal and HS Crystal.
Operation Voltage: 2.2V½5.5V
Instruction set: 78
Wake-up: Port B pin-change wake-up (Advanced mode only ).
Pull-UP: Port B input pull-up (Advanced mode only ).
Reset vector: 7FFH
1
tenx technology, inc.
Rev.1.4, 2009/01/13
Preliminary
Advance Information
DS-TM58PC20A
2. Pin Definition & Pad Assignment
EXT_CLK/PA4
VDD
NC
VSS
NC
PA0
PA1
PA2
PA3
PB0
PB1
1
2
3
4
5
6
7
8
9
10
11
28
27
26
25
24
23
22
21
20
19
18
RESETB
OSC1
OSC2
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PB2 12
17 PB7
PB3 13
16 PB6
PB4 14
15 PB5
Package Types :SDIP(TM58PC20ASD28C)
DIP(TM58PC20AD28C)
SOP(TM58PC20AS28C)
SSOP(TM58PC20ASS28C
PC4
PC5
PC6
PC7
OSC2
OSC1
RESETB
VDD
VSS
1
2
3
4
5
6
7
8
9
20
19
18
17
16
15
14
13
12
PC3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA0 10
11 PA1
Package Types: SDIP(TM58PC20ASD20C)
SOP(TM58PC20AS20C)
2
tenx technology, inc.
Rev.1.4, 2009/01/13
Preliminary
Advance Information
PC5
PC6
PC7
OSC2
OSC1
RESETB
VDD
VSS
1
2
3
4
5
6
7
8
18
17
16
15
14
13
12
11
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
DS-TM58PC20A
PA0 9
10 PA1
Package Types: SDIP(TM58PC20ASD18C)
SOP(TM58PC20AS18C)
PIN description
Pin name
EXT_CLK/PA4
PA3-0
PB7-0
PC7-0
RESETB
OSC1
OSC2
VDD
VSS
I/O
I
I/O
I/O
I/O
I
I
O
P
P
Description
1. External clock input to TMR0 counter
2. PA4 input ( When configure bit7=1, Advance mode only)
I/O port
1. I/O port
2. Pin-change wake-up (Advanced mode only )
3. Pull-UP (Advanced mode only )
I/O port
System reset signal input
Oscillator input
Oscillator output
Power input
Ground input
I: Input; O: Output; I/O: Bi-direction; P: Power
3
tenx technology, inc.
Rev.1.4, 2009/01/13
Preliminary
Advance Information
DS-TM58PC20A
3. Control Register
Name
CONFIG
(Instruction)
SELECT
IAR
TMR0
PC
STATUS
BSR
I/O PortA
I/O PortB
I/O PortC
Addr
Bit 7
Bit 6
Bit 5
LV1
A5
D5
D5
SA0
D5
PB5
PB5
Bit 4
LV0
A4
D4
D4
TO
D4
Bit 3
CPT
PSA
A3
D3
D3
Bit 2
Bit 1
Bit 0
RTCEN TYPE
$00
$01
$02
$03
$04
$05
$06
$07
PB7
PC7
PB6
PC6
D7
D7
A6
D6
D6
SA1
D6
WDTE FOSC1 FOSC0
PS2
A2
D2
D2
Z
D2
PA2
PB2
PC2
PS1
A1
D1
D1
DC
D1
PA1
PB1
PC1
PS0
A0
D0
D0
C
D0
PA0
PB0
PC0
SUR0 EDGE0
PD
D3
PA3
PB3
PC3
PA4
PB4
PC4
4
tenx technology, inc.
Rev.1.4, 2009/01/13
Preliminary