Hi,
Just a quick question, I am writing a program for a 16F636 and I wanted to know how large of a number I can count up to
using an unsigned int in mikro c. I wrote an interrupt routine, timer 0, to over flow at about every 1ms. I then used an
unsigned int to count the number of times the counter over flows to make decisions on. I need to count up to about
3 seconds, 3000ms, of over flows. But I am concerned about how large a variable can be since it is a 8 bit processor.
Does the compiler take care of it or do I need to? Do I need to use timer1?
Dave
Just a quick question, I am writing a program for a 16F636 and I wanted to know how large of a number I can count up to
using an unsigned int in mikro c. I wrote an interrupt routine, timer 0, to over flow at about every 1ms. I then used an
unsigned int to count the number of times the counter over flows to make decisions on. I need to count up to about
3 seconds, 3000ms, of over flows. But I am concerned about how large a variable can be since it is a 8 bit processor.
Does the compiler take care of it or do I need to? Do I need to use timer1?
Dave