I am sending five bytes. I needs loop that will send each byte and check weather slave is sending A/N. I want to create a pseudo code that satisfies all the conditions in image
Code:
void main ()
{
start();
for ( i = 0; i <5; i++ )
{
}
}
The DS1337 doesn't care how you store it on the master end. It just wants a 7 bit address followed by a R/W bit. Note, technically the address is 0x68 not 0xD0 as you show above.
Personally, I'd store it as an unsigned char or uint8_t or byte etc.
The DS1337 doesn't care how you store it on the master end. It just wants a 7 bit address followed by a R/W bit. Note, technically the address is 0x68 not 0xD0 as you show above.
Personally, I'd store it as an unsigned char or uint8_t or byte etc.
Yes i understand. first post show my understanding to write operation. In this I have shown how to send byte from master to DS1337. I have to store this data in the master first. Only then I can send this data to Slave. I stored the address of Slave and address of seconds register.
assuming I have sent slave address then second register address and now I want to send data that may be range 00 to 59
What is meaning of range between 00 to 59 ? I think I have to set register to 00 and value of register will increment by one up to 59 counts