[表紙頁]へ  関連記事の目次へ
[令和二年六月二十三日(2020/06/23)]
PC110 TFT化プログラムct65535b 改良版 [to English Note

我楽多苑式)TFT化PC110で、Win95、Win98を走らせている時(図2<クリック>)、Fn+F7キーで“外部ディスプレイ(CRT)”に切り替えると、一時的に、横幅が半分以下に縮んだ画面になるが、更にキーを押すと、正常に“外部ディスプレイ”に表示が出る。
ところが、それから、Fn+F7キーで、“内部表示(LCD)”に戻そうとすると、横幅半分以下の画面から抜け出せなくなる。(図1)

結局、元に戻すには、一旦、「PC110」を再起動しなければならない。(図2<クリック>
(勿論、ルート・ディレクトリにct65535b.exeが置いてあり、autoexec.bat内の先頭に、ct65535b /l が書いてあるという前提だが)

今回、画面上に「ショート・カット(フル・スクリーン表示)」を用意して、それをクリックすれば、再起動せずに、即座にLCD側に切り替えられる「ct65535b.exe」(zipファイル)を作成した。

その(見難い)“アイコン”をクリックして、実行させるには少し慣れが必要だ。勿論、“キー操作”だけでも起動出来るので、“アイコン”をクリックするよりは楽だ(と思う)。

PC110」TFT化プログラム:ct65535b /起動時オプション
  ct65535b[.exe] /l ;表示をLCD(内部)に切り替える
  ct65535b[.exe] /c ;表示をCRT(外部)に切り替える(要ポトリ)
  ct65535b[.exe] /s ;常駐し、表示を最初はLCDに切り替える(DOS上でのみ有効)
             ;常駐させた場合、Alt+F7キー、Ctlr+F7キーで、画面をLCDかCRTかに切り替えられる
  ct65535b[.exe] /r ;常駐を、解除する
  ct65535b[.exe] /k ;キー待ちになる(レジスタ類の表示、書き換えが可能)
  ct65535b[.exe]   ;表示をLCDにセットし、直ぐ終了する(Win上でも有効)

Win95,98上では、内部(LCD)から外部(CRT)へ切り替えるには、Fn+F7キーで良い。
逆に、外部(CRT)から内部(LCD)に戻すには、Ctrl+Alt+ESCキー同時押しの後、↑キーで2段上の「ファイル名を指定して実行」へ移行し、エンターキーを押した後、枠内に(ほぼ目暗打ちで)「ct65535b」と打てば良い。

尚、このプログラムを使う為には、ハードウェアの用意が前提。それを以下に纏めておく。
此処で紹介するプログラム、データなどは、営利目的以外なら利用は自由。但し、それによる損害については、当苑は免責。

尚、「PC110」のBIOSを,直接、部分修正することが出来れば、このプログラムは不要に出来るはずだが、私は、未だそれを実現出来ないでいる。
もし、解読に挑戦される人の為に、「PC110」が動作時に、F000:0000h〜F000:FFFFhまでのバイナりを採取し、それを逆アセンブルしTXT化した資料を付しておく。(資料
(これは、IBM or Lenovo社の権利保有品であり、改変の許可は受けていないので、取り扱いには注意が必要!)

−−−−−−−−−−−−−−−−−−−−−−−−−

+++ ハードウェア構成 +++

TFT-LCDモジュール」は、主に、5型・6型ハンディ・ナビ機からの流用。 本体は中古、ジャンク品でも、LCD/液晶が割れていなければ、ほぼ利用可能。
(例えば、5型ではDTN-650(40pin)、DTN-680、6型ではDTN-6500など)
新品5型に関しては、未だ、[eBay-UK (5 inch TFT-module 40Pin)]で、手に入るようだ。
日本への配送は、断られる可能性があるので、事前確認が必須!

実は、これらは、表示サイズが“800x480”で、本来必要な“640x480”よりも多いので、右端160ライン分には表示が出ない。(出ても、ノイズ的な縦線のみ)
5型“640x480”(AT050TN23 V.1/AT050TN22 V.1)を見付けたので、これが使えるかどうかを調べてみたい。(今、発注したが、到着は多分1か月先だろうと思う)
...と書いたが、何故か?発注した後で、日本への配送は不可!という表示が出た。その後、「Paypal」から返金処理がなされ、販売主からの謝りのメールが来た。売り方にも寝耳に水の話だったようだが、時にはこんなこともあるらしい。

中継基板」は、(当苑で実験的に決めた)「結線図」を基に自作が可能
また、基板製作の為の「ガーバーデータ(2020/09更新)」を用意したので、それで少量生産PCBの製作を依頼することも出来る。(図4<クリック>)
(具体例:Seeed/Fusion 日本では輸入品になるので、関税などに注意)
その「中継基板」を使えば、5型、6型のどちらにでも接続が可能。(図3)

尚、前枠内側の桟は、適当に削除し、前枠の窓も調整に工夫する必要がある。
今回使った「TFT-LCD」は、800x480なので、右側に非表示の領域(=800-640)が出来る。
実は、画面を右寄せにしたいのだが、本体側のプログラムでは、対処出来ないようだ。
TFTモジュール内部の回路で決まってしまっているのだろうと思う。
“SVGAモード(800x600)”でも、部分的な表示は出るが、やはり、右端は表示されないままだ。


+++ 通常と異常表示の問題 +++

OSがDOS、Win共に、パスの通った場所に「ct65535b.exe」を置いて、「autoexec.bat」の先頭行に、[ct65535b /l]と書き込んでおけば、OSが立ち上がって来たら、ほぼ間違い無くLCD表示が出る(はず)。(図5)
だが、ドライブ起動順序が違っていたりすると、実際にOSを仕込んだCFPCカードFDなどから素直に起動出来ないことがある。
その場合は、何とかして、“Fn+F7キー”で“外部表示”に切り替えて、BIOSの“イージーセットアップ”を表示させるべく、努める必要があろう。
(ここで、時たま、私の堪忍袋が弾けることもある。苦笑)

未だ未解決なのが、“Fn+F7キーによる表示異常”の問題”だ。(図6<クリック>)
“該当する割り込みベクタ”を発見出来れば、対処は可能だろうと思うが、未だ見付けられず。
止む無く、上記のような姑息な手段を用いている。

尚、“TFT化”にすると、DSTN−LCDではあまり気付かなかった、フリッカーが目立って来る。
これは、DSTN-LCDでは2分割駆動方式でそれを目立たせないようにしているが、“TFTモジュール”では順次駆動方式なので、止むを得ないと思う。
只、個体差もあって、目立つものや、あまり目立たないものもあり、ピンキリなのが現状。


[表紙頁]へ  関連記事の目次へ
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
[English Note]
PC110 TFTrize program ct65535b improved version  [2020/06/23]


(GarakutaEn's specially made) TFTzized PC110 When running Win95, Win98(Fig_2 <click>), switch to “External display (CRT)”with Fn+F7 keys, The screen width is reduced to less than half, but when I press the key further, the display will appear normally on the "external display".
However, when I try to return to "Internal display (LCD)" with the Fn+F7 keys, I cannot get out of the screen with a width less than half. (Fig_1)
After all, I have to reboot to get it back. (Fig_2 <click>)
(Of course, ct65535b.exe is placed on the root directory or on path'ed location, and ct65535b /l is written at the beginning of autoexec.bat. It is assumed that there is)

This time, I made the program that not require restarting, and by click/start "short cut (full screen display)" of this program, the display can be switch to the LCD side in one shot. ct65535b.exe” (zip file).

(Difficult to see) It takes a little getting used to clicking "Icon" to execute it, but it is easier than clicking "Icon" because it can be started only by "Key operation".

"PC110" TFT conversion program: ct65535b /one option
  ct65535b[.exe] /l  ; switch display to Lcd (internal)
  ct65535b[.exe] /c  ; switch display to Crt (external) (PortReplicator required)
  ct65535b[.exe] /s  ; Stay resident, switch display first to LCD (use only on DOS)
              ; When resident, Alt+F7 keys or Ctlr+F7 keys can switch the screen to LCD or CRT
  ct65535b[.exe] /r  ; Release resident
  ct65535b[.exe] /k  ; wait for Key (registers can be displayed and rewritten)
  ct65535b[.exe]    ; set the display to LCD, and immediately terminate (available on Win and DOS)

On Win95,98, I can switch from internal (LCD) to external (CRT) by pressing Fn+F7.
Conversely, to return from the external (CRT) to the internal (LCD), press Ctrl+Alt+ESC keys at the same time, and then use the ↑ up_key to move to the second line "Enter and Run", and I'll type "ct65535b" into the frame (almost blindly).

In order to use this program, hardware must be prepared. It is summarized below.
The programs and data introduced here can be used freely except for commercial purposes. However, I do not take responsibility for loss or damages caused by it.

If some one can modify the BIOS of "PC110" directry, this program should be unnecessary, but I haven't realized it yet.
If some one will trying to decipher, take the binaries from F000:0000h to F000:FFFFh when "PC110" is in operation, disassemble them, and attach the TXT data. (zip file)
(This is an IBM or Lenovo proprietary product and has not been approved for modification, so be careful when handling it !)

−−−−−−−−−−−−−−−−−−−−−−−−−

+++ Hardware configuration +++

The "TFT-LCD module" was mainly gotten from the 5-inch and 6-inch handheld navigation devices which trade in second-hand market. If those not broken of LCD, almost usable.
(For example, DTN-650 (40pin), DTN-680 for 5-inch and DTN-6500 for 6-inch)
Regarding the new 5-inch module, It'll be able to still get on eBay-UK (5 inch TFT-module 40Pin)] at this time.
Delivery to Japan may be refused, so prior confirmation is essential !
(Current: 6/20, 10 or more will be sold)

Actually, these have a display size of "800x480", which is larger than the originally required "640x480", so the rightmost 160 lines cannot be displayed. (Even if it appears, only vertical lines that look like noise)
I've found a 5-inch 640x480" (AT050TN23 V.1 / AT050TN22 V.1), so I'd like to find out if it can be used.
(I ordered it now, but I think it will probably arrive a month later.)
I wrote, but after ordering, delivery to Japan is not possible! Is displayed. After that, the refund process was done from "Paypal" and the seller apologized. It seems that even the seller did not know.

"Relay board" can be made by oneself based on the "connection diagram" (experimentally determined).
In addition, I have prepared "Gerber data" for board production, so I could request the production of small-volume PCBs to a factory. (Fig_4 <click>)
(Specific example: Seeed/Fusion Be careful of tariffs as it is an imported product.)
Using this "Relay board", I can connect to either 5-inch or 6-inch module. (Fig_3)

It is necessary to properly remove the support pieces inside, and adjust the front window size by cutting or shade.
The "TFT-LCD" used this time is 800x480, so there is a no-controllable area (=800-640) on the right side.
Actually, I want to make the screen right-justified with the program, but it seems that the program on the main unit side cannot handle it.
I think it'll be decided by the circuit inside the TFT module.
Even in "SVGA mode (800x600)", a partial display appears, but the right edge is not displayed.


+++ Normal and abnormal display issues +++

For both OS DOS and Win, put "ct65535b.exe" in a place where the root or the path's location, and then the "ct65535b /l" written at the first line in the "autoexec.bat", the LCD will almost certainly appear when the OS starts up (may be). (Fig_5)

However, if the boot drive which the CF, PC card , FD, etc. that actually loaded the OS, is not adequate sequence, the display will not becomes on the LCD.
In that case, I have to make some effort to switch to "External display" with "Fn+F7" and display "Easy Setup" of the BIOS.
(Here, sometimes I can play my patience bag. (-.-;?)

What is still unresolved is the "problem of Fn+F7 key display error".(Fig_6 <click>)
If I can find the "corresponding interrupt vector", I think I can handle it, but I have not been able to find it yet.
Without fail, he uses the above-mentioned breathtaking means.

Using the "TFT module", flicker becomes noticeable, which did not so noticeable on the DSTN-LCD.
This is because the DSTN-LCD uses two-divided area driving method to make it inconspicuous, but these "TFT module" uses the whole sequential drive method.
Depending on the TFT module characteristics, some are conspicuous and some are not so conspicuous.


to [Top page]  to [Related pages]