View previous topic :: View next topic |
Author |
Message |
sultanm9000
Joined: 23 Aug 2014 Posts: 40
|
Posted: Tue Apr 28, 2015 4:57 pm Post subject: |
|
|
Hello
How do we draw the part of the circle (arc) to SSD1289 Please " |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Wed Apr 29, 2015 10:19 am Post subject: Search... |
|
|
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 |
|
|
mahdiye
Joined: 02 Aug 2016 Posts: 1
|
Posted: Mon Aug 08, 2016 3:20 pm Post subject: |
|
|
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 |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Mon Aug 08, 2016 3:34 pm Post subject: Check wiki |
|
|
In the wiki on this forum a picture of the 7 inch display ssd1963. 800x480 pixels. |
|
Back to top |
|
|
daro
Joined: 15 Nov 2010 Posts: 25
|
Posted: Sat May 18, 2019 4:56 pm Post subject: |
|
|
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
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 |
|
|
mat-sche
Joined: 02 Apr 2006 Posts: 13
|
Posted: Wed Sep 25, 2019 10:05 am Post subject: |
|
|
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 |
|
|
daro
Joined: 15 Nov 2010 Posts: 25
|
Posted: Fri Mar 13, 2020 9:27 pm Post subject: |
|
|
Schematic below...
Last edited by daro on Sat Mar 14, 2020 10:34 pm; edited 2 times in total |
|
Back to top |
|
|
daro
Joined: 15 Nov 2010 Posts: 25
|
Posted: Sat Mar 14, 2020 9:40 pm Post subject: |
|
|
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 |
|
|
|