DS1307 CONNECTED TO ATMEGA8 BY HARDWARE TWI(I2C) - READ/WRITE FROM/TO DS1307
$30-100 USD
Igangværende
Slået op næsten 18 år siden
$30-100 USD
Betales ved levering
Hi, I need to connect DS1307 to Atmega8L.
I need two procedures that I could call.
DS1307_READ:
and
DS1307_WRITE:
These procedures should write to or read from dataspaces:
.equ THOUR = $0145
.equ TMIN = $0146
.equ TSEC = $0147
.equ TYEARH = $0149
.equ TYEARL = $014A
.equ TMONTH = $014B
.equ TDAY = $014C
(the names should stay the same byt adress could change as You wish)
and of course these should inteface with DS1307 RTC CLOCk.
Each dataspace byte is written in hex so, for example:
(a date: 24.06.2006)
TYEARH = 0x20
TYEARL = 0x06
TMONTH = 0x06
TDAT = 0x24
(time: 22:18:13)
THOUR = 0x22
TMIN = 0x18
TSEC = 0x13
RTC should work always in 24 h mode.
It may use HARDWARE built TWI module(PC5,PC4 pins) or software implemented TWI(as the Programmer wish is)
Twi should work on 100 khz mode because DS1307 can't faster. Atmega 8L will be clocked by internal clock 8 Mhz.
The code has to be written in pure ASM(avr studio compatible)
Code may be as large as The Programmer wish but fast as fast It can be.
And if It can be done the DS1307 and ATMEGA8 should work on TWI without external resistor(I don't know if it can be done or not, so If You can do it I will be pleased)(maybe internal resistors can be used??)
Thank You and I'm looking forward for fair offers.
Christopher
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Atmeg8l internal 8Mhz,
hardware twi module used,
Ds1307 connected(better without external pullup resistors)