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.

[51] embedded c program code

Status
Not open for further replies.

nidhublessy

Newbie level 4
Joined
Feb 14, 2014
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
39
i want to write embedded c program to interface DS1307RTC with ADuC845 Microcontroller(8051 based core) pllzz someone who help to write the program
 

Inter_integrated Circuit Communication you have to use
First assign make some function like I2C Start , I2C Write , I2C Stop , I2C Read ,

Then You have to read the value from DS1307 via I2C
for getting data on LCD, DS1307 YOu have to convert it from BCD to ASCII Code
 

you have many sample codes on engineersgarage.com
 

There are numerous examples available in this forum, search for "DS1307 8051" and the ADuC845 has a hardware I2C module which should simply the I2C interface routines.


BigDog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top