
Originally Posted by
Charles Linquis
Use a 16 bit counter in assembly to count to 0FFF.
In that loop, use the instruction -
btg LATA.3
You can't get much quicker than that.
I haven't counted exactly, but it looks to be under 14 cycles. At 40Mhz, that is
1.4uSEC = 714 Khz.
so do I just replace this:
Code:
FOR C3 = 0 TO 4095
PORTA = %00001000
PORTA = %00000000
NEXT
with this:
Code:
FOR C3 = 0 TO 4095
btg LATA.3
NEXT
I do not know assembly at all thats why I went with PBP and keep in mind I am using a 16MHz Clock but I will be switching it up to a 20MHz
Bookmarks