DALI on LPC MCU

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

DALI on LPC MCU

1,686件の閲覧回数
Chish
Contributor II

Chish_2-1636986545603.png

 hey! I don't understand one part in the code. The value of the command is 226 which is BYTE on the other hand the dtr is also BYTE but I don't understand that how the command (value 226) when assigned to 'dtr' got equal to 1?

Can someone answer it please?

Regards,

 

0 件の賞賛
返信
3 返答(返信)

1,678件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

Two questions:

1. I wonder if this question related with a LPC product? or a pure C language question?

2. If this is a pure C question. your problem is 

   after executing dtr=command; (command is 226) ,dtr doesn't get the the same 226 but 1? You want to know why.

Is this your question?

Thanks,

Jun Zhang

   

 

0 件の賞賛
返信

1,673件の閲覧回数
Chish
Contributor II

yes

 

0 件の賞賛
返信

1,669件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

if the "yes" is for 2, variable dtr may be optimized. try to cast volatile when define it.

If this can't resolve your issue. Please create a new project with piece of demo code, thus we can test it directly on board.

 

0 件の賞賛
返信