Mi name is ALfredo, from Argentina.
I am working on a project, where I am using Timer1 (Atmega328p).
I have a problem and so far I couldn´t fixed, I hope you can help me.
i need to load ICR1 Register with 40000 (ICR1=40000), but I saw, after this code is executed ICR1 has a negative value, it is because the register of 16 bits is defined as SIGNED, but I need to used as UNSIGNED.
How can change it?
ICR1 is defined in Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\include\avr\iom328p.h
#define ICR1 _SFR_MEM16(0x86)
Atmel Studio 7
ICR1 register is set as Signed but i need ot used as unsigned (0 to 65535) and I do not know how to do it.
any comment is welcome.