Equip your Genius
Welcome to the Parallax Discussion Forums, sign-up to participate.
Learn with BlocklyProp
Propeller C resource usage
2020-11-04 - 19:04:29
When using Propeller C prop chip is configured using serial interface and hardware set for clock etc. Where can you find info on the setup that is loaded when a C program is downloaded.
2020-11-04 - 21:29:25
Wow, I have not seen a document like that. I have been using the SimpleIDE C program for several years now and have not seen such a document.
What I do know is that the P1 was not designed to run C and so in order to do that it first builds a stub SPIN program that runs a PASM program that then runs the Main function of the C program.
You also might want to checkout the Propeller documentation page.
2020-11-04 - 21:35:35
edited 2020-11-04 - 21:36:23
Clock setting happens automatically on boot. The 5th byte of the RAM image (= BYTE[$0004]) contains the clock config (i.e. the "XTAL1 + PLL16X" bits). The first long (=LONG[$0000]) contains the final clock frequency for timing purposes (this is what you get when calling CLKFREQ in Spin! (I think there's a C equivalent of similar name)).