Posted on May 17, 2011 at 15:06Hi jeffrey.chang168, I thought like you when I started developping on STM8 ! The overflow event occurs when the counter (CNTR register) reaches the Auto-Reload value (ARR register). That is explained in TIM1 section. t...
Posted on May 17, 2011 at 15:06Hi jeffrey.chang168, As mentioned in the RM0016, the TIM4 is auto-reload up-counter timer. An below the explanation of the theory ! //TIM4_TimeBaseInit(TIM4_PRESCALER_128, 128); // (A) If you are running your system in...
Posted on May 17, 2011 at 15:06Hi benryves, I am seeing a strange thing ! Why the EEPROM address is the same as the STM8S chip address ? /* I2C_SLAVE_ADDRESS7 is the adress of the STM8 chip */ I2C_Init(100000, I2C_SLAVE_ADDRESS7, I2C_DUTYCYCLE_2, I2...
Posted on May 17, 2011 at 15:06Hi m_kisacanin, Thanks m_kisacanin for this useful summary of GPIO configuration. I want to contribute with a simple example of using an external interrupt but I don't have a discovery board to test so thanks to give t...
Posted on May 17, 2011 at 15:06Hi benryves, I have written a code that blinks a pin at 1 ms using STM8S208 and should be ported to STM8S105 because GPIOG doesn't exist in STM8S105. The example is inspired from STM8S provided examples here: http://ww...