LPC812 SCT claims 2 states, but it uses 5 bits

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC812 SCT claims 2 states, but it uses 5 bits

ソリューションへジャンプ
2,229件の閲覧回数
fjrg76
Contributor IV

Hi, datasheet for LPC81x claims they can handle up to 2 states, however the registers EVx_CTRL and STATE have both allowed 5 bits (EVx_CTRL:STATEV, bits 19:15 and STATE:STATEy, 4:0 and 20:16) for states, which make me think that actually the SCT in this chip can handle up to 32 states.

However then I read: "The value of a state variable is completely under the control of the application. If an
application does not use states, the value of the state variable remains zero, which is the
default value."

Does this chips actually have 32 states, or does it mean that I can write any value up to 32 into one of the two states?

Please DON'T suggest me to read the AN11538. I've been reading almost you've provided trying to decode the SCT timer but it's been a difficult duty.

Thank you!

 

0 件の賞賛
返信
1 解決策
2,209件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi @fjrg76, 

Thank you so much for your interest in our products and for using our community.

The SCTimer/PWM peripheral has for some devices up to 32 states, but for the one you are using (LPC81x), it only has 2 states (AN11538).

nxf86756_0-1669749230426.png

Hope it helps you.

Have a nice day

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,210件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi @fjrg76, 

Thank you so much for your interest in our products and for using our community.

The SCTimer/PWM peripheral has for some devices up to 32 states, but for the one you are using (LPC81x), it only has 2 states (AN11538).

nxf86756_0-1669749230426.png

Hope it helps you.

Have a nice day

0 件の賞賛
返信
2,203件の閲覧回数
fjrg76
Contributor IV

The SCTimer is a too complex peripheral and the mistakeS (with capital S) in the user manual don't help to understand it.

Why haven't you updated the user manual?

0 件の賞賛
返信
2,178件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

That is a question for which I do not have an official answer.

However, I have sent the recommendation to the appropriate department.

We greatly appreciate your comments.

An apology for the inconvenience.

0 件の賞賛
返信