| ??? 02/25/09 08:59 Read: times |
#162808 - uint8_t range Responding to: ???'s previous message |
David Prentice said:
There are two problems with your code:
Also you use a uint8_t for addr instead of a uint16_t. You won't get far on a 24C512 with a uint8_t ! David. I am using address as unsigned int [16-bit type for sdcc ] type. And the write here is byte write. The maximum bytes written is less than address range of uint_t. |
| Topic | Author | Date |
| AT24C512 Sequential Read failed!! | 01/01/70 00:00 | |
| the IIC engine is identical ... | 01/01/70 00:00 | |
| Sample code | 01/01/70 00:00 | |
| what are the symptoms? | 01/01/70 00:00 | |
| symptoms | 01/01/70 00:00 | |
| A common mistake... | 01/01/70 00:00 | |
| Your code looks fine | 01/01/70 00:00 | |
| It took me ages ! | 01/01/70 00:00 | |
| uint8_t range | 01/01/70 00:00 | |
| confusion | 01/01/70 00:00 | |
| you use uint8_t in your read_seq () | 01/01/70 00:00 | |
| Do you want the full corrected source code ? | 01/01/70 00:00 | |
| my own code | 01/01/70 00:00 | |
| An explanation | 01/01/70 00:00 | |
| code update | 01/01/70 00:00 | |
| diff is your friend | 01/01/70 00:00 | |
| size -1 | 01/01/70 00:00 | |
| write program, rather than code... | 01/01/70 00:00 | |
It's Working | 01/01/70 00:00 |



