Solved

programing 8253 for pc

Posted on 1998-10-04
1
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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