PIC is 18F46K22 @ 64MHz...
Compiler is MPASM...
Basically, i'm looking into an asm piece of coding to create correct timings for the WS2812B LEDs...
When i used PBP to spit out the wave form from an arry the IF statement killed the timings. I appears to take ~30 cycles to run one command...
The bit that i'm after is as follows...
Code:
00134 IF BSPTR < (NOOFWS2812 * 3 * 8) THEN
CMPGE?WCL _BSPTR, 0F0h, L00007
First line being the PBP line and the second line being the resultant assembler.
The problem is I can not find any reference to what "CMPGE?WCL" is?
I think, it's some sort of ALU compare with condition jump... but why is it taking so darn long on a high end MCU...
Bookmarks