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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,359 次查看
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 项奖励
回复
3 回复数

1,310 次查看
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 项奖励
回复

1,294 次查看
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 项奖励
回复

1,341 次查看
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 项奖励
回复