Can someone help me out in generating a pwm signal and controlling a brightness of a led?
Please do share any link or code? I am really stuck in my code
Please do share any link or code? I am really stuck in my code
/* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include "defs.h"unsigned int count = 0;unsigned int pwm_duty = 0x0000;void TIM2_SetCompar...
Hello.I have a question for you:Is it possible for your STWBC-EP device (STEVAL-ISB44V1) to transfer user data (UART-port) to the STWLC33 microcontroller and vice versa? :User Data - "STWBC-EP" - "STWLC33" - User & User Data - "STWLC33" - "STWBC-EP" ...
#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include <math.h>#include "defs.h"static int click = 0;void delay(unsigned long dd){ unsigned long i; for (i=0;i<dd;i++) nop(); }void RTC(void){ unsigned...
HiI am using STM8S001J3 controlleron my project and I'm have some problem about it,6 pin GPIOB 4 It doesn't work.I don't know how to solve it.Please help me..//example code GPIO_DeInit(GPIOB);GPIO_Init(GOIOB,GPIO_PIN_ALL,GPIO_MODE_OUT_OD_HIZ_LOW);whi...
The host tries to write the STM8S001J3 flash memory and then read it through the SWIM interface. Writing a block of 64 bytes. happens correctly. However, reading steadily only works on 1 byte. When trying to read more bytes with one command, the resu...
I'm using theᅠSTEVAL-ISB044V1 evaluation board for the wireless charging test. The evaluation board is based on STWBC-EP and can be programmed with ST-LINK V2. STM8AF6166 is the core of it, so I post here. I tried to program the board, and there's al...
File KEYPAD.H/* Exported types ------------------------------------------------------------*/typedef enum { CORRECTTIME = 0, FEEDINGTIME, COUNTERTOZERO, PRESSTOTEST, MOTORDEC, MOTORINC, DELAYDEC, DE...
I have started writing some STM8 code in assembler and happened upon a memory assignment issue I can't explain.Globally I have segment 'ram0'Test_Word ds.w in code: ldw X, #$48 ldw Test_Word , X The two bytes of memory at location Test_Word i...