TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139073 times)
  2. FAT32 Library (71595 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27876 times)
  9. PID Library (26859 times)
  10. microSD click (26130 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

read and write int, long, float for internal EEPROM

Rating:

0

Author: Roman Toropov

Last Updated: 2017-03-03

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Internal MCU modules

Downloaded: 717 times

Followed by: 5 users

License: MIT license  

Using built-in library "EEPROM"
read and write data size of int, long, float

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "read and write int, long, float for internal EEPROM" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "read and write int, long, float for internal EEPROM" changes.

Do you want to report abuse regarding "read and write int, long, float for internal EEPROM".

  • Information
  • Comments (1)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

#include "ee_float.h"
 

unsigned int tok;        // double-byte variable "tok"
tok=eee_read_int(0x00);  // read tok from eeprom on adress 0x00
eee_write_int(0x00,tok); // write tok in eeprom on adress 0x00

float Fy;
E2P_write_float(0x06,Fy); // record in eeprom on adress 0x06 float Fy=3.1415926
Fy=E2P_read_float(0x06); // read from adress 0Ñ…06 float Fy=3.1415926

long Lx;
E2P_write_long(0x02,Lx); // record in eeprom on adress 0x02 long Lx=345867;
Lx=E2P_read_long(0x02); // read from adress 0Ñ…02 long Lx=345867

ALSO FROM THIS AUTHOR

The 11th version of the automatic battery Charger/discharger up to 40v up to 50A

0

Programmable synchronous step-down regulator, Based on: ATmega1284 with LCD 4x20, Keypad 4x4, ADC ADS8341, DAC 2*DAC8830 and MCP4921, ACS758xCB-050B, TL494, IR2184, RTC DS3231, DS18B20 and USB UART FT232RL. Algorithms: IUoU, IUIoU, IUo, IUIo graphs: http://www.jgdarden.com/batteryfaq/carfaq9.htm#algorithms

[Learn More]

RTC DS3231 or DS1307 with EEPROM AT24CP32N and ATmega128

0

RTC DS3231 or DS1307 with EEPROM AT24CP32N (the same code for both RTC ! ) LCD 16*2 with keyboard MCU ATmega 128A or ATmega 128-16AU

[Learn More]

The 8th version of the automatic battery charger/discharger up to 20A up to 20V

0

Programmable synchronous step-down regulator, Based on: MCU ATmega128A, LCD 16x2, Keypad, ADC MCP3204, DAC MCP4921, RTC DS3231, AT24C32, DS18B20, ACS712ELCTR-20A-T, TL494, IR2184 and USB UART CP2102. Algorithms: IUoU, IUIoU

[Learn More]