Application code examples

basically miscellaneous, if it doesn't fit another sub-forum enter it here, we might even promote it to its own sub-forum
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Application code examples

Post by YahooArchive »

> from the helpline
>Is there code available to read a quadrature encoder on the [ro or superpro?

We publish examples of code as we write them, but for us to do samples for all
the new peripherals is way beyond our capabilities. We're not that big of a
company.

But NXP has published many examples in application notes on their website.

http://ics.nxp.com/support/documents/microcontrollers/

While I didn't see an example of code for the QEI, the user manual is pretty
descriptive in that chapter. Their QEI has a whole host of features, but its
actually quite simple to do position, direction and velocity detection.

www.lpcware.com is NXPs latest site to try to manage their many code examples



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Application code examples

Post by YahooArchive »

An NXP application note that describes how to use the QEI and PWM features to
control a brushless DC motor is:

AN10898 BLDC motor control with LPC1700 V1 (Jan 5, 2010)

A zip file with the document and sample software can be downloaded from:

http://ics.nxp.com/support/documents/mi ... n10898.zip

Regards,
Chris Burrows
CFB Software

Astrobe 3.2: LPC2xxx Oberon-07 Development System
http://www.astrobe.com

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Application code examples

Post by YahooArchive »

NXP has reorganized many of their example programs and put them in a new
website. A bit hard to find it all but start at www.lpcware.com

click of the download files section for the corresponding chip and then load the
driver files, which will have examples for many of the peripherals.

While this is all in C, even for BASIC it shows which registers and how to setup
many of the peripherals.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Application code examples

Post by YahooArchive »

I may have stumbled on this before, but NXP has what they call code bundles
which has simple examples in C for many of their peripherals. This is in
addition to lpcware, and it easier to navigate, basically its a downloadable zip
file

http://ics.nxp.com/support/software/cod ... 17xx.keil/

But be warned, I grabbed the example on the RI-timer, and while it helped me get
a BASIC example of that working there was a pretty obvious bug in it.

Post Reply