Hello in this thread:
http://cq.cx/ladder-forum.pl?action=viewthread&parent=3895
Dzairo said:
"Hi.
In this days I work in new function .
Read from SFR
Write to SFR
Set Bit in SFR
Clear Bit in SFR
Test if Bit is set in SFR
Test if Bit is clear in SFR
Why this function...
This function enable to experts complete control MCU.
For example:
read port in one instruction, write to port .. enable I2C (external LCD,ADC,DAC,Memory,RTC etc...) enable SPI, all timer/counter etc..
This special functioin enable control ram memory.. you can read write to internal ram.. "
Ihor made changes about SFR:
https://github.com/LDmicro/LDmicro/wiki/Replase-the-obsolete-elements
I am not an expert about I2C, i am learning and trying to understand it in my arduino UNO from scratch, i know there are libraries for a DS3231 or I2C LCD, but i really want to do it by myself, it is a little difficult for me, but as i really like LDmicro and i found that thread i would like to ask for an example using SFR for I2C ds3231, thanks in advance.