mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Lounge (https://www.mersenneforum.org/forumdisplay.php?f=7)
-   -   Having trouble with serial communication? (https://www.mersenneforum.org/showthread.php?t=22349)

LaurV 2017-05-29 07:18

Having trouble with serial communication?
 
1 Attachment(s)
If you ever do, check the datasheet, check the USART block diagrams, etc., your microcontroller may not be sending out the shifted data as you expect...

[ATTACH]16156[/ATTACH]

retina 2017-05-29 11:35

Multiple CR1 and CR2 registers. No pin for receive or transmit. No output on the receiver clock. No output from the interrupt control. It all looks fine to me.

Oh wait now I see the real problem, the formatting of the SCLK pin is overlapped upon itself. Yeah, that could cause some difficulty.

Spherical Cow 2017-05-30 15:33

[QUOTE=LaurV;459968]If you ever do, check the datasheet, check the USART block diagrams, etc., your microcontroller may not be sending out the shifted data as you expect...

[ATTACH]16156[/ATTACH][/QUOTE]

Excellent! I've always suspected such things, but never looked close enough I guess.

Norm

xilman 2017-05-30 17:54

[QUOTE=Spherical Cow;460059]Excellent! I've always suspected such things, but never looked close enough I guess.

Norm[/QUOTE]IOW, RTFM, HTH. HAND.


All times are UTC. The time now is 16:48.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.