This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
resources:tools-software:uc-drivers:microchip:ad7780 [07 Dec 2012 14:18] – created Dan Nechita | resources: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 | |
- | <WRAP round download | + | |
- | * {{: | + | |
- | * {{: | + | |
* {{: | * {{: | ||
+ | * **AD7780 Driver: | ||
+ | * **PmodAD3 Demo for PIC32MX320F128H: | ||
+ | * **PIC32MX320F128H Common Drivers: | ||
</ | </ | ||
+ | |||
====== Digilent Cerebot MX3cK Quick Start Guide ====== | ====== Digilent Cerebot MX3cK Quick Start Guide ====== | ||
Line 23: | Line 24: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * The AD7780 demonstration project for PIC32MX320F128H. | ||
+ | |||
+ | <WRAP round info 80%> | ||
+ | The AD7780 demonstration project for PIC32MX320F128H consists of three parts: the **AD7780 Driver**, | ||
+ | |||
+ | All three parts have to be downloaded. | ||
+ | </ | ||
+ | |||
==== Hardware Setup ==== | ==== Hardware Setup ==== | ||
Line 28: | Line 37: | ||
{{ : | {{ : | ||
+ | |||
+ | <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. | ||
+ | |||
+ | </ | ||
==== Reference Project Overview ==== | ==== Reference Project Overview ==== | ||
- | Following | + | The following |
^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
| help? | Displays all available commands. | | | help? | Displays all available commands. | | ||
- | | power= | Power off or on the device. Accepted values: 0, 1. | | + | | power= | Power off/on the device. Accepted values:\\ 0 - Power off.\\ |
- | | filter= | Select the filter frequency. Accepted values: 0, 1. | | + | | filter= | Select the filter frequency. Accepted values:\\ 0 - Filter frequency is 16.7 Hz.\\ 1 - Filter frequency is 10 Hz. | |
- | | gain= | Select gain. Accepted values: 0, 1. | | + | | gain= | Select gain. Accepted values:\\ 0 - Gain is set to 128.(Input voltage range must be +/-25.78mV) \\ 1 - Gain is set to 1.(Input voltage range must be +/-3300mV). | |
- | | status= | Shows the conversion status | + | | status= | Displays |
- | | rawdata? | Reads one sample from the selected | + | | register? | Reads one sample from the input channel |
- | | voltage? | Reads one sample | + | | voltage? | Reads one sample |
- | | samples= | Reads a number of samples of the current | + | | samples? | Reads a number of samples of the input channel |
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 |
{{ : | {{ : | ||
+ | |||
+ | <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’. | ||
+ | \\ | ||
+ | </ | ||
+ | |||
==== Software Project Setup ==== | ==== Software Project Setup ==== | ||
Line 88: | Line 113: | ||
====== More information ====== | ====== More information ====== | ||
{{page>: | {{page>: | ||
- |