May 12, 2020
06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 12, 2020
06:53 AM
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?
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?
- Tags:
- IFX
1 Reply
May 14, 2020
12:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 14, 2020
12:44 AM
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
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