Content originally posted in LPCWare by uratan on Tue Dec 23 06:54:25 MST 2014
[u]To: sandy_493[/u]
Thank you for your guide.
I had taken a glance at some of the samples, and found these:
(1) samples under "code examples/LPC81x/LPCOpen/applications/lpc81x/examples/SCTimer_PWM/" are not so reliable because I have found these defects.
[list=d]
[*] periph_SCT_deadtime/main.c:
[list]
[*] setting for AUTOLIMIT_L of CONFIG register is missing.
[*] setting for STOP_L register is missing.
[*] clearing interrupt flag may be missing in SCT_IRQHandler().
[/list]
[*] periph_SCT_reload/main.c:
[list]
[*] conflict setting about CTOUT_1 is lacked.
[/list]
[/list]
These samples may be simply converted from Keil version, I think.
I recommend followers to see samples under "code examples/LPC81x/Keil"...
(2) register assignments:
MATCH_L[n] / MATCH_H[n] / MATCHREL_L[n] / MATCHREL_H[n]
are used in "code examples/LPC81x/Keil/SCT_start_stop/"
(3) "code examples/LPC15xx/Keil/SCT1_ws2811/" is very exciting and useful,
I can grasp something to use state-value of the SCT.
(But another question is made that,
whether does STATEMASK0 hit or not if STATE number is 2 ?
(upper bit of STATE register is ignored or not ?), at LPC810)
Thanks a lot, but not enough...