DeusExMachina Posted July 29, 2013 Report Posted July 29, 2013 Hello!I have this board http://www.starterkit.ru/html/index.php ... view&id=68and this display module (SSD1963 controller)http://www.starterkit.ru/html/index.php ... view&id=36 Display module uses only 8 bits from 16 bits interface (D0-D7) lines. How can I configure driver to use this data bus width?
Joel Bodenmann Posted July 29, 2013 Report Posted July 29, 2013 If the driver has been written correctly, you just have to create a board file (gdisp_lld_board.h) which talks to the display in 8- instead of 16-bit mode.~ Tectu
DeusExMachina Posted July 29, 2013 Author Report Posted July 29, 2013 Sorry, but I cant figure out where I have to select 8bit mode for fsmc and where I can tell uGFX about this inside ssd1963 driver (I use Chibios). May be where is some full example on, may be other LCD driver (stm32f4xx + fsmc + chibios?
Joel Bodenmann Posted July 29, 2013 Report Posted July 29, 2013 You have to take a look at your microcontrollers datasheet to learn how to use your FSMC interface in 8-bit mode.The driver itself does not have to be modified because it does not care how you actually talk to the display controller. The driver itself calls the read and write routines from the board file (gdisp_lld_board.h). Inside your board file, you just implement all the write_xxx() calls so it works with FSMC in 8-bit mode. The current board files that can be found inside that directory show how to use FSMC in 16-bit mode. There are currently no examples available that show how to use FSMC in 8-bit mode. I'd appreciate it when you'd share your work after you got everything successfully working.~ Tectu
DeusExMachina Posted July 29, 2013 Author Report Posted July 29, 2013 Ok, thank you!Of couse I will share my code... I guess 8 bit mode is better in order of saving uC pins.
DeusExMachina Posted August 9, 2013 Author Report Posted August 9, 2013 i sucessfully modified driver, but I need some time to code cleanup and I dont know how to integrate new code into existing driver model...
Joel Bodenmann Posted August 9, 2013 Report Posted August 9, 2013 Very nice! Thank you for contributing an advance ;-)~ Tectu
avtop Posted September 20, 2013 Report Posted September 20, 2013 Hi I want to use ssd1963 in 8bit gpio mode how to go about pls give some info about which file need include and which routine calling to driver and where set option to GPIO or FSMCThx
Joel Bodenmann Posted September 22, 2013 Report Posted September 22, 2013 I recommend you to take the gdisp_lld_board_template.h you can find in the driver directory and start filling out the needed routines. There's no real difference between 8- and 16-bit mode apart from how you actually talk to the display. You can take a look at the tdisp_lld_board_st_stm32f4_discovery.h which you can find in the HD44780 driver directory of the TDISP module. It shows how different bus widths can be handled.Just as a side note: Make sure your display itself is in 8-bit mode. Many of these display modules you get from e-bay required to change a solder bridge or any other kind of jumper to select the 8-bit mode. However, some just might need a different initialization value.~ Tectu
DeusExMachina Posted October 7, 2013 Author Report Posted October 7, 2013 Hi I want to use ssd1963 in 8bit gpio mode how to go about pls give some info about which file need include and which routine calling to driver and where set option to GPIO or FSMCThxI have successfully used sd1963 in 8 bit mode for SK-STM32F417 board http://www.starterkit.ru/html/index.php?name=shop&op=view&id=68 (in Russian!)Also, I used ST standard peripheral lib to initialize FSMCSSD1963_8bit_mode.tar.bz2
Joel Bodenmann Posted October 7, 2013 Report Posted October 7, 2013 Nice to hear that you finally got it working! Maybe you could provide a small video once you got something working? It would be nice to have a demo showing cyrillic stuff.Why do you use STDperiph lib for the FSMC by the way? There are many example board files showing how to use FSMC within ChibiOS/RT.May I ask how much you paid for that board? I cannot find any price information ~ Tectu
DeusExMachina Posted October 9, 2013 Author Report Posted October 9, 2013 I tried to use FSMC init from Ch example but unsuccessfully. I have to show fast results to my boss, so I used working init routine. About board - the price is near $81, and near $78 for display.demo can be seen herehttp://vimple.ru/99d27fcc850c4443bf584dd50196c8e8
Joel Bodenmann Posted October 9, 2013 Report Posted October 9, 2013 Wow, that's a great video... but is that already µGFX or something done by the distributor? :shock: ~ Tectu
DeusExMachina Posted October 9, 2013 Author Report Posted October 9, 2013 This is my last project, board distributor provided only one static image on screen The project uses slightly modified ugfx engine + Chibios + lwip (webserver + Modbus TCP) + Modbus RTU + AT45 dataflash for storing settings... It supports shell in CDC USB and many other features It is prototype of oil level meter sensor (display part).
Joel Bodenmann Posted October 9, 2013 Report Posted October 9, 2013 That's cool! May I put the video onto the blog?Please note that you have to contribute your modifications of µGFX due section 2.1.c of the license.~ Tectu
DeusExMachina Posted October 9, 2013 Author Report Posted October 9, 2013 video - no problem I afraid my modification will be a peace of shame of cause I'll provide code modification soon, after some clean up
Joel Bodenmann Posted October 11, 2013 Report Posted October 11, 2013 Sounds good to me! The video has been added to the blog.~ Tectu
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now