faizanbrohi
Newbie level 5
HEllo everyone . Does anyone has software I2C Code Compatible with the CCS C Compiler. or the PicBasic Compiler . I want to use I2C Master. Thank you
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Have you looked through the examples of CCS C, and the I2C built-in functions in CCS C help?faizanbrohi said:HEllo everyone . Does anyone has software I2C Code Compatible with the CCS C Compiler. or the PicBasic Compiler . I want to use I2C Master. Thank you
Right,faizanbrohi said:Actually the examples implement Hardware I2C , i want to use Software I2C for PIC16F84A.
#define SCL_IN PIN_B4
#define SCL_IN RB4
Please see
h**p://mcu-programming.blogspot.com/2006/09/ic-bus-interfacing.html
for i2c C Code.
By timing the cycle time of your clock line SCL (how many machine cycles for one period of the SCL line, and the time for one machine cycle).faizanbrohi said:One more thing how would i determine the speed of the software I2C.
faizanbrohi said:Please see
h**p://mcu-programming.blogspot.com/2006/09/ic-bus-interfacing.html
for i2c C Code.
The link does not work.
One more thing how would i determine the speed of the software I2C.
Please see
h**p://mcu-programming.blogspot.com/2006/09/ic-bus-interfacing.html
for i2c C Code.
The link does not work.
One more thing how would i determine the speed of the software I2C.
It is work now.
By timing the cycle time of your clock line SCL (how many machine cycles for one period of the SCL line, and the time for one machine cycle).
Write your C code for I2C, compile it, simulate it (with MPLAB SIM or CCS's simulator), you should be able to count the number of machine cycles it takes for creating one period of the SCL waveform.faizanbrohi said:But it is a little bit complicated for a beginner . can you elaborate it a little. can you tell me how to change/control the clock time of SCL.
Thanks
What is the difference between I2C,SPI,RS232 and UART
explain with specific application if any