I am following the tutorials and they are very nice.
Currently I am busy with nr. 16 about the PIC and the PIT.
The problem i encounter is that tick counter won't run with the frequency i want.
in the demo, if I change te folowing line:
Code: Select all
i86_pit_start_counter (100,I86_PIT_OCW_COUNTER_0, I86_PIT_OCW_MODE_SQUAREWAVEGEN);
into:
Code: Select all
i86_pit_start_counter (1,I86_PIT_OCW_COUNTER_0, I86_PIT_OCW_MODE_SQUAREWAVEGEN);
the counter still counts with a frequency of 100Hz instead of 1Hz.
I am running the code with Bochs.
What am i doing wrong?