DALI on LPC MCU

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

DALI on LPC MCU

1,665 次查看
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,657 次查看
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,652 次查看
Chish
Contributor II

yes

 

0 项奖励
回复

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