Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    Since the index to array can be number or calculation then it is not possible for the compiler to check that!

    The interpreter is totally different story. Do not compare the two.

    Richard has it...
  2. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    Page 275 of the manual:

    7.6.1 The Danger
    The techniques about to be discussed are not monitored by PBP during compilation
    or execution of the program. This means that you can write some crazy...
  3. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    Maybe because you are altering places in memory of the PIC that you are not aware of?

    In the above example, if x=0, the



    botline[x-16]=32 then a=0


    how does evaluate?
  4. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    LCD's are very slow. What are you expecting in terms of speed?

    Ioannis
  5. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    OK, in the cont constant will be the address. What chip do you have? Is it the "A" type?

    The "A" type needs cont=%0111AAA0

    The plain PCF8574 needs cont=%01000AAA0

    where AAA is the address...
  6. Replies
    68
    Views
    30,411

    Re: I2CWRITE not writing anything on PIC18F45K80

    I think you are missing the control before the address of the I2C commands.

    Also DEFINE I2C_SLOW 1 is NOT needed.

    try this

    Cont = %01000000

    I2CWRITE SDA,SCL,Cont,[%11111111]
    PAUSE 500
Results 1 to 6 of 6