Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
eeprom.c File Reference
Go to the source code of this file.
Functions | |
| unsigned char | eeprom_get_char (unsigned int addr) |
| Read byte from EEPROM. | |
| void | eeprom_put_char (unsigned int addr, unsigned char new_value) |
| Write byte to EEPROM. | |
Detailed Description
Atmel Corporation
- File: eeprom.c
- Compiler: IAR EWAAVR 3.10c
- Support mail: avr@atmel.com
- Supported devices: All devices with split EEPROM erase/write capabilities can be used. The example is written for ATmega48.
- AppNote: AVR103 - Using the EEPROM Programming Modes.
- Description: Example on how to use the split EEPROM erase/write capabilities in e.g. ATmega48. All EEPROM programming modes are tested, i.e. Erase+Write, Erase-only and Write-only.
- Revision:
- 1.6
- Date:
- Friday, February 11, 2005 07:16:44 UTC
Definition in file eeprom.c.
Function Documentation
| unsigned char eeprom_get_char | ( | unsigned int | addr ) |
| void eeprom_put_char | ( | unsigned int | addr, |
| unsigned char | new_value | ||
| ) |
Write byte to EEPROM.
This function writes one byte to a given EEPROM address. The differences between the existing byte and the new value is used to select the most efficient EEPROM programming mode.
- Note:
- The CPU is halted for 2 clock cycles during EEPROM programming.
- When this function returns, the new EEPROM value is not available until the EEPROM programming time has passed. The EEPE bit in EECR should be polled to check whether the programming is finished.
- The EEPROM_GetChar() function checks the EEPE bit automatically.
- Parameters:
-
addr EEPROM address to write to. new_value New EEPROM value.
Generated on Tue Jul 12 2022 20:45:32 by
1.7.2