16 BIT HX8357C

External hardware connected to the STM32 board
nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

16 BIT HX8357C

Post by nyx123 » Sat Jan 20, 2018 4:49 pm

Any wiring diagram from my 3.2 tft lcd screen shield (16 bit hx8375c) to my "bluepill" ? I connected with my own but it appears only a white screen seems my wiring is messes me.

I use this library from stevestrong https://github.com/stevstrong/Adafruit_ ... 6bit_STM32 and use the graphic test example and outputs the serial , this

Code: Select all

TFT LCD test
TFT size is 320x480
TFT begin done.
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23230

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23229
Lines                    423012
Horiz/Vert Lines         6839
Rectangles (outline)     5713
Rectangles (filled)      134014
Circles (filled)         187446
Circles (outline)        177968
Triangles (outline)      118044
Triangles (filled)       122775
Rounded rects (outline)  53757
Rounded rects (filled)   192713
Done!
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23229
Lines                    423013
Horiz/Vert Lines         6837
Rectangles (outline)     5713
Rectangles (filled)      134018
Circles (filled)         187445
Circles (outline)        177966
Triangles (outline)      118045
Triangles (filled)       122777
Rounded rects (outline)  53757
Rounded rects (filled)   192715
Done!
rotation: 0, runtime: 23229
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23228
Lines                    423013
Horiz/Vert Lines         6837
Rectangles (outline)     5712
Rectangles (filled)      134011
Circles (filled)         187442
Circles (outline)        177967
Triangles (outline)      118044
Triangles (filled)       122778
Rounded rects (outline)  53757
Rounded rects (filled)   192713
Done!
rotation: 0, runtime: 23231
rotation: 1, runtime: 23229
rotation: 2, runtime: 23229
rotation: 3, runtime: 23229

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23229
Lines                    423013
Horiz/Vert Lines         6839
Rectangles (outline)     5712
Rectangles (filled)      134017
Circles (filled)         187446
Circles (outline)        177966
Triangles (outline)      118045
Triangles (filled)       122779
Rounded rects (outline)  53757
Rounded rects (filled)   192714
Done!
rotation: 0, runtime: 23231
rotation: 1, runtime: 23231
rotation: 2, runtime: 23229
rotation: 3, runtime: 23230

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23229
Lines                    423011
Horiz/Vert Lines         6839
Rectangles (outline)     5713
Rectangles (filled)      134008
Circles (filled)         187444
Circles (outline)        177966
Triangles (outline)      118045
Triangles (filled)       122787
Rounded rects (outline)  53756
Rounded rects (filled)   192712
Done!
rotation: 0, runtime: 23230
rotation: 1, runtime: 23231
rotation: 2, runtime: 23231
rotation: 3, runtime: 23229

Benchmark                Time (microseconds)
Screen fill              54845
Text                     23229
Lines                    423011
Horiz/Vert Lines         6839
Rectangles (outline)     5713
Rectangles (filled)      134018
Circles (filled)         187444
Circles (outline)        177966
Triangles (outline)      118044
Triangles (filled)       122789
Rounded rects (outline)  53757
Rounded rects (filled)   192712
Done!
seems my lcd shield is working but my diagram is not , i am the stupid one :lol:

I wired my screen to bluepill like this

Code: Select all

PORT DATA
DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
STM31F103
PB15 PB14 PB13 PB12 PA11 PA10 PA9 PA8 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0

CONTROL PINS
RS CS WR RST
STM31F103
PA12 PA15 PB3 PB4
im uploading my program using stlink, im not really good at circuits sorry thanks for the help in advance
Last edited by nyx123 on Sat Jan 20, 2018 6:22 pm, edited 1 time in total.

User avatar
mrburnette
Posts: 2190
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: 16 BIT HX8357C

Post by mrburnette » Sat Jan 20, 2018 5:01 pm

Maybe Steve's post:
viewtopic.php?t=2322

dannyf
Posts: 228
Joined: Wed May 11, 2016 4:29 pm

Re: 16 BIT HX8357C

Post by dannyf » Sat Jan 20, 2018 5:48 pm

I wired my screen to bluepill like this
those things generally assume a set of wiring that's consistent with the hardware. so you just need to make sure that your wiring matches the code - or what the code assumes. if not, change the wiring or change the code, until they match.

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: 16 BIT HX8357C

Post by nyx123 » Sat Jan 20, 2018 6:27 pm

I think I see it , from line 77 https://github.com/stevstrong/Adafruit_ ... it_STM32.h from stevs library.

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: 16 BIT HX8357C

Post by nyx123 » Sat Jan 20, 2018 6:30 pm

mrburnette wrote:
Sat Jan 20, 2018 5:01 pm
Maybe Steve's post:
viewtopic.php?t=2322
Ray

Looks like i need some register port datasheet for bluepill base on stevs description of his library

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: 16 BIT HX8357C

Post by nyx123 » Sat Jan 20, 2018 6:51 pm

Update :

Still no display after putting all data ports in PB0-15

david.prentice
Posts: 116
Joined: Wed Nov 16, 2016 8:52 am

Re: 16 BIT HX8357C

Post by david.prentice » Sat Jan 20, 2018 8:29 pm

The RD pin should be 3.3V when not active.

Personally, I always read ID, registers, GRAM memory ...
When you get your screen going, please could you read the ID for me.

David

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: 16 BIT HX8357C

Post by nyx123 » Sat Jan 20, 2018 8:49 pm

david.prentice wrote:
Sat Jan 20, 2018 8:29 pm
Personally, I always read ID, registers, GRAM memory ...
When you get your screen going, please could you read the ID for me.
Base from the library given created by stev and the examples exist https://github.com/stevstrong/Adafruit_ ... 6bit_STM32 he didnt provide any code that will be read you mentioned

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

Re: 16 BIT HX8357C

Post by zmemw16 » Sun Jan 21, 2018 1:57 am

disable debug pins also i think boot0/boot1 as well mess things up for port b
srp

nyx123
Posts: 16
Joined: Sat Jan 20, 2018 9:50 am

Re: 16 BIT HX8357C

Post by nyx123 » Sun Jan 21, 2018 5:45 am

zmemw16 wrote:
Sun Jan 21, 2018 1:57 am
disable debug pins also i think boot0/boot1 as well mess things up for port b
srp
By the discussion here http://stm32duino.com/viewtopic.php?f=1 ... ins#p40009 it says that the core files was already update. Question is any idea on how to disable debug pins?

And yes I use the boot1 pin for the connection of the DB2 from the LCD, am right?

Im using stm32f103c8t6 board

Post Reply