Xplain:Header entries for temperature sensor, potentiometer?

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
xmega_a1_xplained.h wrote:
//! \name ADC Connection of the Temperature Sensor
//@{
#define TEMPERATURE_SENSOR_ADC_MODULE ADCB
#define TEMPERATURE_SENSOR_ADC_INPUT ADCCH_POS_PIN0
#define TEMPERATURE_SENSOR_SIGNAL_PIN IOPORT_CREATE_PIN(PORTB, 0)
#define TEMPERATURE_SENSOR_ENABLE_PIN IOPORT_CREATE_PIN(PORTB, 3)
#define TEMPERATURE_SENSOR_ENABLE_LEVEL false
//@}

(This is an excellent Xplaination of the names of the two: peripherals are "Xplained" in the latter, while the former requires the user to "Xplain." Maybe it meant to come with a question mark, like "Xplain?")

But there are plenty of differences between the two boards to stop me from copying Xplained header entries straight into xplain.h. Anyone used them? Any examples? (Did some wacky search on Atmel site and couldn't locate a training regarding them.)

User's guide for the blue board mentions no potentiometer, thus even less clue.