So, I have experiment with thermometer based on DS18b20 and experiment with real time clock IC DS1307, and I took decision to combine it in one single device. Other reason why I did it is that I have broken china clock with good enclosure (:
Result looks something like this:
I’ve received some RTC ICs from aliexpress and I started investigations. Warning! Here I’m going to work only with time, not date.
Goals: Read/write time from DS1307 and pushing it to pc by uart.
What we have: PIC16f628a, DS1307, MAX232 level converter, devboard, proteus.
I choose software realization of I2C protocol as the next experiment. There isn’t description of this protocol, only realization, google has a lot information of i2c 🙂
Goal: To make connection between PIC16f628a and IO port expander PCA9539 by i2c
What we have: PIC16f628a, PCA9539, devboard.