At present, I have 12 interfaces on hand in the outdoor 1/4 sweep Unit board, the initial understanding of the interface:
OE is display enable, AB is row selectable, default high = 4 lines, all low = 1 rows, a low = 2 rows, b low = 3 rows.
R is serial data, S is serial clock, L is latch and shift.
To lsbfirst low-level output light, that is, Common Yang.
It is worth mentioning that you can send many bytes of byte at a time, then latch the display, the code is as follows:
Digitalwrite (Latchpin,low); Add a low level to the ST_CP port so that the chip is ready to receive data//shiftout (DATAPIN,CLOCKPIN,MSBFIRST,A); Shiftout (Datapin,clockpin,lsbfirst,a); Shiftout (datapin,clockpin,lsbfirst,255); This is to use the Msbfirst parameter to let 0-7 pins with high output (Lsbfirst low) is the parameter of the Datapin,//clockpin parameter is the variable A, the previous we said that this variable will be one time from 1+1+ to 256, is a decimal number,//input to the chip will produce 8 binary number, to achieve the function of the switch digitalwrite (Latchpin,high); Restore the ST_CP pin to the high-level delay (1000); Pause for 1 seconds so you can see the effect
P10 Cell Board 08 Interface 12 interface 1/4 sweep 1/8 sweep