Forum Replies Created
-
AuthorPosts
-
karthick.vParticipant
Thanks for your valuable comment. where we use this capture and compare mode in real time appplication.
karthick.vParticipantThanks buddy for this link
karthick.vParticipantSir,
my previous question was wrong what i ment was so for we used to write the data by master and read the data by slave .Is it possible to read data by master and write data by slave if it is possible means what is register value for SSPSTAT,SSPCON1 and SSPCON2 for both master and slave
karthick.vParticipantThanks buddy,I have the following questions
* In RTC why we are first writing and then reading any reason is there and what is the purpose of giving sendi2c(0x0f) in the above program
*In I2C master (receiver) & slave (transmitter) mode: what are the register value for both master & slave
SSPSTAT
SSPCON1
SSPCON2
*which tutorial is best for reading gps and gsm
karthick.vParticipantthanks buddy for clearing my doubt and now i have a clear idea in RTC
karthick.vParticipanthai duddy,The following is the rtc program i have an doubt in this program that why we are giving for hours sendi2c(0x02);//////for minutes sendi2c(0x01);////for seconds sendi2c(0x00);//////date sendi2c(0x04);/////month sendi2c(0x05);//////year sendi2c(0x07);///////// RTC Interface with PIC 16F877A:#include<pic.h>void portconfig();void sendi2c(char x);char receivei2c();void start();void stop();void rpstart();void delay();void lcd_cmd();void cmd(char , char );//void lcd_data(char);char arr[ ]="TIME : : : .";char arr1[ ]="DATE : – – . ";void lcd_con(int );void time();void date();int conv(int i);void rtc_write();void rtc_read();int h,y;void main(){int h,y,D2;portconfig();ADCON1=0X07;lcd_cmd();SSPCON=0X38;SSPCON2=0X00;SSPSTAT=0X80;SSPADD=9;cmd(0X80,0);for(h=0;arr[h]!='