HD6413308 Hitachi Semiconductor, HD6413308 Datasheet - Page 153

no-image

HD6413308

Manufacturer Part Number
HD6413308
Description
Hitachi Single-Chip MicroComputer
Manufacturer
Hitachi Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6413308CP10
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308CP10
Manufacturer:
HITACAI
Quantity:
20 000
Part Number:
HD6413308CP10V
Manufacturer:
RENESAS
Quantity:
776
Part Number:
HD6413308RCP10
Manufacturer:
HITACHI/日立
Quantity:
20 000
Part Number:
HD6413308RF8
Manufacturer:
NEC
Quantity:
2 468
Part Number:
HD6413308RF8
Manufacturer:
HITACHI/日立
Quantity:
20 000
• Register Read
Programs that access these registers should normally use word access. Equivalently, they may
access first the upper byte, then the lower byte by two consecutive byte accesses. Data will not be
transferred correctly if the bytes are accessed in reverse order, if only one byte is accessed, or if the
upper and lower bytes are accessed separately and another register is accessed in between, altering
the value in TEMP.
Coding Examples
To write the contents of general register R0 to OCRA:
To transfer the contents of ICRA to general register R0:
Figure 6-4 shows the data flow when the FRC is accessed. The other registers are accessed in the
same way.
When the CPU reads the upper byte, the upper byte of data is sent to the CPU and the lower byte
is placed in TEMP. When the CPU reads the lower byte, it receives the value in TEMP.
(As an exception, when the CPU reads OCRA or OCRB, it reads both the upper and lower bytes
directly, without using TEMP.)
(1) Upper byte write
(2) Lower byte write
CPU writes
data H’AA
CPU writes
data H’55
Figure 6-4 (a). Write Access to FRC (When CPU Writes H’AA55)
Bus interface
Bus interface
138
FRC H
[H’AA]
FRC H
[
]
MOV.W
MOV.W
TEMP
[H’AA]
TEMP
[H’AA]
R0, @OCRA
@ICRA, R0
FRC L
[H’55]
FRC L
[
Module data bus
Module data bus
]

Related parts for HD6413308