Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

DE0-Nano - A/D Converter in Nios II

Good morning,

I work in a research group in a Universdade of Brazil and I I'm working with the board DE0- Nano. I am using the Nios II and needed to use the A/D converter of the respective board.

i do not know how to use this a/d converter in the nios ii in c language. someone could show me a c program for the nios ii using the ad converter?

This program, if possible, need return the value of the conversion in LEDs and on the computer screen.

Thank you.

Ps: The A/D Converter is the ADC128S022 from National Semiconductor.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I just see you had the same problem as me.My question is have you solved the problem? And when yes how you handle it. Maybe you can post/show me or tell me how you did it.

    thx
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi all,

    Unfortunately I have the same probblam.I've understood the 'DE0_NANO_ADC' demonstration but I can't use the code for other project in C language in EClipse IDE.I've used QuartusII V. 11.1 and I was wondered if anybody can help me.

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can easily use SPI Core in qsys and then use it in eclipse to read and config the ADC,no further file is required