At last, I made a coding about 1second timer with timer interrupt. But... But....................... The program doesn't work. In the compiling, linking, making, building and debugging period, there was no error and warning. ================================================ The whole program of this consists of 3 C file and 2 header file. timer1.c : main C program, It includes Timer A�?B initializing and LED port push pull on. interrupt.c : description about the details of Timer interrupts. vector.c : interrupt vector table. defs.h : global variable, global function, constants io725h : hardware register header file timer1.lkf : linker command option file timer1.mak : mak file ================================================ I use a Cosmic C compiler & Indart STX v.2.00 (based on STVD 2.5.1) Please Help me.... I'm really a virgin about these parts. Is there some fault in that coding? [ This message was edited by: musu on 25-05-2004 03:32 ]
________________
Attachments : 123.Zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0I2&d=%2Fa%2F0X0000000bWl%2FfHR1bl3PzZbylHxoZUoRf4Qr.RTwWaSff_avfgA7vT8&asPdf=false
I have simulated your code in visual debug, and your timer interrupt handlers are being called OK. I have not checked timings etc... One problem with your makfile is that you were not building vector.c. Could this be your problem? Cheers, Martin.