mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2017-05-29, 07:18   #1
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

72·197 Posts
Default Having trouble with serial communication?

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...

Click image for larger version

Name:	transmit register.PNG
Views:	142
Size:	164.4 KB
ID:	16156
LaurV is offline   Reply With Quote
Old 2017-05-29, 11:35   #2
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

141208 Posts
Default

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.
retina is online now   Reply With Quote
Old 2017-05-30, 15:33   #3
Spherical Cow
 
Spherical Cow's Avatar
 
Nov 2004

22·33·5 Posts
Default

Quote:
Originally Posted by LaurV View Post
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...

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

Norm
Spherical Cow is offline   Reply With Quote
Old 2017-05-30, 17:54   #4
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22×5×72×11 Posts
Default

Quote:
Originally Posted by Spherical Cow View Post
Excellent! I've always suspected such things, but never looked close enough I guess.

Norm
IOW, RTFM, HTH. HAND.
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Communication Thread almostfrugal PrimeNet 1 2015-04-14 04:00
Problem with v5 communication AlsXZ Software 6 2009-10-14 05:41
Communication Thread-Inactive fermatprimes Information & Answers 1 2009-07-05 12:54
Windows Serial Number Prime95 Software 27 2005-11-02 14:04
Manual Communication bayanne Software 3 2002-10-25 18:45

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


Sun Aug 1 16:48:09 UTC 2021 up 9 days, 11:17, 0 users, load averages: 2.13, 1.50, 1.44

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.