Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Fast library for SSD1963 LCD
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
sultanm9000

Bascom Member



Joined: 23 Aug 2014
Posts: 40

uk.gif
PostPosted: Tue Apr 28, 2015 4:57 pm    Post subject: Reply with quote

Hello
How do we draw the part of the circle (arc) to SSD1289 Please "
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Apr 29, 2015 10:19 am    Post subject: Search... Reply with quote

http://bascomforum.de/

Do a search in this forum.

And you are in the wrong section. This is the share your code section.

Ben Zijlstra
Back to top
View user's profile Visit poster's website
mahdiye

Bascom Member



Joined: 02 Aug 2016
Posts: 1

PostPosted: Mon Aug 08, 2016 3:20 pm    Post subject: Reply with quote

Hi all
It's the first time I want to run a tft lcd.
I download mrshilov'S code.I want to run a 7'' tft lcd witch has 50 pins.Resolution:800X480.
Is this code just for Resolution: 240x320?also what's the difference in running a 50 pins lcd and a 40 pins one?!
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Mon Aug 08, 2016 3:34 pm    Post subject: Check wiki Reply with quote

In the wiki on this forum a picture of the 7 inch display ssd1963. 800x480 pixels.
Back to top
View user's profile Visit poster's website
daro

Bascom Member



Joined: 15 Nov 2010
Posts: 25

blank.gif
PostPosted: Sat May 18, 2019 4:56 pm    Post subject: Reply with quote

Hi and thanks for sharing.

Last code "Landscape Test SSD1963.bas" dont work propertly witch my LCD: https://www.aliexpress.com/item/7-0-7-inch-800-480-TFT-Touch-LCD-Module-Display-Screen-Panel-with-PCB-Adapter/32916913295.html?spm=a2g0s.9042311.0.0.298e4c4dnceTBr

Black screen.

But when I program it from this code : https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11500&highlight=ssd1963

or change initialisation for this:
Code:
Sub Ssd1963_init

Cs_disp = 0
'Reset
Lcd_res = 1
Waitms 50
Lcd_res = 0
Waitms 50
Lcd_res = 1
Waitms 50

Call Ssd1963_select_reg(&He2)                               'PLL multiplier, set PLL clock to 120M
Call Ssd1963_write_data(&H0023)                             'N=0x36 for 6.5M, 0x23 for 10M crystal
Call Ssd1963_write_data(&H0002)
Call Ssd1963_write_data(&H0004)

Call Ssd1963_select_reg(&He0)                               'PLL enable
Call Ssd1963_write_data(&H0001)
Waitms 1
Call Ssd1963_select_reg(&He0)
Call Ssd1963_write_data(&H0003)
Waitms 5
Call Ssd1963_select_reg(&H01)                               'software reset
Waitms 5
Call Ssd1963_select_reg(&He6)                               'PLL setting for PCLK, depends on resolution
Call Ssd1963_write_data(&H0003)
Call Ssd1963_write_data(&H00ff)
Call Ssd1963_write_data(&H00ff)

Call Ssd1963_select_reg(&Hb0)                               'LCD SPECIFICATION
Call Ssd1963_write_data(&H0027)
Call Ssd1963_write_data(&H0000)
Whulp1 = High(hdp)                                          'Set HDP
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(hdp)
Call Ssd1963_write_data(whulp1)
Whulp1 = High(vdp)                                          'Set VDP
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(vdp)
Call Ssd1963_write_data(whulp1)
Call Ssd1963_write_data(&H0000)

Call Ssd1963_select_reg(&Hb4)                               'HSYNC
Whulp1 = High(ht)                                           'Set HT
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(ht)
Call Ssd1963_write_data(whulp1)
Whulp1 = High(hps)                                          'Set HPS
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(hps)
Call Ssd1963_write_data(hpw)                                'Set HPW
Whulp1 = High(lps)                                          'Set LPS
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(lps)
Call Ssd1963_write_data(&H0000)

Call Ssd1963_select_reg(&Hb6)                               'VSYNC
Whulp1 = High(vt)                                           'Set VT
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(vt)
Call Ssd1963_write_data(whulp1)
Whulp1 = High(vps)                                          'Set VPS
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(vps)
Call Ssd1963_write_data(vpw)                                'Set VPW
Whulp1 = High(fps)                                          'Set FPS
Call Ssd1963_write_data(whulp1)
Whulp1 = Low(fps)

Call Ssd1963_select_reg(&Hba)
Call Ssd1963_write_data(&H000f)                             'GPIO[3:0] out 1

Call Ssd1963_select_reg(&Hb8)
Call Ssd1963_write_data(&H0007)                             'GPIO3=input, GPIO[2:0]=output
Call Ssd1963_write_data(&H0001)                             'GPIO0 normal

Call Ssd1963_select_reg(&H08)                               'rotation - Set the read order from frame buffer to the display panel  

'writing from bottom to top
'Call Ssd1963_write_data(&H0000)
'writing from top to bottom
Call Ssd1963_write_data(&H0001)
'writing from right to left
'Call Ssd1963_write_data(&H0077)
'Call Ssd1963_write_data(&H0006)

Call Ssd1963_select_reg(&Hf0)                               'pixel data interface
Call Ssd1963_write_data(&H0003)                             '16-bit (565 format)

Waitms 5

Call Ssd1963_select_reg(&H29)                               'display on

Call Ssd1963_select_reg(&Hd0)
Call Ssd1963_write_data(&H000d)
End Sub
 


...LCD display correctly. But colors still are different.

I trying to change bit 3 from register 36 of displays but colors still has wrong, and colors are differend and change for every loop od main program loop. For example text witch schould be Red is Black Sad

EDIT.....
PROBLEM RESOLVED...I CHANGE TFT panel data width by register B0:

Code:
Call Ssd1963_select_reg(&Hb0)                               'LCD SPECIFICATION
Call Ssd1963_write_data(&H0000)

In my LCD is 18-bit data panel .
Back to top
View user's profile
mat-sche

Bascom Member



Joined: 02 Apr 2006
Posts: 13

germany.gif
PostPosted: Wed Sep 25, 2019 10:05 am    Post subject: Reply with quote

Hello users,

many thanks for all posts and works to this project! I will start with this TFT in the near future and I have some questions.
Is it possible to send me a schematic, how can I contact this TFT with a microcontroller, what and how many Ports I need to control this?
My plan is it to use a Arduino - ATmega256 Board with 5V power supply.

Many Thanks for your help in advance!
Back to top
View user's profile
daro

Bascom Member



Joined: 15 Nov 2010
Posts: 25

blank.gif
PostPosted: Fri Mar 13, 2020 9:27 pm    Post subject: Reply with quote

Schematic below...

Last edited by daro on Sat Mar 14, 2020 10:34 pm; edited 2 times in total
Back to top
View user's profile
daro

Bascom Member



Joined: 15 Nov 2010
Posts: 25

blank.gif
PostPosted: Sat Mar 14, 2020 9:40 pm    Post subject: Reply with quote

mat-sche wrote:
Hello users,

many thanks for all posts and works to this project! I will start with this TFT in the near future and I have some questions.
Is it possible to send me a schematic, how can I contact this TFT with a microcontroller, what and how many Ports I need to control this?
My plan is it to use a Arduino - ATmega256 Board with 5V power supply.

Many Thanks for your help in advance!


There is schematic witch i using...
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum