2023-05-10 03:31 AM - edited 2023-11-20 05:51 AM
hi, i want to use the code from controllertech site with stm32f302r8. how should i set the registers.
https://controllerstech.com/ring-buffer-using-head-and-tail-in-stm32/
the part where i get the error is how do i do the register parts.
2023-05-10 03:42 AM
Compare the registers from both reference manuals, bit by bit.
Compare the register and bit definition files.
2023-05-10 03:57 AM
Newer parts use ISR not SR, and DR has distinctive RDR and TDR for receive and transmit.
Watch also for how errors are cleared, ie parity, framing, noise. Not cleared by reading DR, but by explicitly writing a bit to clear.
Look at Library source for understanding, you don't have to use it, its available as a secondary reference / perspective.
And RTFM..
2023-05-10 04:03 AM
MY PROBLEM IS SOLVED THANK YOU