Welcome, Guest

TOPIC: Serial Port Noise: how can you detect it?

Serial Port Noise: how can you detect it? 8 years 8 months ago #12

  • Animaticsv15
  • Animaticsv15's Avatar
  • OFFLINE
  • Administrator
  • Posts: 44
  • Thank you received: 1
  • Karma: 0
A Little known command: "!", that is the exclamation point
symbol by itself: !
If it is placed somewhere in code, the code will stop there
until ANYTHING is received via serial communications on ANY
port.

Example:

WHILE 1==1 'while forever
! 'wait here until anything comes in via
comms.
PRINT("noise",#13)
LOOP

Now so much as a noise glitch hits the serial receive
buffer, the motor will print noise out the port.
Keep in mind, anything deliberately sent will cause it to
print "noise" as well.
The administrator has disabled public write access.
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.203 seconds
Powered by Kunena Forum