My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Great! Just confirm it counts correctly now.
Ioannis
It compiles, but now I have to find the correct value.
I'm now on Art's thread trying to find that out:
https://www.picbasic.co.uk/forum/sho...020#post156020
EDIT: Darrel talks about the Prescaler and adding NOPs here:
https://www.picbasic.co.uk/forum/sho...9649#post69649
And that's about where my eyes start glossing over. I had also read a comment (somewhere) about Darrel using a prescaler of 2 for 64MHz, so I'm pretty sure I'm on the right track.
EDIT SOME MORE: For future me when I'm looking for the same answer, Prescaler is controlled in T1CON.
Last edited by Demon; - 23rd August 2024 at 01:37.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Ok, I couldn't figure out how to incorporate Prescaler in Art's formula, so I took another route:
- used Preload from 16MHz
- set Prescaler to 1:2
Counter on LCD worked as expected.
https://www.picbasic.co.uk/forum/sho...025#post156025
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Art's formula with Prescaler:
65535 - (((( MHz / Prescaler ) / 4 ) x 10000 ) - 8 )
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks