I implementated a PIT to my OS, and I use this function:
void init_timer(unsigned char FREQ)
{
unsigned int counter=1193181/FREQ;
outportb(PIT_CTRL, 0x43);
outportb(PIT_CH_0, counter%0xFF);
outportb(PIT_CH_0, counter/256);
}
what is the exact value that the PIT activates 1000 times a second or how can I calculate this???? Or do I have to calibrate this?
Thanks...!
