Hi John,
In "CamInterfaceAsm.s", why do you clear the high green nibble (line 243):
>>>
_acquirePixelBlock:
in ZL,RB_PORT ; sample the red value (PINB)
in YL,G_PORT ; sample the green value (PINC)
andi YL,0x0F ; clear the high nibble --------------------------------<<<HERE
ldd color,Z+RED_MEM_OFFSET ; lookup the red membership
in ZL,RB_PORT ; sample the blue value (PINB)
ldd greenData,Y+GREEN_MEM_OFFSET; lookup green membership
ldd blueData,Z+BLUE_MEM_OFFSET; lookup the blue membership
and color,greenData ; mask memberships together
and color,blueData ; to produce the final color
brts _cleanUpTrackingLine ; ...
<<<
I thought the high nibble has most info that we care about... what am I missing, please?
Did you somewhere swap the nibbles?
Thanks,
Cat