Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## gumstix-users

 [Gumstix-users] A2D battery renaming capacity reading From: Tanya Groysberg - 2012-03-11 10:57:13 Attachments: Message as HTML ```Hi I would like to use the PMIC's A2D channel ADCIN15, Is there such possibility in Gumstix? >From TI DS: *Table 9-4. MADC Channel Prescaler Divide Ratio* *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler Divider* *Channel Ratio (R)* *Number* *Minimum Maximum Minimum Maximum* ADCIN0 0.0 1.5 N/A N/A 1 ADCIN1 0.0 1.5 N/A N/A 1 ADCIN2 0.0 2.5 0.0 1.5 0.6 ( = 1.5/2.5) ADCIN3 0.0 2.5 0.0 1.5 0.6 ADCIN4 0.0 2.5 0.0 1.5 0.6 ADCIN5 0.0 2.5 0.0 1.5 0.6 ADCIN6 0.0 2.5 0.0 1.5 0.6 ADCIN7 0.0 2.5 0.0 1.5 0.6 SWCU050G–April 2008–Revised December 2010 *Monitoring ADC *531 © 2008–2010, Texas Instruments Incorporated *Monitoring ADC Functional Description *www.ti.com *Table 9-4. MADC Channel Prescaler Divide Ratio (continued)* *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler Divider* *Channel Ratio (R)* *Number* *Minimum Maximum Minimum Maximum* ADCIN8 0.0 7.0 0.0 1.5 3/14 ADCIN9 1.8 3.3 0.6 1.1 1/3 ADCIN10 0.0 1.7 See Table 9-3. See Table 9-3. N/A ADCIN11 0.0 7.0 0.0 1.4 0.15 ADCIN12 2.7 4.7 0.675 1.175 0.25 ADCIN15 0.0 3.3 0.0 1.5 5/11 The result of MADC conversion for a channel is a 10-bit value with a resolution of (1.5/210 – 1) V for each least-significant bit (LSB). If the result is all 0s (0000000000), this corresponds to the lowest input voltage, 0.0 V, while all 1s (1111111111) corresponds to 1.5 V. To get actual input voltage, use the following formula: Analog Input (V) = conv_result * step_size/R Where: conv_result = decimal value of 10-bit conversion result step_size = 1.5/(210 – 1) R = Prescaler ratio for input channel as given in Table 9-4 Example 1: A 10-bit conversion result of 1010101010 for ADCIN12 corresponds to a 4.0 V input VBAT level. Example 2: After a software/GP conversion on ADCIN9, the results are read as GPCH9_MSB = 0xB5 (on 8 bits, GPCH9_MSB[7:0]) and GPCH9_LSB = 0xC0 (on 2 bits, GPCH9_MSB[7:6]). This corresponds to the 1-bit conversion result of 1011010111 with a conv_result of 727. With R = 1/3 for ADCIN9, the actual voltage of the backup battery equals approximately 3.2 V. 532 *Monitoring ADC *SWCU050G–April 2008–Revised December 2010 © 2008–2010, Texas Instruments Incorporated -- Regards, Tanya ```
 Re: [Gumstix-users] A2D battery renaming capacity reading From: R. P. McMurphy - 2012-03-11 12:43:58 ```Yes, you can use ADCIN15. But it is connected to an internal signal only. The ADCIN15 (USBMEAS) channel is used to convert one of three USB signals multiplexed in the USB subchip: the VRUSB supply with a prescaler, the right voice speaker output, and left voice speaker left output. The multiplexing is controlled by the USB_MADC_VDD_SEL, USB_MADC_ DM_SEL, and USB_MADC_DP_SEL bits of the CARKIT_ANA_CTRL register. RP On 3/11/12, Tanya Groysberg wrote: > Hi I would like to use the PMIC's A2D channel ADCIN15, Is there such > possibility in Gumstix? > > > >From TI DS: > > *Table 9-4. MADC Channel Prescaler Divide Ratio* > > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler Divider* > > *Channel Ratio (R)* > > *Number* > > *Minimum Maximum Minimum Maximum* > > ADCIN0 0.0 1.5 N/A N/A 1 > > ADCIN1 0.0 1.5 N/A N/A 1 > > ADCIN2 0.0 2.5 0.0 1.5 0.6 ( = 1.5/2.5) > > ADCIN3 0.0 2.5 0.0 1.5 0.6 > > ADCIN4 0.0 2.5 0.0 1.5 0.6 > > ADCIN5 0.0 2.5 0.0 1.5 0.6 > > ADCIN6 0.0 2.5 0.0 1.5 0.6 > > ADCIN7 0.0 2.5 0.0 1.5 0.6 > > SWCU050G–April 2008–Revised December 2010 *Monitoring ADC *531 > > © 2008–2010, Texas Instruments Incorporated > > *Monitoring ADC Functional Description *www.ti.com > > *Table 9-4. MADC Channel Prescaler Divide Ratio (continued)* > > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler Divider* > > *Channel Ratio (R)* > > *Number* > > *Minimum Maximum Minimum Maximum* > > ADCIN8 0.0 7.0 0.0 1.5 3/14 > > ADCIN9 1.8 3.3 0.6 1.1 1/3 > > ADCIN10 0.0 1.7 See Table 9-3. See Table 9-3. N/A > > ADCIN11 0.0 7.0 0.0 1.4 0.15 > > ADCIN12 2.7 4.7 0.675 1.175 0.25 > > ADCIN15 0.0 3.3 0.0 1.5 5/11 > > The result of MADC conversion for a channel is a 10-bit value with a > resolution of (1.5/210 – 1) V for each > > least-significant bit (LSB). If the result is all 0s (0000000000), this > corresponds to the lowest input voltage, > > 0.0 V, while all 1s (1111111111) corresponds to 1.5 V. To get actual input > voltage, use the following > > formula: > > Analog Input (V) = conv_result * step_size/R > > Where: > > conv_result = decimal value of 10-bit conversion result > > step_size = 1.5/(210 – 1) > > R = Prescaler ratio for input channel as given in Table 9-4 > > Example 1: A 10-bit conversion result of 1010101010 for ADCIN12 corresponds > to a 4.0 V input VBAT > > level. > > Example 2: After a software/GP conversion on ADCIN9, the results are read > as GPCH9_MSB = 0xB5 (on > > 8 bits, GPCH9_MSB[7:0]) and GPCH9_LSB = 0xC0 (on 2 bits, GPCH9_MSB[7:6]). > This corresponds to > > the 1-bit conversion result of 1011010111 with a conv_result of 727. With R > = 1/3 for ADCIN9, the actual > > voltage of the backup battery equals approximately 3.2 V. > > 532 *Monitoring ADC *SWCU050G–April 2008–Revised December 2010 > © 2008–2010, Texas Instruments Incorporated > > > -- > Regards, > Tanya > ```
 Re: [Gumstix-users] A2D battery renaming capacity reading From: Tanya Groysberg - 2012-03-11 14:43:18 Attachments: Message as HTML ```So if i want to read the buttary level via this pin I can't do it? On Sun, Mar 11, 2012 at 2:43 PM, R. P. McMurphy wrote: > Yes, you can use ADCIN15. But it is connected to an internal signal only. > > The ADCIN15 (USBMEAS) channel is used to convert one of three USB > signals multiplexed in the USB subchip: the VRUSB supply with a > prescaler, the right voice speaker output, and left voice speaker left > output. The multiplexing is controlled by the USB_MADC_VDD_SEL, > USB_MADC_ DM_SEL, and USB_MADC_DP_SEL bits of the CARKIT_ANA_CTRL > register. > > RP > > On 3/11/12, Tanya Groysberg wrote: > > Hi I would like to use the PMIC's A2D channel ADCIN15, Is there such > > possibility in Gumstix? > > > > > > >From TI DS: > > > > *Table 9-4. MADC Channel Prescaler Divide Ratio* > > > > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler > Divider* > > > > *Channel Ratio (R)* > > > > *Number* > > > > *Minimum Maximum Minimum Maximum* > > > > ADCIN0 0.0 1.5 N/A N/A 1 > > > > ADCIN1 0.0 1.5 N/A N/A 1 > > > > ADCIN2 0.0 2.5 0.0 1.5 0.6 ( = 1.5/2.5) > > > > ADCIN3 0.0 2.5 0.0 1.5 0.6 > > > > ADCIN4 0.0 2.5 0.0 1.5 0.6 > > > > ADCIN5 0.0 2.5 0.0 1.5 0.6 > > > > ADCIN6 0.0 2.5 0.0 1.5 0.6 > > > > ADCIN7 0.0 2.5 0.0 1.5 0.6 > > > > SWCU050G–April 2008–Revised December 2010 *Monitoring ADC *531 > > > > © 2008–2010, Texas Instruments Incorporated > > > > *Monitoring ADC Functional Description *www.ti.com > > > > *Table 9-4. MADC Channel Prescaler Divide Ratio (continued)* > > > > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler > Divider* > > > > *Channel Ratio (R)* > > > > *Number* > > > > *Minimum Maximum Minimum Maximum* > > > > ADCIN8 0.0 7.0 0.0 1.5 3/14 > > > > ADCIN9 1.8 3.3 0.6 1.1 1/3 > > > > ADCIN10 0.0 1.7 See Table 9-3. See Table 9-3. N/A > > > > ADCIN11 0.0 7.0 0.0 1.4 0.15 > > > > ADCIN12 2.7 4.7 0.675 1.175 0.25 > > > > ADCIN15 0.0 3.3 0.0 1.5 5/11 > > > > The result of MADC conversion for a channel is a 10-bit value with a > > resolution of (1.5/210 – 1) V for each > > > > least-significant bit (LSB). If the result is all 0s (0000000000), this > > corresponds to the lowest input voltage, > > > > 0.0 V, while all 1s (1111111111) corresponds to 1.5 V. To get actual > input > > voltage, use the following > > > > formula: > > > > Analog Input (V) = conv_result * step_size/R > > > > Where: > > > > conv_result = decimal value of 10-bit conversion result > > > > step_size = 1.5/(210 – 1) > > > > R = Prescaler ratio for input channel as given in Table 9-4 > > > > Example 1: A 10-bit conversion result of 1010101010 for ADCIN12 > corresponds > > to a 4.0 V input VBAT > > > > level. > > > > Example 2: After a software/GP conversion on ADCIN9, the results are read > > as GPCH9_MSB = 0xB5 (on > > > > 8 bits, GPCH9_MSB[7:0]) and GPCH9_LSB = 0xC0 (on 2 bits, GPCH9_MSB[7:6]). > > This corresponds to > > > > the 1-bit conversion result of 1011010111 with a conv_result of 727. > With R > > = 1/3 for ADCIN9, the actual > > > > voltage of the backup battery equals approximately 3.2 V. > > > > 532 *Monitoring ADC *SWCU050G–April 2008–Revised December 2010 > > © 2008–2010, Texas Instruments Incorporated > > > > > > -- > > Regards, > > Tanya > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > gumstix-users mailing list > gumstix-users@... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > -- Regards, Tanya ```
 Re: [Gumstix-users] A2D battery renaming capacity reading From: R. P. McMurphy - 2012-03-12 01:14:34 ```Use ADCIN12 for the battery reading. RP On 3/11/12, Tanya Groysberg wrote: > So if i want to read the buttary level via this pin I can't do it? > > On Sun, Mar 11, 2012 at 2:43 PM, R. P. McMurphy wrote: > >> Yes, you can use ADCIN15. But it is connected to an internal signal only. >> >> The ADCIN15 (USBMEAS) channel is used to convert one of three USB >> signals multiplexed in the USB subchip: the VRUSB supply with a >> prescaler, the right voice speaker output, and left voice speaker left >> output. The multiplexing is controlled by the USB_MADC_VDD_SEL, >> USB_MADC_ DM_SEL, and USB_MADC_DP_SEL bits of the CARKIT_ANA_CTRL >> register. >> >> RP >> >> On 3/11/12, Tanya Groysberg wrote: >> > Hi I would like to use the PMIC's A2D channel ADCIN15, Is there such >> > possibility in Gumstix? >> > >> > >> > >From TI DS: >> > >> > *Table 9-4. MADC Channel Prescaler Divide Ratio* >> > >> > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler >> Divider* >> > >> > *Channel Ratio (R)* >> > >> > *Number* >> > >> > *Minimum Maximum Minimum Maximum* >> > >> > ADCIN0 0.0 1.5 N/A N/A 1 >> > >> > ADCIN1 0.0 1.5 N/A N/A 1 >> > >> > ADCIN2 0.0 2.5 0.0 1.5 0.6 ( = 1.5/2.5) >> > >> > ADCIN3 0.0 2.5 0.0 1.5 0.6 >> > >> > ADCIN4 0.0 2.5 0.0 1.5 0.6 >> > >> > ADCIN5 0.0 2.5 0.0 1.5 0.6 >> > >> > ADCIN6 0.0 2.5 0.0 1.5 0.6 >> > >> > ADCIN7 0.0 2.5 0.0 1.5 0.6 >> > >> > SWCU050G–April 2008–Revised December 2010 *Monitoring ADC *531 >> > >> > © 2008–2010, Texas Instruments Incorporated >> > >> > *Monitoring ADC Functional Description *www.ti.com >> > >> > *Table 9-4. MADC Channel Prescaler Divide Ratio (continued)* >> > >> > *MADC Analog Input Range (V) Prescaler Output Range (V) Prescaler >> Divider* >> > >> > *Channel Ratio (R)* >> > >> > *Number* >> > >> > *Minimum Maximum Minimum Maximum* >> > >> > ADCIN8 0.0 7.0 0.0 1.5 3/14 >> > >> > ADCIN9 1.8 3.3 0.6 1.1 1/3 >> > >> > ADCIN10 0.0 1.7 See Table 9-3. See Table 9-3. N/A >> > >> > ADCIN11 0.0 7.0 0.0 1.4 0.15 >> > >> > ADCIN12 2.7 4.7 0.675 1.175 0.25 >> > >> > ADCIN15 0.0 3.3 0.0 1.5 5/11 >> > >> > The result of MADC conversion for a channel is a 10-bit value with a >> > resolution of (1.5/210 – 1) V for each >> > >> > least-significant bit (LSB). If the result is all 0s (0000000000), this >> > corresponds to the lowest input voltage, >> > >> > 0.0 V, while all 1s (1111111111) corresponds to 1.5 V. To get actual >> input >> > voltage, use the following >> > >> > formula: >> > >> > Analog Input (V) = conv_result * step_size/R >> > >> > Where: >> > >> > conv_result = decimal value of 10-bit conversion result >> > >> > step_size = 1.5/(210 – 1) >> > >> > R = Prescaler ratio for input channel as given in Table 9-4 >> > >> > Example 1: A 10-bit conversion result of 1010101010 for ADCIN12 >> corresponds >> > to a 4.0 V input VBAT >> > >> > level. >> > >> > Example 2: After a software/GP conversion on ADCIN9, the results are >> > read >> > as GPCH9_MSB = 0xB5 (on >> > >> > 8 bits, GPCH9_MSB[7:0]) and GPCH9_LSB = 0xC0 (on 2 bits, >> > GPCH9_MSB[7:6]). >> > This corresponds to >> > >> > the 1-bit conversion result of 1011010111 with a conv_result of 727. >> With R >> > = 1/3 for ADCIN9, the actual >> > >> > voltage of the backup battery equals approximately 3.2 V. >> > >> > 532 *Monitoring ADC *SWCU050G–April 2008–Revised December 2010 >> > © 2008–2010, Texas Instruments Incorporated >> > >> > >> > -- >> > Regards, >> > Tanya >> > >> >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> gumstix-users mailing list >> gumstix-users@... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> > > > > -- > Regards, > Tanya > ```