PulseOut is a macro with a minimum time val of 1 microsecond. However, to get what you need ASM can be inserted into the following code as shown below.
#CHIP18F46Q71,64wait100msDirPortC.2OUT' ----- Main body of program commences here.do set PortC.2 on nop nop nop nop nop nop nop nop nop set PortC.2 off nop nop nop nop nop nop noploop
This will give you 625ns on and 625ns off @ 64Mhz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
simple question, about PulseOut syntax
Syntax : PulseOut pin, time units
"The PulseOut command will set the specified pin high"
what about the Pin is already high
does the PulseOut will set the pin low and return to high
and can the time units be in fraction of us (1 / 0.5 / 0.2 )
looking to use this with a PIC18F06Q41 @ 64Mhz to get a pulse of ~ 0.625ns (Low and High)
Thanks to all.
Last edit: JB 2024-10-19
Test the state then,
If high.. use PulseOutInv. If low.. use PulseOut.
Thanks
PulseOut is a macro with a minimum time val of 1 microsecond. However, to get what you need ASM can be inserted into the following code as shown below.
This will give you 625ns on and 625ns off @ 64Mhz
I'll give it a try and post the results,
Thanks
Hi, tested with 18F14K22 64Mhz (still wait for 18F46Q71)
worked fine nice signal ~65ns
Thanks
Last edit: JB 2024-11-04