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,
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
yes
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.