Hi,
The LCD Mini Click component from Mikroe / Mikroelektronika appears to have a component in the library, which is documented on https://www.flowcode.co.uk/wiki/index.p ... hanumeric).
On the description page, it says "Generic alphanumeric LCD display based on the standard Hitachi HD44780 controller IC", but when I looked into the datasheet of the LMB162XFW LCD, it gives references to ST7065 and ST7066U, and not HD44780:
Is there an error on the Matrix TSL Wiki page regarding the controller of the LMB162XFW LCD? Additionally, it is not entirely clear to me whether the component referred to as Mikroe "LCD Mini Click" (MIKROE-2453) is being documented on the Wiki page, or if it is another product.
Regards,
Andreas
Component: LCD SPI (MiniClick) (Alphanumeric)
-
andeug
- Posts: 71
- http://meble-kuchenne.info.pl
- Joined: Thu Jan 07, 2021 1:42 pm
- Location: Stockholm (SE)
- Has thanked: 24 times
- Been thanked: 2 times
Component: LCD SPI (MiniClick) (Alphanumeric)
FC11 Professional + ARD + ARM license + Matrix TSL E-blocks2 boards
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
Mikroe Click boards + Click Shield for ST Nucleo-32 + Clicker 4 for ST STM32F407VG
-
medelec35
- Valued Contributor
- Posts: 2307
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 717 times
- Been thanked: 777 times
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hello.
As far as I'm aware the HD44780 is compatible to LMB162XFW
The ST7066U timings, instruction set and interface is compatible with HD4478
There is a document that mentions the mini click and HD44780
https://onlinedocs.microchip.com/oxy/GU ... AEA87.html
At the time of creating the Component: LCD SPI (MiniClick) (Alphanumeric), research would have been carried out first.
I don't believe that page is wrong.
As far as I'm aware the HD44780 is compatible to LMB162XFW
The ST7066U timings, instruction set and interface is compatible with HD4478
There is a document that mentions the mini click and HD44780
https://onlinedocs.microchip.com/oxy/GU ... AEA87.html
At the time of creating the Component: LCD SPI (MiniClick) (Alphanumeric), research would have been carried out first.
I don't believe that page is wrong.
Martin
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hi Medelec and Team,I am having trouble configuring the pin connections for the LCD Mini Click component in Flowcode v11 while targetting the BL0032 board.By default, the component's SPI properties point to Port C pins (C2, C3, C4, C5). However, looking at the pin mapping for the BL0032, Port C only physically exposes pins C13 and C14. The standard lower pins needed for the SPI bus are not physically available on this target chip/board configuration.Is there a way to unlock or expand the available pin selection dropdowns in the component properties so I can remap these signals to an entirely different port (such as Port D or Port B)? Currently, Flowcode is restricting my choice of pins, and I cannot select the alternative digital I/O lines that are physically routed on my board.I have attached a screenshot of my Flowcode workspace and the pin allocation table for reference.Any guidance or component updates to allow custom pin routing would be greatly appreciated!Best regards,
-
Steve-Matrix
- Matrix Staff
- Posts: 1937
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 289 times
- Been thanked: 453 times
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Thanks. It looks like there could be an issue with that LCD component that is preventing it from using the software SPI channel. Hopefully we'll have a fix soon.
-
BenR
- Matrix Staff
- Posts: 2232
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 615 times
- Been thanked: 807 times
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hello,
Many thanks for letting us know, I have hopefully resolved the issue for you now via the help -> library updates.
Many thanks for letting us know, I have hopefully resolved the issue for you now via the help -> library updates.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hello MatrixTSL Team,
I am encountering a compilation error in Flowcode V11 when trying to compile a project using the "LCD SPI (MiniClick)" component targeting the dsPIC33EP256MU806 microcontroler.
The compilation fails using the xc16-gcc compiler, reporting syntax bugs inside the core CAL file "PIC16BIT_CAL_SPI.c". It seems the file contains generic 8-bit registers ('tris' and 'port') written in lowercase, which the 16-bit compiler does not recognize for this device.
Here is the compiler output log:
- PIC16BIT_CAL_SPI.c:232:2: error: 'tris' undeclared (first use in this function)
- PIC16BIT_CAL_SPI.c:357:2: error: 'tris' undeclared (first use in this function)
- PIC16BIT_CAL_SPI.c:410:2: error: 'port' undeclared (first use in this function)
I have attached the screenshot of the compiler messages window showing the full error trace.
Could you please provide an updated CAL component patch or a fix for this 16-bit SPI compilation issue?
Thank you!
I am encountering a compilation error in Flowcode V11 when trying to compile a project using the "LCD SPI (MiniClick)" component targeting the dsPIC33EP256MU806 microcontroler.
The compilation fails using the xc16-gcc compiler, reporting syntax bugs inside the core CAL file "PIC16BIT_CAL_SPI.c". It seems the file contains generic 8-bit registers ('tris' and 'port') written in lowercase, which the 16-bit compiler does not recognize for this device.
Here is the compiler output log:
- PIC16BIT_CAL_SPI.c:232:2: error: 'tris' undeclared (first use in this function)
- PIC16BIT_CAL_SPI.c:357:2: error: 'tris' undeclared (first use in this function)
- PIC16BIT_CAL_SPI.c:410:2: error: 'port' undeclared (first use in this function)
I have attached the screenshot of the compiler messages window showing the full error trace.
Could you please provide an updated CAL component patch or a fix for this 16-bit SPI compilation issue?
Thank you!
-
BenR
- Matrix Staff
- Posts: 2232
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 615 times
- Been thanked: 807 times
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hello,
Have you assigned pin connections to the various pin properties of the display component? If you have then please can you attach your project and I'll investigate for you.
Have you assigned pin connections to the various pin properties of the display component? If you have then please can you attach your project and I'll investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hi Ben, here is the Flowcode v11 program. Please let me know if you need any adjustments or further assistance.
- Attachments
-
- LCD_Mini.rar
- (17.59 KiB) Downloaded 28 times
-
BenR
- Matrix Staff
- Posts: 2232
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 615 times
- Been thanked: 807 times
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hello,
Thanks for attaching your project.
If you select the display component and look at the properties panel you will see that the MISO Remap Pin property has no pin specified.
Please choose the remap pins you would like to use and that should then start compiling correctly for you.
Thanks for attaching your project.
If you select the display component and look at the properties panel you will see that the MISO Remap Pin property has no pin specified.
Please choose the remap pins you would like to use and that should then start compiling correctly for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Component: LCD SPI (MiniClick) (Alphanumeric)
Hi Ben,
Here is the attached photo of my physical hardware setup. As you can see, the BL0106 adapter is correctly plugged into the PORTD 0-7 slot of the BL0032 board. I have also tested this setup with two different physical LCD Mini Click displays to rule out a hardware defect, but neither shows any signs of life (backlight/characters remain unresponsive).Here is my current configuration and what I have already tested in software:Component Settings: I am using the LCD SPI (MiniClick) component. The External Address is set to 0 (0, 0, 0) because A0, A1, and A2 are grounded on this Click board.Pin Mapping: I am targeting PORTD. Based on the Matrix BL0106 adapter pinout, I have configured:CS: $PORTD.2MOSI: $PORTD.3MISO: $PORTD.4CLK: $PORTD.5Communication Channel: I tried using the hardware SPI channels (Channel 1 and Channel 3 with Fosc/4). I also tried switching the Channel property to Software mode to force bit-banging on those specific pins, but without success.Software Logic: In my flowchart, I call LCDMiniClick1::Start() right after the BEGIN block. Inside the main loop, I have a 1000ms delay to prevent over-spamming the display controller. The simulation on the 2D Panel works flawlessly.Since I have verified that the hardware connection to PORTD is correct and the code compiles/flashes successfully via mLoader, I suspect there might be a multiplexing or register issue on the dsPIC33. For example, does PORTD.2 (CS) have analog functionalities (like ANSEL bits) that need to be explicitly disabled in Flowcode before the component can control it?I have attached my .fcfx project file for reference. Any help, guidance, or patches regarding this specific dsPIC33 / E-blocks2 configuration would be highly appreciated.Thank you in advance!"
Here is the attached photo of my physical hardware setup. As you can see, the BL0106 adapter is correctly plugged into the PORTD 0-7 slot of the BL0032 board. I have also tested this setup with two different physical LCD Mini Click displays to rule out a hardware defect, but neither shows any signs of life (backlight/characters remain unresponsive).Here is my current configuration and what I have already tested in software:Component Settings: I am using the LCD SPI (MiniClick) component. The External Address is set to 0 (0, 0, 0) because A0, A1, and A2 are grounded on this Click board.Pin Mapping: I am targeting PORTD. Based on the Matrix BL0106 adapter pinout, I have configured:CS: $PORTD.2MOSI: $PORTD.3MISO: $PORTD.4CLK: $PORTD.5Communication Channel: I tried using the hardware SPI channels (Channel 1 and Channel 3 with Fosc/4). I also tried switching the Channel property to Software mode to force bit-banging on those specific pins, but without success.Software Logic: In my flowchart, I call LCDMiniClick1::Start() right after the BEGIN block. Inside the main loop, I have a 1000ms delay to prevent over-spamming the display controller. The simulation on the 2D Panel works flawlessly.Since I have verified that the hardware connection to PORTD is correct and the code compiles/flashes successfully via mLoader, I suspect there might be a multiplexing or register issue on the dsPIC33. For example, does PORTD.2 (CS) have analog functionalities (like ANSEL bits) that need to be explicitly disabled in Flowcode before the component can control it?I have attached my .fcfx project file for reference. Any help, guidance, or patches regarding this specific dsPIC33 / E-blocks2 configuration would be highly appreciated.Thank you in advance!"
- Attachments
-
- LCD_Mini_V11.fcfx
- (9.94 KiB) Downloaded 16 times