Skip to main content
Visitor II
August 9, 2005
Question

TIMER A on ST72F324J6B5

  • August 9, 2005
  • 2 replies
  • 808 views
Posted on August 09, 2005 at 06:39

TIMER A on ST72F324J6B5

    This topic has been closed for replies.

    2 replies

    egesuitaAuthor
    Visitor II
    July 11, 2005
    Posted on July 11, 2005 at 12:39

    hi everybody,

    I'm developing firmware for a ST72F324J6 (42pin sdip package) microcontroller.

    I want to generate a pwm waveform with timer A and applied it to pin OCMP1_A (pin 13).

    attached you'll find the C code I wrote down.

    just for test purposes the duty cycle is approx 50%.

    the code do not produce the expected result: no pwm appear on OCMP1_A pin.

    I checked several times the few line of code i posted here but i'm not able to find the bug in them.... pehaps some missing sttings... I followed step by step what I found on the ST72F324 manual.... I think my error is naive but I can't find it!

    macro I used for setting and resetting bits (_bset & _bres) are tested and functioning.

    any suggestion ??

    thanks a lot for your precious help

    regards

    ________________

    Attachments :

    timerA.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzuq&d=%2Fa%2F0X0000000bTi%2FeCXQDSOKlvA93faDFwjM9TVmh8tvRPzTIzGi8.F7.wE&asPdf=false
    Visitor II
    August 9, 2005
    Posted on August 09, 2005 at 06:39

    It is difficult to suggest something from your attached code. The best way is to use the ST7 software libarary containing the 16-bit timer peripheral. It can be downloaded from the same site.