bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
Guys,
I want to set alarm from my EEPROM and compare it to current time on RTC .
How can I save 23 into address 00 ? ---> hour 23, 23:00
I used ATMEGA128
I've done :
Thanks for reading and helping
I want to set alarm from my EEPROM and compare it to current time on RTC .
How can I save 23 into address 00 ? ---> hour 23, 23:00
I used ATMEGA128
I've done :
Code:
unsigned char alarm_hour;
alarm_hour++;
if (alarm_hour >= 23)
{
alarm_hour = 0;
}
uint8_t ByteOfData ;
ByteOfData = alarm_hour ;
eeprom_update_byte (( uint8_t *) 00, ByteOfData );
Thanks for reading and helping