NetBurner 3.5.0
PDF Version
 
Analog to Digital (ADC)

Supported Platforms: MODM7AE70

The Simple ADC example implements basic analog input functions of the MODM7AE70.

The MODM7AE70 offers two Analog Front-End Controllers (AFEC) that are based on an Analog Front-End (AFE) cell. The MODM7AE70 provides seven 12-bit Analog-to-Digital (ADC) lines available through the P2 header. The SBE70LC provides 8 12-bit ADC lines available between the JP1 and JP3 headers. Both platform's have one additional ADC line that is connected to the CPU's internal temperature sensor – it cannot be reconfigured for other applications.

An ADC voltage reference is required for accurate ADC readings. The MODM7AE70 ADC voltage reference is accessible through pin P2[5]. If using the MODM7AE70 with a MOD-DEV-70 development board, a jumper can be applied to the JP5 header on the MOD-DEV-70 to apply a 3.3V reference. The SBE70LC ADC voltage reference is accessible through the JP3[1] pin.

The following table maps the available ADC lines on the MODM7AE70 to the corresponding pins on the P2 header: +-----—+---------—+----------—+ | Pin | AFE Module | ADC Channel | +-----—+---------—+----------—+ | P2[3] | 0 | 10 | +-----—+---------—+----------—+ | P2[6] | 1 | 3 | +-----—+---------—+----------—+ | P2[7] | 0 | 0 | +-----—+---------—+----------—+ | P2[8] | 0 | 6 | +-----—+---------—+----------—+ | P2[21] | 0 | 1 | +-----—+---------—+----------—+ | P2[29] | 0 | 5 | +-----—+---------—+----------—+ | P2[38] | 0 | 2 | +-----—+---------—+----------—+ | *Temp | 0 | 11 | +-----—+---------—+----------—+ Temperature sensor internal to the CPU, not available through the pin header

Note that AFE module 0, channel 1 (P2[3]) collides with serial port 0 receive. If using this ADC channel (like this example does), the application will not be able to receive data on serial port 0. It can still print to serial port 0, though.

The following table maps the available ADC lines on the SBE70LC to the corresponding pins on the JP1 and JP3 headers: +------—+---------—+----------—+ | Pin | AFE Module | ADC Channel | +------—+---------—+----------—+ | JP1[5] | 0 | 2 | +------—+---------—+----------—+ | JP1[10] | 1 | 0 | +------—+---------—+----------—+ | JP1[11] | 0 | 10 | +------—+---------—+----------—+ | JP1[13] | 0 | 1 | +------—+---------—+----------—+ | JP1[14] | 0 | 5 | +------—+---------—+----------—+ | JP3[3] | 1 | 3 | +------—+---------—+----------—+ | JP3[5] | 0 | 0 | +------—+---------—+----------—+ | JP3[7] | 0 | 6 | +------—+---------—+----------—+ | *Temp | 0 | 11 | +------—+---------—+----------—+ Temperature sensor internal to the CPU, not available through the pin header