Go to Post that....was more far-fetched than the tennis ball I threw for my dog earlier today... - TeknicllyInsane [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2008, 19:37
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
what is the eeprom write bandwidth?

If I want to fill the eeprom with data in a period of 15 seconds, that's 1024/15 = 69 bytes per second. I know that the bandwidth is less than 38 bytes per second, otherwise eeprom.c would not need a queue.

I'm trying to size the queue to not overflow at 69 bytes per second. I guess I could make it 1024 bytes (but is that itself a problem?).
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
  #2   Spotlight this post!  
Unread 16-02-2008, 20:31
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: what is the eeprom write bandwidth?

Quote:
Originally Posted by gnormhurst View Post
If I want to fill the eeprom with data in a period of 15 seconds, that's 1024/15 = 69 bytes per second. I know that the bandwidth is less than 38 bytes per second, otherwise eeprom.c would not need a queue.

I'm trying to size the queue to not overflow at 69 bytes per second. I guess I could make it 1024 bytes (but is that itself a problem?).
If you're referring to my code, you can also call EEPROM_Write_Handler() multiple times per 26ms loop. Just be aware that
EEPROM_Write_Handler() takes about two milliseconds to execute.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 17-02-2008, 23:47
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: what is the eeprom write bandwidth?

Quote:
Originally Posted by Kevin Watson View Post
If you're referring to my code, you can also call EEPROM_Write_Handler() multiple times per 26ms loop. Just be aware that
EEPROM_Write_Handler() takes about two milliseconds to execute.

-Kevin
I am using your code (thanks!). And if had taken a moment to look at the write handler I would have seen that the queue size is decremented every call. (I had imagined that the eeprom write operation was asynchronous, and the write handler was just periodically checking to see if the current byte was done.)

I think that means that I can add a second call to the write handler and get a write bandwidth of 38 * 2 = 76 bytes per second, which is (on average) fast enough to fill the eeprom during autonomous (15 * 76 = 1140 > 1024). The only question that remains is whether I will overrun the queue buffer with a burst. I guess I'll just have to try it.
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi to all Readers, wondering what to write in my first message NickolasVanily Chit-Chat 3 30-12-2006 23:18
Extra Bandwidth on the OI? mechanicalbrain Programming 4 06-03-2006 16:30
You write the forum rules Ken Leung CD Forum Support 8 17-01-2005 11:18
read/write EEPROM on 18F8520 WizardOfAz Programming 39 22-03-2004 13:32
What program should I write? rbayer Programming 24 03-10-2003 20:07


All times are GMT -5. The time now is 17:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi