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 mention anything ab
On 2019-11-09 09:29, Shivakumar R via Sdcc-user wrote:
> The SPL example does not mention anything about changing the values of
> the option bytes, but I see that in my STM8S003F3P6 chip(20 pin tssop) I
> need to set the AFR0 bit of OPT2 (as well as NOPT2) to use the TIM1Ch2
> alternate function.
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