Hi!
I somehow have a strange problem that I' dont understand...
I'm trying to enable the timer.. the code is from brans tutorial
but somehow it raises no interrupt..
in my case freq = 100;
Code:
void init_timer(int32u freq){
int32u divisor = 1193180 / freq;
int8u l = (int8u)(divisor & 0xFF);
int8u h = (int8u)( (divisor>>8));
outportb(0x43, 0x36);
outportb(0x40,l);
outportb(0x40,h);
kprintf("Timer initialized! Low: %h High: %h Total: %h", l, h, divisor);
}
this is my code....
I also tried:
Code:
int8u h = (int8u)( (divisor>>8) & 0xFF);
and this is the output:
Timer initialized! Low: 00000037 High: 0000005D Total: 00005D37
so this seems correct...
any ideas?