2015年6月11日星期四

COG LCD Display

Then how to use control, through theof 13 Interface Control SSD1303 driver thereby controlling the OLED display.  is the chip select signal, then low when to communicate with the driver is reset enable end, when the then low, all control registers are set to the factory default state, while image register is cleared; for the data  command 20x4 lcd select signal;  respectively write and read select signal when  is low, effective in its falling edge read and write. By changing the   three interface level, single-chip control of OLED has four states, can be displayed in Table 1.
read and write timing
Just follow VGG12864G timing waveforms to read and write, to complete the OLED display. However, the fight sequence through software programming, a lot of time to take into account the parameters, there is a certain degree of difficulty. To make it easier for data and commands to write smoothly, we take a different approach. Shown in Figure 1, the  and respectively, then the and  namely P0.7 and P0.6. When you define a pointer COG LCD Display type xdata type in the C programming language, which is pointing to off-chip memory through a pointer to an assignment outside access off-chip data storage area when accessing off-chip memory,  and will read and write automatically becomes low, while P3 port for the data bus, a non-multiplexed mode, the high use of the address bus 8 port P1, P2 port using low 8; under way multiplexed address bus high eight still using P1 port, low 8 and multiplexed data bus port P3, P2 port will not be affected. So the best way to set multiplexing (EMIOCF.4 = 0), P2 port can be used unless the output port, the freedom to control the Although no address bus, but when accessing off-chip memory address lines are used, so still avoid. The results of the timing waveform diagram shown in Figure 3. As long as  is low, the falling edge of  write (read) data or commands to read and write effectively complete the work.

没有评论:

发表评论