PLease, make it stop !
Pliers
Posts: 280
I was just playing around, when I did this.....
I thought it would pulse pin 1 once.
To my surprise it keeps pulsing at a rate of 6.4 Khz, with an "ON time" of 0.31 us.
I tried a few things to make it stop(via code), but it won't.
PUB IOTEST cognew(@IO_TEST, 0) DAT ORG 0 IO_TEST MOV DIRA, #$01 MOV Outa, #1 MOV Outa, #0
I thought it would pulse pin 1 once.
To my surprise it keeps pulsing at a rate of 6.4 Khz, with an "ON time" of 0.31 us.
I tried a few things to make it stop(via code), but it won't.
Somebody said...
The more I learn, the more I don't know.
Comments
or
at the end of your short program
Post Edited (Mike Green) : 11/26/2008 9:11:14 PM GMT
EDIT: Ahh, nevermind, he's just repeatedly jumping to the same line, called "hang"
Post Edited (Bergamot) : 11/26/2008 10:23:47 PM GMT
There's also the WAITVID instruction used to wait until the video generator is ready for data.· If the video generator for the cog isn't running, it will wait forever (which is what you want here).
·
oscillate at 80MHz in order to draw enough current to ignite)---doesn't quite work.
I guess we need another external device to act as coprocessor for this instruction.
Ooops!· I forgot for a second that contest deliberations were ongoing...
I think the COGID/COGSTOP combo is the best way to stop the cog and free it up at the end of the code.
Post Edited (Rayman) : 11/27/2008 1:18:07 AM GMT
That'd be over in this thread:
http://forums.parallax.com/showthread.php?p=765599
The device described there would do a nice job of stopping pin 1 from pulsing.