Moving a long from one ASM object as Output to Another as Input
I rebuilt on of my 24/32 Channel DMX dimmer boxes and have a P1 quickstart board running it. I used to have a 24 channel dimmer code that drove ouput pins directly to the triac dimmers, but this will not drive 32 channel. I added 4 74Hc595 Serial/Latchs to get to 32 output. The demo method for the 74595 driver says to just get the bit pattern into Shiftdata variable.
This is the end of dimmer ouput code. I changed the OUTA register to the outdata variable
the last lines in my dimmer routine : add ch11level, #1 wc
'if_c or outa, Hex1000 pin 12 - commented out
if_c or outData, Hex800 'output bit 12
mov listout, outData ' does not work!!!! waitcnt timer, #dimloop 'waits out rest of ac cycle jmp #waitzcl 'next cycle
listout res 1
outData res 1
In the Simple_74hc595 objects.
long ShiftData 'is present
I can send individual bit control to the serial latches, but I can't figure out how to get the "outData" value that the dimmer ASM routine builds.
Rick Asche firstname.lastname@example.org