I try to read timer TCNT3 value (16bits) using direct acces to timer registers (TCNT3L & TCNT3H with 8bits access (First read to TCNT3L 0x0094 and after to TCNT3H 0x0095) on YUN board (timer inside ATMEGA32U4).
But even if this timer is 16bits wide I read always 0x00 for TCNT3H ???
My sketch does only this task, I have disabled interrupt during reading to both registers but I never see high Bytes changung!!!
Others associated topic:
I believe that TCNT3L and TCNT3H addresses are define inside files *.h but when I want use them, sketch compiles but the value change at each compilation ???
So Ibelieve the "Constant" are not define but I don't get an error at compilation! If I use other register address undefined (i.e UBRR1H) in this case I get an error!
Don't do such stuff. The development environment comes with all defines you need, let the compiler do the low level stuff, it won't make the mistakes you did.