پاسخ : rtc ds1307 ساعت ارزان ولی بدون مشتری
The DS1307 can be run in either 12-hour or 24-hour mode. Bit 6 of the hours register is defined as the
12- or 24-hour mode select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is
the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10 hour bit (20-
23 hours).
متن بالا کاملا مشخصه باید چیکار کنین
اینم به ابتدای برنامه بعد از کانفیگ پایه های ds1307 اضافه کن بعد فرکانس 1 هرتز از پایه ds بگیر(البته حتما باید پایه رو پول پ کنی)
I2cstart
I2cwbyte Ds1307w
I2cwbyte 07
I2cwbyte &B10010000 , Ack
I2cstop
بازم مشکلی بود در خدمتم
The DS1307 can be run in either 12-hour or 24-hour mode. Bit 6 of the hours register is defined as the
12- or 24-hour mode select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is
the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10 hour bit (20-
23 hours).
متن بالا کاملا مشخصه باید چیکار کنین
اینم به ابتدای برنامه بعد از کانفیگ پایه های ds1307 اضافه کن بعد فرکانس 1 هرتز از پایه ds بگیر(البته حتما باید پایه رو پول پ کنی)
I2cstart
I2cwbyte Ds1307w
I2cwbyte 07
I2cwbyte &B10010000 , Ack
I2cstop
بازم مشکلی بود در خدمتم






oo: 






ای سی اولیم که گذاشتم دیگه راه نیافتاد :eek:سوکت ای سی رو هم عوض کردم ولی جواب نداد دیگه دارم از دستش دیوانه می شم
دیدگاه