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]
Rating:
Author: Roman Toropov
Last Updated: 2017-03-03
Package Version: 1.0.0.0
Example: 1.0.0.0
Category: Internal MCU modules
Downloaded: 718 times
Followed by: 5 users
License: MIT license
Using built-in library "EEPROM"
read and write data size of int, long, float
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".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1440694615_read_and_write_i_mikroc_avr.zip [969B] | mikroC PRO for AVR |
|
#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