2012-12-07 07:37 PM
The device I am trying to connect to via serial interface requires constant clock ticking. I have enabled USART clock with
USART_ClockInitTypeDef USART_ClockInitStructure; USART_ClockStructInit(&USART_ClockInitStructure); USART_ClockInitStructure.USART_Clock = USART_Clock_Enable; USART_ClockInit(USART2, &USART_ClockInitStructure); but it seems to be ticking only while transmitting data. Is it possible to have this clock ticking constantly? I do not see any related fields in USART_ClockInitTypeDef #usart2012-12-08 05:26 AM
Not really.
Does this clock need to be synchronous to the serial signal? If not just use one of the timers to generate a continuous clock.2012-12-08 09:00 AM
Wow :(
I have already implemented this via a timer but I was hoping this would only be an intermediate solution :( And the timer is obviously not in sync with the usart. While the chip does respond even like this is not cool, who knows if the chip will read control messages correctly all the time :( I guess I will implement TX via another timer channel to have them synched. Different question while we are on the subject of times - is it possible to have an output channel and an input/capture channel configured on the same timer? I have spend some time trying to merge PWM_Input and PWM_Outout std examples to no avail.2012-12-08 03:22 PM
Would SPI or I2S be a more suitable peripheral choice?