i2c Archives - electroSome https://electrosome.com/topic-tag/i2c-2/ You Inspire.....We Create..... Fri, 21 Dec 2018 11:41:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 I2C Communication with other than designated pins https://electrosome.com/topic/i2c-communication-with-other-pins/ Tue, 18 Dec 2018 11:52:39 +0000 https://electrosome.com/topic/i2c-communication-with-icsp-pins/ I am using PIC 18F87k90. Is it possible to do serial I2C communication with other than SDA and SCL pins. Can I use PGD and PGC pins ?

The post I2C Communication with other than designated pins appeared first on electroSome.

]]>
I2C PIC18F4550 to PIC18F4550 https://electrosome.com/topic/i2c-pic18f4550-to-pic18f4550/ Thu, 31 Aug 2017 10:32:41 +0000 https://electrosome.com/topic/i2c-pic18f4550-to-pic18f4550/ Hi, I was checking your nice tutorial from here: I²C Communication with PIC Microcontroller – MPLAB XC8 <div class=”post-message ” dir=”auto” data-role=”message”> <div> I decided to try it with PIC18F4550 to PIC18F4550 and I went in troubles. I have tested your Proteus project with PIC16F877A and works fine. Then I decided to replace PIC16F877A with […]

The post I2C PIC18F4550 to PIC18F4550 appeared first on electroSome.

]]>
PIC I2C Slave Mode Multi Byte Reception https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/ Tue, 25 Apr 2017 18:10:05 +0000 https://electrosome.com/topic/i2c-slave-mode/ I am sending 32 bytes from master microcontroller using your I2C library. How can I do that ? Your library handles only single byte of information. ////SLAVE CODE DATA READ // if(!SSPSTATbits.D_nA && !SSPSTATbits.R_nW) { z = SSPBUF;//Address Read while(!BF); d=SSPBUF;      //data Read SSPCONbits.CKP = 1; inputflag=1; }

The post PIC I2C Slave Mode Multi Byte Reception appeared first on electroSome.

]]>
I2C between PIC18F4550 (Master) and Atmega 328P https://electrosome.com/topic/i2c-pic18f4550-atmega-328p/ Mon, 16 Jan 2017 19:05:28 +0000 https://electrosome.com/topic/i2c-between-pic18f4550-master-and-atmega-328p/ Hi everyone, I have a problem with I2C connection between my PIC 18F4550 and Atmega 328p (Arduino Uno). In PIC I have 20Mhz XTAL and in Atmega also. I think that the problem is in Atmega(Slave), because when i run the program in PIC, the SDA and SCL  works well ( i see this in oscilloscope). […]

The post I2C between PIC18F4550 (Master) and Atmega 328P appeared first on electroSome.

]]>
I2C Communication between two PIC16F877 https://electrosome.com/topic/i2c-communication-between-two-pic16f877/ Mon, 04 Apr 2016 11:04:35 +0000 https://electrosome.com/topic/i2c-communication-between-two-pic16f877/ Hi everyone; I am trying to accomplish I2C communication between two PIC16F877. But I did not succeed. My codes in below. Can any body help me Master PIC code : #include <xc.h> #pragma config FOSC = XT #pragma config WDTE = OFF #pragma config PWRTE = OFF #pragma config CP = OFF #pragma config BOREN […]

The post I2C Communication between two PIC16F877 appeared first on electroSome.

]]>
I2C Communication between Raspberry Pi and PIC Microcontroller https://electrosome.com/topic/i2c-communication-between-raspberry-pi-and-pic-microcontroller/ Sat, 26 Dec 2015 17:02:10 +0000 https://electrosome.com/reply/11934/ I have been using I2C between Rpi & PIC16f877 with the PIC running at 3V. I would like to use 5V on all circuits and supplies. Is it possible to use 5V on the I2C pins of RPI? I cannot see that a levelshifter will work, please help. Thx  

The post I2C Communication between Raspberry Pi and PIC Microcontroller appeared first on electroSome.

]]>
INTERFACING OF DS1307 WITH PIC16F877A WITHOUT USING LIBRARY FUNCTIONS https://electrosome.com/topic/interfacing-of-ds1307-with-pic16f877a-without-using-library-functions/ Wed, 18 Nov 2015 06:05:21 +0000 https://electrosome.com/topic/interfacing-of-ds1307-with-pic16f877a-without-using-library-functions/ */use pull up resistors of 330k ,crystal freq:32.768/* Program: #include "uartfun.h" //created myown header file for uart functions void i2c_intialise(int); void i2c_start(); void i2c_stop(); void i2c_restart(); void i2c_ack(); void i2c_nack(); void WaitSSP(); void i2c_send(unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int); unsigned int i2c_readx(int); void wait(); void main() { unsigned char time[20]="Time:00:00:00"; unsigned char dayx[20]="Day:__"; […]

The post INTERFACING OF DS1307 WITH PIC16F877A WITHOUT USING LIBRARY FUNCTIONS appeared first on electroSome.

]]>