Solved

programing 8253 for pc

Posted on 1998-10-04
1
277 Views
Last Modified: 2012-06-21
i want to generate a accurate waveform in interrupt mode, timing about 1us, only i fear to handle timerchip. please give me programing solution.
0
Comment
Question by:ksairampatro
1 Comment
 
LVL 4

Accepted Solution

by:
jack_p50 earned 50 total points
ID: 1215727
Timer has 3 channels. Timer's interrupt is done by zero channel. Rate of timer interrupt
default is 18.2 Hz. This is calculated by 1.19 MHz/(zero channel counter). Default
counter=65536. To set rate to 50 Hz counter must be 1.19 MHz / 50 Hz = 23800=5CF8h
To program interrupt rate the controlling word must be in port 43h, and then you
need to write lower and then higher bytes in port 40h for 0 channel or in port 42h
for 2 channel.(1 channel is used to regenerate dynamic memory, so it cannot be used)
The controlling word format is :
Bits: 0            count type(0-binary,1-binary-decimal)
     1-3            mode 0-5 (0 and 2 channels use mode 3)
     4-5            operation(0-read current value,1-read/write lower byte,2-read/write higher
                     byte,3-read/write both bytes)
     6-7           channel number (0-2) or 3 - back reading
If you have questions, mail me (jack_p50@usa.net) or better contact through ICQ (number 17635851)
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question