 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > New 4.3" touchscreen LCD for Propeller: "used" screens for $18 | Forum Quick Jump
|
  |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/2/2010 2:20 PM (GMT -7) |   | | | |
  |  Aquaaddict Registered Member

       Date Joined Oct 2009 Total Posts : 19 | Posted 1/2/2010 2:37 PM (GMT -7) |   | |
Continuity checked each ground wire back to the breakout board, also checked each colour and sync pins etc from the prop chip leg to the LCD connector on the breakout board; all ok.
All VSS pins are grounded to one place near prop VSS, VSS near TS is taken straight to PSU terminal.
Was using this Prop setup recently with NTSC output, and have used it with LCD and OneWire; all OK.
Tried Rays suggestion:
Rayman said... Actually, try lowering the pixel rate in Paint and see what happens...
Look toward the bottom of "PSB_LcdDriver" for this line and change:
PixelClock long 8_000_000 '500_000+ read-only
to
PixelClock long 4_000_000 '500_000+ read-only
Ra
which created a visable flicker when the screen was corrupted, but didnt change the corruption at all.
With regards to colours (sorry 'colors' for most of you), the calibrate screen looks normal, the inital PSB screen is mildly corrupted as per my earlier picture. As soon as I tap the white ink square the screen looks 100% ok (dont actually touch or draw elsewhere on screen), with the black draw area; when I touch the draw area the screen corrupts again. This seems to be because the black background doesnt work, the only combinations that do work are having white ink on green, white, or red coloured draw area, with any of these combinations I can 'paint' and its all normal. I have no idea how I get green or red draw areas, they only come up after the screen corrupts and I tap around right section of the screen the colours change; then when I tap the white ink square it returns to normal but with a coloured draw area.
I have also tried a brand new prop chip, exact same problems.
Have moved all the connections to different pins on the prop, still exactly the same.
Have also put a scope on all the breakout board terminals, and can see no difference on any terminal between when it is working and when its corrupted.
Just wanted to say a big thank you; I really do appreciate the time and effort you have put in to come up with suggestions and explain the possible problems.
Ants
| | Back to Top | | |
    |  Aquaaddict Registered Member

       Date Joined Oct 2009 Total Posts : 19 | Posted 1/2/2010 3:24 PM (GMT -7) |   |
James Long said...Ants, I hate to ask, but I'm counting pins, and I do not see the SDA, and SCL for the breakout board. You may be using a different name than what I expect, but I still do not come up with enough. Could you give me a list of each break out pin, and where it is connected? James L
No problem James, my connections are as follows:
p0 Vsync p1 Hsync p2 B0-2-4-6 p3 B1-3-5-7 p4 G0-2-4-6 p5 G1-3-5-7 p6 R0-2-4-6 p7 R1-3-5-7 p8 DEN p9 DE p10 PCLK p11 BL
p27 IRQ (PI) p28 SCL p29 SDA
Neg VSS 3.3v VDD
And are set in my code as:
BackLightPin=11 DisplayOnPin=8 PixelClockPin=10 DataEnablePin=9 TouchIrqPin=27 'This pin is really optional, but touchscreen sets this whenever screen is touched NotUsedPin=26 'Need to define one pin that is not to be used for LCD (can still be used for anything else) VgaPins=%000_111
Thanks,
Ants
| | Back to Top | | |
 |  Luis Digital Registered Member
        Date Joined Nov 2006 Total Posts : 249 | Posted 1/2/2010 3:25 PM (GMT -7) |   | Hello Ants,
You can see that my PCBs are a disaster (Have you seen them?), with only 2 GNDs connected, and still work properly.
If it works for me, why do not you?
The only problem I experienced is that I had an LED connected to the vertical sync (Pin 16).
Do you have something else plugged into your Propeller? | | Back to Top | | |
  |  James Long Lil Brother SMT Assembly Services

       Date Joined Aug 2004 Total Posts : 1181 | Posted 1/2/2010 3:37 PM (GMT -7) |   | Aquaaddict said...James Long said...
