Dear all
This is a part of code from David Lincoln (book). Please could you help me to know how calculation the number for I2c 16kb (24LC16):
*symbol memmax = ???? What number must set here for 24lc16 please
*symbol memaddress = ????What number must set here for 24lc16 please
I hope you understand my question and help me. Thank you so much.
This is a part of code from David Lincoln (book). Please could you help me to know how calculation the number for I2c 16kb (24LC16):
*symbol memmax = ???? What number must set here for 24lc16 please
*symbol memaddress = ????What number must set here for 24lc16 please
I hope you understand my question and help me. Thank you so much.
Code:
The code for I2C memory expansion is:
12C Memory expansion using 2 x 25LC256 - Test routine
#picaxe 18X
#no_data
symbol memmin = 0 `Define the starting address for each chip
symbol memmax = 1023 `Define the ending address for each chip
symbol memaddress = w6 `I2c memory address
Last edited: