
BAT32G1x9 user manual | Chapter 16 D/A converter
527 / 1149
Rev.1.02
16.3 Registers that control the D/A converter
The D/A converter is controlled by the following registers.
•
Peripheral enable register 1 (PER1).
•
Mode register (DAM) for D/A converters
•
D/A conversion values set registers 0, 1 (DACS0, DACS1).
•
Event output target selection register n (ELSELRn), n=00~21
16.3.1 Peripheral enable register 1 (PER1).
The PER1 register is a register that is set to allow or disable clocks to each peripheral hardware. Reduce
power consumption and noise by stopping clocking hardware that is not in use.
To use a D/A converter, bit7 (DACEN) must be set to "1".
The PER1 register is set via the 8-bit memory operation
instruction.
After generating a reset signal, the value of this register
changes to "00H".
Figure 16-2 format of Peripheral enable register 1 (PER1)
Address: 0x4002081A
after reset:
00H R/W
symbol
PER1
DACEN
Control of the input clock of the D/A converter
0
Stop providing the input clock.
• Cannot write SFR
used by
D/A
converters.
• The D/A
converter is in a reset state.
1
An input clock is provided.
• Can read and write
SFR
used by
D/A
converters.
Note
:
To set up
a
D/A
converter, you must first place the
DACEN
at
"1".
When the DACEN
bit is
"0",
the write operation of the control register of the D/A converter is ignored, and the read
values are both the initial values (port mode register
2
(PM2) and port register
2
).
P2) except).
7
6
5
4
3
2
2
1
0
DACEN
TMBAndN
PGACMPEN
TMMEN
DMAIn
PWMOPEN
TMCEN
TSTONE