Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Resource icon

C18 code for interfacing a pic to a ds 12885 / ds 12887 2011-02-26

Status
Not open for further replies.

Wond3rboy

Member
Wond3rboy submitted a new article:

C18 code for interfacing a PIC to a DS 12885 / DS 12887 - Hi, this is a code snippet for writing to and reading from the registers of a BQ3287(DS12885-DS12C8

Hi, this is a code snippet for writing to and reading from the registers of a BQ3287(DS12885-DS12C887A) Real Time Clock using INTEL timing, it has been tested using 16Mhz, 4Mhz, 10Mhz XTALs.

Code:
//Cut and paste these register definitions in your main code, 
//add this C file and call the read and write functions
//whenever a Read or Write operation is to be performed.The syntax of the functions is:
//write_RTC(address,data);
//data=read_RTC(address);
// where data and address are 8...

Read more about this article...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top