I'm doing a neo pixel project & need to call a long table but it has to read from less cycles.Because I'm reading this table between data transfer in LEDs so time is critical. Is there any method to reduce some cycles? I use modern PIC16F1508 with CLC module. It has some enhanced instructions like "MOVLP Move literal to PCLATH" etc...
I use 16Mhz clock so instruction cycle will be 250nS.
I use 16Mhz clock so instruction cycle will be 250nS.
Code:
;Table located in above 2K limit upto 4K
Pat_Table movlw High(Table) ;1
addwf offsetH, W ;2
movwf PCLATH ;3
movlw Low(Table) ;4
addwf offsetL,W ;5
btfsc STATUS,C ;6
incf PCLATH,f ;7
MOVWF PCL ;8
dt 00,.1,.2,.3.....;10 cycles