In SX Microcontrollers, SX/B Compiler and SX-Key Tool, CraigJ wrote: [gray]Serial communications on the SX is rock solid as long as you have a good oscillator. Since you're using a resonator, you should be fine.[/gray] [blue]I'm currently using a 50Mhz, but for 9600 baud, a 4Mhz (external) should be sufficient, right? [/blue] [gray]You mentioned that you're getting a "different sort" of garbage. What exactly?[/gray] [blue]I'm not sure. I'm getting a byte, but regardless of what I send (echo 0x7 > /dev/ttyS0, for example) whatever I'm getting is outside the $0 - $F range. I'm not sure how to tell specifically what I'm getting on the SX side. [/blue] [gray]Also, rather than sending the value 0 to 15 in hex, just try sending the same character over and over. you need some way to determine what you're sending and what you're getting. If you're sending a different value each time, it makes it hard to correlate what is coming from the Linux box with what is being received on the SX. You first need to make sure that you're getting a consistent value into the SX each time. Sending the same value over and over will let you find out if this is happening or not.[/gray] [blue]Agreed. I'm modifying the code to send a hex 7 every .2 seconds.[/blue] [blue] I do have some questions about sending bytes. My understanding is that it doesn't really matter if the source is hex or ascii, right? For example, sending an "A" is equivalent to sending 0x41 - SERIN would see the same value, correct? So I could test for either $41 or "A" in the SX/B code? [/blue] Thanks, -Craig ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=294581#m295046 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)