assembly call
10gigbill
Posts: 79
in Propeller 1
New @ assembly... I want to have cogs putting out square waves at two freqs, and do something else in spin... also would like to have
an assembly routine I could call to just put out a short pulse (<1Us)
see code... not working...
Thanks...
an assembly routine I could call to just put out a short pulse (<1Us)
see code... not working...
Thanks...
Comments
Andy
good job guys...
Bill
The second parameter of cognew() is the hub address that is your mailbox. Since this address is passed to the cog, you can use it as a base address for several values. In this demo, there is only one (ticks). Note that when the pulse is done the cog tells the Spin program it's finished by clearing the ticks pulse timing.