Página 1 de 1

Duvida na escrita em bloco numa 24LC256.

MensagemEnviado: 22 Jul 2008 23:10
por Msconfig
Existe alguma limitacao de "page boundaries" para escrever um bloco de 64 bytes numa 24LC256?

Ou posso escrever em qualquer endereco? Exceto é claro, nos 63 finais...

O datasheet é meio confuso:

Note: Page write operations are limited to writing
bytes within a single physical page,
regardless of the number of bytes actually
being written. Physical page boundaries
start at addresses that are integer
multiples of the page buffer size (or ‘page
size’) and end at addresses that are
integer multiples of [page size – 1]. If a
Page Write command attempts to write
across a physical page boundary, the
result is that the data wraps around to the
beginning of the current page (overwriting
data previously stored there), instead of
being written to the next page as might be
expected. It is therefore, necessary for the
application software to prevent page write
operations that would attempt to cross a
page boundary.

MensagemEnviado: 23 Jul 2008 07:33
por eletroinf
A limitação é pra escrita de um bloco, com incremento de endereço interno da memória. Quando tu usa a escrita de página, é só selecionar o endereço inicial e mandar os bytes, que a memória vai incrementando o endereço internamente, SÓ QUE, isso só serve pra esse bloco aí de 64 bytes. Por exemplo, se tu quer mandar um bloco de dados e começar no endereço 100, o contador interno de endereços vai subindo até 127; se tu continuar mandando dados, o próximo endereço vai ser 64 e assim vai indo... Nesse exemplo, pra continuar subindo os endereços, quando chega a 127 tem que mandar um novo comando de endereço para o 128, aí tu consegue mandar mais 64 bytes um na cola do outro, ou seja, vai até o end. 192.

MensagemEnviado: 23 Jul 2008 09:33
por Msconfig
Obrigado eletro!

Realmente em 64 (0x40) ocorre o wrap around:

Imagem