10 MHz (or any similar integer frequency) to 1PPS pulse divider #752
Replies: 1 comment 6 replies
-
That's really good, Simon. I confess, I barely had my toes in the pool last time I was trying to follow your 10MHz endeavour (felt like maybe I'd forgotten my reading glasses). So three's the charm, huh (three counters)? If I'm following better this time, your big count is broken into two factors and a remainder, with allowances for the known delays? And it's all neatly "wired" together with channels. I see an odd-lut implemented RS via channel 1. The only thing I still can't quite wrap my head around is how exactly the RS fits into the overall counter; I have no doubt it's a stuck cog in my old noggin. My stuck cog aside, I think it's great! It will be very instructive for me as I attempt to get my toes in a little deeper. |
Beta Was this translation helpful? Give feedback.
-
Implemented on ATtiny3227, sharing the code at the point I got it working. I wanted to get a 1PPS signal from a 10 MHz external clock reference. But I also wanted to be able to get 1PPS from 9,999,999 Hz etc. Seems to work although it needs proper testing. Please flag any concerns in comments below:
Beta Was this translation helpful? Give feedback.
All reactions