Shop OBEX P1 Docs P2 Docs Learn Events
Using a SX18 source code with a SX28? — Parallax Forums

Using a SX18 source code with a SX28?

KatrineKatrine Posts: 1
edited 2006-04-08 02:31 in General Discussion
I got a source code written for a SX18.
Might seem as a silly question..
Is it possible to transfer the same code to a SX28 chip by changing the Device configuration in the code·to SX28?·

appreciate any feedback!

·

Comments

  • David BDavid B Posts: 592
    edited 2006-04-07 20:59
    Maybe.

    Since the SX18 doesn't have the port C IO pins, it allows the programmer to use adddress 7 for one additional byte of global memory, which is used by the SX28 for port control.

    So just make sure that in the SX18 code, address 7 isn't used as general purpose RAM.

    I think that aside from that, you should be fine.
  • BeanBean Posts: 8,129
    edited 2006-04-08 02:31
    If you set port C as an output it should work even if it does use address 7. Just make SURE nothing is connected to any of the Port C pins.

    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

    Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
Sign In or Register to comment.