hello, I have used NRF52810 TWIM for 24LC08 communication, and I got a problem.
when I want to read data from 24LC08, if the length is not lager than 255, every thing is ok. but if the length is larger than 255, the data reading is abnormal.
then I have checked the datasheet of NRF52810 and 24LC08, and I do not find information about the limit of reading length.
although I can resolve the problem through software, I want to know the reason.
is there some limit of hardware for TWIM reading?
the code of TWIM reading is as follows, please help me to find if there is some problems:
thank you very much! best regards!
Are you testing on a nRF52832? The reason I ask is that the RXD.MAXCNT register for the nRF528332 is 8 bit (maximum value 0xFF), whereas it is 10 bit for the nRF52810 (maximum value 0x3FF).
I do not have NRF52832 for testing, and I only have NRF52810 board.
I have checked that the MCU selected is NRF52810, and is it meaning that it has nothing to do with NRF52832?
I know the RXD.MAXCNT for NRF52810 is 10 bit, but the reason is I cannot read data exceed 255, I do not know the reason. can you give me some suggestions?
You should not see any limitation of 255 bytes in that case. Can you elaborate on how the transaction does not work when it exceeds 255 bytes? Also, can you double check the markings on the chip?
How to properly post source code - not as an image:
I6believe said:if the length is larger than 255, the data reading is abnormal
So have you used the debugger to step through your code and check that your handling of addresses >255 is correct?