Академический Документы
Профессиональный Документы
Культура Документы
Note –
- this information is individual information, (Inc.) all inquiry to Toshiba and
(Inc.) the Toyota Motor Corporation and the like is prohibited. In addition, it
does not owe all responsibility concerning the accident damage trouble
which derives from this information.
The Toshiba 8X series micro controller besides the fact that it was used, as
custom CPU of the Toyota car ECU has the instruction set which is similar to
6800 systems CPU as well.
1. Pin arrangement
The typical package is 64 pins wide DIP package. There are also those of 42 pin
DIP types in the series.
2. Operational mode
With the operational mode of 7 types, MODE7 and MODE2 can be selected with
the I/E pin of the chip. Movement to other modes during program operating does
by operating the OMODE register.
Port A, B
register
3 0 1 1 Outside Outside Outside
external
treatment
3. Memory map
With built-in ROM 12KB and built-in RAM 384byte, short story low ル it is
possible on & off and external memory reference of ROM RAM with operational
mode to do. 0xffde-0xffff is the vector Mode 7 area, reset
vector 0xfffe (MSB), 0xffff (LSB) 0x0000 contents are set
by PC at the time of CPU reset and 0x0030
0x0040 I/O Area
execution is
started.
Unused
The internal
RAM
I/O area
0x01c0
mode 2
External Unused
memory
0x0000 Built-in 0xd000
0x0030
0x0040
RAM
0x0100
The
internal
ROM
0xffde
Vector
area
0xffff
External
memory
vector
area
0xffff
0xffde
4. I/O register
Memory address 0x0000- 0x002f, the I/O register for peripheral interface is done
mapping. When CPU is operated with the external mode of MODE2 and the like,
because PORT A and PORT B in the one for external memory bus the allotment
and others れ る, it is use failure. When the same port at the time of external
mode is used, if PORT A/PORT B and the equivalent I/O circuit are increased
outside, it is possible to operate same as the time of single chip,
0x0d CPR2L
Timer comparison #2 LSB
0x0e CPR3 Timer comparison #3 MSB
0x0f CPR3L Timer comparison #3 LSB
0x10 ASR0P ASR0↑ Edge counter value MSB
0x11 ASR0PL ASR0↑ Edge counter value LSB
0x12 ASR0N ASR0↓ Edge counter value MSB
0x13 ASR0NL ASR0↓ Edge counter value LSB
0x14 ASR1P ASR1↑ Edge counter value MSB
0x15 ASR1PL ASR1↑ Edge counter value LSB
0x16 ASR1N ASR1↓ Edge counter value MSB
0x17 ASR1NL ASR1↓ Edge counter value LSB
0x18 ASR2 ASR2 Edge counter value MSB
0x19 ASR2L ASR2 Edge counter value LSB
0x1a ASR3 ASR3 Edge counter value MSB
0x1b ASR3L ASR3 Edge counter value LSB
0x1c - Unused
0x1d - Unused
0x27 DOM DOUT Control
0x1e - Unused
0x28 PORTC Port C data
Operation PODTD/
Port D data - ASR
0x29
0x1f OMODE mode ASRIN input data
appointment 0x2a RAMST Built-in RAM status
0x20 PORTA Port A data Serial status data
0x2b SSD
0x21 PORTAL Port A latch register
0x22 PORTB Port B data Interruption required
0x2c IRQL
0x23 PBCS
Port B flag MSB
control Interruption required
0x2d IRQLL
0x24 TAIT
Timer ASR flag LSB
control Interruption mask
0x25 LDOUT LDOUT 0x2e IMASK
MSB
0x26 DOUT DOUT data Interruption mask
0x2f IMASKL
LSB
5. Operator cord/code
It has the instruction set which is similar to 6800 series, but both operator
cord/code order it is not identical. Addressing mode almost is identical to 68
systems.
Contents of CCR
register.
7 6 5 4 3 2 1 0
- - H I N Z V C
CCR flag
Flag Explanation
H The half carry
from bit.3
I Interruption
mask
N Negative
Z Zero
V Overflow
C Carry
Register Explanation
name
A 8bit アキュームレータ
B 〃
Higher rank the 16bit
D
register which designates
A and subordinate
position as B
X 16bit Index register
Y 16bit Index register
SP 16bit Stack pointer
PC 16bit Program counter
CCR 8bit Condition register
命令 ニモニック 動作式
加算 ADD op.1 = op.1 + op.2
op.1 = op.1 + op.2 +
キャリア付加算 ADDC
C
減算 SUB op.1 = op.1 – op.2
op.1 = op.1 – op.2 –
キャリア付減算 SUBC
C
乗算 MUL Acc.D = Acc.A * op.2
Acc.A < op.2なら、
商 = Acc.B, 余 = Acc.A,
除算 DIV C = 0
Acc.A >= op.2なら
無動作、C = 1
インクリメント INC op.1 = op.1 + 1
割込禁止 DI I = 0
V フラグのクリア CLRV V =0
キャリークリア CLRB C = 0
M[sp] = op.1. sp = –
レジスタ待避 PUSH
sp 1
sp = sp + 1, op.1 =
レジスタ復帰 PULL
M[sp]
M[sp] = PC, sp = sp +
呼び出し JSR
2
sp = sp + 2, PC =
サブルーチン復帰 RET
M[sp]
RETI 全レジスタ復帰後、サブルーチ
割込復帰 ン復帰
無条件分岐 JMP 分岐