R6522 Versatile Interface Adapter (VIA) SR Mode 6 — Shift Out Under @2 Control in mode 6, the shift rate is controlled by the $2 systern clock Figure 27). SR Mode 7 — Shift Out Under CBi Control In mode 7, shifting is controlled by pulses applied to the CB1 DIN by an external device (Figure 28). The SR counter sets the SR Interrupt Flag each time it counts 8 pulses but it does not disa- bie the shifting function. Each time the microprocessor, writes or reads the shifl register, the SR Interrupt Flag is reset and the SR counter is initialized to bagin counting the next & shift pulses on pin CB. After 8 shift pulses, the interrupt Fiag is set. The microprocessor can then load the shift register with the next byte of data. t waresr —_J] | I i] iN +2 CYCLES SHIFT CLOCK ii " 82 OUTPUT SITUS XT : DATA 7! Figure 26. SR Mode 5 — Shift Out Under T2 Control e SUL ee WRITE SR CBI OUTPUT 2 3 4 af 7 3 SHIFT CLOCK / CB2 OUTPUT 1 X 2 XY 3 /é % 7 K 8 DATA - iRG Figure 27. SR Mode 6 — Shift Out Under 62 Control WRITE SR j ope outeuT TOM X23 es 7/ 1AG Figure 28. SR Mode 7 — Shift Out Under CB1 Control 13