Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: richard; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    works perfectly on simulator

    had to increase some delays for slow old lcd
    pause 1000
    ' Set LCD Data port
    DEFINE LCD_DREG PORTC
    DEFINE LCD_DBIT 4
    DEFINE LCD_RSREG PORTB
    DEFINE...
  2. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    what code ?
    minimal, complete and verifiable example MCVE , its not hard

    this code

    '* pic16f1825 : eprom addr =$a0 #CONFIG
    __config _CONFIG1, _FOSC_INTOSC &...
  3. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    this


    '* pic16f1825 : eprom addr =$a0
    #CONFIG
    __config _CONFIG1, _FOSC_INTOSC & _CP_OFF & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CLKOUTEN_OFF
    ...
  4. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    DPIN Var PORTA.2 ' I2C data pin
    CPIN Var PORTA.1 ' I2C clock pinB0 Var wordB1 Var byteB2 Var byteX var bytex=0 For B0 = 0 To 15 b1=b2 I2CWRITE DPIN,CPIN,$A0,B0,[99] ...
  5. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    no the compiler produces code to I2CREAD DPIN,CPIN from device $A0 @eeprom address B0,X then read nothing as asked for
    there is no error



    produce a compliable example that...
  6. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    yet still another pointless snippet , with nothing defined





    you persist in using incorrect syntax , it should be

    I2CREAD DPIN,CPIN,$A0,B0,[X ]
  7. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    to my surprise i found the 24c32 on my ds3231 module did not behave as expected when the resistor block [circled] was removed
    to conserve energy for a battery device
    9084

    the address was still...
  8. Replies
    30
    Views
    15,420

    Re: I2CRead & I2CWrite not working as expected

    or read the data sheet again and work out the consequences of floating address pins on the device address
Results 1 to 8 of 8