Using SPI peripheral without SCK
I want to use the SPI peripheral on STM8L050J3 to generate bit patterns. I do not need SCK for this, and would like to use the SCK pin for GPIO. Is this possible?
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
I want to use the SPI peripheral on STM8L050J3 to generate bit patterns. I do not need SCK for this, and would like to use the SCK pin for GPIO. Is this possible?
Hi,The UM0470 says:DM control register 2 (DM_CR2)FV_RAM Remap vector table in RAMThis bit is set or cleared by software. It remaps the interrupt vector table to a RAMlocation instead of program memory (usually 8000h).0: Vector table is in Program Mem...
can i get generated code from stm cube8 ?
Hi,For me to set the SWIM pin to (Input Float NO), I need to set all ports attached to pin 1, as follows: * NAME |DDR |CR1 |CR2 |ODR | Operation |FUNC * PA.0 - 0 - 0 - 0 - 0 - Input Float NI - SWIM * PA.2...
Hi,I am initializing studies with the STM8L050J3 using IAR.I made a development board and connected the in-circuit circuit as shown in the attached figure.Are there any other in-circuit pins that need to connect STM8L050J3 to ST-Link / v2?.
#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include "defs.h"unsigned int count = 0;@svlreg @interrupt void TIM1(void){ count += 1; TIM1_SR1 &= ~(0x01);}main(){ CLK_DIVR = 0x00; // Set the frequency to 16Mhz CLK_PCKENR...
In a project I'm working on, I am using the internal EEPROM of the STM8L151.I do not initialize the variables (of course), but the compiler automatically set them all to 0. This is a bit of a problem because my code looks for 0xFF to see whether or n...
I downloaded cosmic c compiler for stm8 and registered for license but I haven't received any license and it's been 2 days
void main(void) { float temperature = 0; const float Rp=10000.0; //10K const float T2 = (273.15+25.0); //T2 298.15 const float Bx = 3380.0; //B const float Ka = 273.15; float Rt = 0; //double ...
void main(void) { float temperature = 0; const float Rp=10000.0; //10K const float T2 = (273.15+25.0); //T2 298.15 const float Bx = 3380.0; //B const float Ka = 273.15; float Rt = 0; //double ...