Forum Discussion

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

Analog Input Into Nios

Hi,

I'm a newbie to Nios, but have done some embedded Linux driver development with the PowerPC 823

I was hoping someone could point me in the direction of how to get analog inputs from the EP2S60 DSP Dev Board into uClinux. Actually, info on how to get any analog inputs would be a good start.

I've searched a bit with no real luck, and am currently under the impression that a concrete driver isn't yet available.

Am I right in thinking that I need to add to the Quartus II Nios design and then create my own uClinux driver by mapping memory?

What is a good way to tie the Nios processor to other interfaces on the StratixII? Are there any reference designs someone could point me to?

Cheers,

Jim

3 Replies

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

    You don't need to go as far as writing your own driver, unless you want to . Remember, because NIOS is non-mmu, you can directly access any peripheral in SOPC Builder. So if you have a PIO Component connected to your analog/digital inputs, you can simply access it by initializing a pointer to it's base address and reading/writing it.

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

    Jdhar's right....

    Keep in mind that you're not really accessing raw "analog" input/output anyway, you're just configuring registers in an Analog hardware device. Most devices, that I've dealt with, have some sort of processor interface to do this. (I2C, SPI, etc.)

    If you're referring to the DACs/ADCs on the DSP kit, I'm pretty confident that someone out there has attempted talking to them over Avalon, though I've never tried it, so I can't comment about your exact situation.

    Best Regards,

    - slacker