Analog Input Control; Connectivity - Digilent Basys MX3 Reference Manual

Hide thumbs Also See for Basys MX3:
Table of Contents

Advertisement

Basys MX3™ Board Reference Manual
The ADC module is initialized.
Channel 4 is read (corresponding to AN4).
If the user wants to acquire data from microphone module without the MIC and ADC libraries, they must
implement their own ADC functionality.

19 Analog Input Control

The Basys MX3 provides a basic analog input module. This module exposes an analog input signal called AIC to the
PIC32. The user can provide an analog value between 0 and 3.3V using a thumbwheel potentiometer labeled
ANALOG INPUT CONTROL.
A pair of wire loops on the Basys MX3, labeled AIC and GND (J8 and J14 on the schematics), can be used to
measure the voltage across the potentiometer using an external tool like a multimeter or oscilloscope.
The AIC analog signal must be sampled using the PIC32's ADC functionality to get a digital value. The PIC32
provides 10-bit data ADC sampling. Read more on the PIC32's ADC functionality in the Analog-To-Digital Converter
(ADC) section of the PIC32 documentation.

19.1 Connectivity

Table 19.1 shows the details about the AIC signal connecting the analog input module to the PIC32.
Name
AIC
The AIC pin will be used as an analog input pin:
The corresponding TRIS bit must be set to 1:
TRISBbits.TRISB2 = 1;
The corresponding ANSEL bit should be set to 1:
ANSELBbits.ANSB2 = 1;
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Figure 19.1. Analog input control schematic diagram.
PIC32 pin
PGEC3/AN2/C2INB/RPB2/CTED13/RB2
Figure 19.1. Analog input control connectivity.
Page 42 of 56

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Basys MX3 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents