Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20577

BASCOM-AVR : DS1307 RTC : REPLY

$
0
0
the i2cinit is not really required. this because the pins are in the right state after reset. the config twi is only required when using the TWI lib instead of the default soft i2c lib. it was indeed missing from the sample.(which was written for the soft mode i2c) The config clock =soft requires an external 32 khz crystal on the async timer. it uses software to create a clock. but when using an RTC chip you can use the USER mode to just generate the internal variables required for the date time routines. you need to create 2 sub routines which are called when the system needs the variables (when you read date or time using date$, times$) or when you assign these variables, the code is called with the parameters filled so you can assign/write them to your clock. when you do not use date$/time$ the code is not called.

Viewing all articles
Browse latest Browse all 20577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>