Shop OBEX P1 Docs P2 Docs Learn Events
HUBSET Instruction — Parallax Forums

HUBSET Instruction

I can't find any information on the HUBSET instruction, what the individual bit fields are, and the method of setting the clock in general. There are lots of examples but no details.

Anybody know specifics of how to set the clock? The examples I've seen all have two steps with a delay between each step. Why is that?

Sandy

Comments

  • cgraceycgracey Posts: 14,155
    In the "New P2 Silicon" thread, the first post has a link to the documentation. Get in the doc and search for "HUBSET". There is a section on how HUBSET works.
  • evanhevanh Posts: 15,916
    Chip,
    That section could do with a little updating since the de-glitch circuit doesn't completely work.

    As well as highlighting the flaw, the four line example you've got there also is no longer the recommended solution. For first config, or RCFAST hand-off, the first HUBSET #0 isn't useful. Just the three subsequent lines is all that's needed. And for reconfiguring, having a plain HUBSET #0 as first instruction is a broken solution without the de-glitch working.

  • cgraceycgracey Posts: 14,155
    Thanks, Evanh. I will get that fixed tomorrow.
Sign In or Register to comment.