Code Monkey home page Code Monkey logo

cstron's Introduction

CSTroN

CSTN was once popular among low-end laptops and cellphones, and its predecessor, STN was almost the only viable option for laptop before TFT LCD was invented. Thanks to the advance of technology, they are fully replaced with TFT LCD. But just for fun, how would software and games today look like on a 90s CSTN LCD?

Basically, this project aims to build an LCD monitor based around a CSTN screen (specifically SX21V004, but once done, it is easy to adapt other panels).

This task would be easy for normal TFT LCDs, one would just need to buy the screen, the driver board, and optionally a case, assemble them together, done. Though one may build driver board and/or case yourself, but given they are easy to find and very affordable, there is not many reasons to build by oneself.

But the story is quite different for CSTN. Most of the large (>3") CSTNs use a very different interface than TFT LCD, making it impossible to connect them to normal driver board designed for TFT LCDs. CSTN driver boards are just no longer available. (But I do confirm that they once existed) Currently, the only solution is to use an FPGA to build a driver board.

This project, once again, utilize my Xilinx ML505 Virtex-5 development board. The on-board VGA decoder is used for capturing incoming VGA video signal, and the CSTN screen is connected to the XGI expansion port. (By the way, Xilinx ditched both ports on their 6 series development boards, making ML505 the last development board with lots of on-board peripherals and a 2.54mm expansion port.)

Currently, the project is almost done. It could capture the VGA signal and display the image on the screen at 60Hz Vsync. STN LCD runs at 120Hz or 240Hz to improve color depth. Demo video is coming.

License

OHDL

cstron's People

Contributors

zephray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fourks

cstron's Issues

Wondering about converting CSTN pseudo-color signal for FSTN monochrome display

The display size is 320x240. I’ve managed to map red, green, blue and yellow into gray by switching R,G,B in every 3 frames, but failed at mapping the original “gray” (probably (64,128,128) or (85,170,170)) color into gray. another method (240%9=6, 237%9=3, 234%9=0) turned it into floating black-and-white horizontal stripes, and yet another method (320*240%9) turned it into fixed short black-and-white segments (with period of 9px). I wanted to try more complex ways, but it cannot fit into my small CPLD.

I just want to find a generic way to map any CSTN pseudo-color signal (not only for a specifically given signal source) into monochrome display for pseudo-grayscale effect. Is it impossible? Am I merely wasting time? Thanks for replying.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.