Shop OBEX P1 Docs P2 Docs Learn Events
Prop_Clk - Page 2 — Parallax Forums

Prop_Clk

2»

Comments

  • evanh wrote: »
    That's all good Seairth. Now I have to let you down by saying that's the unsanctioned simple approach.

    The official line is use one of two controlled handover methods. Either by always reverting to RCFAST first, called RCFAST handover, or by passing a copy of the currently set mode to the loaded program, called Mailbox handover, at hubRAM address $18. Further reading - https://forums.parallax.com/discussion/comment/1466702/#Comment_1466702

    Hey, if Chip agrees that those are the "official line", I'll just take that code wholesale and put it in the Doc.
  • Back on Prop_Clk, though, I'm starting to question if there's too much there. The reality is that the only time someone is going to call it is just prior to doing a Prop_Hex/Prop_Txt. And, once the binary is loaded, it starts executing. In other words, there'll never be a chance to change the clock again (using Prop_Clk).
  • evanhevanh Posts: 15,916
    Fair call. Move the workarounds into the documenting of HUBSET ... I see you've already done this. :)


  • msrobotsmsrobots Posts: 3,709
    edited 2020-06-04 05:25
    Not sure if I follow correctly, but the serial loader in ROM where you specify the

    > Prop_Clk 0 0 0 0 F0 or whatever just runs after boot up or reset, right?

    and then we should be at rcslow, right?

    Or does the old clock setting survive a reset?

    confused,

    Mike
  • evanhevanh Posts: 15,916
    Reset always puts the prop2 in RCFAST.

    It's a limited command line. It doesn't have to be automated but obviously most uses will be. In reality I doubt anyone uses Prop_Clk because a small second stage loader will be loaded at the reset default of RCFAST and from there set the clock, if at all, using HUBSET.

Sign In or Register to comment.