友晶Altera Cyclone V GX Starter Kit开发板使用ADC-第一篇

本文介绍了使用友晶Altera Cyclone V GX Starter Kit开发板进行ADC学习的过程,重点是LTC2308 8通道12位ADC的SPI接口。作者探讨了板子的硬件特性,包括高速收发器和ADC的规格,并研究了SPI通信时序和NIOS II EDS软件的使用。在C语言开发中,遇到关于ADC寄存器配置的问题,特别是0x01的含义和寄存器位的文档位置。
摘要由CSDN通过智能技术生成

1. 拿到板子在,做工很好,属于GX系列,GX应该是高速收发器

2. 去探究下GX是什么用途,大约有6个型号,这个板子是5CGXFX5,有77 LE逻辑单元,这个收发器不知道是什么?6个 3.125G Transceivers收发器。

3. 进去下载的资料发现有个ADC的例程,打算研究下ADC的例程

4. 这个板子有个配套的上位机ControlPanel软件,猜测是通过电脑的下载接口USB Blaser给板子下发指令,让板子去执行相应的操作。这个软件的操作就不说了。参考C5G_User_Manual.pdf第二章

5. 正式开始ADC的学习,板子试用ADC是LTC2308,看下它的介绍,8通道,12位的ADC,SPI接口

The LTC2308 is a low noise, 500ksps, 8-channel, 12-bit ADC with an SPI/MICROWIRE compatible serial interface. The internal conversion clock allows the external serial output data clock (SCK) to operate at any frequency up to 40MHz.

6. 看下接口图,正板子上有Arduino的接口

7. 看下原理图,U17,FPGA的电平难道是1.2V的?74AVC4T774电平转换,LTC2308和FPGA有4根线,标准的SPI接口

8. 通信的时序图

9. 打开工程看一下,本次还是用NIOS系统

 1 module C5G_ADC(
 2 
 3      CLOCK //
 4     CLOCK_125_p,
 5     CLOCK_50_B5B,
 6     CLOCK_50_B6A,
 7     CLOCK_50_B7A,
 8     CLOCK_50_B8A,
 9 
10      LED //
11     LEDG,
12     LEDR,
13 
14      KEY 
Altera Cyclone V E GX 全系列原理图库+PCB封装库(AD集成库)。.IntLib后缀文件,拆分后文件为PcbLib+SchLib格式,Altium Designer原理图库+PCB封装库,集成库型号列表如下: Library Component Count : 342 Name Description ---------------------------------------------------------------------------------------------------- 5CEBA2F17A7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 128 I/O Pins, 4 PLLs, 256-Pin FBGA, Speed Grade 7, Automotive Grade, RoHS Compliant 5CEBA2F17C6N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 128 I/O Pins, 4 PLLs, 256-Pin FBGA, Speed Grade 6, Commercial Grade, RoHS Compliant 5CEBA2F17C7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 128 I/O Pins, 4 PLLs, 256-Pin FBGA, Speed Grade 7, Commercial Grade, RoHS Compliant 5CEBA2F17C8N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 128 I/O Pins, 4 PLLs, 256-Pin FBGA, Speed Grade 8, Commercial Grade, RoHS Compliant 5CEBA2F17I7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 128 I/O Pins, 4 PLLs, 256-Pin FBGA, Speed Grade 7, Industrial Grade, RoHS Compliant 5CEBA2F23C7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 224 I/O Pins, 4 PLLs, 484-Pin FBGA, Speed Grade 7, Commercial Grade, RoHS Compliant 5CEBA2F23C8N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 224 I/O Pins, 4 PLLs, 484-Pin FBGA, Speed Grade 8, Commercial Grade, RoHS Compliant 5CEBA2U15C6N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 176 I/O Pins, 4 PLLs, 324-Pin UBGA, Speed Grade 6, Commercial Grade, RoHS Compliant 5CEBA2U15C7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 176 I/O Pins, 4 PLLs, 324-Pin UBGA, Speed Grade 7, Commercial Grade, RoHS Compliant 5CEBA2U15C8N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 176 I/O Pins, 4 PLLs, 324-Pin UBGA, Speed Grade 8, Commercial Grade, RoHS Compliant 5CEBA2U15I7N Cyclone V E Family FPGA, 1.07 to 1.13 V Supply, 176 I/O Pins, 4 PLLs, 324-Pin UBGA, Speed Grade 7, Industrial Grade, RoHS Compliant 5CEBA2U19C7N Cyclone V E Family FPGA, 1.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值