Hein (fub) wrote,
Hein
fub

  • Mood:

MACH F: Display software

The MACH F display will have to show anything the player software provides via the RS232 port. For time indications, the 6 characters I have now will suffice: hh:mm:ss. But since i have displays that can show letters, it's a shame if I wouldn't make use of those capabilities. So, it would be cool if I could scroll the name of the video or song that's playing right now across the display. Of course, with only 6 characters, there will be a lot of scrolling.

There will be two buffers: one that gets filled as characters are received via the RS232, and one that contains the characters that have to be shown. The receiving end will work like the circular RS232 buffer I made earlier -- except that the receiving buffer will not be circular, and will discard any characters that exceed the length of the buffer. With a special starting and opening character (00 and FF?), the computer can signify the start and end of a single string that is to be displayed. I'm leaning towards a buffer length of 64 characters -- long enough to show "Ghost in the Shell - Tachikoma Special" and an episode number. ;)

The display buffer will be as large as the reception buffer. With indirect adressing I will create a 'window' of 6 characters to display. A timer (or delay loop) will shift the window onwards, causing the scrolling action. When the last character is reached, the buffer will be padded with spaces.
If, after scrolling through the display buffer, there is another text waiting in the reception buffer, the reception buffer is copied into the display buffer before the display routine is called again. This also means that there is no way for the machine to interrupt the display routine -- maybe I would need that?

I'm also thinking of building the 7-segment display as well, just because I can. It would be cool if the computer could query the display module as to its capabilities (numbers-only or text), but that's for the (far?) future.
Subscribe

  • Friday Five & GenX

    What toys were popular when you were a kid? This was the height of the 80’s, the time of cartoons on TV pushing toys. They were expensive…

  • Friday Five: Food

    Food is an important subject of this blog, so I couldn’t pass up a food-themed Friday Five. 1) What is your favourite food? Okonomiyaki, no…

  • Favourite Movie Friday Five

    1) Pick one of your favorite movies: what is the title? Laputa: Castle in the Sky 2) When and where and with whom did you first see it?…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments