i am using f28335. in that program i am taking one cycle sine wave data in 1000 samples in array form. i want to see this data through DAC. i am facing difficult to initialize the dac and i don't have any idea on this dac. please help me.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
i am using f28335. in that program i am taking one cycle sine wave data in 1000 samples in array form. i want to see this data through DAC. i am facing difficult to initialize the dac and i don't have any idea on this dac. please help me.
Thank you Gautam for your repley. but this is all given about f280X series but i am using f28335. here in the f28335 examples it given as below, but it is confusing. just i am trying to send some sine wave data to dac which is there in array format and trying to see it in the scope. any help please.
void parallel_dac_exapmle(void)
{
//generate phase shifted ramp waveforms
for(;;)
{
update_AD7305();
//update ramp data
AD7305_CH_A++;
AD7305_CH_A&=0xff;
AD7305_CH_B++;
AD7305_CH_B&=0xff;
AD7305_CH_C++;
AD7305_CH_C&=0xff;
AD7305_CH_D++;
AD7305_CH_D&=0xff;
//apply delay
delay_loop_int(2);
}}
Hi,
F28335 ePWM doc mentions:
The ePWM peripheral performs a digital to analog (DAC) function, where the duty cycle
is equivalent to a DAC analog value; it is sometimes referred to as a Power DAC.
Regards,
Gautam
Hi Gautam, Thank you for your kind reply. i am still struggling to initialize ePWM as a DAC. where as in f2812 we have MUX register to configure GPIOs eigther input pin or output pin. like that can i get some commands to initialize ePWM as a DAC. please don't mind.
Kiran, check this out:
This is meant for F28069 DAC implementation.
Hope this helps you out.
Regards,
Gautam