LPC4370 HSADC Simple Program Problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC4370 HSADC Simple Program Problems

1,294 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by morganbm123 on Wed Mar 02 22:05:47 MST 2016
I've attempted a rework of the periph_hsadc. It hangs up saying "Stalled on bus operation" at the following line of code in clock_18xx_43xx.c:
LPC_CCU1->CLKCCU[clk].CFG |= 1;
Any solutions?

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

Labels (1)
0 Kudos
Reply
5 Replies

1,088 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hairy.lee on Wed Mar 30 06:03:13 MST 2016
I assume you're referring to the periph_hsadc example that I cited? Nothing that more clarity and accuracy wouldn't  resolve.
0 Kudos
Reply

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Wed Mar 30 01:44:47 MST 2016
LPCOpen has an HSADC example:
https://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages

Whats wrong with that?
0 Kudos
Reply

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hairy.lee on Wed Mar 30 01:19:13 MST 2016
Out of curiosity, did you find any resources regarding the HS ADC other than the periph_hsadc example or Chapter 48 in the user manual for the LPC4370 (UM10503)?

Given that the HS ADC (along with the multiple cores) is 1 of the 2 main features that differentiate the LPC4370 with the countless other implementations of the Cortex M3/4 core I would have expected an application note at the very least. At this rate it would be easier to use better supported chipset with an external HS ADC.
0 Kudos
Reply

1,088 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by metraTec on Mon Mar 07 02:17:17 MST 2016
I just had the same type of problem. The clock init of the lib is rubbish, sorry. Rewrite it matching for your needs.

If you just want to test a function you can use the debugger to step over this things. The additional time will  often work.

Or does NXP have something else that works?


Btw: To help even better give the value of "clk" so NXP can see what clock it is ( my bet is on SPIFI).
0 Kudos
Reply