Forum : ST7/STM8
Post Information | Post |
---|---|
June 15, 2009 - 6:22pm
|
Hi, I'm using a REva starter kit including a - REva mother board v3.3 with RLink I'd like to be able to use the LCD on the eval board to display output but after There is an example provided in the STM8S firmware library ("Communicate with a monochrome LCD") that says it uses the spi peripheral to communicate with an LCD peripheral like the one on the eval board. When I compile and run the example, the first 4 LEDs light up and flash. Since the LCD is connected to the first 4 LEDs that seems sensible, however, nothing happens with the LCD itself. Is this example actually designed to be used with an external LCD? Does the board configuration need to be changed to send messages to the onboard LCD with SPI? For example, should the serial clock (SCK) pin from the communications area be connected to the LED0 pin (i.e. the D0 pin on the LCD microcontroller)? Or can everything be set in software? Cheers |
Hi Claire,
You raised a good remark: We do not provide an ST7/STM8 example that exhibits the LCD and MEMS functionality.
We have an half-finished example that still needs some work before being released. Until this is available, you can install the (free) RKit-ARM and retrieve the MEMS2LCD example designed for STM32 devices. As the STM32 ST library is very near from the STM8 library, porting from one to the other should not be too difficult.
If that can help I attach the code from the (unreleased) MEMS2LCD STM8 example, although it is no validated yet and may not work correctly.
Let us know if you manage to have it working.
Regards,
Bruno
Hi Bruno,
Thanks for the help - we didn't try to get the MEMS working but we were able to print to screen using the LCD file you posted.
Thanks again!
Claire