| ??? 03/28/05 06:33 Read: times |
#90515 - Register Pointer Responding to: ???'s previous message |
Gia:
In the data sheet the description of the read command tells how the register pointer is setup. Namely you use the write command in its normal manner to pre-set the register pointer. See the following text extracted from the DS1307 data sheet: Slave Transmitter Mode (Read Mode): The first byte is received and handled as in the slave receiver mode. However, in this mode, the direction bit will indicate that the transfer direction is reversed. The DS1307 transmits serial data on SDA while the serial clock is input on SCL. START and STOP conditions are recognized as the beginning and end of a serial transfer (see Figure 6). The slave address byte is the first byte received after the START condition is generated by the master. The slave address byte contains the 7-bit DS1307 address, which is 1101000, followed by the direction bit (R/W), which is 1 for a read. After receiving and decoding the slave address the DS1307 outputs an acknowledge on SDA. The DS1307 then begins to transmit data starting with the register address pointed to by the register pointer. If the register pointer is not written to before the initiation of a read mode the first address that is read is the last one stored in the register pointer. The register pointer automatically increments after each byte are read. The DS1307 must receive a Not Acknowledge to end a read. Michael Karas |
| Topic | Author | Date |
| RTC register pointer | 01/01/70 00:00 | |
| why pointer? | 01/01/70 00:00 | |
| Register Pointer | 01/01/70 00:00 | |
| Register Pointer | 01/01/70 00:00 | |
| AT89S51 + PCF8583 | 01/01/70 00:00 | |
| Re:RTC | 01/01/70 00:00 | |
Have you read this? | 01/01/70 00:00 |



