Keil Logo

LogStick Project #5

This project from Rod Crawford's LogStick Blog is the fifth of a series of examples that show how to get started using the RealView Microcontroller Development Kit for ARM devices.

This project shows how to read an analog input in software on an NXP LPC2148 device.

This project initializes channel 1 on AD Converter 0 for software-driven A/D with 10 bits of accuracy. The function ADC_Read powers on A/D Converter 0 and starts the conversion. When the conversion is "Done" A/D Converter 0 is powered down again.

When run using the simulation environment in the RealView Microcontroller Development Kit, a button is added to the toolbox which can be used to trigger a changing voltage on the analog channel AD01. The corresponding 10-bit result is shown in one of the debuggers watch panes.

LOGSTICK5.ZIP (37K)
Tuesday, November 21, 2006
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.