I2C Write & Read


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jun 2011
    Posts
    3

    Smile I2C Write & Read

    Hi I am new to this Forum so will say hello to all firstly. I have a question regarding the PBP commands I2CWRITE & I2CREAD and hope someone can shine some light on it. I am successfully writing and reading to/from a 24C01 EEprom, with a Pic 18F2620 chip and am using bits 3 and 4 of PORTA. My question is do the PBP commands used handle the setting up of PORTA, regarding them being digital and not analogue? Having used pics before I am aware of commands like ADCON1 = 7 and CMCON = 7. But have found they make no difference to the operation of the I2C commands. Do I presume right thinking PBP handles the setting of PORTA from analogue default to digital usage. I am asking this to be sure things are working correctly, as this is a security lock application.

    Many thanks in anticipation of any replies
    Last edited by dallowgill; - 14th June 2011 at 17:16. Reason: Typo

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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