logarithm calculation problem
i need to calculate some log based contents using ST visual develop IDE and Cosmic compiler. but "log" is not recognized by compiler. any solution pleaseexample: my_reg=log(reg1);regards.
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
i need to calculate some log based contents using ST visual develop IDE and Cosmic compiler. but "log" is not recognized by compiler. any solution pleaseexample: my_reg=log(reg1);regards.
Hello Community,I'm struggeling with the GPIO activation of Pin PB0.My Setup is: µC: STM8AF6213PCA with TSSOP20 Pinout, STVD + Cosmic C CompilerIt is no problem to aktivate the Port C (PC4, PC5, PC6 and PC7). But port B seems to be dead.But the port ...
Using the library functions the micro freezes and enters a CLK assert, this is the code I use to configure the CLK: CLK_DeInit (); CLK_HSECmd (DISABLE); CLK_LSICmd (DISABLE); CLK_HSICmd (ENABLE); while (! CLK_GetFlagStatus (CLK_FLAG_HSIRDY)); CLK_Clo...
Hello for a project I will be using Ethernet, CANBus and RS232. Now the maximum frequency for CANBUS is 1 Mbit per seconds, for RS-232 that is 20 k baud and for Ethernet I think it is again 1 Mbit per seconds. So with a MCU that has at least 2 MHz c...
hello,I want to use Flash Loader Demonstrator for complete programmed update of stm8l001j3 device.But Flash Loader Demonstrator tool unrecongnized device.Is there any other way to update the program through the serial port ?
I need to decode ASK/OOK signal, for this aim I need to know the period in microseconds between several edges. I decided to use TIM1 for this purpose, here is my code// Set fCPU = 16MHz CLK_CKDIVR = 0; CLK_PCKENR1 = 0xFF; CLK_PCKENR2 = 0;...
I'm using Comparator 2 on the STM8L151G4 with DAC1 on the inverting input. When the DAC outputs 0V, the current draw during Halt mode is < 1 uA. If the DAC outputs around 0.5V before the program enters Halt mode, the current draw is 80 uA in Halt mo...
I am having an issue with the UART1 communication between two devices (Computer and a STM8S208 board).I implemented software in the computer that writes two bytes length of data to the STM8• the first byte that acts as an identifier;•the second byte ...
Hello guys. I have a general question actually I need suggestions. So I did not want to open a topic for it. I need to make a presentation about a box which will be in some armored vehicle. This box will be like the brain of the vehicle and will cont...