- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
LTC2308 doesn't run without operating CONVST pin. It's also necessary to select an input channel via SDI (din) command.
You can refer to adc_ltc2308.v demonstration code. Or write your own code based on LTC2308 datasheet.
Regards
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First of all, thank you for your response. There's something I don't understand. The DE1-SoC uses the AD7928 ADC, so why did you suggest using the LTC2308 instead?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which DE1-SoC version you are talking about?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
De1-SoC Cyclone V (5CSEMA5F31C6N)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are 6 versions of DE1-SoC, you have apparently V1.
AD7928 requires CS edge to start conversion if I understand the datasheet right. Also useful channel selection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I fix my code according to your suggestion? What should I add to the code and what should I change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
presently CS isn't operated in the code (only written low but never high). It should however go high and low again between 16 clock pulses. I also wonder what's the clk frequency and how it's generated?
My preferred SPI template uses a single edge sensitive process clocked at 2*SCLK, generating all output signals including SCLK synchronously.
Regards
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I had tested the terasic DE1-SoC CD-ROM design example DE1_SoC_ADC https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=205&No=836&PartNo=4#contents
The ADC_SDO is transitioning correctly like the screenshot:
May be you can refer to the verilog file adc_ltc2308.v in the design example.
Thanks,
Regards,
Sheng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tried the example code you provided, but I encountered some errors. How can I resolve these?
Warning: DE1_SoC_QSYS.cpu: Nios II cores are not recommended for new projects and are subject to removal in a future release. Nios V cores are the recommended replacement as applicable.
Error (261005): Can't find the instance. Download a design with SRAM Object File containing this instance.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Check the attached file.
Please program the .sof first and then program the .elf file. Then open .stp to view the waveform.
Program the .elf file:
1.Go to <path>/nios2eds/nios2_command_shell.sh to open nios ii shell
2.Run command nios2-download DE1_SoC_ADC.elf -c 1 -r -g
That is just a verilog module adc_ltc2308.v and being used in Nios II design.
Thanks,
Regards,
Sheng

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page