HD6432160 RENESAS [Renesas Technology Corp], HD6432160 Datasheet - Page 274

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Example 2: Read DADRA
Table 10.2 Read and Write Access Methods for 16-Bit Registers
Legend
Yes:
10.5
A PWM waveform like the one shown in figure 10.2 is output from the PWMX pin. The value in
DADR corresponds to the total width (T
(256 pulses when CFS = 0, 64 pulses when CFS = 1). When OS = 0, this waveform is directly
output. When OS = 1, the output waveform is inverted, and the DADR value corresponds to the
total width (T
output available.
Rev. 2.0, 08/02, page 234 of 788
Register Name
DADRA and DADRB
DACNT
:
MOV.W R0, @DACNT
MOV.W @DADRA, R0
Permitted type of access. Word access includes successive byte accesses to the upper
byte (first) and lower byte (second).
This type of access may give incorrect results.
Operation
Base cycle
(T
H
) of the high (1) output pulses. Figures 10.3 and 10.4 show the types of waveform
t
L
64 or T
t
f
256)
; Write R0 contents to DACNT
; Copy contents of DADRA to R0
Figure 10.2 PWM D/A Operation
Yes
Word
Yes
L
) of the low (0) pulses output in one conversion cycle
1 conversion cycle
(T
Read
2
14
Byte
Yes
(= 16384))
T:
T
(When CFS = 0, m = 256
When CFS = 1, m = 64)
L
Resolution
=
n = 1
m
t
Word
Yes
Yes
Ln
(OS = 0)
Write
Byte

Related parts for HD6432160