![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 18:25 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » Seeking help with DOS extended 8253 timer interrupt? |
| Printable Version 1,773 / 1 |
| Floor1 zhb1284 | Posted 2008-04-02 12:37 |
| 新手上路 Posts 6 Credits 14 | |
|
Why can't the interrupt respond in this program? Which expert can help me solve it, my QQ: 19684802, Email: [email protected]
#include "graphics.h" #include "stdio.h" #include "fcntl.h" #include "stdlib.h" #include "alloc.h" #include "stdlib.h" #include "dos.h" #define LOW_BYTE(n) (n&0x00ff) #define HI_BYTE(n) ((n>>8)&0x00ff)÷ // Variables used by the spindle union{ unsigned int b; unsigned char d[2]; }MAxisCnt; void SetXMotTimer(unsigned count) { outportb(0x3e7, 0xb0); outportb(0x3e6, LOW_BYTE(count)); outportb(0x3e6, HI_BYTE(count)); } void interrupt XMotorInt(void) { disable(); SetXMotTimer(1000); ......//Output pulse signals to the IO port outportb(0x20, 0x20); enable(); } void main(void) { outportb(0x3eb, 3); outportb(0x21, 0); setvect(11, XMotorInt); SetXMotTimer(1000); getch(); return; } |
|
| Floor2 sun51 | Posted 2008-08-15 22:57 |
| 新手上路 Posts 2 Credits 6 | |
|
I'm also encountering a problem similar to the poster's. May I ask how the poster finally solved it?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |