Advance
Information
TM59PA40
8 Bit Microcontroller
Data Sheet
Tenx reserves the right to change or
discontinue this product without notice.
tenx technology inc.
0
tenx technology, inc.
Rev 2.5, 2007/06/28
Preliminary
Advance Information
FEATURE
1.
2.
3.
4.
5.
6.
7.
8.
ROM: 4K x 14 bits
RAM: 192 x 8 bits
STACK: 6 Levels
I/O ports: Three I/O ports (Max 18 pins) and Bit programmable ports
Timer/counter: One 8-bit timer/counter with time interval modes
Watchdog Timer: On chip WDT based on system oscillator
DS-TM59PA40
Power-On Reset & Watchdog timer overflow Reset & Low Voltage reset
Oscillation Frequency:
1 MHz to 12 MHz external crystal oscillator
Internal RC: 2.8 MHz (typ.), 470KHz (typ.) in VDD = 5 V
External RC
High-speed PWM:
8-bit PWM 1-ch, 6-bit base + 2-bit extension (Max: 187 kHz)
10-bit PWM 1-ch, 8-bit base + 2-bit extension (Max: 47 kHz)
9.
10.
Operation Voltage: LVR to 5.5V
11.
Instruction set: 35 Instructions
12.
Execution Time: 167 ns at 12 MHz
f
OSC
(minimum)
13.
A/D Converter: 10-bit conversion resolution with 10-ch analog input pins (MAX)
14.
Interrupts: 5 interrupt sources with one vector with one interrupt level
15.
Buzzer Out: Frequency Selectable Buzzer Output
16.
System Config Option: LVR Level Selection and Clock Source Selection
17.
Reset vector: 000H
18.
Interrupt vector: 001H
19.
Power Down mode
20.
Package Types:
20-SOP, SSOP, DIP
16-SOP, SSOP, DIP
1
tenx technology, inc.
Rev 2.5, 2007/06/28
Preliminary
Advance Information
System Block Diagram
DS-TM59PA40
Pin Assignment Diagram
Package Types: 20-Pin SOP/DIP/SSOP
2
tenx technology, inc.
Rev 2.5, 2007/06/28
Preliminary
Advance Information
Package Types: 16-Pin SOP/DIP/SSOP
DS-TM59PA40
PIN Description
Name
PA.0–PA.7
In/Out
I/O
Pin Description
Bit-programmable I/O port for Schmitt-trigger input or
push-pull output. Pull-up resistors are assignable by
software. PortA pins can also be used as A/D converter
input, PWM output or external interrupt input.
Bit-programmable I/O port for Schmitt-trigger input or
push-pull, open-drain output. Pull-up resistors or pull-
down resistors are assignable by software.
Schmitt trigger input port
Bit-programmable I/O port for Schmitt-trigger input or
push-pull, open-drain output. Pull-up resistors are
assignable by software.
Crystal / Ceramic, or RC oscillator signal for system
clock.
Voltage input pin and ground
System clock output port
External interrupt input port
8-Bit high speed PWM output
10-Bit high speed PWM output
Timer0 match output
A/D converter input
Shared
Function
ADC0-ADC7
INT0/INT1
PWM0/PWM1
X
IN
, X
OUT
–
ADC8-9/CLO
T0OUT/BUZZER
PB.0–PB.1
–
PC.6
PA.0, PA.1
PA.6
PA.7
PC.0
PA.0–PA.7
PC.5–PC.6
PB.0–PB.1
PB.2
PC.0–PC.6
X
IN
, X
OUT
V
DD
, V
SS
CLO
INT0–INT1
PWM0
PWM1
T0OUT
ADC0–ADC9
I/O
I
I/O
–
P
O
I
O
O
O
I
< I: Input; O: Output; I/O: Bi-direction; P: Power >
3
tenx technology, inc.
Rev 2.5, 2007/06/28
Preliminary
Advance Information
Instruction Set
Field
f
b
k
d
W
Z
C
DC
PC
TOS
GIE
()
.
←
DS-TM59PA40
Description
Register File Address
Bit address
Literal. Constant data or label
Destination selection field. 0 : Working register 1 : Register file
Working Register
Zero Flag
Carry Flag
Decimal Carry Flag
Program Counter
Top Of Stack
Global Interrupt Enable Flag (i-Flag)
Contents
Bit Field
Assign direction
4
tenx technology, inc.
Rev 2.5, 2007/06/28
Preliminary