You don't have to worry about pages. You just have to write data to external eeprom using the address to where data has to be written. If you use 24LC02 then it has 256 KB X 8 Pages. Address starts from 0x0000. So 1st page is from 0x0000 to 0x00FF. If you write data to address 0x0100 then it will be in the first address of Page 2. You have to use I2C library in mikroC to write or read external eeprom.
If you use 24LC02 then it has 256 KB X 8 Pages. Address starts from 0x0000. So 1st page is from 0x0000 to 0x00FF. If you write data to address 0x0100 then it will be in the first address of Page 2.
2402 has 2kbit of storage respectively 256 Bytes. 0xff is the highest address. A "page" of 2402/4/8 has 16 Bytes. The page structure only matters, if you want to write multiple bytes at once.
Thank you Fvm, this clears my thoughts. I have impression that 24C08 have 8KB, 24C02 2KB, but after your post I read again datasheet and I get it. Its in \"kilo bits\" not in \"kilo bytes\".
24C02 have 2048bits / 8bit per byte = total 256 bytes
24C04 have 4096bits / 8bit per byte = total 512 bytes
24C08 have 8192bits / 8bit per byte = total 1024 bytes (1KB - 1 kilo byte)
For sure datasheet say Kbits not Kbytes. If you need more spaces for bytes use several EEPROMs on I2C, and you need to set for each chip different address.