Difference between revisions of "PIC18F4520: Analog Inputs"

From Mech
Jump to navigationJump to search
m
Line 1: Line 1:
Analog-to-Digital Conversion (ADC) is a useful capability of many PIC microcontrollers. This ADC produces a digital value based on the supplied analog voltage, which can then be used with the digital logic of the rest of the PIC.
Analog-to-Digital Conversion (ADC) is a useful capability of many PIC microcontrollers. This ADC produces a digital value based on the supplied analog voltage, which can then be used with the digital logic of the rest of the PIC.
==Available Pins==
==Available Pins==
The PIC18F4520 has 13 pins that act as ADCs (shown below). The pins in red are analog inputs, while the pins


==Analog Input Example (ADC)==
==Analog Input Example (ADC)==

Revision as of 11:57, 27 June 2007

Analog-to-Digital Conversion (ADC) is a useful capability of many PIC microcontrollers. This ADC produces a digital value based on the supplied analog voltage, which can then be used with the digital logic of the rest of the PIC.

Available Pins

The PIC18F4520 has 13 pins that act as ADCs (shown below). The pins in red are analog inputs, while the pins

Analog Input Example (ADC)

Sample Code

Circuit Diagram