STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Rotary potentiometer code

Posted on October 10, 2011 at 21:47Hi all, some piece of code to manage a rotary encoder potentiometer. The model I use is from the chinese market maybe by TREXON. I'll propose both interrupt and polling mode. The interrupt code has been adapted fro...

spiovan9 by Associate II
  • 534 Views
  • 0 replies
  • 0 kudos

Does the an2781(software uart) must use the tx

Posted on October 10, 2011 at 03:26I found if i disable the SWUART_TRANSMIT_USED ,it will hang in TIMERx_UPD_OVF_BRK_IRQHandler and can not run out of it. In this function: #ifdef SWUART_TRANSMIT_USED  uart_Tx_timing(); #endif  The clear_owerflow_fl...

cgh21 by Associate II
  • 509 Views
  • 3 replies
  • 0 kudos

Beginner

Posted on July 23, 2011 at 10:38Hi All, Yesterday i just got stm8s-discovery board.I don't know how to make use of it to the max since i am unaware about the compiler used with stm to build the code and other info regarding STM, till today i am fami...

TSL 2.4.0 STM8S105C6 on GPIOE not work in IAR

Posted on October 05, 2011 at 18:29if stm8_tsl_conf.h select GPIOE:#define SCKEY_P1_PORT_ADDR  (GPIOE_BaseAddress)  /**< Single channel key Port 1: GPIO base address */ IAR stopped on - ''__iar_unhandled_exception''

prc by Associate
  • 441 Views
  • 2 replies
  • 0 kudos

STM8L discovery kit ( using raisonance ) error

Posted on October 09, 2011 at 07:29Hi all , I have try to compile default code ( discovery demo ) and everything runs fine. After which i try to create my own application following the guide : UM0991 <Building, debugging and running your applicatio...

lau by Associate
  • 386 Views
  • 1 replies
  • 0 kudos

STM8 Touch Sensing Firmware Library error

Posted on October 06, 2011 at 11:06Hello, I think there is an error in v2.3.0 of this Library. The MKEY_CH2_MASK and MKEY_CH3_MASK should be defined in line 131, 132 of stm8_tsl_checkconfig.h. Otherwise compilation fails if multichannels keys are no...

Gaston by Senior
  • 294 Views
  • 1 replies
  • 0 kudos

STM8 Assembler using STVD

Posted on September 18, 2011 at 19:13I use STM8 Assembler. Code: ...... CLOCK EQU 16000 TIME EQU CLOCK/1000 .... compile error Error 67: Improper Character(s) '/1000' Why? I find :) TIME EQU {CLOCK/1000} Works without errors

Problems debugging with STVD

Posted on November 13, 2010 at 07:52Hello, I am unable to debug on the STM8L-Discovery using STVD, I always get this error when trying to start a debug version: Connection error (usb://usb): swim error [30004]: comm timeout I tested STVD versions 4....

Dissassembly and memory windows always empty in STVD

Posted on September 22, 2011 at 11:20Hi, I'm working on the STM8S-Discovery board with the Cosmic compiler in STVD 4.2.1 patch 2.  When debugging and stepping through the code there is no information in the disassembly and memory windows.  I'm sure...

SPI slave communication

Posted on September 21, 2011 at 00:02Hi all,I am working a project that has a SPI master on an OMAP-L138.  I had the four lines manually wired across from the OMAP-L138 to the STM8-S discovery board.  The connections are below:OMAP SPI CS -> STM8 SP...

ttran by Associate
  • 373 Views
  • 0 replies
  • 0 kudos