clock frequency conversion for i2c using pic

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

  • narayana murthy
    narayana murthy
    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
    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
    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
    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
    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
    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?

You are reading an archived discussion.

Related Posts

hi everyone, can anyone explain the working of the circuit given below?please also help me to design it. vcc
System 5000 amongst products on display As a global specialist in the manufacture of industrial laser solutions, JK Lasers (part of the GSI Group) will be participating in the 2011...
If you’re looking for a way to easily Turn your laptop in wireless device try Connectify This Software will convert your laptop in wireless device, also by using extra router...
I read an old but interesting post today on Business Insider (see here: Every Time An Engineer Joins Google, A Startup Dies) that got me thinking. The last line of...
I am very curious about the mobile phone and it's application. In which language the OS and Application are written in? How one can write it's own application for his...