LPCopen example project to ADC

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by ledi007 on Wed Feb 17 09:57:03 MST 2016
Hi guys,

i use the LPC824 Xpresso board and in the example project of LPCopen (AD Conversion from channel 0 to 11) is a part which allows to transfer the conversion results to the host PC.

How can i receive this data via HTerm?
Which connections (pins) must i use for TX and RX?

T[u]his is the code snippet:[/u]

DEBUGOUT("Chan: %d Val: %d\r\n", j, ADC_DR_RESULT(rawSample));
DEBUGOUT("Threshold range: 0x%x ", ADC_DR_THCMPRANGE(rawSample));
DEBUGOUT("Threshold cross: 0x%x\r\n", ADC_DR_THCMPCROSS(rawSample));
DEBUGOUT("Overrun: %s ", (rawSample & ADC_DR_OVERRUN) ? "true" : "false");
DEBUGOUT("Data Valid: %s\r\n\r\n", (rawSample & ADC_SEQ_GDAT_DATAVALID) ? "true" : "false");