====== Analog digital analog ====== The GECKO4-Education platform contains a Analog to Digital Converter (ADC) and a Digital to Analog Converter (DAC) as indicated in the below figure. {{ :gecko4education:adcdac.png?200 |}} ===== General information ===== Both the ADC and DAC can be used with their internal reference voltage, or they can use an external reference voltage supplied on the AREF pin of the [[gecko4education:arduino|Arduino compatible connector]]. The voltage on the AREF pin should always be bigger than 0V and smaller or equal to 3.3V! ===== 14-Channel ADC ===== The GECKO4-Education board has a sixteen channel 10-bit ADC of type MAX11340 of which 14-channels are connected on the analog part of the [[gecko4education:arduino|Arduino compatible connector]]. The datasheet of this ADC can be found {{ :gecko4education:max11340.pdf |here}}. The control pins of this ADC which are connected to the FPGA are listed in the table below. An example tcl-file that can be used with Quartus can be found {{ :gecko4education:adc.tcl |here}}. ^ Function: ^ short: ^ FPGA-pin: ^ | Chip select (active low) | nCS | PIN_J7 | | Serial clock |SCLK | PIN_H6 | | Serial data in |Din | PIN_J6 | | Serial data out |Dout | PIN_K8 | | Start conversion (active low) |nCNVST | PIN_H7 | | End of conversion (active low |nEOC | PIN_K7 | ===== Dual channel DAC ===== The GECKO4-Education board has a dual channel 10-bit DAC of type LTC2632 which are connected on the not-used part of the [[gecko4education:arduino|Arduino compatible connector]]. The datasheet of this DAC can be found {{ :gecko4education:ltc2632.pdf |here}}. The control pins of this DAC which are connected to the FPGA are listed in the table below. An example tcl-file that can be used with Quartus can be found {{ :gecko4education:dac.tcl |here}}. ^Function: ^short: ^FPGA-pin:^ |Chip select (active low) |nCS |PIN_AB13| |Serial clock |SCLK |PIN_AA13| |Serial data in |SDI |PIN_V12|