Shop OBEX P1 Docs P2 Docs Learn Events
Virtual Peripherals in SX/B — Parallax Forums

Virtual Peripherals in SX/B

Gold_DaddyGold_Daddy Posts: 7
edited 2005-06-02 15:53 in General Discussion
···· I have been working on a project in assembly with eight virtual peripherals running.
I was wondering if "VPs" could be implemented using SX/B with a template·(or without) and avoid using assembly altogether.·
If an SX/B VP template is available,·where would I find it.

······· Thanks for any input and help.
·········· Gold_Dad

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-02 02:24
    Yes, it's possible, but I don't know that anyone has created a template.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Gold_DaddyGold_Daddy Posts: 7
    edited 2005-06-02 02:35
    Thanks Jon

    Do you think you could elaborate on how to use vp's in SX/B or where I could read more on this specific subject?

    Thanks again: GD
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-02 02:42
    Start with the Help file -- the Encoder project uses high-level SX/B in the interrupt; technically this is a VP.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Gold_DaddyGold_Daddy Posts: 7
    edited 2005-06-02 03:06
    Thanks again Jon

    I see what you are talking about.

    Now all I have to do is figure out how to use eight or so different ISRs in one program.

    I am a novice programmer and understand assembly and basic pretty well (NO C or JAVA) but sometimes the concepts elude me.
    I will experiment with what I know and get back to you.

    Thanks again: GD

    PS anyone else who has used VPs in SX/B , feel free to educate me
  • BeanBean Posts: 8,129
    edited 2005-06-02 11:14
    In the "PROJECTS" forum is a 16 channel PWM program that I wrote that is a VP.
    Bean.

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


    Product web site: www.sxvm.com

    "It's not getting what you want, it's wanting what you've got."
    ·
  • Gold_DaddyGold_Daddy Posts: 7
    edited 2005-06-02 15:53
    Thanks Bean,

    Just so happens I downloaded your 16 channel pwm before you wrote.
    Unfortunately needed some shut eye before I could give it a look-see.
    Should be doing so this evening.

    Thanks again and keep sending suggestions: GD
Sign In or Register to comment.