August 2008
Beginner to intermediate
304 pages
6h 2m
English
• Analog input display
• Voltage measurement
• ADC setup codes
A microcontroller analog input allows an external voltage to be converted to digital form, stored, and processed. This type of input occurs in data loggers, control systems, digital audio, and signal processors, to mention just a few. The dsPIC range is designed specifically for high-speed analog signal processing.
A basic setup to demonstrate analog input is shown in Figure 3.1. The PIC16F877 has eight analog inputs, which are accessed via RA0, RA1, RA2, RA3, RA5, RE0, RE1, and RE2, being renamed AN0 to AN7 in this mode. All these pins default to analog operation, but a combination of analog and digital inputs can be selected using the system function ...
Read now
Unlock full access