Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

LPC2138 ADC

2005-06-02 by stiffsoft

Hello,
   Does anyone have any C code that actually reads the MCB2130 
hardware ADC on AIN1 (the potentiometer tied to P0.28) they would be 
willing to share?  I have tried the Keil code, the Hitex example
code, manipulating bit values, etc., for most of 2 days and cannot 
get ADC to return a value that I can display via COM1 on the 
MCB2130.  The code I have been exploring uses hardware continuous 
conversions rather that software interrupt driven conversions.  I 
really thought the hardware conversion would be easier to implement 
than the software.
   I verified that the voltage varies at P0.28 with a DMM when I 
adjust the pot, but I get nothing but 0 from AD0DR.  
   I contacted Keil via telephone and didn't get much help (other
than suggesting I run it in the simulator -- more stuff to learn).  
I also sent my source code to their support center, but have not 
received a response.
   Any suggestions (or simple code hints) will be greatly 
appreciated.

Steve Stiff

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.