ADCHS of LPC4370

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by akmarov on Wed Nov 27 04:16:12 MST 2013
I've bought LPC Link 2, because I'm interested in high speed data acquisition and DSP possibilities of LPC4370. But it was a big disappointment when I've tried to get something out of ADCHS in LPC4370.

I've downloaded and installed time limited evaluation version of IAR Embedded Workbench for ARM v.6.70.1 and corresponding LPCOpen v.2.02. In periph_hsadc example I've tried to modify ADCHS_IRQHandler to get data out of ADCHS by adding
Chip_UART_SendRB(LPC_UARTX, &txring, (const uint32_t *) &sample, sizeof(sample));
after sample was captured. But it seems that sample does not contain any data at all - there are no output of samples on UART.
UART is working fine, I've done all needed UART initialization similar to uart examples of LPCOpen.

I've added hsadc.c that I've modified for my needs.

Original Attachment has been moved to: hsadc.c.zip