I'm building my programmable "Home heating system control" with 5 times (1 LCD + 2 switches + LM35+ 1 led + 1 relay) + 1 Master LCD & 3 switches & LM 35 & 1 led + 1 relay.
I took a PIC18F26K22 to have enough pins, an internal osc of 16Mhz & a big EEPROM. I use a DS3231 (Chronodot V2.1 from Adafruit) as an external RTC for more precision. I've been working on some "way smaller" PIC chip before but nothing compare to this one. I would like to know how to implement my own I2C software, to talk to this DS3231 (Like the DS1307). Meaning using 2 general pins and my own program, not using the I2C of the chip, to be able to study more about this bus. A good (Documented) and easy way to send and receive from DS3231 once every seconds. Especially according to the way of setting the SDA and SCL timing versus the fast speed of the PIC. I think I will be able to do the rest (LCDs-LM35s-switches-leds-Relays-EEPROM). And finally it should be program in MPLABX : MPASM as I know nothing about the C language, (Or in simple asm). If it too much problem then it could be using the i2C of the chip. Any help is welcome. That may be helpful to other too.
Many thanks to all for your help. Dan
https://www.adafruit.com/products/255
https://datasheets.maximintegrated.com/en/ds/DS3231.pdf
I took a PIC18F26K22 to have enough pins, an internal osc of 16Mhz & a big EEPROM. I use a DS3231 (Chronodot V2.1 from Adafruit) as an external RTC for more precision. I've been working on some "way smaller" PIC chip before but nothing compare to this one. I would like to know how to implement my own I2C software, to talk to this DS3231 (Like the DS1307). Meaning using 2 general pins and my own program, not using the I2C of the chip, to be able to study more about this bus. A good (Documented) and easy way to send and receive from DS3231 once every seconds. Especially according to the way of setting the SDA and SCL timing versus the fast speed of the PIC. I think I will be able to do the rest (LCDs-LM35s-switches-leds-Relays-EEPROM). And finally it should be program in MPLABX : MPASM as I know nothing about the C language, (Or in simple asm). If it too much problem then it could be using the i2C of the chip. Any help is welcome. That may be helpful to other too.
Many thanks to all for your help. Dan
https://www.adafruit.com/products/255
https://datasheets.maximintegrated.com/en/ds/DS3231.pdf