Ants,
I hate to ask, but I'm counting pins, and I do not see the SDA, and SCL for the breakout board. You may be using a different name than what I expect, but I still do not come up with enough.
Could you give me a list of each break out pin, and where it is connected?
James L
No problem James, my connections are as follows: p0 Vsync p1 Hsync p2 B0-2-4-6 p3 B1-3-5-7 p4 G0-2-4-6 p5 G1-3-5-7 p6 R0-2-4-6 p7 R1-3-5-7 p8 DEN p9 DE p10 PCLK p11 BL
p27 IRQ (PI) p28 SCL p29 SDA
Neg VSS 3.3v VDD
And are set in my code as:
BackLightPin=11 DisplayOnPin=8 PixelClockPin=10 DataEnablePin=9 TouchIrqPin=27 'This pin is really optional, but touchscreen sets this whenever screen is touched NotUsedPin=26 'Need to define one pin that is not to be used for LCD (can still be used for anything else) VgaPins=%000_111
Thanks,
Ants
Ants,
I think the first set of pins are the problem. Something isn't right there.
Ray will have to comment further about if that will work or not. I don't remember the order of those pins.
James L James L Partner/Designer Lil Brother SMT Assembly Services
Are you addicted to technology or Micro-controllers..... then checkout the forums at Savage Circuits. Learn to build your own Gizmos! | | Back to Top | | |
 |  Aquaaddict Registered Member

       Date Joined Oct 2009 Total Posts : 19 | Posted 1/2/2010 3:44 PM (GMT -7) |   | | changed them to GRB and it just corrupts the same but this time with pychadelic colours, with the way I had it originally the colours looked normal compared to others screenshots. | | Back to Top | | |
  |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/2/2010 4:14 PM (GMT -7) |   | | | |
   |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/2/2010 4:25 PM (GMT -7) |   | | | |
  |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/2/2010 5:30 PM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/2/2010 5:37 PM (GMT -7) |   | | | |
 |  mctrivia Registered Member

       Date Joined Jan 2009 Total Posts : 3482 | Posted 1/2/2010 5:43 PM (GMT -7) |   | | | |
  |  ry.david Registered Member
        Date Joined Jun 2007 Total Posts : 55 | Posted 1/3/2010 9:32 AM (GMT -7) |   | I modified the original 8x16 font Rayman posted (thanks again!) to make some a basic GUI. I modified the first 30 characters for the GUI elements, and slightly modified the 0-9, A-Z, and a-z.
Here are the functions I added to the driver test:
'UpdateProgressBar 'Creates and updates a progress bar 'Call first time with percent of 0 to create, afterwards call with percent
PUB UpdateProgressBar(percent, barcolor) | columns, oldcolor columns := (percent * 40) / 100
oldcolor := color color := barcolor
if columns == 0 SetPos(10, 14) print($01) repeat 38 print($02) print($03)
elseif columns == 1 SetPos(10, 14) print($04)
elseif columns == 40 SetPos(49, 14) print($06)
else SetPos(columns + 9, 14) print($05)
color := oldcolor
'CreateButton 'Creates button using supplied text, framecolor, and text color
PUB CreateButton(text, framecolor, textcolor) | oldcolor oldcolor := color color := framecolor
Print($08) repeat strsize(text) Print($09) Print($0A)
row++ col -= strsize(text) + 2
Print($07)
color := textcolor PrintStr(text)
color := framecolor Print($0B)
row++ col -= strsize(text) + 2
Print($0E) repeat strsize(text) Print($0D) Print($0C)
col++ row -= 2
color := oldcolor
'SetPos 'Moves cursor to specific column and row
PUB SetPos(x, y) col := x row := y
Image Attachment :
 DSC_0004.jpg 60KB (image/jpeg)This image has been viewed 93 time(s). | | | |
File Attachment : GUI_8x16.dat 4KB (application/octet-stream)This file has been downloaded 28 time(s). File Attachment : GUI_8x16.pfn 40KB (application/octet-stream)This file has been downloaded 30 time(s). | | Back to Top | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 1/3/2010 12:43 PM (GMT -7) |   | |
Looks great! Don't get mad, but I think I like this new version of 8x16 font driver better:
It's based on 8x8 tiles, stored in 4-color mode, like the Parallax ROM font.
This way, one can mix in 2-bit color tiles with the regular font...
The dat generator program now recognizes "GLYPH2" as a 2-bit color glyph (see first two characters in this example).
This should make it easier to add fancy looking buttons, etc...
My Prop Info&Apps: http://www.rayslogic.com/propeller/propeller.htm
File Attachment : PSB_8x8_TileDriverTest - Archive [Date 2010.01.03 Time 14.40].zip 14KB (application/x-zip-compressed)This file has been downloaded 43 time(s). File Attachment : Fixedsys_2bit.pfn 43KB (application/octet-stream)This file has been downloaded 35 time(s). File Attachment : FontDatGen_8x8_tiles.zip 767KB (application/x-zip-compressed)This file has been downloaded 31 time(s). | | Back to Top | | |
 | 648 posts in this thread. Viewing Page : | | Forum Information | Currently it is Thursday, July 29, 2010 5:16 PM (GMT -7) There are a total of 462,439 posts in 62,066 threads. In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
| | Who's Online | This forum has 20143 registered members. Please welcome our newest member, ME01. 54 Guest(s), 9 Registered Member(s) are currently online. Details John Abshier, Rayman, kf4ixm, BradC, Sapieha, Gene Bonin, laser-vector, localroger, Nick McClick |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|