Re: Programming Flash AM29F200B
Date: Tue, 22 Mar 2005 11:35:01 +0100
Uzytkownik "David" <firstname.lastname@example.org> napisal w
> On Tue, 22 Mar 2005 10:48:12 +0100, marcin.parchomiuk wrote:
>> Uzytkownik "David" <email@example.com> napisal w
>>> On Tue, 22 Mar 2005 00:02:27 +0100, marcin.parchomiuk wrote:
>>>> It cooperates excellent with programmer but i am trying to write data
>>>> microcontroller. Flash requires 4 cycles to write a bite/word:
>>>> addr/data = 555/AA , 2AA/55, 555/A0, PA/PD
>>>> I do above commands and each cycle i apply #WE-LOW,#WE-HIGH, holding
>>>> #OE-HIGH. The rwsult is fail to program, what is wrong? Without a
>>>> can read previously programmed data by programmer but i fail to program
>>>> by my microcontroller. Should i do sth else before initialising
>>>> also fail to erase this flash. thanks for any help...
>>> If you have the flash connected as 16-bit rather than 8-bit, remember
>>> have to double the unlock address to AAA/AA, 554/55, AAA/A0, PA/PD.
>> Maybe u r right, but where did u get this combination for word
>> I've downloaded manual to this flash from AMD site and there is written
>> Program: word 555/AA 2AA/55 555/A0 PA/PD
>> byte AAA/AA 555/55 AAA/A0 PA/PD
>> And i am using 16bit-word mode so is it wrong combination? Y have
>> combination, and what is more i've just noticed that they double
>> in byte mode? Please help me to figure this out, thanks in advance...
> I don't know about byte mode (I assume you have the byte/word select pin
> set correctly?), but when you are using a 16-bit databus, you have your
> processor's A1 pin connected to the flash A0 pin, the processor's A2 pin
> connected to the flash A1 pin, and so on. So an address of 0xaaa in the
> processor's memory map (which will always be a "byte" address) corresponds
> to a 16-bit word address of 0x555, as seen by the flash. Thus you write
> your first 0xaa unlock byte to address 0xaaa so that the flash sees it as
> word address 0x555.
> Check that your address and databus connections are correct, and let us
> know what they are (along with the processor/microcontroller type).
> And drop the "SMS" abbreviations - if you don't have time to write "you"
> in full, don't expect people to have the time to help you.
Great thanks for helping me.
For word mode i keep pin #BYTE- high, and I am 100% sure that I've connected
it properly because i was checking signals during debugging it, so they
were appearing on the right pins.
I have a question: Are you sure addresses should be doubled in word mode in
respect to byte mode? In my manual it is opposite. thanks for help...