STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

6 step PWM on STM8L15x

Posted on June 10, 2011 at 14:50Hey! I'm trying to make sensorless BLDC control unit on STM8L15xxx MCU. High-side switches of drive circuit are opened by logical ''1'', and low-side - by logical ''0''. So I need to perform six-step trapezoidal com...

kirlik by Associate II
  • 467 Views
  • 0 replies
  • 0 kudos

Assign register value to variable

Posted on June 06, 2011 at 21:05Good day! I'm trying to assign register value to a variable in COSMIC C. I've tried the obvious way first, but it doesn't work: uint8_t test = 0; ... test = CLK->SWCR; // define from stm8s.h and uint8_t test = 0; ......

artvolk by Associate II
  • 518 Views
  • 2 replies
  • 0 kudos

STM8L vs PIC18 code density benchmark

Posted on June 03, 2011 at 18:00Hello, I have an existing platform that I've recently built on PIC18. Soon I'm starting a new project that is very price sensitive. Currently the existing platform occupies too much code memory, avoiding me to take ...

elil by Associate III
  • 340 Views
  • 0 replies
  • 0 kudos

[resolved] GPIO: Pull-up resistors on Port E

Posted on May 21, 2011 at 15:40Hi all, I've set PE0 -> PE3 as inputs with internal pull-up enabled. Without connecting anything to these pins, I read the input register as 0x09, indicating that the pull-up is only operational on pins PE0 and PE3. Ha...

nholzem by Associate II
  • 721 Views
  • 8 replies
  • 0 kudos

Beep function with STM8L Discovery

Posted on April 19, 2011 at 21:39Hello, I want to use the beep function with my STM8L Discovery. After writing the program to STM8L, I connect the a piezo speaker between PA0 and GND. The program is as following: // Initialize     BEEP_LSICalibratio...

PortB configured as digital Input

Posted on May 31, 2011 at 11:26Hi all, I'm trying to configure PortB as a Digital Input and afert reading the IDR register it seems to be reading the analog value of the PB0 pin. I've tried to configure PortB as PullUP no interrupt or Floating, but ...

Getting garbage over USART1

Posted on March 29, 2011 at 19:03Hi All, I have taken some of the sample code that comes with the stm8l-discovery eval board to try and talk to hyperterm on from stm8.  when i try to send anything all I see is garbage on the hyperterm screen...  I h...

mcdowell by Associate
  • 722 Views
  • 2 replies
  • 0 kudos

STM8L152 display gone randomly

Posted on May 30, 2011 at 14:46Hi, I am using stm8l152 for driving custom lcd.I have good results but sometimes I cant get any image.MCU is working but can not drive lcd. I realised that Start of frame bit wasnt set when no display on lcd.It is hard...

batuhan by Associate
  • 368 Views
  • 0 replies
  • 0 kudos