Shop OBEX P1 Docs P2 Docs Learn Events
SX to Propeller Issues — Parallax Forums

SX to Propeller Issues

T ChapT Chap Posts: 4,249
edited 2006-09-08 19:28 in General Discussion
Would someone please give me some ideas on the following issues


First
I have a Propstick and an SX28 all getting their power from the same supply. There are two breadboards, each tied together with the same power. The grounds are tied together on both breadboards and the Vdd is from the wall suply as well to both.

The Propeller will program fine from the USB to serial. The SX Blitz requires that I pull the GND to the Propstick breadboard everytime which is a hassle. For some reason it gives the error Sx blitzx not found or similar. When I pull the GND to the Prop then the SXC will program.

Second
Earlier today I had these codes working fine, then suddenly something got weird. The code for the SX is basically two buttons, and if one if pushed it should send %00000001, if the other is pushed %00000011. The Spin code on the receiving end takes the code and does some things based on the byte values rec'd. I am debugging the received bytes in the Prop on the tv. Now all of a sudden, the displayed byte values received are %10000001 for button 1 and %10000011 for button 2. Somehow the extra 1 at the top of the byte has been added althought the SX clearly is sending it as it should. The scoped signal seems the same as it was all day.

Thanks for any help

Comments

  • T ChapT Chap Posts: 4,249
    edited 2006-09-03 02:11
    Well it is solved, I had placed a .1 cap across pins 2 and 4(Vss and Vdd), I removed the cap and the problem went away as far as the 1a t the top of the byte. Very strange. I put the same cap several inches away and it is fine, there is something about the closeness of the cap ti the power pins on the SX.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-09-08 19:28
    The capacitor is intended to be very close to the IC to filter out noise and spikes created by other ICs sharing power. But the actual value of the capacitor can vary from 1mf to 0.01mf as required.

    The lower the value, the faster the spikes that it catches.

    On the other hand, you may have a problem if there are two ground paths between the devices. Noise might loop around or reflect. How many ground pathways do you actually have? More is not better.

    That high bit might be a reflection. You could change the value to the capcitor [noparse][[/noparse]like 0.22mf or 0.47mf] and see if it still stays away. After a board is built, usually engineers will test it before going into production. If one of these capacitors needs changing, they just tweak the value to get optimal reliablity. No big thing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.