lpcware

Still bug in AN11538 SCTimer/PWM cookbook

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Mar 29, 2018 by lu dong
Content originally posted in LPCWare by 1234567890 on Tue Jun 02 05:17:32 MST 2015
Fig 2 on page 6 of AN11538 Rev. 3.1:

LPC_SCT->MATCHREL[0].U = SystemCoreClock/100; 
// match 0 @ 100 Hz = 10 msec


must be

LPC_SCT->MATCHREL[0].U = (SystemCoreClock/100)-1; 
// match 0 @ 100 Hz = 10 msec

Outcomes