Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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:
I read yesterday that the reason ardunio works is a 16 MHz avr is basically the same as a 64 MHz pic
Long story short I got the bit bang code to work after I got the pin runing at 64 MHz
 

Latest threads

New Articles From Microcontroller Tips

Back
Top