Solved

programing 8253 for pc

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Canvas.Draw explaination.... 8 4,471
Utf8 encode 2 596
Kind of encoding 3 433
Thread safe  opinion 7 158
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
Suggested Courses

737 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