STM32 MCUs products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Variable runover before it reaches its limit

Hello everyone,My variable had a Runover even before it reached its range.Currently, I am working with timer 2 with a frequency of 90MHz. When I retrieved the current time by `__HAL_TIM_GET_COUNTER()` and printed it by `printf("receive_time: %lu\n", ...

HNguy.25 by Associate III
  • 635 Views
  • 5 replies
  • 0 kudos

I want to generate 16 MHZ clock signal from Nucleo-F746ZG development board. I have used FastPWM library to generate 16 MHZ clock on PA_8 pin. But not able to see square wave on CRO. Can someone please help

#include "mbed.h" #include "FastPWM.h" FastPWM fastpwm(PA_8,1); int main() { fastpwm.period(5.25e-8 ); fastpwm.write(0.5); }This is my simple code to generate PWM in MHZ using FastPWM. When i check on CRO its showing frequency about 16 to 19 MHZ b...

Cjosh.1 by Associate II
  • 385 Views
  • 4 replies
  • 0 kudos
Labels