TVI Electronics, LLC Forum Index TVI Electronics, LLC
 Touch Screen LCD Module Support Forum 
 FAQFAQ   SearchSearch   Homepage   MemberlistMemberlist   UsergroupsUsergroups 
 RegisterRegister   Log inLog in 
The time now is Tue Sep 07, 2010 7:21 pm
All times are UTC - 5 (DST in action)
View posts since last visit
View unanswered posts
 Forum index » General Discussion » Hardware Forum
TC51854 Memory
Post new topic   Reply to topic View previous topicView next topic
Page 1 of 1 [14 Posts]  
Author Message
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
 TC51854 Memory
replace AT45DB041B with AT45DB081D?

Hi, I recently got a TC51854 and I have a quick question regarding memory. Is it possible to easily replace the AT45DB041B onboard with a AT45DB081D? This would effectively double the memory, and allow up to 410 pages to be stored Very Happy How much modification would need to be made to get this to work or could I pay for the firmware update and replace the chip myself? (they're about $1.80 from digikey..)

Thanks for a great product btw!

PostPosted: Tue Apr 08, 2008 5:25 am
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
vivat
Site Admin


Offline Joined: 28 Nov 2004
Posts: 70
Location: USA
Country Flag:
Unfortunately, the current TC51854 firmware will not support AT45DB081D DataFlash memory. There are some differences in AC and DC Characteristics between the AT45DBxxx "B" and new "D" DataFlash families. The new AT45DBxxx "D" DataFlash families require a different communication protocol. Therefore, it will require modification of the firmware .

If you're interested in replacing AT45DB041B with a AT45DB081D DataFlash and modifying the TC51854 controller's firmware, please PM me or email TVI Electronics for further assisstance.
_________________
Support Group,
TVI Electronics

PostPosted: Wed Apr 09, 2008 2:21 pm
 View user's profile Send private message Visit poster's website
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
PM sent.

PostPosted: Wed Apr 09, 2008 7:51 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
This may help..
"Migrating from the "B" to the New "D" DataFlash Family"
http://www.atmel.com/dyn/resources/prod_documents/doc3644.pdf

PostPosted: Wed Apr 09, 2008 7:59 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
vivat
Site Admin


Offline Joined: 28 Nov 2004
Posts: 70
Location: USA
Country Flag:
I've briefly compared the two datasheets of AT45DB041B and AT45DB081D DataFlash memories. It seems to me that AT45DB081D might work as a replacement for AT45DB041B in current TC51854 configuration. Once you'll get your new xxxxxx081D DataFlash, you can give it a try. If you'll be able to successfully read/write screens, all we'll have to do is modify the firmware and DCA software to support additional 204 screens.
_________________
Support Group,
TVI Electronics

PostPosted: Thu Apr 10, 2008 8:18 am
 View user's profile Send private message Visit poster's website
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
Hopefully that's the case! However, upon reading just the "Main Memory Page Read" section, there are some discrepancies between the two.. Quoting from the datasheet, for the AT45DB041B:
Code:
To start a page read, an opcode of 52H or D2H must be clocked into the device followed by 24 address bits and 32 don’t care bits.


And for the AT45DB081D:
Code:
To start a page read from the DataFlash standard page size (264 bytes), an opcode of D2H must be clocked into the device followed by three address bytes (which comprise the 24-bit page and byte address sequence) and 4 don’t care bytes.


Same opcode, however less don't care bits to be clocked in after the 24-bit address...
Code:
The don’t care bytes that follow the address bytes are sent to initialize the read operation. Following the don’t care bytes, additional pulses on SCK result in data being output on the SO (serial output) pin.


So, after 4 don't care bit's it will already start putting the data onto the SO pin, so with the current firmware it might ignore the first 28 bits. This shouldn't be too hard to change in the firmware.

The Write to Buffer etc procedures experiences similar differences, which is odd because that Atmel App Note posted above says the B to D devices are backward compatible..?!

PostPosted: Thu Apr 10, 2008 5:33 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
vivat
Site Admin


Offline Joined: 28 Nov 2004
Posts: 70
Location: USA
Country Flag:
The Atmel documentation is a bit confusing. The 4 don't care bytes requred after the 24-bit page address in AT45DB081D are the same 32 don't care bits in AT45DB041B. So, my guessing is that you will be able to use half of the chip memory without making any firmware modifications.
_________________
Support Group,
TVI Electronics

PostPosted: Thu Apr 10, 2008 6:22 pm
 View user's profile Send private message Visit poster's website
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
Ah right! I didn't even see that it says Bytes and Bits! Confusing!

Well that makes more sense now Smile I'll post again once I get the parts and swap over the IC.

Thanks vivat

PostPosted: Thu Apr 10, 2008 6:39 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
<del>The AT45DB081's arrived today, I should have a chance to swap them over tonight and will report back if they work straight away or not Smile (tonight probably being 4am UTC-6 time, it's 11AM here)</del>

