Pic18f25q10 osccon1 settings swordfish basic

Toggle a pin without delay looked at the instruction cycle in the ASM then measured it with my logic tool to see if they matched a 64 MHz clock they don’t the period was 1.5 MHz
 
Yes so going by that the period for asm toggle should be 4 mhz so the clock is not running at 64 MHz it running at half that
 
There is a setting for high speed, internal clock to run a 64 Ian said that fixed it on some xc8 code
In pill I’ve not tried it out
 
I reckon this could be Ideal candidate for the Pi Pico as that has programmable core pin outputs.

Pico's can be programmed in the arduino environment and are around £5

And if you like basic.. Well the MM basic is bluddy good.. Check Geoff's page https://geoffg.net/picomite.html

LOL.. He has even done the hardware support for the WS2812's NOTE** sorry bitbanged.
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…