Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic16f877, lcd and rtc ds1307

Status
Not open for further replies.

durgap

Newbie level 3
Joined
Mar 27, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
Sir,
Suppose there is a working pic say 16f877 + lcd 44780 + ds1307.
Apart from accessing various data from rtc the pic is also displaying LCD with some other data.
1. What will happen if I remove the DS1307 ? Will the pic hang/ ignore the rtc chip. and continue to work.
2. If it hangs what is flag that will cause it to, is it SSPIF in PIR1
3. What is first cause to sense there no i2c chip.


Thanks
 

what you should do is during chip initialisation code is to check if the chip exists, e.g. with I2C you should get an address timeout error if the addressed chip does not exists, as a further test you could read the current date and time from the RTC. If you failed to find the chip your code would note the fact and not try to talk to it.
However, it is a good idea to have a watchdog timer just in case the system hangs or gets into an endless loop.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top