Solved

programing 8253 for pc

Posted on 1998-10-04
1
273 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change the mouse cursor 1 999
delphi 8 620
problem when i try to pack my dll file with upx 9 72
calling Tcolordialog in dll make the form disappear 8 103
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now