MOD54415 DAC example

Post your example source code and application notes to share with others
Post Reply
User avatar
BBAdmin
Site Admin
Posts: 35
Joined: Fri Apr 18, 2008 5:54 pm

MOD54415 DAC example

Post by BBAdmin » Fri Dec 14, 2012 1:30 pm

This example demonstrates simple DAC output capability and the advanced waveform output capability. Tested with tools release 2.6.
Attachments
MOD54414-DAC.zip
(3.56 KiB) Downloaded 447 times

Lachlanp
Posts: 91
Joined: Tue Jan 29, 2013 4:44 am

Re: MOD54415 DAC example

Post by Lachlanp » Fri Feb 08, 2013 12:47 am

This example refers to a function and pin definition that does not apear in the example

J2[36].function( PINJ2_36_T0OUT );

Can anyone tell me where this function and pin definition is?

Regards
Lachlan

User avatar
dciliske
Posts: 614
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: MOD54415 DAC example

Post by dciliske » Fri Feb 08, 2013 8:50 am

Um... I'm not sure I understand your question. I think you're confused by the PinIO class and the pinconstants macros. If that's the case, then take a look at 'pins.h' in the system include directory (nburn/include) and 'pinconstants.h' in the platform include directory (nburn/MOD5441X/include).
Dan Ciliske
Project Engineer
Netburner, Inc

amaier17
Posts: 8
Joined: Thu May 16, 2013 1:24 pm

Re: MOD54415 DAC example

Post by amaier17 » Fri May 17, 2013 10:58 am

Can anyone confirm that this example works? I'm not getting output on my DAC0 line for the simple ramping output.

I can follow along with your initialization sequence and it seems correct and close to what I attempted, however I haven't had any success. For the analog reference voltage I simply connected J2[2] (VCC) to J2[5].

Thanks for any help!
Andrew

User avatar
dciliske
Posts: 614
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: MOD54415 DAC example

Post by dciliske » Fri May 17, 2013 11:26 am

Hmm... That's interesting. I just ran the example on my board and it behaves exactly as expected. Two things I'll note are:

1) The example says that DAC0 is J2[36]. This is incorrect. J2[36] is DTOUT0, the timer output. DAC0 is J2[9].
2) You should also connect VSSA_DAC_ADC to ground; J2[14] to J2[1]. This is the ground reference pin for the analog module.

Do either of these help?

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc

amaier17
Posts: 8
Joined: Thu May 16, 2013 1:24 pm

Re: MOD54415 DAC example

Post by amaier17 » Fri May 17, 2013 12:09 pm

I actually never ran the second (timer generation) section. But I have J2[1] connected to J2[14], J2[2] -> J2[5], and my oscilloscope hooked up to J2[9] and J2[1] (gnd).

I just tried using DAC1 (and J2[13]) instead of DAC0 without success. I'm going to try one of my other boards and I'll let you know if that fixes anything.

**UPDATE

It appeared to be the board I was using. The demo works properly on another board.

Thanks for your help!

Whiteurka
Posts: 1
Joined: Mon Sep 05, 2016 8:26 am

Re: MOD54415 DAC example

Post by Whiteurka » Mon Sep 05, 2016 8:49 am

dciliske wrote:Hmm... That's interesting. I just ran the example on my board and it behaves exactly as expected. Two things I'll note are:

1) The example says that DAC0 is J2[36]. This is incorrect. J2[36] is DTOUT0, the timer output. DAC0 is J2[9].
2) You should also connect VSSA_DAC_ADC to ground; J2[14] to J2[1]. This is the ground reference pin for the analog module.

Do either of these help?

-Dan

i will help i hope. it actually made my work about to be completed and hopefully if there is still an issue what you shared is something that i have to apply. i will post mine once completed and hopefully someone will help me:)

Lavern
Posts: 1
Joined: Thu Aug 10, 2017 8:14 pm

Re: MOD54415 DAC example

Post by Lavern » Thu Aug 10, 2017 8:21 pm

BBAdmin wrote:This example demonstrates simple DAC output capability and the advanced waveform output capability. Tested with tools release 2.6.
I can follow with your initialization series and it looks right and close to what I used, however I have not got any success.
Get the secockpit keywords tool http://www.myversaroadtrip.com

User avatar
dciliske
Posts: 614
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: MOD54415 DAC example

Post by dciliske » Mon Aug 14, 2017 10:42 am

Did you connect the pins VDDA_DAC_ADC and VSSA_DAC_ADC (Pins J2[5] and J2[14])? The power section for the analog section is separate from that of the rest of the module. If you're just working with the carrier board you can just jumper those to Vcc and Ground.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc

Post Reply