Hello, im trying to make a delay with timer 1 from 0 to 10ms using the .
on-board 1mhz instruction clock with a 1:1 prescaller,
the timer1 has two 8-bit registers -tmr1L and tmr1h,
if i need to increment my delay, so i make a variable:
unsigned shot int delay=0xFFFF;
so now im my code i can happily add and subtract values from my delay, but how can i turn this int into two 8 bit 'chars' so i can then write them to the timer values.
thanks for any help, i dont fancy using two 8 bit values to hold my delay as that complicates adding and subtracting values - but i may have too.