STM32F103C8 & TFT (ili9325)

Working libraries, libraries being ported and related hardware
VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: STM32F103C8 & TFT (ili9325)

Post by VadimEL » Fri Jul 14, 2017 4:56 pm

MCUFRIEND_kbv work fine with TouchScreen_STM. :) thanks David
Attachments
graph_TouchScreen_STM.zip
(2.64 KiB) Downloaded 23 times

golpesar132
Posts: 24
Joined: Mon Jul 10, 2017 1:42 pm

Re: STM32F103C8 & TFT (ili9325)

Post by golpesar132 » Sun Jul 16, 2017 8:17 pm

stevestrong wrote:
Tue Jul 11, 2017 5:54 pm
I would start to test each pin, whether it toggles or not.
Use a LED and connect it to each data and control pin, one after the other.
Make a short test program to toggle these pins.
Thank you...
I did it. Pins PA11 PA12 PA15 PB3 PB4 didn't toggle. I have 2 boards and I test both of them but these pins had problem in both. how can I fix it or change pins in the library????

zmemw16
Posts: 1449
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: STM32F103C8 & TFT (ili9325)

Post by zmemw16 » Sun Jul 16, 2017 8:44 pm

PA11 & PA!2 are usb dm & dp.
PA15, PB3 & PB4 are jtag pins after reset. there is a call to disable debug on them.
btw the device data sheet is your friend and also the reference manual later on.

if you're having issues, try using spi2 on PB12-PB15, it can handle five volt logic levels.
in the library source files, look at the constructor definitions.
stephen

golpesar132
Posts: 24
Joined: Mon Jul 10, 2017 1:42 pm

Re: STM32F103C8 & TFT (ili9325)

Post by golpesar132 » Mon Jul 17, 2017 7:21 am

thats rigtht. I use below code and all of pins toggle after it.
but it still don't show ant thing on the lcd. why????

VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: STM32F103C8 & TFT (ili9325)

Post by VadimEL » Mon Jul 17, 2017 7:26 am

it do not show until you READ ID of screen. Use LCD_ID_readreg.ino Paste your LCD_ID_readreg.ino example and make photo of your connection to blue pill.

golpesar132
Posts: 24
Joined: Mon Jul 10, 2017 1:42 pm

Re: STM32F103C8 & TFT (ili9325)

Post by golpesar132 » Mon Jul 17, 2017 7:37 am

I mean, I use graphicstest example. I have no ID yet in serial monitor.

golpesar132
Posts: 24
Joined: Mon Jul 10, 2017 1:42 pm

Re: STM32F103C8 & TFT (ili9325)

Post by golpesar132 » Mon Jul 17, 2017 8:19 am

This output of code in serial monitor:

Code: Select all

Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 93 93	ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 93 93 93 93	Manufacturer ID
reg(0x0009) 93 93 93 93 93	Status Register
reg(0x000A) 93 93	Get Power Mode
reg(0x000C) 93 93	Get Pixel Format
reg(0x0061) 93 93	RDID1 HX8347-G
reg(0x0062) 93 93	RDID2 HX8347-G
reg(0x0063) 93 93	RDID3 HX8347-G
reg(0x0064) 93 93	RDID1 HX8347-A
reg(0x0065) 93 93	RDID2 HX8347-A
reg(0x0066) 93 93	RDID3 HX8347-A
reg(0x0067) 93 93	RDID Himax HX8347-A
reg(0x0070) 93 93	Panel Himax HX8347-A
reg(0x00A1) 93 93 93 93 93	RD_DDB SSD1963
reg(0x00B0) 93 93	RGB Interface Signal Control
reg(0x00B4) 93 93	Inversion Control
reg(0x00B6) 93 93 93 93 93	Display Control
reg(0x00B7) 93 93	Entry Mode Set
reg(0x00BF) 93 93 93 93 93 93	ILI9481, HX8357-B
reg(0x00C0) 93 93 93 93 93 93 93 93 93	Panel Control
reg(0x00C8) 93 93 93 93 93 93 93 93 93 93 93 93 93	GAMMA
reg(0x00CC) 93 93	Panel Control
reg(0x00D0) 93 93 93	Power Control
reg(0x00D2) 93 93 93 93 93	NVM Read
reg(0x00D3) 93 93 93 93	ILI9341, ILI9488
reg(0x00D4) 93 93 93 93	Novatek ID
reg(0x00DA) 93 93	RDID1
reg(0x00DB) 93 93	RDID2
reg(0x00DC) 93 93	RDID3
reg(0x00E0) 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93	GAMMA-P
reg(0x00E1) 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93 93	GAMMA-N
reg(0x00EF) 93 93 93 93 93 93	ILI9327
reg(0x00F2) 93 93 93 93 93 93 93 93 93 93 93 93	Adjust Control 2
reg(0x00F6) 93 93 93 93	Interface Control
I tought my mcu clock is too fast. Is it right??

VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: STM32F103C8 & TFT (ili9325)

Post by VadimEL » Mon Jul 17, 2017 8:33 am

http://www.stm32duino.com/viewtopic.php ... 554#p31543


Paste your LCD_ID_readreg.ino example and make photo of your connection to blue pill. Your CONNECTION IS WRONG
Last edited by VadimEL on Mon Jul 17, 2017 8:48 am, edited 2 times in total.

golpesar132
Posts: 24
Joined: Mon Jul 10, 2017 1:42 pm

Re: STM32F103C8 & TFT (ili9325)

Post by golpesar132 » Mon Jul 17, 2017 8:45 am


stevestrong
Posts: 1740
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: STM32F103C8 & TFT (ili9325)

Post by stevestrong » Mon Jul 17, 2017 8:48 am

Don't you think your connection is wrong, because it only reads 0x93 ?

Post Reply