Results 1 to 2 of 2

Thread: Is this the function to use for basic read from Max 10 ADC?

  1. #1
    Join Date
    Apr 2017
    Rep Power

    Default Is this the function to use for basic read from Max 10 ADC?


    I'm putting a Max10 ADC into my NIOS2 based design. I have not been able to find any examples for writing NIOS C code to read Max10 ADC. I'm sure it's simple, but getting the includes, drivers, declarations and pointers right can be tricky. I am piecing it together though, and have found something hopeful in the docs.

    The following is from the NIOS2 user manual-
    Is this the correct function to read from dedicated ANIN channel 0, slot 0, no sequencer?

    " 15.3.12 alt_adc_word_read Prototype

    int alt_adc_word_read (alt_u32 sample_store_base, alt_u32* dest_ptr, alt_u32 len)
    Arguments sample_store_base: Base address of sample store core. *dest_ptr: destination buffer len: number of 32-bit reads
    Description Reads words from the sample store "


  2. #2
    Join Date
    May 2013
    Rep Power

    Default Re: Is this the function to use for basic read from Max 10 ADC?

    The ADC user guide references the header files you need to use to access the ADC:

Similar Threads

  1. Replies: 8
    Last Post: December 1st, 2015, 07:02 PM
  2. Literature on basic arithmetic function implementations or architectures.
    By stianhh in forum FPGA, Hardcopy, and CPLD Discussion
    Replies: 2
    Last Post: September 4th, 2014, 04:12 PM
  3. Simulink Coder Error when compiling S-Function from S-Function Altera blocks
    By davinhardoyo in forum DSP Builder and DSP IPs
    Replies: 0
    Last Post: June 12th, 2014, 04:30 AM
  4. Basic Function Unit Design (ALU + shifter)
    By jonnybgood in forum General Altera Discussion
    Replies: 0
    Last Post: January 23rd, 2014, 12:06 PM
  5. sd card read function
    By moeen in forum General Software Forum
    Replies: 2
    Last Post: September 7th, 2011, 11:40 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts