Hi
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
odges
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,
ecimal, not hex. So nothing with TIM2 works.
Well, it would be nice if all problems were this simple.
All the best,
-Richard
> On Monday, August 5, 2019, 02:35:42 PM GMT+5:30, Richard Hodges
> wrote:
>
>
> On 2019-08-04 23:51, Shivakumar R via Sdcc-user wrote:
>> Hi
HiI have been using STM8 and SDCC for about 2 months now.I'm facing an issue
these last two days that I can't seem to figure out. The code is supposed to
read an input port, confirm the key is pressed for 8 seconds, then call another
routine for further 3 key inputs.There's a tim2 interrupt(over
d port?The system worked the
first time, so why not after?
Thanks and Warm Regards
Shiv
On Wednesday, October 23, 2019, 03:10:27 PM GMT+5:30, Philipp Klaus Krause
wrote:
Am 23.10.19 um 10:14 schrieb Shivakumar R via Sdcc-user:
> Hi
> I have been using STM8 and SDCC for about 2 months n
peated the same keypress key sense
code for three more keys within a time frame, LEDs toggling etc.No issues now.
Thank you for your help.
Thanks and Warm Regards
Shiv
On Wednesday, October 23, 2019, 06:20:15 PM GMT+5:30, Shivakumar R via
Sdcc-user wrote:
Hi PhilippThank you for the input a
now=ticks; while(tixnow==ticks); if((PC_IDR & (1 <<
OKKey_Pin))==0) { PC_ODR |= (1 << LO_PIN); //set LU ON while(!(PC_IDR &= (1 <<
OKKey_Pin))); //wait till key released keyval=okval; PC_ODR &= ~(1 << LO_PIN);
//set LU OFF return; } } } keyval=noval; }*/
Thank
, Shivakumar R via Sdcc-user wrote:
> Perhaps you're right. Maybe I did. Maybe I just couldn't find it.??
Second big if statement in NOT WORKING code.
if((PC_IDR &= (1 << DnKey_Pin))==0)
Note &= rather than &
As a consequence you are turning off a lot of bits in
Yes, it would, thanks for that. :-)Another miss in a long line of misses :-/
Thanks and Warm Regards
Shiv
Smart Microsystems
On Saturday, November 9, 2019, 02:35:51 AM GMT+5:30, Erlo Haugen
wrote:
A diff would show you..
br
Erlo
On 25/10/2019 08.19, Shivakumar R via Sdcc-user
HiI'm trying TIM1 as an up-counter, and want to vary the duty cycle on my
custom board where GPIO C7 (TIM1Ch2) - initialized as a push pull o/p, and
connected to an LED to ground - is the pin I have to use for this.
I'm Looking for a good source to understand the set up sequences and values,
si
Thank you Richard.
Once again, you saved me from hours of 'hunt and try' :-)
Thanks and Warm Regards
Shiv
On Sunday, November 10, 2019, 12:23:16 AM GMT+5:30, Richard Hodges
wrote:
On 2019-11-09 09:29, Shivakumar R via Sdcc-user wrote:
> The SPL example does not men
Hi
I need to migrate my working STM8S003F3P6 SDCC compiled code (working correctly
for about a year now) to a new STM8L051F3 chip. Your advise, suggestions and
ideas are most appreciated.
(The code is SDCC compiled and bit banged with direct register modification. I
do not use the SPL)
I run a
. I also don't see the Routing Interface or
SYSCFG making a difference. Hope I'm not wrong.
Thanks and Warm Regards
Shiv
On Thursday, July 9, 2020, 07:43:45 PM GMT+5:30, Richard Hodges
wrote:
On 2020-07-09 04:12, Shivakumar R via Sdcc-user wrote:
> I run an interrupt at 12
13 matches
Mail list logo