Since you are emulating all the uP control lines with your ATE device, you have some work to do!
Check out the data sheet for a micro such as mc6802.
Or Look at bus timing diagrams fig 1 of PIA data sheet:
to get a byte to the PIA:
tie unneed cs1, cs2 to suitable levels
set E line high, /WR line high
take /cs0 high to deselect the ic
setup the data bus data,
then take the E line low
then set PIA's two reg. select lines [ RS0,1] to select the correct reg.
then take the PIA's /cs low
pulse /WR line low/high to latch out data
take E high
take /cs0 high
This is all from my (old) memory, so check the timing diagrams!
So the sequence is:
write d2 = 0 to control reg. (to select the DDR reg)
write to DDR reg your port direction bit pattern (FF for all outputs)
write d2=1 (04) to control reg (to select port data reg)
write/read to peripheral reg (data to ports )
don