Cookbook

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

Cookbook

883 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Thu Nov 06 10:52:02 MST 2014
Just starting work on a project that requires the LPC800 SCT (just to do the same as the capture input does in the 32-bit timer in the LPC11xx). Having read various forum posts, most point to the "LPC800 SCT cookbook and tutorial code examples", and give a link when leads to a "page not found".

So, can someone tell me where this page:

http://www.lpcware.com/content/nxpfile/lpc80-sct-cookbook-and-tutorial-code-examples

now resides?

In the mean time, I'll try to figure it out from the manual.
Labels (1)
0 Kudos
4 Replies

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Fri Nov 07 02:12:46 MST 2014
. . .and then it fails on

#include <core_cmInstr.h>  No such file or directory.

. . .but here it is!

I need the output in assembler, so quickly coming to the conclusion that it will be quicker to compile it by hand.
I've now added 2000 lines of C header code just to produce 60 assembler instructions.

. . ,.
but thanks for your help.
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CVAS on Thu Nov 06 16:39:30 MST 2014

The  LPC8xx.h file  come from  CMSIS_CORE_LPC8xx\inc.

You must to add CMSIS_CORE_LPC8xx to your workspace (in LPCXpresso IDE ).

CMSIS_CORE_LPC8xx can be found  in  AN11538.zip (code examples\LPC81x\LPCXpresso + Red State\" in any zip file ).
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Thu Nov 06 15:08:09 MST 2014
Many thanks.

I've had a go with the red state graphical tool, and can set it up and make it generate code - however, when added to the project it fails at

../src/sct_user.h:3:20: fatal error: LPC8xx.h: No such file or directory

Where is that header file supposed to come from?
0 Kudos

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CVAS on Thu Nov 06 12:12:25 MST 2014

SCTimer/PWM cookbook and code examples
http://www.nxp.com/documents/application_note/AN11538.zip

SCTimer/PWM overview:
http://www.lpcware.com/content/project/SCTimer-PWM
0 Kudos