cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Cyclic Frame

Azizz
Associate III

Hi everyone,
I'm using the STM32F407 for CAN Communication with the Loopback Mode. I'm trying to send a cyclic frame using a timer.
I'm using the timer2 with a clock of 84MHz (APB1), a prescaler of 8399 so i will have a tick every 1ms and a period of 1000 - 1 because i need a cyclicity of message sending every 100ms.
I only get the data transmitted to the RxData by calling  CAN_Rx_Callback(&hcan1); in the main function.
This way, i'm not sure if i'm sending data every 100ms or i'm sending data all in once. 
How can i update my code to resolve this problem.

0 REPLIES 0