Dac Setup Example - Infineon TLE4997 User Manual

Configuration and calibration of linear hall sensor
Table of Contents

Advertisement

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.
Optionally do a last status
readout (adr. 0x0F) to check
the IF mode is still active
and the device is ok.
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
User's Manual
EEPROM
programming
V
= 5V
dd
INIT-CMD:
cmd=0x01
adr=0x0F
READ DATA
Is
0xF93D or
0xFB3D ?
CMD (write):
cmd=0x09
adr=0x21
DAT: 0x4000
(DAC test)
CMD (write)
cmd=0x09
adr=0x20
WR. DATA
Wait 10ms and
evaluate the
response on
the V
-pin
out
Se t a ll re q u ire d D AC
values in a loop
V
= 0V (off)
dd
FINISHED
19
TLE4997 Programming
NO
TLE4997
User's Manual
ILLEGAL
STATUS:
analyse
problem
v01_01, 2019-08

Advertisement

Table of Contents
loading

Table of Contents