Shop OBEX P1 Docs P2 Docs Learn Events
program on sx20 — Parallax Forums

program on sx20

semihostingsemihosting Posts: 1
edited 2006-03-21 15:49 in General Discussion
·· Now·I want to develop an application based on sx20,now I am just·at the beginning , the reference source codes are all for sx28, I can debug the reference source code in sx28,but when I write a program run on sx20,it can't be debugged through sx tool kit, can you provide me a simple source code which can be debugged in sx20,,Thank you very much!

Comments

  • BeanBean Posts: 8,129
    edited 2006-03-21 12:04
    Yes you can. The SX20 is just an SX28 without the PORTC connections.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012

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

    Product web site: www.sxvm.com

    "Sometimes it is better to remain silent and be thought a fool, than to speak and remove all doubt."
    ·
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-03-21 15:49
    I built a separate board for the SX18 which plugs into the SX-Key.
    It can use the SX-Key's debug features [noparse][[/noparse]of course, you do have to remove the oscillator while doing so] just fine.
    Essentially it is the DIP version of the SX-20.
    Still, it seems a waste of time to set up a physical SX-20 test bench.

    Alternatively, you can test your code with an SX-28 without using PORTC and migrate it to the SX-20 feeling assured it will work exactly the same.

    The primary and possilbly only difference betweent the SX20 and the SX28 in software is that there is no PORT C.
    This actually seems to give you one more Global RAM slot [noparse][[/noparse]RAM starting at $07], but no one seems to discuss using it.
    Nonetheless, it is there if you really are in a squeeze.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "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.