Others: hardware and software

Discuss hardware and software design challenges, including NOR flash storage, OTA updates, component ID, and thermal management.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I am working on PWM signal and the following code is not responding properly. Can someone explain where I am making a mistake. I need to generate pwm signal on PB0 (timer ch1)

/* 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...

VSrin by Associate II
  • 814 Views
  • 0 replies
  • 0 kudos

How to make the keyword "click" to increment every time it enters the interrupt module. Please see the code below and help me out. All the time "Click" remains 0.

#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...

VSrin by Associate II
  • 878 Views
  • 0 replies
  • 0 kudos

stm8s001j3 pin 6 not set output mode

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...

VP by Associate II
  • 1293 Views
  • 2 replies
  • 1 kudos

Programing STNRGPF01 (EVAL-IPFC01V1) how?

Hi All,I am trying to program STNRGPF01 (EVAL-IPFC01V1), but I have no success so far. I connectedFTDI serial cable to programming connector, but STNRGPF01 programming tool stays in a loopwithout any results. I also found some ld post about this, but...