cancel
Showing results for 
Search instead for 
Did you mean: 

16bit 1 second timer (ST72F521)

murassus
Associate II
Posted on May 26, 2004 at 23:06

16bit 1 second timer (ST72F521)

3 REPLIES 3
murassus
Associate II
Posted on May 24, 2004 at 23:55

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=false
md1
Associate II
Posted on May 25, 2004 at 10:40

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.
murassus
Associate II
Posted on May 26, 2004 at 23:06

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