Shop OBEX P1 Docs P2 Docs Learn Events
Propeller C resource usage — Parallax Forums

Propeller C resource usage

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.
thanks
Bob

Comments

  • 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. Propeller Documents

    Mike
  • Wuerfel_21Wuerfel_21 Posts: 4,448
    edited 2020-11-04 21:36
    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)).
Sign In or Register to comment.