This example makes use of the exceptional DT-INTS14 by Darrel Taylor and an old post of Bruce Reynolds about Timers.
Actually is a 24h clock based on the timer 1 of many chips in the 16F or 18F series.
The code is using 20MHz crystal and without any calibration it shows an accuracy of 2sec per day or 12 minutes per year.
Two buttons increment the Hours and Minutes to set the time.
Happy counting!
Ioannis


Menu

Re: I2CWRITE/I2CREAD access hardware in the different way? (PCA9685 issues)
You should probably leave them as inputs.
tumbleweed - 20th December 2025, 17:39The I2C commands will change them from inputs to outputs as required to simulate an open-collector signal (high=input, low=output 0).
It would...