LPC MCU Training Session _ SCT Cook Book

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

LPC MCU Training Session _ SCT Cook Book

LPC MCU Training Session _ SCT Cook Book

This cook book includes lots of interesting examples leveraging LPC MCU's powerful SCT Timer.

Have fun using them, creating more and sharing more.

#sct

Tags (2)
Attachments
Comments

Have these examples ever been tested?  I'm looking at the RC5 examples and the send example is configured incorrectly.

LPC_SCT->CONFIG = (LPC_SCT->CONFIG & ~0x00060001) | 0x00000000; /* SPLIT */

/* MATCH/CAPTURE registers */
LPC_SCT->REGMODE_L = 0x0000; /* L: 2x MATCH, 0x CAPTURE, 3 unused */

This was auto-generated from some old RedSuite tool according to the header.  Not tried to run it yet to see what else is wrong.

And on a related note, how does one go about porting the old 'chip_8xx' library to the latest v3.02 lpcopen library?  For example, the cookbook source code has an sct_8xx.h that is vastly different to the latest one and has additional functions such as Chip_SCT_SetOutput() that don't appear in the v3.02 version.

%3CLINGO-SUB%20id%3D%22lingo-sub-1105032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC%20MCU%20Training%20Session%20_%20SCT%20Cook%20Book%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1105032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20cook%20book%20includes%20lots%20of%20interesting%20examples%20leveraging%20LPC%20MCU's%20powerful%20SCT%20Timer.%3C%2FP%3E%3CP%3EHave%20fun%20using%20them%2C%20creating%20more%20and%20sharing%20more.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Ftag%2Fsct%2Ftg-p%22%20target%3D%22_blank%22%3E%23sct%3C%2FA%3E%E2%80%8C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1105034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC%20MCU%20Training%20Session%20_%20SCT%20Cook%20Book%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1105034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAnd%20on%20a%20related%20note%2C%20how%20does%20one%20go%20about%20porting%20the%20old%20'chip_8xx'%20library%20to%20the%20latest%20v3.02%20lpcopen%20library%3F%26nbsp%3B%20For%20example%2C%20the%20cookbook%20source%20code%20has%20an%20sct_8xx.h%20that%20is%20vastly%20different%20to%20the%20latest%20one%20and%20has%20additional%20functions%20such%20as%20Chip_SCT_SetOutput()%20that%20don't%20appear%20in%20the%20v3.02%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1105033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC%20MCU%20Training%20Session%20_%20SCT%20Cook%20Book%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1105033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHave%20these%20examples%20ever%20been%20tested%3F%26nbsp%3B%20I'm%20looking%20at%20the%20RC5%20examples%20and%20the%20send%20example%20is%20configured%20incorrectly.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%3CP%3ELPC_SCT-%26gt%3BCONFIG%20%3D%20(LPC_SCT-%26gt%3BCONFIG%20%26amp%3B%20~0x00060001)%20%7C%200x00000000%3B%20%2F*%20SPLIT%20*%2F%3C%2FP%3E%3CP%3E%2F*%20MATCH%2FCAPTURE%20registers%20*%2F%3CBR%20%2F%3ELPC_SCT-%26gt%3BREGMODE_L%20%3D%200x0000%3B%20%2F*%20L%3A%202x%20MATCH%2C%200x%20CAPTURE%2C%203%20unused%20*%2F%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3C%2FP%3E%3CP%3EThis%20was%20auto-generated%20from%20some%20old%20RedSuite%20tool%20according%20to%20the%20header.%26nbsp%3B%20Not%20tried%20to%20run%20it%20yet%20to%20see%20what%20else%20is%20wrong.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎12-26-2016 07:16 PM
Updated by: