mbed NXP LPC1768

The NXP LPC1768 features:

  • 100MHz NXP LPC1768 MCU with ARM® Cortex™-M3 Core
  • 64KB RAM, 512KB FLASH
  • Ethernet (requires magnetics and jack), USB, 2xSPI, 2xI2C, 2xCAN 3xUART, 6xPWM, 6xADCs, 1xDAC

mbed pinout

Analog Inputs (p15 - p20):

  • AnalogIn gyro_Z(p20); // Create an Analog input (AnalogIn) connected to the pin p20
  • gyro_Z.read(); // Read the input voltage represented as a float in the range 0.0(0V min) to 1.0(3.3V max)
  • gyro_Z.read_u16(); // Read the input voltage, represented as an unsigned short in the range [0x0, 0xFFFF].

The 0.0V to 3.3V range of the AnalogIn is represented in software as a normalised floating point number from 0.0 to 1.0.