How to use only one Lpc Link2 as an ADC

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

How to use only one Lpc Link2 as an ADC

2,559 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ouz on Thu Jul 02 10:43:50 MST 2015
Hi,

I am really really a beginner with these LPCs although before I programmed PICs. What I want to do is using 12bit ADC inside LPC4370 to measure the analog signal from somewhere. I have only one LPC Link2 now and I have installed LPCXpresso and Configuration tool(programmed either CMSIS or J-Link using config tool although in CMSIS mode, led in the board stops lighting). I have looked at the training videos on youtube and read some of the user guides. I have also looked some examples here such as blinky, FIR filter etc. As much as I see, for all these videos, examples and explanations, there are always some of kind of target in addition to main board. And I think because of this, I am getting error messages in blinky project which I have loaded from here about no device on JTAG. There is even a beginner hints post here but that one is also for two LPC Link2 boards(http://www.lpcware.com/content/forum/beginners-hints-lpc-link2-lpc4370-evaluation-board).

After giving back background information, my questions, which are probably simple when I looked the discussions here, are

1) Can I program one LPC Link2's ADC itself alone for development tool or do I need another one as target for this purpose?
2) If Q1's answer is yes, I will really appreciate if you can provide some hints, examples to proceed especially for ADC applications as well as simple ones for beginning?
3) Which one is the default, CMSIS or J-Link? For blinky example here, I think CMSIS is used since it suggested including CMSIS Driver Lib for LPC43xx? If we choose CMSIS in Link2, is it normal to led on the board to be turned off.
4) I think there is no Configuration Tool install package for Mac? Is that right? After choosing J-Link or CMSIS, do we need anymore Configuration Tool?

These are the questions that I need answers for now to be able to proceed. Thanks for answers in advance.

ouz
p.s. Hopefully this is the right sub-forums for this topic
Labels (1)
0 Kudos
2 Replies

697 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Fri Jul 03 09:51:45 MST 2015
Yes, you need two Link-2, one as the debugger and one as the target.  They are really inexpensive.
the Lab Tool source code is the best way to figure out how they can get that fast sampling out of the system.
it is not trivial, so follow their example.
other source code can be found via LPCOpen
http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages

get the package for LPC Link-2
0 Kudos

697 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ouz on Thu Jul 02 16:47:11 MST 2015
Ok. I came across some threads in the forum which answer some of my questions such as this one: http://www.lpcware.com/content/forum/lpc-link2-evaluation-board-lpc4370

According to this thread, even if I use Link2 as evaluation board for HSADC, I need two LPC Link2s board for this purpose if I understood correct. Also another useful link for this: http://www.lpcware.com/content/faq/lpcxpresso/using-lpclink2-as-lpc4370-eval

Now I think most important thing is simple intro. example codes. I have noticed that Lab Tool codes are open in github and there are some ECG examples but I will appreciate if you know any examples mainly for getting accustomed to environment and specifically using HSADC in LPC4370.

thanks,
ouz
0 Kudos