Differences

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

tutorials:pic:pic18_adc [2010/02/23 07:26]
wadef
tutorials:pic:pic18_adc [2010/02/23 10:33] (current)
wadef
Line 18: Line 18:
PICs generally have several analog channels (ports) available to the user.  Any number of these can be configured to take in analog values between 0V (GND) and 5V (Vdd).  This range can be changed however, in this tutorial, we will assume the range to be from 0V to 5V.   PICs generally have several analog channels (ports) available to the user.  Any number of these can be configured to take in analog values between 0V (GND) and 5V (Vdd).  This range can be changed however, in this tutorial, we will assume the range to be from 0V to 5V.  
-Each analog voltage applied to a channel can be intepreted into a digital number in memory.  Also, the digital number can be of any length.  In our example, a 10-bit ADC will be used.  If 0V is detected by the ADC channel, then once the conversion is complete, 00 0000 0000 should be stored in memory.  On the other extreme, if 5V is detected by the ADC channel, 11 1111 1111 should be stored in memory.  Any value in between will produce a corresponding binary number.+Each analog voltage applied to a channel can be intepreted into a digital number in memory.  Also, the digital number can be of any length.  In our example, a 10-bit ADC will be used.  If 0V is detected by the ADC channel, then once the conversion is complete, ''00 0000 0000'' should be stored in memory.  On the other extreme, if 5V is detected by the ADC channel, ''11 1111 1111'' should be stored in memory.  Any value in between will produce a corresponding binary number.
Once the digital number is stored in memory, any manipulation or calculation can be applied.  In the following example's, we will use the ADC channels to intepret sensors. Once the digital number is stored in memory, any manipulation or calculation can be applied.  In the following example's, we will use the ADC channels to intepret sensors.
duty free alcohol airport duty free cigs uk buy duty free cuban cigars where to buy cosmetics duty free fragrances buy tobacco duty free