..left them at work after all that Sad

PostPosted: Thu Apr 17, 2008 8:08 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
It works! Without any modification can now save/load pages. However as the fonts were stored in pages 1-4 I now no longer have them Sad Text now just comes up as a line of dots. Is it possible to either have them sent to me, or can I extract them from the other eeprom?

Also now, how could I go about having the firmware updated to recognise the additional pages? (I have an AVRISPmkII programmer so I could update the firmware)

PostPosted: Tue Apr 22, 2008 6:12 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
vivat
Site Admin


Offline Joined: 28 Nov 2004
Posts: 70
Location: USA
Country Flag:
Check your PM for username and password for TC51854 controller firmware download.

It'll take some time to modify the firmware and the DCA software to support the AT45DB081. I'll let you know when it's ready.
_________________
Support Group,
TVI Electronics

PostPosted: Tue Apr 22, 2008 9:16 pm
 View user's profile Send private message Visit poster's website
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
Thanks vivat, no problems thanks heaps for your help.

One thing I was wondering about though, is when the page is selected you send Chr (Cool & Chr (screen number (from 1 to 204)) - obviously the second byte can only go up to 255, so would it then have to be changed so to select screen you send something like Chr (Cool & Chr (byte2) & Chr (byte1) - eg to select page 300, Chr (Cool & Chr (1) & Chr (44) or something?

Regards,
Rowan

PostPosted: Tue Apr 22, 2008 9:38 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
vivat
Site Admin


Offline Joined: 28 Nov 2004
Posts: 70
Location: USA
Country Flag:
Hi rtaubitz,

The TC51854 firmware and DCA software are now available to support AT45DB081D flash memory. To download, click the links below. Use your custom access user name and password to download the files.

DCA with 8Mb support
TC51854 firmware with AT45DB081D support

There are two new commands added to the firmware, command 35 and 36.

To store the first 255 screens, use command 17 and screen number from 1 to 255.
To store screens 256-408, use command 35 and screen number minus 255. Example of how to store screen number 256: printf("%c",35);printf("%c",1);

To load first 255 screens from the memory, use command 8 and screen number from 1 to 255.
To load screens 256-408, use command 36 and screen number minus 255. Example of how to load screen number 256: printf("%c",36);printf("%c",1);
_________________
Support Group,
TVI Electronics

PostPosted: Mon Apr 28, 2008 7:36 pm
 View user's profile Send private message Visit poster's website
Reply with quote Back to top 
rtaubitz


Offline Joined: 07 Apr 2008
Posts: 19
Location: Melbourne, Australia
Country Flag:
Very Happy Awesome, thanks vivat!

Confirmed working! Thanks again, i'll be sure to buy again from TVI Smile

PostPosted: Tue Apr 29, 2008 6:44 pm
 View user's profile Send private message Send e-mail
Reply with quote Back to top 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topicView next topic
 Forum index » General Discussion » Hardware Forum
Jump to:  

You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You cannot delete your posts in this forum
You can vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

© 2004-2010 TVI Electronics, LLC. All Rights Reserved. Forum with support of Syndicator RSS