clock frequency conversion for i2c using pic

awaiting

awaiting

@awaiting-ipQI42 Oct 24, 2024
Hello everyone

i am using pic16f877a to send digital data to an ic using i2c communication. The clock frequency(SCL) given of the other ic is 400kHz .for initializing the i2c communication how should i convert it into a 8 bit format or will pic take care of it?

Thank you

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • narayana murthy

    narayana murthy

    @narayana-z4W16q Mar 31, 2011

    i think your ic is micro processor or controller is yes
    the processor and controller will take care of it and i think the 400Khz will be operating frequency of ic so no matter of what it takes
    up to my knowledge it dont make any problem
    hope i am clear in this
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Mar 31, 2011

    awaiting
    Hello everyone

    i am using pic16f877a to send digital data to an ic using i2c communication. The clock frequency(SCL) given of the other ic is 400kHz .for initializing the i2c communication how should i convert it into a 8 bit format or will pic take care of it?

    Thank you
    Are you using Hardware I2C or Software I2C.
    If Hardware I2C then according to the register setting it will generate the SCL (Clock Frequency).
  • awaiting

    awaiting

    @awaiting-ipQI42 Apr 1, 2011

    Thank you guys for you replies.

    i got some output using the default value (1000 0000),but the frequency shown on the DSO was varying a lot,from 100MHz to 500MHz when its range is only upto 150MHz!,may be due to a fault in it.
    but the FM wave was clearly seen,that means atleast the i2c communication was successful.

    abt godfather:can you pl elaborate on the register settings
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Apr 1, 2011

    awaiting
    Thank you guys for you replies.

    i got some output using the default value (1000 0000),but the frequency shown on the DSO was varying a lot,from 100MHz to 500MHz when its range is only upto 150MHz!,may be due to a fault in it.
    but the FM wave was clearly seen,that means atleast the i2c communication was successful.

    abt godfather:can you pl elaborate on the register settings
    First of all let me know which microcontroller you are using? There may be I2C peripheral and that peripheral have its internal register like Control and Status of I2C.
  • awaiting

    awaiting

    @awaiting-ipQI42 Apr 6, 2011

    i am using sn761633 as the other ic along with pic16f877a.It generates FM signal and requires digital data for setting different conditions.
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Apr 6, 2011

    awaiting
    i am using sn761633 as the other ic along with pic16f877a.It generates FM signal and requires digital data for setting different conditions.
    So i think PIC16f877 has inbuilt I2C peripheral?