LCDInfo.com

http://www.lcdinfo.com
It is currently Mon Nov 25, 2024 2:57

All times are UTC + 2 hours




Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11
Author Message
 Post subject:
PostPosted: Sat Jan 24, 2004 16:32 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Suge:

What exactly is the problem you have ? What kind results do you have now ?

I'm not really familiar with VB or PictureBox but this was the question that came up when reading your post as "it doesn't work" just isn't very descriptive.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 24, 2004 18:51 
Offline

Joined: Fri Nov 28, 2003 19:09
Posts: 4
Location: Belgium, Gent
Well, I'm just getting no result. Using the function mentioned earlier isn't giving any result on the LCD.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 18:01 
Offline

Joined: Fri Nov 28, 2003 19:09
Posts: 4
Location: Belgium, Gent
This is wat I get when I'm trying to get to color of a specified location (x, y) in a picturebox:

Image

I think that the result isn't write.... someone who can help me with getting the correct results?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2004 23:53 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
n/m


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 23:56 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
n/m


Last edited by soul on Sun Jul 11, 2004 23:54, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Apr 16, 2004 6:53 
Offline

Joined: Fri Apr 16, 2004 6:29
Posts: 1
Location: INDIA
helo all

i want solution for pic microcontroller ,my problem is i want to connect LCD display for the same can any body help me :?:


Top
 Profile  
 
PostPosted: Sun Apr 18, 2004 0:13 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
RAMESH wrote:
helo all

i want solution for pic microcontroller ,my problem is i want to connect LCD display for the same can any body help me :?:

Please have a look into the other topics in this forum and there should be examples for PIC too.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 22, 2004 13:00 
Offline

Joined: Tue Jun 22, 2004 12:55
Posts: 2
Can some one post some working code like a zip with the basic frm`s en other needed files.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 12:05 
Offline

Joined: Sat Jul 08, 2006 17:49
Posts: 25
Hi,

I found this discussion very interesting but I have something to ask to the user Henri that posted his code (page 1 of this thread) to manage a T6963C with "Powerlcd" wiring: (this is a piece of his code concerning the routine WaitDisplayReady)

int Tmp;

Tmp = DlPortReadPortUshort(BASE + 0x402);
Tmp = Tmp & 0x1F;
Tmp = Tmp | 0x20;
DlPortWritePortUshort(BASE + 0x402, Tmp);

Why do you read and then write at the address BASE+0x402? Is this because the parallel port is set to EPP?

Thank you, regards.

Bob


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 18:35 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
washburn_it wrote:

Why do you read and then write at the address BASE+0x402? Is this because the parallel port is set to EPP?


That is an interesting question. It has been a while since I have had a closer look into the LPT registers but yes you should be correct that it's accessing the additional registers of the other LPT modes. (EPP probably?)
If you check from the specs how the EPP mode for example works should most likely explain why this is done this way.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 12:51 
Offline

Joined: Sat Jul 08, 2006 17:49
Posts: 25
Thanks for the answer.
Well...I translated your code (page 1) into Delphi since I have a DMF-5002 with T6963C onboard to see if I'm able to make it working (I'm trying to replicate an autopilot module for the flight simulation).
The wiring I used is the Powerlcd so it should work (I hope eheh).

Regards,

Bob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 29, 2006 12:21 
Offline

Joined: Sat Jul 08, 2006 17:49
Posts: 25
It seems it doesn't work :(
The LPT is set to EPP and the wiring scheme I adopted is the following:

LPT pin T6963

17 ----> RD
16 ----> C/D
14 ----> CE
1 ----> WR

2 to 9 --> D0 to D7

According to the OPTREX DMF-5002 user manual to read the status of the T6963C I should set: (I report exactly as it written on the manual)

RD="L", C/D="H": Status Read, C/D="L": Data Read

it's not clear when I must set the C/D=L, prior to read the D0-D7 or after.
Anyway in my program I tried this (sorry it's Delphi but I think is understandable)

portwriteb($378,0) // set the data lines to 0 to avoid dirty data

portwriteb($378+2, $04) // RD=0, C/D=1
tmp:= portreadb($378) // read D0-D7
portwriteb($378+2, $00) // RD=0, C/D=0

in this case the status (tmp) value is 0.
If I modify the code as follows:

portwriteb($378,0) // set the data lines to 0 to avoid dirty data

portwriteb($378+2, $04) // RD=0, C/D=1
portwriteb($378+2, $00) // RD=0, C/D=0
tmp:= portreadb($378) // read D0-D7

the result is the same: tmp=0

I found another document about T6963C programming reporting this:

Status Read: C/D=1, R/D=0, W/R=1, CE=0
after 150 ns read the data D0-D7 then CE=1

I modified the code as follows then:

portwriteb($378,0);

portwriteb($378+2, $05); // RD=0, C/D=1, CE=0, WR=1
tmp:= portreadb($378);
portwriteb($378+2, $07); // RD=0, C/D=1, CE=1, WR=1

the status (tmp) also in this case is 0.
At this point I'm confused and I don't know what is the correct way to read the status.
If it was all correct, it sounds strange to me that the status is always 0.
I see there is a pin on the T6963C named /HALT (active low, stop the oscillation clock) that I connected to +5V...is that correct?

Someone can help to clarify things?

Thanks, regards.

Bob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 29, 2006 16:59 
Offline

Joined: Sat Jul 08, 2006 17:49
Posts: 25
I found the problem...it's not in my code but in the wiring...even though the wiring is correct, for some reason the data line of the LPT port can't be read...I found it because I touched the T6963C and it was hot, so I tried to disconnect only the data lines and with my multimeter I have read the status register directly from the pins of the T6963C reading the STA0 and STA1 bit (both at 1).

Regards,

Bob


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11

All times are UTC + 2 hours


Who is online

Users browsing this forum: Bing [Bot] and 48 guests


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group