DALI on LPC MCU

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

DALI on LPC MCU

1,652 Views
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 Kudos
Reply
3 Replies

1,644 Views
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 Kudos
Reply

1,639 Views
Chish
Contributor II

yes

 

0 Kudos
Reply

1,635 Views
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 Kudos
Reply