Summertown
Member
I need to generate a 40khz pulse train for an ultrasonic device. I need in phase 7 out of phse outputs, obviously using 2 pins. I am using a 28x @ 4mhz
Options include pwmout or pulsout commands. From the look of it pwmout will not be quick enough. Does anyone know how fast it will go? That leaves the pulsout.
Code would be;
pulsout 1,1
pulsout 2,1
That should give 10usec pulse on pins 1&2
Do the instructions run concurrently?, or does the 28x do the first command 7 then the second instruction?
Gonzo
Options include pwmout or pulsout commands. From the look of it pwmout will not be quick enough. Does anyone know how fast it will go? That leaves the pulsout.
Code would be;
pulsout 1,1
pulsout 2,1
That should give 10usec pulse on pins 1&2
Do the instructions run concurrently?, or does the 28x do the first command 7 then the second instruction?
Gonzo