Shop OBEX P1 Docs P2 Docs Learn Events
howto use BS2 in I2C slave ?? — Parallax Forums

howto use BS2 in I2C slave ??

LucLuc Posts: 8
edited 2007-03-02 17:20 in BASIC Stamp
Please, i'm search routin for use the BS2 in I2C slave

thanks,

Luc

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-02-26 15:38
    Is very difficult -- the BS2 wants to be 'master' in everything. I suppose you COULD use RCTIME or PULSIN to look for some other I2C 'master' device's clock -- but the BS2 could only recieve bits VERY slowly -- probably not keeping up with the 'remote' I2C master.

    On the other hand, the BS2 works GREAT as a SERIN 'slave' device, using RS232 signaling.
  • LucLuc Posts: 8
    edited 2007-02-27 10:32
    Yes i cant use RS232 for comunicat with my BS2, but if i want use two device BS2 in slave mode ??

    I want use one BS2 in master I2C mode et multi BS2 in I2C slave mode



    thank for your reply



    Luc
  • LucLuc Posts: 8
    edited 2007-02-27 11:12
    and it's possible to connect the PCF8584 at BS2 for use the BS2 in I2C slave mode ??
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-02-27 14:27
    The 'master' BS2 can easily talk to the 'slave' BS2 using SEROUT/SERIN communications. This takes fewer wires than I2C, also. And at 9600 baud, will be faster than any BS2 'pseudo-slave' I2C communications.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-02-27 15:25
    Gents -

    The PCF8584 is a PARALLEL to I2C chip which requires either a microcontroller with interrupt capability, or with polling capability, to recognize when there is traffic. The PCF8584 can operate in HOST or SLAVE mode.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • LucLuc Posts: 8
    edited 2007-03-02 17:12
    yes if i use SEROUT/SERIN, isn't possbible to have multi slave BS2 whith only 2 wires
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-03-02 17:20
    Yes, if you use SEROUT/SERIN, it IS possible to have a multi-Slave BS2 network with only two wires (and a pull-up resistor. That's what those "Open" baud modes are about).

    Three wires (TX, RX, GND) would be more general.
Sign In or Register to comment.