lpc8xx SCT timer registers (SCTimer/PWM Cookbook app note)

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

lpc8xx SCT timer registers (SCTimer/PWM Cookbook app note)

688 Views
topspin
Contributor II

 

Hi all,

 

I have a question about the AN11538 app note. can you tell me why at hte beginning of chapter 6.2 seems to use the  MATCH register and then in the code of chapter 6.3 it uses the MATCHREL registers? What are the differences between MATCH and MATCHREL? 

 

topspin_0-1690275017064.png

topspin_1-1690275029079.png

 

Thanks

Regards

 

 

0 Kudos
Reply
3 Replies

639 Views
topspin
Contributor II

Hi @Miguel04 

 

Ok I see. But why in the configuration code of the app note it does not initialize the MATCH registers? Don't you skip the first iteration of the counter in this way?

 

Thanks

Best regards

 

0 Kudos
Reply

623 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @topspin 

Yes apparently the appnote skips the first iteration of the counter, however on the user manual is not specified that both registers have to be configured simultaneously.

I hope this answers your questions. 

Best Regards, Miguel.

0 Kudos
Reply

670 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @topspin 

MATCH and MATCHREL are 2 different registers, you can find the information on the user manual (f.e. LPC82x\'s UM10800) chapter 16.6.1.3 Match and capture registers

"The SCT includes a set of registers to store the SCT’s match or capture values. Each
match register is associated with a match reload register which automatically reloads the
match register at the beginning of each counter cycle."

Best Regards, Miguel.

0 Kudos
Reply