XMC4800 DAC example running faild!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User19541
Level 1
Level 1
when i run this example,change the value of output data,
XMC_DAC_CH_Write(XMC_DAC0, 1, 0x1ffU);
to
XMC_DAC_CH_Write(XMC_DAC0, 1, 0x1U);
or others,the Output voltage unchanged!
this example has some problems?or the setting has some error?
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Please check 22.2.3 Single Value Mode in reference manual:

"This write operation itself then initiates a single trigger pulse and the value gets processed by DAC0 or DAC1. Only for
this mode, no further external, internal or software trigger pulse is necessary. The DAC
holds the processed value until a new value is written to DATA0 or DATA1. This
operating mode is intended for outputting static DAC output values. For processing
sequential data streams in this “self triggered”, single value mode, it is important not to
exceed the maximum DAC data rate
. "

So in your case depending on the compiler optimizations, it might be needed to add a delay between the two calls to XMC_DAC_CH_Write()

Regards,
Jesus
0 Likes