very quick crystal clcok question for prop proto boardH
mikediv
Posts: 825
Hi guys I have a bunch of Crystals that are rated at 6.856777 MHZ they work fine but I have just been using the statement
"_CLKMODE = XTAL1 + PLL16X"""""""
" XINFREQ = 6_000_000"""""
It works but I was wondering if or could I use the whole clock speed XINFREQ = 6.856777"" Would I be able to clock the prop chip faster
by using the whole clock value?? or does spin only take whole values for the crystal clock?
"_CLKMODE = XTAL1 + PLL16X"""""""
" XINFREQ = 6_000_000"""""
It works but I was wondering if or could I use the whole clock speed XINFREQ = 6.856777"" Would I be able to clock the prop chip faster
by using the whole clock value?? or does spin only take whole values for the crystal clock?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+ Advanced dual Propeller SBC with XMM and 256 Color VGA - PCB, kit, A&T available NOW!
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
No and No are the answers to that.
You are already clocking the Prop at the speed for that crystal (the clock speed is the physical crystal value * PLL - 16 in your case). The only thing the XINFREQ statement does is set long 0 in the propellers memory to the actual frequency calculated by XINFREQ * your requested PLL value.
So changing that won't make the prop go any faster. As Bill said above though, a lot of the objects use that value to calculate timing information, so if your actual clock frequency is different from what you tell the propeller it's going to be, your timing will be wrong.
You are running your Propeller at 109.7 Mhz but you are telling it you are running at 96Mhz. Your timing will all be about 14% fast.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lt's not particularly silly, is it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BH
No
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lt's not particularly silly, is it?
Trying to understand what Brad is saying but if I try to use a value other than a whole number for "_CLKMODE = XTAL1 + PLL16X" that will not fly
So short of just not using these crystals is there a way to use them or not, I don't need to.... I do have whole number crystals was just hoping I could over drive the prop with them
Then on the other hand I have quite a few crystals I salvaged from other project boards from my past it seems lots of them used odd numbers
I have quite a few 5.23456 and a handful of 3.5788 and even 4.2345
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.