Ultralit Interrupt problems
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-08-29 6:43 AM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-08-28 8:27 AM
Posted on August 28, 2008 at 17:27
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, NickOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-08-29 6:43 AM
Posted on August 29, 2008 at 15:43
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.
