Shop OBEX P1 Docs P2 Docs Learn Events
Is faster really more problematic? — Parallax Forums

Is faster really more problematic?

BebopALotBebopALot Posts: 79
edited 2006-02-03 12:09 in General Discussion
Folks I am writing code to generate on/off signals at 12.5us on/ 12.5us off. Is it more reliable to write and execute such a program at 50MHz rather than 75MHz? Does the SX get really hot at 75MHz and possibly miss critical commands? I would prefer to keep mine at 75MHz, but if that produces too much heat and a zero compare is missed in decsz command then my accuracy goes haywire. Would it be beneficial to check an overflow bit every now and then or run it more slowly? Or are these concerns more theoretical than anything?

Thank you, B.

Comments

  • BeanBean Posts: 8,129
    edited 2006-02-01 02:40
    You are probably experiencing the dreaded "read/modify/write" problem.
    Basically when you set an I/O pin it may not read back that state for a cycle to two at very fast clock rates.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."
    ·
  • NateNate Posts: 154
    edited 2006-02-01 09:52
    I would run the SX as slow as possible that allows you to keep up with all inputs and outputs.··Slower=less power and EMI issues.· If the 12.5us signal is the most·demanding part of your program (I am assuming it is not, as you are asking about using 50/75 MHz clocks), I would even consider droping down to a 4 MHz clock.

    Nate

    Post Edited (Nate) : 2/1/2006 10:00:30 AM GMT
  • BebopALotBebopALot Posts: 79
    edited 2006-02-01 21:00
    Thanks Nate and Bean, that makes a lot of sense. I guess too much power and speed can mess you up a bit. Thank you.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-02-03 12:09
    If you really need or want the 75Mhz, go with 3.3volt power. Less headaches for the speedy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.