![Infineon TLE4997 Скачать руководство пользователя страница 19](http://html.mh-extra.com/html/infineon/tle4997/tle4997_user-manual_2055077019.webp)
TLE4997
User’s Manual
TLE4997 Programming
User’s Manual
19
v01_01, 2019-08
3.6.9
DAC setup example
To find the exact DAC value for a desired output voltage (e.g. to set up the clamping low/high registers with the
best available accuracy), it is possible to set the DAC value directly and to measure the result on the output pin.
Figure 3-17 Basic DAC setup flow
Flowchart description:
1. Switch on the device
2. Send an inital command (status data readout)
3.
Read the status data,check that the device is valid and the EEPROM content is valid
4.
Set the test register: “DAC Test”=1 (see previous chapter)
- The output immediately shows the content given by the DAC_SET register.
5.
Send a write command (DAC_SET register)
- Send the data word for the desired 12bit DAC value (in 16bit format, MSBs are ’0’)
- The output changes accordingly to the new DAC value in DAC_SET
6.
After 10ms (max. output setup time), measure Vout
- Repeat writing a new DAC value (continue at step 5) until the response of all desired DAC values are measured
7. Check the status register again
EEPROM
programming
INIT-CMD:
cmd=0x01
adr=0x0F
READ DATA
V
dd
= 5V
Is
0xF93D or
0xFB3D ?
ILLEGAL
STATUS:
analyse
problem
NO
CMD (write):
cmd=0x09
adr=0x21
DAT: 0x4000
(DAC test)
FINISHED
V
dd
= 0V (off)
Optionally do a last status
readout (adr. 0x0F) to check
the IF mode is still active
and the device is ok.
Se t a ll re q u ire d D AC
values in a loop
CMD (write)
cmd=0x09
adr=0x20
WR. DATA
Wait 10ms and
evaluate the
response on
the V
out
-pin