On 15-12-2009 at 10:15, Anonymous wrote:
Quote:Are there any STM8S103 reference design or technical information for reference ?
It's all here: www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=113
Are there any STM8S103 reference design or technical information for reference ?
Am new to STM8 family! and my plan to use Timer1 function to decode NEC IR pulses is on hold for the below reason:
I configured myself every register according to ref manual RM0016 (14587.pdf), section 17.5.3.
Also have chosen PIO config as alternate input with interrupt on DDR, CR1, CR2.
There is an interrupt raised on press of the key, but the CC1IF bit is not set, instead, the register is always 0x19, which is to say CC4IF, CC3IF.
That didn’t help!
I managed to dig out the reference code on timer, stm8s_tim1.c, and used that as well. Still the same effect
This makes me think, perhaps I have missed to set/reset just “one bit” somewhere!
If you could share me your thoughts and further check points or some source code to refer to, that would be appreciated.
Retrieving data ...