EN
  • EN
  • DE

Application of digital-analogue conversion DAC0832

Sunday, January 14, 2018

[Experimental requirements]

Through the use of single-chip DAC0832 control output sawtooth wave, so that the experiment board LED D12 from dark to light changes, cycle down.

[Purpose]

Learn to use the single chip microcomputer control DAC DAC3232.

DAC0832: The DAC0832 is an 8-bit, full-speed, medium-speed D / A converter that uses a R-2RT resistor decoding network to convert a pair of differential current outputs with a conversion time of approximately 1 μs. Use single power supply + 5V- + 15V power supply. The reference voltage is -10V- + 10V. Here we directly select +5 V as the reference voltage. DAC0832 has three working methods: pass-through mode, single-buffer mode, double-buffering mode; here we choose direct mode of work, the XFER WR2 CS pin all connected to the digital ground. Pin 8 connected to the reference voltage, where we receive the reference voltage is + 5V. We control the P0 port output data changes will be able to produce a regular triangular wave, sawtooth wave, ladder wave and other waveforms.

[Hardware Circuit]

DAC0832  hardware circuit
[Source code]

// TX-1BDA test program, after the download can be observed D13 light-emitting diode from dark to light and then extinguished process,

#include

sbit wela = P2 ^ 7; / / digital tube bit election

sbit dula = P2 ^ 6; // Selections

sbit dawr = P3 ^ 6; // DA write data

sbit csda = P3 ^ 2; // DA chip select

unsigned char a, j, k;

void delay (unsigned char i) // delay

{

for (j = i; j> 0; j--)

for (k = 125; k> 0; k--);

}

void main ()

{

wela = 0;

dula = 0;

csda = 0;

a = 0;

dawr = 0;

while (1)

{

P0 = a; / / to a constantly add one, and then sent to DA

Delay (50); / / Delayed about 50ms, plus one, then send DA.

a ++

}

}

Note: As the number of DA sent to the increase, the amount of current converted to analog also continue to increase, and the light-emitting diode D12 will light from dark to light, off.

Relevant LM393 series products

Part Number  Mfg Code   Stock (pcs)

 RoHS 

 Category

 Unit Price($) 

DAC0802LCJ

Texas Instruments

1613

RoHS

 

RFQ

DAC0802LCM

Texas Instruments

7731

 

 RFQ

DAC0802LCN

Texas Instruments 76  RoHS  $2.8

DAC0802LCMX/NOPB

 Texas Instruments 586   RoHS  RFQ

Author:Brittany Antonia (The author of article owns the copyright.)

RFQ RFQ RFQ BOM BOM BOM API API API Sell Sell Sell your Excess