Shop OBEX P1 Docs P2 Docs Learn Events
i2cout equivalent on a bs2 — Parallax Forums

i2cout equivalent on a bs2

jfoxjfox Posts: 21
edited 2008-06-24 05:42 in BASIC Stamp
· I had a couple 12c devices running on a bs2pe and·things were looking up·when it appears I
fried my pe by running the wrong program.now im trying to set it up on a bs2 with shiftin and shiftout
·and ack and nak and im going wak. the code below read out an hour minute second display from
a philips8583. can any one give me the functional equivalent of·this for bs2·;
···········I2COUT 8 , $A2 ,0,[noparse][[/noparse]0]
·········· pause 1000
·········· I2Cin 8, $A2, 2,[noparse][[/noparse]seconds]

Post Edited (jfox) : 6/24/2008 3:00:42 AM GMT
587B
post 587B

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-24 03:01
    One of the Nuts and Volts Columns shows a set of subroutines that implements I2C for a BS2. I don't have the specific issue number handy, but you could look through the first 2 or 3 volumes for it.
  • jfoxjfox Posts: 21
    edited 2008-06-24 03:13
    Ive been looking at a couple of them, but i can't get my Acks together im trying to simplify it. what is a functional equivalent to a 12COUT and I2CIN commands
  • FranklinFranklin Posts: 4,747
    edited 2008-06-24 03:36
    Like Mike said there is no direct equivalent, you will need to write your own, or find the article (N&V vol3 column #79) and it will tell you how to 'bit bang' it. Good luck.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen

    Post Edited (Franklin) : 6/24/2008 3:50:47 AM GMT
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-06-24 04:56
    There are a couple I2C columns in Volume 3. Here is a link to the volume index.

    -Phil
  • jfoxjfox Posts: 21
    edited 2008-06-24 05:42
    thanks for the advice .Ill get back to you after i work on this Jim
Sign In or Register to comment.