Reading EEPROM from a beginner

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times
Contact:

Reading EEPROM from a beginner

Post by Ron »

Hello,

I was wondering if someone could tell me

How long does it take to read 9 non-consecutive EEPROM addresses and pass this information into variables.


How long does it take to pass data from 9 variables and write 9 non-consecutive EEPROM addresses.

Base PIC controller would be either

16F886 4Mhz or 20MHz

Is thier other factors I have not considered?

Thanks

Ron

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

The easiest way to achieve this is to do the following.

Start the hardware timer TMR1 running.
Perform the read or write operations.
Collect the value in the timer register.

One thing to look out for is to make sure that the timer is not rolling over. ie going from its max value back to 0. This could be done by setting an interrupt to occur if the timer rolls over which prints a warning on the LCD etc.

Post Reply