HiThank you for your test of my code. I had earlier checked the signal on the 
scope, but verified it once again after seeing your response. The signal pulses 
hi when the LED is ON, then remains at GND after the 5 count pulses are done. 
can I post videos here? I could show the board (not) working.
So what am I doing wrong or missing?
What else can I do to see whether my interrupt is running at all?pulse another 
port? change some registers? I'll try these ideas now
Thanks and Warm Regards
Shiv



Smart Microsystems
 

    On Sunday, August 4, 2019, 06:37:54 PM GMT+5:30, Richard Hodges 
<rich...@hodges.org> wrote:  
 
 On 2019-08-02 05:51, Shivakumar R via Sdcc-user wrote:

> I've just started using STM8 microcontrollers, specifically the
> STM8S003F3P6 chip, in my own custom test board. The board works and I am
> able to blink an LED on PA3/without/ using an interrupt.
> However, when I try to make the blink take place in the Tim2_OVF
> interrupt, nothing happens. I think the interrupt is not taking place.
> What have I missed??
> 
> I saw this on the mailing list.  My code includes the "rim" instruction.
> 
> https://sourceforge.net/p/sdcc/mailman/message/35618801/
> 
> My complete code is below. It blinks the led 5 times before the timer
> TIM2 is started. My SDCC version is 3.9.0

I made minimal changes and compiled this with with 3.8.0, then
programmed it to an STM8S103.

The first 10 changes on A3 are slow, then the interrupt changes A3 twice
per second. I see this on my scope.

I compared your TIM2 setup and interrupt to some of my code, and I don't
see anything wrong.

-Richard


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user
  
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to