IRQ « timer « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » timer » IRQ 

1. High Speed IRQ Timer/Clock in C    bytes.com

P: n/a Andrew Wan re: High Speed IRQ Timer/Clock in C And so we have a translated C code here: #include "p2c.h" #include "extra.h" #define TIMER_G #include "timer.h" #define MaxRate 1193180L void interrupt(__far *OldInt08)();//Static _PROCEDURE OldInt08, OldInt1C; void interrupt(__far *OldInt1C)(); Static unsigned short IntCount08, Trigger; Static boolean TimerAlreadySet; Static unsigned short Frequency; void GetIntVec(int a, void interrupt(__far *b)()) { b = ...

2. High Speed IRQ Timer/Clock in C    cboard.cprogramming.com

Here is the converted code to C. It's suppose to cycle through NewInt08, NewInt1C repeatedly. Yes, behaviour of the program is erratic, sometimes it prints out about 20 NewInt08, NewInt1C before it crashes, other times it crashes straight away. I just want someone who has done IRQ programming before to see if they can spot any mistakes am making. Code: #define ...

3. High Speed IRQ Timer/Clock in C    forums.devshed.com

I found this excellent High Speed Timer (in Pascal). I compiled it (using Turbo Pascal 7 and it runs fine): http://www.sorucevap.com/bilisimteknolojisi/programcilik/pascal/ders.asp?207995 and same High Speed Timer here too: http://groups.google.com/group/comp.lang.pascal/browse_thread/thread/92e9398f16c10ba4/e67ff3cf587648ef?lnk=st&q=inline(%24CD)+inline(%241C)+inline(%249C)&rnum=1&hl=en#e67ff3cf587648ef I converted it to C (using p2c), compiled it using Borland C++ 4.5 and it runs. But it crashes when it gets to setvect(...) in TimerOn. Does anyone know how IRQ programming ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.