Has anyone tried AI with PICBASIC - Page 3


+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 81 to 88 of 88
  1. #81
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389

    Default Re: Has anyone tried AI with PICBASIC

    I don't see any issues with IC address - it is done according to datasheet.

    1. Write to Config register:
    – First byte: 0b10010000 (first 7-bit I2C address followed by a low R/W bit)
    – Second byte: 0b00000001 (points to Config register)
    – Third byte: 0b10000100 (MSB of the Config register to be written)
    – Fourth byte: 0b10000011 (LSB of the Config register to be written

    when has a 7 bit i2c slave address ever worked in pbp?
    Warning I'm not a teacher

  2. #82
    Join Date
    Feb 2013
    Posts
    1,078

    Default Re: Has anyone tried AI with PICBASIC

    Does manual say anywhere that it won't ?

  3. #83
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807

    Default Re: Has anyone tried AI with PICBASIC

    When manual says byte sized variables, it is implied 8 bits I guess.

    Ioannis

  4. #84
    Join Date
    Feb 2013
    Posts
    1,078

    Default Re: Has anyone tried AI with PICBASIC

    So this IC can't be used with PBP ?

  5. #85
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807

    Default Re: Has anyone tried AI with PICBASIC

    I cannot see how one can send only 7 bits when the integrated command is set to send 8 bits...

    I think you have to make your own routine, maybe in assembly.

    Ioannis

  6. #86
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389

    Default Re: Has anyone tried AI with PICBASIC

    I think you have to make your own routine, maybe in assembly.
    or convert the 7 bit address to an 8 bit address as i have explained multiple times in other posts
    Warning I'm not a teacher

  7. #87
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389

    Default Re: Has anyone tried AI with PICBASIC

    just spotted this gem on the arduino forum

    you need to know better than the AI in order to know that the solution offered by the AI is wrong
    Warning I'm not a teacher

  8. #88
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807

    Default Re: Has anyone tried AI with PICBASIC

    It makes perfectly sense!

    One cannot blindly trust the machine. The replies depend very much on the prompt anyway. So, if you do not how to ask or what to ask, then you cannot expect magic to happen, right?

    Ioannis

Similar Threads

  1. conversion from picbasic to picbasic pro
    By winjohan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st November 2011, 18:00
  2. Proton PICBASIC vs MeLabs PICBASIC
    By Fredrick in forum General
    Replies: 22
    Last Post: - 11th January 2008, 21:51
  3. PICBasic Pro vs Proton PICBasic
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd November 2006, 16:11
  4. picbasic 2.46
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th April 2005, 03:34
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts