I am trying to implement a system where I basically have a stack of information and I need to pop each byte by incrementing the memory/address position and placing it in the GPIO register. I tried to do this by storing information in the cblock when the program is initialized but I couldn't figure out how to increment the pointer position because each register has a different variable name.
I want my program to look something like this
incf PixelPointer,1
movf PixelPointer,0
movwf GPIO
this doesn't work because all it does is increase the value stored in pixel pointer and sends it to GPIO. I want the PixelPointer to only be used as an address holder that points to memory locations that have bytes of data to be put into GPIO.
Any suggestions?
I want my program to look something like this
incf PixelPointer,1
movf PixelPointer,0
movwf GPIO
this doesn't work because all it does is increase the value stored in pixel pointer and sends it to GPIO. I want the PixelPointer to only be used as an address holder that points to memory locations that have bytes of data to be put into GPIO.
Any suggestions?