TFT LCD use ST7781 or ILI9320 as TFT controller that connect to STM32 via 16 bit data bus.
For touch sensor, Use ADS7843 connect to STM32 via SPI interface in software NSS mode.
I want to create driver for that.
What is right way to put these driver in level HAL or HAL LLD ?.
Drivers always have an "HAL" part, it is the interface with the applications, the LLD part is only needed if you want to make a portable driver but this may not be necessary in your case. It depends on what you are planning to do, a generic LCD driver or a driver for that specific model?
You don't even need to put it in the HAL it could simply be part of your application.
The touch screen driver could simply use the existing SPI driver as lower layer.
About delays: chThdSleepMillisenconds(50), it stops the current thread for the specified number of milliseconds. For accessing the 16bits bus you may use the PAL driver.
Giovanni
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is very cheap developmen board that include TFT LCD Touch screen.
:D
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-10-22
I have imported the STM32F103VET6 based board from China, it uses the FSMC to communicate with the LCD. The fillrate with FSMC is approximately five times higher than with the STM32F103RBT6 without FSMC (using uCOS/II demo fillrate test). I'm planning to use ChibiOS for some projects soon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am unable to read Chinese, is that board available somewhere in Europe?
Giovanni
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-10-22
try http://www.cutedigi.com/product_info.php?products_id=4407, or buy through a taobao shopping agent. I spent a grand total of 55 euros on the STM32F103VET6-based board with JLink V8, including agent fee and shipping. Can't beat that price…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've created a working board and demo setup for the STM32F103VET6 version 2.1, against Chibios stable ver_2.0.7. Blinking status LED and serial test output after buttonpress.
If anyone is interested i could commit it?
Next step is the TFT through FSMC. Could take a while.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Sir,
Reference to Mini STM32 board, http://www.micro4you.com/store/Mini-STM32-STM32F103-TFT-LCD-Board/prod_129.html
Board Schematic http://www.micro4you.com/files/STM32/MINI_STM32_SCH.pdf
TFT LCD Schematic http://www.micro4you.com/files/STM32/2.8TFT_sch(new).pdf
TFT LCD use ST7781 or ILI9320 as TFT controller that connect to STM32 via 16 bit data bus.
For touch sensor, Use ADS7843 connect to STM32 via SPI interface in software NSS mode.
I want to create driver for that.
What is right way to put these driver in level HAL or HAL LLD ?.
For initial process, use delay code like this
How to manage delay code in driver for chibi ?.
Please suggest me.
mculover
Nice board, I didn't know it.
Drivers always have an "HAL" part, it is the interface with the applications, the LLD part is only needed if you want to make a portable driver but this may not be necessary in your case. It depends on what you are planning to do, a generic LCD driver or a driver for that specific model?
You don't even need to put it in the HAL it could simply be part of your application.
The touch screen driver could simply use the existing SPI driver as lower layer.
About delays: chThdSleepMillisenconds(50), it stops the current thread for the specified number of milliseconds. For accessing the 16bits bus you may use the PAL driver.
Giovanni
Thanks you for help, Giovanni
Mini STM32 board is product of china,
From here, http://item.taobao.com/item.htm?id=5717559340
Some application with Mini STM32, http://projectproto.blogspot.com/search/label/ARM%20Cortex-M3%20%2F%20STM32
and other model that use STM32F103VET6
From here, http://item.taobao.com/item.htm?id=4893931337
It is very cheap developmen board that include TFT LCD Touch screen.
:D
I have imported the STM32F103VET6 based board from China, it uses the FSMC to communicate with the LCD. The fillrate with FSMC is approximately five times higher than with the STM32F103RBT6 without FSMC (using uCOS/II demo fillrate test). I'm planning to use ChibiOS for some projects soon.
I am unable to read Chinese, is that board available somewhere in Europe?
Giovanni
try http://www.cutedigi.com/product_info.php?products_id=4407, or buy through a taobao shopping agent. I spent a grand total of 55 euros on the STM32F103VET6-based board with JLink V8, including agent fee and shipping. Can't beat that price…
I've created a working board and demo setup for the STM32F103VET6 version 2.1, against Chibios stable ver_2.0.7. Blinking status LED and serial test output after buttonpress.
If anyone is interested i could commit it?
Next step is the TFT through FSMC. Could take a while.
Sure, thank you.
Post the files here on the forum and I'll commit them on the repository.
Giovanni
Hey I could use that :)