Shop OBEX P1 Docs P2 Docs Learn Events
Two proresses in parallel — Parallax Forums

Two proresses in parallel

philipad23philipad23 Posts: 44
edited 2006-02-07 18:00 in BASIC Stamp
Can Basic Stamp do to processes in parallel? What exactly I want to do is the following:

With a remote control I want send signal that will be received from the microcontroller with the SERIN command. The microcontroller will display the numbers represented by the signal in sequence. For examples if 1 and 2 are received two 7 segment led displays will show:

01,02,01,02,01,02,01.........

If afterwords the number 3 is received it will show:

01,02,03,01,02,03,01,02,03,01..................

I am afraid that using a loop to run the subroutine that display the numbers in sequence all the time , it is not possible for the microcontroller to receive tha signal as the SERIN command will not be in the loop.

Anyone can help me?

Thanks

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-07 18:00
    The BASIC Stamp is a single-threaded device, so you'll want to add a driver for your 7-segment displays (which are not practical to multiplex manually). The MC14489 is a pretty simple chip to use, and you can find code for it in our StampWorks book.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.