Ultralit Interrupt problems
Company  
ST Home | Microcontrollers

Index  »  ST7  »  Ultralit Interrupt problems
     
   Ultralit Interrupt problems
 Moderated by :   »  Jatin  -  laubey  -  Setler

Author
beginning argument    ( Replies received: 1 )
willnick55   Posted 28-08-2008 at 20:57   



Registered on :
08-28-2009

Messages : 2

 OFF-Line

Hi,
This is my first posting here. I am an analogue engineer really but have recently started using an ST7 in a regulator application. I am a software novice.
I was getting on ok with the project until I started getting glitches in the PWM output, with long pulses being produced. This was tracked down to the fact I was setting the ATR value at the same time an a compare occured, now and then.
The solution to this I am told is to use an interrupt to syncronize setting ATR to the overflow of the counter.
However I have been trying this and using Interruot 9 is causing problems. The ATR values is incremented and the frequency output is increased until the frequency increase stops (at too low a frequency) and the programme malfunctions.
I have no idea why this is happening and hope someone can spot the problem.
Thanks,
Nick



 Profile   Quote  
willnick55   Posted 29-08-2008 at 19:13   



Registered on :
08-28-2009

Messages : 2

 OFF-Line

I think this is happening due to time delays in the interrupt routine. The PWM timers runs up to about 90Kz, then stops. I was trying to get up to 300KHz.



 Profile   Quote  
On Top

Search in the forums
 
Jump To