SCT For Capture

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

SCT For Capture

2,950 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by celephicus on Sun Nov 16 16:01:31 MST 2014
There is an error in the docs. In UM10736 (LPC15xx User Manual) Rev 1.1 on p234 the description for the REGMODEx registers is WRONG:

"The REGMODEn bits in the REGMODE register determine whether each set of
Match/Capture registers uses the match or capture functionality:
– REGMODEn = 1: Registers operate as match and reload registers.
– REGMODEn = 0: Registers operate as capture and capture control registers.
"

But on P246 it gets it right:
"Each bit controls one pair of match/capture registers (register 0 =
bit 0, register 1 = bit 1,..., register 15 = bit 15).
0 = registers operate as match registers.
1 = registers operate as capture registers.

So far we have got match working but we have not been able to get input capture going.
Labels (1)
0 Kudos
Reply
11 Replies

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Nov 18 05:11:39 MST 2014

Quote: MarcVonWindscooting
I don't know if there is an English equivalent to the German (swear-) word 'Wizard-Gebimsel'.
If so, I'd like to know it ;-)



Try 'kerfuffle'   :)
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Tue Nov 18 04:32:13 MST 2014

Quote: LabRat

Quote: R2D2

Quote: celephicus
I'm curious, do people manually configure the SCT or do they use RedState?



We do it manually...



+1  :)


+ another one  :bigsmile:

I don't know if there is an English equivalent to the German (swear-) word 'Wizard-Gebimsel'.
If so, I'd like to know it ;-)
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Nov 17 12:15:00 MST 2014
Please note that the latest version of the User Guide can be found here:
http://www.lpcware.com/content/nxpfile/lpcxpresso-ide-v7-user-guide
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Mon Nov 17 09:55:00 MST 2014
Hi celephicus,
As LabRat mentioned manually it may not be that easy. You can also look below red state tool.
http://support.code-red-tech.com/CodeRedWiki/NewInVersion4?action=AttachFile&do=get&target=Red_State...

Edit: Above document is old doc so you can refer to page 86 onward at below link
http://www.lpcware.com/system/files/LPCXpresso_User_Guide.pdf

For latest documentation you can always download LPCxpresso.
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Mon Nov 17 03:38:51 MST 2014

Quote: R2D2

Quote: celephicus
I'm curious, do people manually configure the SCT or do they use RedState?



We do it manually...



+1  :)
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Nov 17 01:44:41 MST 2014

Quote: celephicus
I'm curious, do people manually configure the SCT or do they use RedState?



We do it manually since march...
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Nov 17 01:44:39 MST 2014

Quote: celephicus
I'm curious, do people manually configure the SCT or do they use RedState?



We do it manually since march...
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by celephicus on Sun Nov 16 22:28:47 MST 2014
We got capture working, just a bit of confusion between event numbers and channel numbers. And for some reason I was looking for the capture result in MATCHREL instead of CAP register.

I'm curious, do people manually configure the SCT or do they use RedState?
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by celephicus on Sun Nov 16 19:54:43 MST 2014
Not clear? Contradictory!

Anyway thanks for the reply and we will look at the example. Setting up the SCT is a bit of a steep learning curve, at least compared with conventional timers that have output compare, PWM or input capture, and that's the lot.
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Sun Nov 16 17:37:00 MST 2014
Hi celephicus,
That statement indeed not clear. There are match and match reload registers and capture and capture control registers.
There is a cookbook at
http://www.nxp.com/documents/application_note/AN11538.zip. This example shows capture example.

Check  RC5 receiving example at page 31/34 in this application note.
0 Kudos
Reply

2,890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun Nov 16 16:13:25 MST 2014

Quote: celephicus
So far we have got match working but we have not been able to get input capture going.



Capture is working fine  :)

What did you try already?
0 Kudos
Reply