PIT counters

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ManOfSteel

PIT counters

Post by ManOfSteel »

Hello,
Is there any difference between the three PIT counters? If yes, then which one do I have to use in which situation?
Thank you in advance.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:PIT counters

Post by Brendan »

Hi,
ManOfSteel wrote: Hello,
Is there any difference between the three PIT counters? If yes, then which one do I have to use in which situation?
There's no difference in how each channel works, but the output of each channel is connected to different things. In general:

Channel 0: Used for system timer tick. Output connected to IRQ1.

Channel 1: Used for DMA refresh on old machines (output connected to RAM controller). Not connected to any IRQ.

Channel 2: Used for "PC speaker" control - output connected to speaker, so setting channel 2 frequency determines speaker tone. Not connected to any IRQ.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply