![]() |
|||||||||||||||||
![]() |
|
Custom Search
Readers
comments
|
|||||||||||||||
"Programming and using the DAC in C"Download:DAC voltage generator C code and hex file Download the zip file containing the hex and source files and mikroC project files: Sponsored Links...
Download :
Download ZIP file : Download here. ProgrammingThe following code lets you experiment with the DAC generating a staircase output and a trigger signal to synchronize an oscilloscope.If you don't have an oscilloscope add a delay_ms(1000) in the for loop to let you measure the output on a DVM. Shadow registerThe use of CVRCON_shdw allows updates without changing the actual value of CVRCON - the final output is made just before the end of the for loop.This is done since setting CVRCON CVR[3..0] to zero immediately changes the output to zero i.e. making glitched output. So using CVRCON_shdw gives glitch free operation.
Internal DAC DisadvantagesDisadvantages of the internal DAC are that it:
If you design a circuit with these limitations in mind then you're good to go! Advantages:
Jump from DAC page to Home page: Best-Microcontroller-Projects.com |
|||||||||||||||||
|
|
|||||||||||||||||
|
|||||||||||||||||