Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Data Logger Using PIC & 24LC16B (EEPROM)

Status
Not open for further replies.

nicko-391

Member level 2
Joined
Dec 8, 2010
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Sri Lanka
Activity points
1,542
Im going to make a Digital-Multimeter with a data Logger.External EEPROM is used
to store data.

Multi-meter has five digits.How can I manage EEPROM which has 2K memory to store measured values with Unit. Please give me & Idea.
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
any idea what range of measured values you are going to store and how many different units ?
The most space efficent way to store data is in binary rather than as character strings.
for example you could always store voltages in mVolts using a 24 bit number (3 bytes in EEPROM) giving a range of approx -8388.608 to + 8388.608 volts. If you don't need such a range so you could use some of the bits to indicate the units Mvolts, mAmps, ohms, etc.
it you need a larger range you could use 32 bit numbers etc.
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,181
Helped
1,140
Reputation
2,299
Reaction score
1,116
Trophy points
1,403
Location
Brazil
Activity points
53,323
5 digits means 10^5 magnitude ( 99.999 ) and with only 3 bytes ( 2^24 ) you can manage that storage.
Even wasting 1 byte ( 3+1 ) to make easyer the pointer access you can achieve ~250 records ( 2K/4 ).

+++
 

nicko-391

Member level 2
Joined
Dec 8, 2010
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Sri Lanka
Activity points
1,542
There are 17 units, except AC/DC. Maximum Value is 19,999.
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
you could use three bytes for each value
1 byte holding the units
2 bytes holding a signed 16 bit integer range -32768 to 32767
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top