Shop OBEX P1 Docs P2 Docs Learn Events
Another PWMPAL question ..... — Parallax Forums

Another PWMPAL question .....

hitswarehitsware Posts: 156
edited 2007-04-26 01:18 in BASIC Stamp
When I shut off my PC the freqout continues to play,
but the PWMPAL shuts down ?
Can I make the whole thing continue so I can take
the stamp to another location and record the output ?

serout 0,6,[noparse][[/noparse]"!PWMSS",255]
serout 0,6,[noparse][[/noparse]"!PMMSP",240]
serout 0,6,[noparse][[/noparse]"!PWMM1",100,0,100,0]
x var byte
play
for x=0 to 300
freqout 1,9,1200
next
goto play

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-25 17:04
    Why don't you start your program when it's not connected to the PC?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-26 00:02
    Once the PWMPAL receives a command it continues executing that pulse output until power is removed or it is told to stop or do something else by the host controller.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • hitswarehitsware Posts: 156
    edited 2007-04-26 00:49
    >Why don't you start your program when it's not connected to the PC?

    >Once the PWMPAL receives a command it continues executing that pulse output until power is removed or it is told to stop or do something else by the host controller.

    If I have a loop going (FREQOUT and PWMPAL summed for output) ....
    When I turn off the PC only the FREQOUT output keeps running.
    And again when I power up the stamp the FREQOUT part plays but the PWMPAL
    is quiet until I power up the PC and do 'alt' 'r' (run) .....
    Is the PWMPAL more dependent on the PC than the stamp itself ?
    Do the PWMPAL commands not go to the Eeprom ?
  • hitswarehitsware Posts: 156
    edited 2007-04-26 01:08
    Allan,
    Thank You.
    When I turn off the PC the PWMPAL quits.
    (and the FREQOUT continues)
    BUT ...
    If I do a reset the PWMPAL comes back on.
    So there is something a little differant with
    the PWMPAL than the FREQOUT, but that's OK.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-26 01:18
    My guess is the problem is in the DTR line. Unplug the cable and it should run fine.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.