Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
resources:tools-software:uc-drivers:microchip:ad7780 [07 Dec 2012 14:18] – created Dan Nechitaresources:tools-software:uc-drivers:microchip:ad7780 [09 Jul 2013 14:19] – source code change and source code put on github Lucian Sin
Line 6: Line 6:
  
 ===== Downloads ===== ===== Downloads =====
- +<WRAP round download 80%>
-<WRAP round download 30%> +
-  * {{:resources:tools-software:uc-drivers:ad7780_generic.zip|AD7780 Generic Driver}} +
-  * {{:resources:tools-software:uc-drivers:microchip:ad7780_pic32.zip|AD7780 PIC32 Driver}}+
   * {{:resources:tools-software:uc-drivers:microchip:ad7780_arduino.zip|AD7780 chipKIT Driver}}   * {{:resources:tools-software:uc-drivers:microchip:ad7780_arduino.zip|AD7780 chipKIT Driver}}
 +  * **AD7780 Driver:           ** https://github.com/analogdevicesinc/no-OS/tree/master/drivers/AD7780
 +  * **PmodAD3 Demo for PIC32MX320F128H: ** https://github.com/analogdevicesinc/no-OS/tree/master/Microchip/PIC32MX320F128H/PmodAD3
 +  * **PIC32MX320F128H Common Drivers:   ** https://github.com/analogdevicesinc/no-OS/tree/master/Microchip/PIC32MX320F128H/Common
 </WRAP> </WRAP>
 +
    
 ====== Digilent Cerebot MX3cK Quick Start Guide ====== ====== Digilent Cerebot MX3cK Quick Start Guide ======
Line 23: Line 24:
   * [[http://www.microchip.com/mplabx|MPLAB X Integrated Development Environment]]   * [[http://www.microchip.com/mplabx|MPLAB X Integrated Development Environment]]
   * [[http://www.microchip.com/mplabxc|MPLAB XC32 compiler]]   * [[http://www.microchip.com/mplabxc|MPLAB XC32 compiler]]
 +  * The AD7780 demonstration project for PIC32MX320F128H.
 +
 +<WRAP round info 80%>
 +The AD7780 demonstration project for PIC32MX320F128H consists of three parts: the **AD7780 Driver**,  the **PmodAD3 Demo for PIC32MX320F128H** and the **PIC32MX320F128H Common Drivers**.
 +
 +All three parts have to be downloaded.
 +</WRAP>
 +
  
 ==== Hardware Setup ==== ==== Hardware Setup ====
Line 28: Line 37:
  
 {{ :resources:tools-software:uc-drivers:microchip:pmod_ad3_pic32.jpg? |}} {{ :resources:tools-software:uc-drivers:microchip:pmod_ad3_pic32.jpg? |}}
 +
 +<WRAP round important round 80%>
 +
 +  * If using 3 external signals (AVDD, AIN and REF) then 2 jumpers on PmodAD3 must be off (JP1 and JP2).
 +  * If using 2 external signals (AIN and REF) or (AIN and AVDD) then 1 jumper on PmodAD3 must be off (JP2 or JP1).
 +  * Be aware that 0.5V ≤ Vref ≤ AVDD and 2.7V ≤ AVDD ≤ 5.25V.
 +  * Be aware (especially when using gain = 128) that the common-mode voltage (AIN(+) + AIN(−)) / 2 must be ≥ 0.5V.
 +
 +</WRAP>
  
 ==== Reference Project Overview ==== ==== Reference Project Overview ====
-Following commands were implemented in this version of AD7780 reference project for Cerebot MX3cK board.+The following commands were implemented in this version of AD7780 reference project for Cerebot MX3cK board.
 ^ Command ^ Description ^ ^ Command ^ Description ^
 | help? | Displays all available commands. | | help? | Displays all available commands. |
-| power= | Power off or on the device. Accepted values: 01. | +| power= | Power off/on the device. Accepted values:\\ - Power off.\\ - Power on. | 
-| filter= | Select the filter frequency. Accepted values: 01. | +| filter= | Select the filter frequency. Accepted values:\\ - Filter frequency is 16.7 Hz.\\ - Filter frequency is 10 Hz. | 
-| gain= | Select gain. Accepted values: 01. | +| gain= | Select gain. Accepted values:\\ - Gain is set to 128.(Input voltage range must be +/-25.78mV) \\ - Gain is set to 1.(Input voltage range must be +/-3300mV). | 
-| status= | Shows the conversion status every ADC reading. Accepted values: 01. | +| status= | Displays the conversion status for 'register?' and 'voltage?' commands. Accepted values:\\ - Disable status display.\\ - Enable status display. | 
-rawdata? | Reads one sample from the selected channel. | +register? | Reads one sample from the input channel and displays the data register. | 
-| voltage? | Reads one sample form the selected channel and converts it to voltage. | +| voltage? | Reads one sample from the input channelconverts it to voltage and displays the voltage. | 
-| samples| Reads a number of samples of the current channel indicated by the user. Accepted values: 1 1024 |+| samples| Reads a number of samples of the input channel and displays the voltage. Accepted values:\\ .. 1024 - Number of samples. |
  
 Commands can be executed using a serial terminal connected to the UART1 peripheral of PIC32MX320F128H. Commands can be executed using a serial terminal connected to the UART1 peripheral of PIC32MX320F128H.
  
-The following image shows a list of commands in a serial terminal connected to processor’s UART peripheral.+The following image shows a generic list of commands in a serial terminal connected to processor’s UART peripheral.
 {{ :resources:tools-software:uc-drivers:microchip:terminal_pic32.png? |}} {{ :resources:tools-software:uc-drivers:microchip:terminal_pic32.png? |}}
 +
 +<WRAP round important 80%>
 +\\
 +  * Reference voltage is 3300 mV default. If using another reference voltage, please check that the jumpers are properly set on the PmodAD3, and modify the constant V_REF value in the ‘PmodAD3 Demo’.
 +\\
 +</WRAP>
 +
  
 ==== Software Project Setup ==== ==== Software Project Setup ====
Line 88: Line 113:
 ====== More information ====== ====== More information ======
 {{page>:resources:tools-software:uc-drivers:more-information}} {{page>:resources:tools-software:uc-drivers:more-information}}
- 
resources/tools-software/uc-drivers/microchip/ad7780.txt · Last modified: 22 Jul 2019 13:08 by Andrei Drimbarean