"Image Converter" questions

Announce wiki articles, source code or projects here

"Image Converter" questions

Postby demanik » Sat Jan 04, 2014 3:35 pm

How to transform the picture more than 320x240 pixels. I have a display 480x272 pixels.
Image
User avatar
demanik
 
Posts: 55
Joined: Sat Aug 17, 2013 5:53 pm
Location: Ukraine

Re: "Image Converter" questions

Postby David John Barker » Sun Jan 05, 2014 1:42 pm

I have uploaded a new install

http://www.firewing.info/pmwiki.php?n=Firewing.Download

which increases the resolution to 640 x 480 pixels.
User avatar
David John Barker
 
Posts: 485
Joined: Thu Nov 08, 2012 12:21 pm

Re: "Image Converter" questions

Postby demanik » Sun Jan 05, 2014 1:49 pm

Thanks.
Image
User avatar
demanik
 
Posts: 55
Joined: Sat Aug 17, 2013 5:53 pm
Location: Ukraine

Re: "Image Converter" questions

Postby skartalov » Fri Feb 14, 2014 7:41 pm

demanik wrote:How to transform the picture more than 320x240 pixels. I have a display 480x272 pixels.


Hi,
Are you using 4.3 inch tFT with a SSD1963 controller?

If yes, I am curious to find out if you have ran it already?

I have one, but still cannot initialize it. Interesting, because I have another tuft 5' with better resolution 800x480 and it runs on the same board.
It also feature the SSD1963...
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm

Re: "Image Converter" questions

Postby demanik » Fri Feb 14, 2014 8:51 pm

Iinitialize procedure
Code: Select all
SUB InitializeTFT()'------------------------------------------------------------
    TRISB = &h0000 'Data PORT 
    OUTPUT(_Reset)
    OUTPUT(_CS)
    OUTPUT(_RS)
    OUTPUT(_WR)
    OUTPUT(_RD)
   
    _Reset = 1
    DELAYMS(5)   
    _Reset = 0
    DELAYMS(5)
    _Reset = 1
    _CS = 1
    _RD = 1
    _WR = 1
    DELAYMS(5)
    _CS = 0 

    WriteCommand (&h00E2)'PLL multiplier, set PLL clock to 120M
    WriteData(&h002D)'N=$36 for 6.5M, $23 for 10M crystal
    WriteData(&h0002)
    WriteData(&h0004)
    WriteCommand (&h00E0)' PLL enable
    WriteData(&h0001)
    DELAYMS(1)
    WriteCommand (&h00E0)
    WriteData(&h0003)
    DELAYMS(5)
    WriteCommand (&h0001)  ' software reset
    DELAYMS(5)
    WriteCommand (&h00E6)   ' PLL setting for PCLK, depends on resolution
    WriteData(&h0000)
    WriteData(&h00FF)
    WriteData(&h00BE)
    //----------------------------------------------//
    WriteCommand (&h00B0)    'TFT SPECIFICATION
    WriteData(&h0020)
    WriteData(&h0000)
    WriteData((HDP >> 8)AND &h00FF)  'Set HDP
    WriteData(HDP AND &h00FF)
    WriteData((VDP >> 8)AND &h00FF)  'Set VDP
    WriteData(VDP AND &h00FF)
    WriteData(&h0000)
    DELAYMS(5)
    //----------------------------------------------//
    WriteCommand (&h00B4)    //HSYNC
    WriteData((HT >> 8) AND &h00FF)  //Set HT
    WriteData(HT AND &h00FF)
    WriteData((HPS >> 8) AND &h00FF) //Set HPS
    WriteData(HPS AND &h00FF)
    WriteData(HPW)                  //Set HPW
    WriteData((LPS >> 8) AND &h00FF) //SetLPS
    WriteData(LPS AND &h00FF)
    WriteData(&h0000)
    //----------------------------------------------//
    WriteCommand (&h00B6)    //VSYNC
    WriteData((VT >> 8) AND &h00FF)  //Set VT
    WriteData(VT AND &h00FF)
    WriteData((VPS >> 8) AND &h00FF) //Set VPS
    WriteData(VPS AND &h00FF)
    WriteData(VPW)                  //Set VPW
    WriteData((FPS >> 8) AND &h00FF) //Set FPS
    WriteData(FPS AND &h00FF)
    //----------------------------------------------//
    WriteCommand (&h0036) //rotation
    WriteData(&h0000)
    //----------------------------------------------//
    WriteCommand (&h00F0) //pixel data interface
    WriteData(&h0003)
    DELAYMS(5)
    //----------------------------------------------//
    WriteCommand (&h0029) //display on
    //----------------------------------------------//
    WriteCommand (&h00BE) //set PWM for B/L
    WriteData(&h0006)
    WriteData(&h00F0)
    WriteData(&h0001)
    WriteData(&h00F0)
    WriteData(&h0000)
    WriteData(&h0000)
    //----------------------------------------------//
    WriteCommand (&h00D0)
    WriteData(&h000D)
    //----------TFT RESET---GPIO0-------------------//
    WriteCommand (&h00B8)
    WriteData(&h0000)    //GPIO3=input, GPIO[2:0]=output
    WriteData(&h0001)    //GPIO0 normal

    WriteCommand (&h00BA)
    WriteData(&h0000)
end sub'========================================================================
Image
User avatar
demanik
 
Posts: 55
Joined: Sat Aug 17, 2013 5:53 pm
Location: Ukraine

Re: "Image Converter" questions

Postby skartalov » Fri Feb 14, 2014 10:06 pm

Ok, would you specify the values of:
Hdp, vdp and so on...
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm

Re: "Image Converter" questions

Postby demanik » Sat Feb 15, 2014 8:06 am

excuse, I forgot
HDP = 479, ' Set HDP
VDP = 271, ' Set VDP
HT = 531, ' Set HT
HPS = 43, ' Set HPS
HPW = 10, ' Set HPW
LPS = 8, ' Set LPS
VT = 288, ' Set VT
VPS = 12, ' Set VPS
VPW = 10, ' Set VPW
FPS = 4 ' Set FPS
Image
User avatar
demanik
 
Posts: 55
Joined: Sat Aug 17, 2013 5:53 pm
Location: Ukraine

Re: "Image Converter" questions

Postby skartalov » Sat Feb 15, 2014 10:19 am

Still nothing TFT doesn't initialize. Any other suggestions? Tips & Hints?
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm


Return to Firewing Wiki

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x