Port-luna68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

LUNA framebuffer mod for LCDs without Sync on Green support



I wrote:

> Framebuffer mod to connect the ancient LUNA to modern LCD:
>  https://twitter.com/tsutsuii/status/491203988423843840/photo/1
>  https://twitter.com/tsutsuii/status/495027255551086592/photo/1
> 
>  The original LUNA requires a "Sync-on-Green" display.
>  However nowadays few LCDs support it so I modified the framebuffer
>  to output H-sync and V-sync and disable Sync signals on Green line.

I received an inquiry about this framebuffer mod from a LUNA user,
so I'd like to note how I modified my LUNAs.


 DISCLAIMER: there is no warranty. Try it ON YOUR OWN RISK :-)


1. Overview

There are many articles how to "separate" H/V-sync signals from
the Sync-on-Green line (for PlayStation2 Linux kit for example).
 http://www5.big.or.jp/~yosizawa/ps2linux/ 

However, unfortunately this method doesn't always work on LUNA
because LUNA's compsite sync signal mixed on the Green signal
line is a bit strange.

Instead, I pickup H-sync and V-sync signals from CRTC chip
on the framebuffer and disable composite signal mixture
on the RAMDAC chip.


2. Sync signals on LUNA

The "Normal" composite signals on Green line should be as the following:
 http://twitpic.com/d2imd8
 (this is green signal of DEC 3000/300 sfb(4))

On the other hand, LUNA (and some hp300 models) outputs the following
composite signals:
 http://twitpic.com/d2imzn

This means the h-sync signal stops during v-sync output period.
Most modern LCDs detects this short interrupt as "lost signal"
and doesn't display images properly.

Anyway, composite sync signal is generated from raw V/H-sync,
so it's much easier to use these raw signals directly than
separating mixed signals from green line.


3. Framebuffer mods

The necessary modifications are:

(1) disable "mixing composite sync onto green line" on RAMDAC
(2) pickup H/V-sync signals from CRTC via buffer
(3) pickup R/G/B signals from around BNC connectors

LUNA's 1bpp and 4bpp framebuffers use
HD6445P CRTC (40pin DIP) and Bt454 RAMDAC (44pin PLCC):
 https://twitter.com/tsutsuii/status/356784697122103300/photo/1

 Package pin layout:
  https://twitter.com/tsutsuii/status/499381430799974400/photo/1
  https://twitter.com/tsutsuii/status/499381580989612032/photo/1

8bpp framebuffer uses
HD6445CP CRTC (44pin PLCC) and Bt458 RAMDAC (84pin PLCC):
 https://twitter.com/tsutsuii/status/488056548401246208/photo/1 

 Package pin layout:
  https://twitter.com/tsutsuii/status/490894571325239296/photo/1
  https://twitter.com/tsutsuii/status/499381847055298561/photo/1 


3-(1) Disable "mixing composite sync onto green line" on RAMDAC

The composite sync signal generated by several TTL is connected
to "SYNC" pins of Bt454 (23pin) and Bt458 (58pin) to generate
sync-on-green signal.  We have to pulldown this SYNC pin
to disable sync-on-green.

Instead of cutting pattern on PCBs, we can simply de-solder
and bend output pins of TTL that generates composite sync
from H/V-sync signals.

On 1/4bpp framebuffer the output is IC61 74ALS175 11pin:
 https://twitter.com/tsutsuii/status/356791326160846849/photo/1
 (note my tweet says 10pin but it's typo)

On 8bpp framebuffer it's IC65 74ALS175 10pin:
 https://twitter.com/tsutsuii/status/490907051325788160/photo/1

You can simply connect the sync signal pattern to ground,
but it may be safer to use a proper pulldown registers.


3-(2) Pickup H/V-sync signals from CRTC via buffer

On 1/4bpp framebuffer H-sync and V-sync are connected to
IC52 74ALS32 14 pin and 15pin:
 https://twitter.com/tsutsuii/status/356801583222231041/photo/1

On 8bpp framebuffer H-sync and V-sync are connected to
IC65 74ALS175 4 pin and 5 pin:
 https://twitter.com/tsutsuii/status/490910760348827648/photo/1

(check which is V or H by your circuit tester)

I put 74HC04 as buffers to avoid ESD etc. from connector to CRTC chips,
though it's also better more LCR parts for proper protection..
(these were just my hobby mod ;-p)

I put the HC04 on other TTLs and only two invertors are necessary
for H/V signals.  All unused pins should be connected to GND.
 1/4bpp boards:
  https://twitter.com/tsutsuii/status/356796649164660736/photo/1
 8bpp board:
  https://twitter.com/tsutsuii/status/490907051325788160/photo/1

Inverted H/V-sync signals via HC04 are connected to VGA connector:
 1/4bpp boards:
  https://twitter.com/tsutsuii/status/356817367944265728/photo/1
 8bpp board:
  https://twitter.com/tsutsuii/status/490920576047783937/photo/1

Modern LCDs recognize both polarities of sync signals, so
we don't have to consider how many times we should invert them :-)


3-(3) Pickup Red/Green/Blue signals from around BNC connectors

Sync signal on green line is already disabled so it's enough
to pickup RGB signals from pattern around BNC connectors:
 1/4bpp boards:
  https://twitter.com/tsutsuii/status/356814584830623744/photo/1
  https://twitter.com/tsutsuii/status/356811908168445953/photo/1
 8bpp board:
  https://twitter.com/tsutsuii/status/490918087382663168/photo/1
  https://twitter.com/tsutsuii/status/490922202401759232/photo/1

(It's also better to use shielded cables but again it's my hobby mod)

On the 1bpp board, only green line can be connected to VGA
so you will get "green on black" monochrome screen.
You can also have circuits to distribute the green signal
to red and blue lines using some video buffers, but it's
another challenge.
 https://twitter.com/tsutsuii/status/356457950035988480/photo/1


4. Prepare backpanel for VGA connector

It's a simple sheet metal work.  Aluminum sheet may be easy to work
using a drill and a metal file.
 https://twitter.com/tsutsuii/status/356735265928261632/photo/1
 https://twitter.com/tsutsuii/status/491181794134196224/photo/1
 https://twitter.com/tsutsuii/status/491184106420441088/photo/1
 https://twitter.com/tsutsuii/status/491185857517191168/photo/1
 https://twitter.com/tsutsuii/status/491200467544723456/photo/1


5. Assemble and check

 https://twitter.com/tsutsuii/status/491203988423843840/photo/1
 https://twitter.com/tsutsuii/status/491202805068091392/photo/1
 https://twitter.com/tsutsuii/status/491213850956414976/photo/1

It's also strongly recommended to check all connections
before powerup and tests.
(Sorry I didn't prepare schematics for these mod)

Again, there is no warranty on these descriptions and
there is a risk to break your favorite LUNA hardware during mod.
I strongly assume that you have enough digital electronics knowlege
and experience of such soldering work.  Try it on your own risk.


Note there is another simply solution:
"Search displays that support sync-on-green."
There are several database for PlayStation2 Linux:
 http://ps-2.kev009.com/sog/
 (though this might not work as expected due to the incomplete
  composite sync signal on LUNA as described above)

Anyway, I hope this article will help more LUNAs to get working again.

Have fun,
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index