PDA

View Full Version : Another PWMPAL question .....



hitsware
04-25-2007, 11:41 PM
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,["!PWMSS",255]
serout 0,6,["!PMMSP",240]
serout 0,6,["!PWMM1",100,0,100,0]
x var byte
play
for x=0 to 300
freqout 1,9,1200
next
goto play

allanlane5
04-26-2007, 01:04 AM
Why don't you start your program when it's not connected to the PC?

Chris Savage
04-26-2007, 08:02 AM
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

hitsware
04-26-2007, 08:49 AM
>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 ?

hitsware
04-26-2007, 09:08 AM
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 Savage
04-26-2007, 09:18 AM
My guess is the problem is in the DTR line. Unplug the cable and it should run fine.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support