Skip to main content
edited body
Source Link
Majenko
  • 105.5k
  • 5
  • 80
  • 138

I'm not clear if this is the page address or the byte address from which I will start recording?

That is the byte address. As the data sheet in section 8.5.13 says:

If an entire 256 byte page is to be programmed, the last address byte (the 8 least significant address bits) should be set to 0. If the last address byte is not zero, and the number of clocks exceed the remaining page length, the addressing will wrap to the beginning of the page.

In other words: if you want to write an entire page then start at the beginning of the page. If you don't and you write more than there is room left in the page you will wrap round back to the beginning of the page again.

So if you write two bytes starting with address 0x100F0x10FF you will actually write one at 0x100F0x10FF and the second at 0x1000, not 0x10100x1100, since you wrap at the page boundary.

I'm not clear if this is the page address or the byte address from which I will start recording?

That is the byte address. As the data sheet in section 8.5.13 says:

If an entire 256 byte page is to be programmed, the last address byte (the 8 least significant address bits) should be set to 0. If the last address byte is not zero, and the number of clocks exceed the remaining page length, the addressing will wrap to the beginning of the page.

In other words: if you want to write an entire page then start at the beginning of the page. If you don't and you write more than there is room left in the page you will wrap round back to the beginning of the page again.

So if you write two bytes starting with address 0x100F you will actually write one at 0x100F and the second at 0x1000, not 0x1010, since you wrap at the page boundary.

I'm not clear if this is the page address or the byte address from which I will start recording?

That is the byte address. As the data sheet in section 8.5.13 says:

If an entire 256 byte page is to be programmed, the last address byte (the 8 least significant address bits) should be set to 0. If the last address byte is not zero, and the number of clocks exceed the remaining page length, the addressing will wrap to the beginning of the page.

In other words: if you want to write an entire page then start at the beginning of the page. If you don't and you write more than there is room left in the page you will wrap round back to the beginning of the page again.

So if you write two bytes starting with address 0x10FF you will actually write one at 0x10FF and the second at 0x1000, not 0x1100, since you wrap at the page boundary.

Source Link
Majenko
  • 105.5k
  • 5
  • 80
  • 138

I'm not clear if this is the page address or the byte address from which I will start recording?

That is the byte address. As the data sheet in section 8.5.13 says:

If an entire 256 byte page is to be programmed, the last address byte (the 8 least significant address bits) should be set to 0. If the last address byte is not zero, and the number of clocks exceed the remaining page length, the addressing will wrap to the beginning of the page.

In other words: if you want to write an entire page then start at the beginning of the page. If you don't and you write more than there is room left in the page you will wrap round back to the beginning of the page again.

So if you write two bytes starting with address 0x100F you will actually write one at 0x100F and the second at 0x1000, not 0x1010, since you wrap at the page boundary.