2017-02-24 03:04 AM
I want to use STM32 to drive a LCM with a KS0108 controller. Sadly, it has a 6800 interface. Fortunately, ST gives a document to guide me:
. In p. 12 it gives two methods:But the
http://www.techtoys.com.hk/Displays/JHD12864J/ks0108.pdf
, states when write to LCD, the data is latched at the falling edge of ''E'':
Then, assuming we use the method 1 above, the pseudo-code should like:
lcd_addr = lcd_data;
gpio_E = LOW;
After the first clause, the /CS should goes to high, what's the state of the data bus, will it hold the data last output??? Or it will go to high impedance after /CS high? How can we make sure the LCM to latch the correct data?
For method 2, the situation should be similar.
Anyone ever tried ST's method?
#stm32 #6800 #lcd2017-02-25 02:43 AM
IMO the FSMC in STM32 is not capable of true Motorola-style interface.
I'd manually bit-bang it, especially since there are only 512 bytes of memory in that LCD. With a bit of imagination, timer-triggered-DMA could be used for some degree of automation.
JW