2004-05-26 02:06 PM
2004-05-24 02:55 PM
Hello.
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=false2004-05-25 01:40 AM
Hi Musu,
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.2004-05-26 02:06 PM
Martin sir.
Thanks you for your informing. I recognized that I've lost to add a ''vector.c'' in the timer1.mak. But there is no result too. I'm finding the reason. ===================================== I fixed the program more simply, to see only timer interrupt B. Would you mind seeing this attached? ________________ Attachments : fixed_123.Zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I05T&d=%2Fa%2F0X0000000bWj%2FhGxX0NYd1XALiok3TTYt1sQq0s1HU48JTfrEABZHdHg&asPdf=false