how big would Ticks have to be to make this true ?
IF Ticks > 100 THEN
how big would Ticks have to be to make this true ?
IF Ticks > 100 THEN
Warning I'm not a teacher
I have a feeling I'll be waiting a while for that to happen.I've brought that down to Ticks > 1.
I've started again with the original includes, and:
- added 32MHz
- changed PIE1 to PIE4
- changed PIR1 to PIR4
- changed FSR to FSR0
...I'm adding T1CON and T1CLK now...
I'm still puzzled by T1CON,TMR1ON. The datasheet doesn't have TMR1ON, it's just ON.
EDIT: Confirmed, it works once I added T1CON and T1CLK. I was blindly following the instructions on the Book of Interrupts and forgetting that this PIC is different.
a) I'm still puzzled why TMR1ON works though; seems contradictory to me.
b) so 1 Tick is 66.4ms on a 16F18877.
Blissful ignorance is a wonderful thing...
Last edited by Demon; - 6th October 2024 at 04:55.
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!
all bit definitions are in the mpasmx folder *.inc files. the datasheet refers to any timer1 type timer for that chip, ie tmr1 tmr3 tmr5
eg
![]()
Last edited by richard; - 6th October 2024 at 05:35.
Warning I'm not a teacher
I want to post my code in Code Examples.
What would be a good label for new PICs like the 16F18877 that need modified includes?
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!
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!
absolutely not, there is no problem to solveShould we edit those includes to match the names In the datasheet?
if you want to use mpasm bit names in your code then use the bit names that microchip have created for them
there is zero point in inventing names that mpasmx will not recognize.
the proper and correct names are in the mpasmx picxxxxx.inc files
Warning I'm not a teacher
Bookmarks