Hello everyone.
My problem is simple. I need to get the value from my 16bit counter1 to my LCD.
I am programming in AVR Assembler!
Lets say my counter has reached a count of 5000 that means that:
TCNT1H = 0001 0011
TCNT1L = 1000 1000
The way I was trying to achieve this was by loading each nibble (after conversion) in its own byte like this:
High_Byte_High_Nibble = 5
High_Byte_Low_Nibble = 0
Low_Byte_High_Nibble = 0
Low_Byte_Low_Nibble = 0
This will make it easy to print on to the LCD.
The biggest problem I am having is that I can't wrap my mind around how to use a 16 Bit number to keep my count.
But If anyone can point me in the direction of some example code, I would really appreciate it.