This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

serial pass-through between USB and a general I/O pin in ez430 rf2500



Hi all,

I'd like to know if somebody have faced up to providing a bridge between USB data and two general pins (tx plus rx). That's because I have to connect the ez430 with other hardware that doesn't support the USB (altough I could acquire the usb-serial connector I have sizing problem).

 

Has anybody got some code?I was thinking to modify the TXString function but I don't know what is the correct sequence to provide the pass-trough pins

 

Thank you all

  • What exactly do you want? Forwarding the virtrual COM port on PC to a real serial port on the MSP? If so, it's not just forwarding the pins. The data is pushed through the USB and arrives on teh MSP in byte packets. To output them to a serial port, you'll have to program one of the MSPs serial ports (or simulate one with two I/O pins and a timer) and outpu tthe bytes in that packet one by one. In the opposite direction, you'll have to collect a packet of incoming bytes and then push them through USB as a data block. Because of the structure of USB, single bytes have a laaarge overhead and the overall latency time is large too. So there is no bitwise or bytewise forwarding (except if there's not coming more for a certain time) of data. And what appears a bit stream on a serial port, is collected to larger packets and then sent in a burst through USB.

    So unless you are a bit more detailed about what you want to do, the above general explanation and advice is all I can give.

**Attention** This is a public forum