A2 Video Streamer

A
Andrew RoughanSenior Business Analyst at Clear2Pay
A2 Video Streamer
By Alex Lukacz
What is it?
• Hardware that sends Apple IIc or
IIe video serial stream over high
speed USB.
• Software that runs on desktops /
laptops / tablets and shows the
video feed.
The aim was to get a mobile
display for my IIc.
• DVD Player.
• Composite USB streamers.
• Original flat panels.
• LCD panels.
• iPad? What no video in? Arrhhh!!!
•Bulky.
•Not great use of screen space.
•Poor quality.
•Flickering.
•Noise / interference.
•Difficult to customise view size.
•Expensive.
•Hard to find.
•Poor contrast and no back light.
http://www.callapple.org/documentation/technical-notes/apple-c-flat-panel-lcd-conversion/
This will be going on my next Christmas wish list.
•Shows how hard it is to get something
that shows a reasonable picture.
http://quinndunki.com/blondihacks/?p=1998
http://www.eljavo.com/en/la-apple-c-a-color/
•LG Philips LB084S02 panel.
•Interesting option.
What problem do all of these options have in common?
COMPOSITE
Why?
•Not well suited to modern technology.
•Only monochrome on PAL IIc.
•I can go on and on and on …
Why deal with it when you don’t have to?
iPad WiFi or iPad USB?
•Suspect the lag on WiFi would be
too great.
•Streaming via USB is possible.
http://www.redmondpie.com/how-to-monitor-canon-eos-
dslr-camera-from-ipad-video/
http://www.exolabs.com/products.html
Research
http://kaput.retroarchive.org/appleii/appleiidigital.png
http://john.ccac.rwth-
aachen.de:8000/patrick/data/PALcard.pdf
How simple is this?
Cut out the composite part of the
circuit and get a better picture.
How sweet is that?
Understanding the Apple IIe by Jim Sather Page 8-18
contains schematic for PAL video circuit.
IIc video port (serial) to component (YPbPr)
Analysing signals from the IIc video
port.
Checking to see which signals are
going to be ok to send digitally.
Expected to see a square 14M signal
but found a saw wave instead.
Logic Analyser Testing
Clock pulse does not look even but that is because this Logic
Analyser does not have a 14MHz (or multiple of) clock selection.
Will need to use the Apple II clock when streaming data.
Which graphics tool do I use to display the Apple II window?
Needs to be portable.
Knock something up and display a test pattern.
Microcontroller with high speed USB
Cypress EZ-USB FX2LP microcontroller
(CY7C68013A).
14MHz streaming over high speed USB
$10 device
Easy to connect
Lossless signal
No overhead with video protocols
Bypass NTSC / PAL processing
Modes:
‘Ports’ mode
‘Slave FIFO’ mode
GPIF - General Programmable Interface
'Slave FIFO' mode:
Synchronous
AUTOIN
USB side:
EndPoints
BULK, INTERRUPT or ISOCHRONOUS transfers
Buffers
Packet per transfer
Queues
Programming:
RAM
EEPROM
USB from application
Sampling
14MHz -> Clock
WNDW Bit[0] -> Line and page sync
SEROUT Bit[1] -> Data bit
CREF Bit[2] -> Colour reference signal. Needed?
GR Bit[3] -> Graphics mode
Spare Bit[4] -> Maybe for colour - TEXT?
Spare Bit[5] -> Maybe for colour - SEBG?
Spare Bit[6] -> Maybe for colour - LDPS?
Spare Bit[7] -> Spare
Note: For monochrome only the clock and bits 0 and 1 are needed.
Development and Testing
Firmware Software
Keil uVision2 Microsoft Visual C++ 2008
Cypress USB examples are great if you have the professional versions of uVision2
and Visual Studio but if you have the free versions then they are a pain in the butt.
That’s the difference you get when using products from a company that targets the
commercial sector as opposed to the education sector.
if (EndPt->FinishDataXfer(buffers[i], rLen, &inOvLap[i], contexts[i])) {
BytesXferred += len;
for (int iByte = 0; iByte < rLen; iByte++) {
if (!bProcessData) {
if (!(buffers[i][iByte] & 1)) {
if (iDisplayBlank > 8000) {
iDisplayY = 191;
}
else {
if (iDisplayY > 0)
iDisplayY -= 1;
}
// iDisplayX = -7; // 80 column setting.
iDisplayX = -13; // 40 column setting.
iDisplayBlank = 0;
bProcessData = TRUE;
}
else {
iDisplayBlank += 1;
}
}
if (bProcessData) {
if (iDisplayX < 560) {
if (iDisplayX >= 0) {
if (!(buffers[i][iByte] & 2)) {
color[iDisplayY][iDisplayX][0] = 255;
color[iDisplayY][iDisplayX][1] = 255;
color[iDisplayY][iDisplayX][2] = 255;
}
else {
color[iDisplayY][iDisplayX][0] = 0;
color[iDisplayY][iDisplayX][1] = 0;
color[iDisplayY][iDisplayX][2] = 0;
}
}
iDisplayX += 1;
}
else {
bProcessData = FALSE;
}
}
}
}
Take out the Window, OpenGL and USB code and the remaining code is
quite short. The data processing part is very simple.
Results
High Resolution Graphics Double High Resolution Graphics
Note: Page is shifted to the left compared to HGR.
ResultsText
Monochrome
text can be any
colour
including
white, green or
amber.
Colour
display is
still a
work in
progress.
Colour
Will try and match something like AppleWin output.
Normal 50% Scan Lines
Issues
• Still working on getting a colour solution.
• Could only get BULK USB working. Prefer to get ISOCHRONOUS transfers
working.
• 80 Columns starts a character earlier than 40 Columns even though they
both have the same line width.
• Need to crapify (technical word) the picture to make it look more like a
vintage monitor. This is the same issue that emulator developers have.
Extra Information
WNDW signal is good for synchronisation because it changes state just before
the data begins but it can not be used to determine the end of line because
it finishes before the data ends.
LDPS signal can be used to determine if 80 Columns/HGR or 40 Columns/GR
is being used. Pulse is half the size for 80 Columns / HGR.
To determine which graphics mode is selected these signal lines are needed.
Will this be needed for colour processing?
Mode TEXT Mixed GR/TEXT Mixed HGR/TEXTHGR DHGR
GR = 0 5/0 5/0 5 5
TEXT = 5 0/5 0/5 0 5*
SEBG = pulse 5/5 0/0 0 0
* TEXT signal is high in DHGR mode.
Design Note
Using SEROUT and accompanying signals is not difficult. I encourage you to
give it a go. I’ve used this method to build a better streamer but I would like to
see what others can do.
VGA cards like the Guimauve 2000 and Nishida Radio’s VGA options already
process serial data. They use FPGAs to do the processing but what about
using other devices such as a Raspberry Pi or a PSoC or a dedicated VGA
chip?
As screen technology has progressed video adaptors have been built
to take up the slack from dwindling numbers of the original display
solutions. As screen sizes increase the less appealing they for me as
vintage monitor replacements. What sparks my interest is the current
tablet market because the screens are of a similar size to our old
favourites and the high resolutions can be used to reduce pixellation.
I thought that video streaming to the iPad would take one to two days to set up.
It has taken quite a bit longer and I’m only half way there.
To be continued …
http://lukazi.blogspot.com.au/search?q=A2VideoStreamer
Conclusion
1 of 22

Recommended

Putting an Apple IIgs BBS on the internet by
Putting an Apple IIgs BBS on the internetPutting an Apple IIgs BBS on the internet
Putting an Apple IIgs BBS on the internetAndrew Roughan
2.2K views20 slides
OzKFest 2015 - (Solid) State of the Nation by
OzKFest 2015 - (Solid) State of the NationOzKFest 2015 - (Solid) State of the Nation
OzKFest 2015 - (Solid) State of the Nationapple2europlus
1.1K views27 slides
It's game time by
It's game timeIt's game time
It's game timeMatt Jenkins
976 views22 slides
Apple II Floppy disk emulation explained by example by
Apple II Floppy disk emulation explained by exampleApple II Floppy disk emulation explained by example
Apple II Floppy disk emulation explained by exampleAndrew Roughan
5.8K views15 slides
Internet Technology for the Commodore 64 by
Internet Technology for the Commodore 64Internet Technology for the Commodore 64
Internet Technology for the Commodore 64Leif Bloomquist
2.5K views28 slides
More Mad Science for the Commodore 64 (ECCC 2015) by
More Mad Science for the Commodore 64 (ECCC 2015)More Mad Science for the Commodore 64 (ECCC 2015)
More Mad Science for the Commodore 64 (ECCC 2015)Leif Bloomquist
1.5K views15 slides

More Related Content

What's hot

Asus Tinker Board by
Asus Tinker BoardAsus Tinker Board
Asus Tinker BoardNiyazi Saral
3.3K views15 slides
BeagleBone Black Using Python by
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using PythonSai Viswanath
9.1K views27 slides
Alessandro Abbruzzetti - Kernal64 by
Alessandro Abbruzzetti - Kernal64Alessandro Abbruzzetti - Kernal64
Alessandro Abbruzzetti - Kernal64Scala Italy
2.5K views53 slides
Wi-Fi Modem For the Commodore 64 by
Wi-Fi Modem For the Commodore 64Wi-Fi Modem For the Commodore 64
Wi-Fi Modem For the Commodore 64Leif Bloomquist
4K views12 slides
Beaglebone And Android by
Beaglebone And AndroidBeaglebone And Android
Beaglebone And AndroidLars Gregori
698 views27 slides
Pandaboard by
PandaboardPandaboard
PandaboardSagar Patel
731 views20 slides

What's hot(20)

Asus Tinker Board by Niyazi Saral
Asus Tinker BoardAsus Tinker Board
Asus Tinker Board
Niyazi Saral3.3K views
BeagleBone Black Using Python by Sai Viswanath
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using Python
Sai Viswanath9.1K views
Alessandro Abbruzzetti - Kernal64 by Scala Italy
Alessandro Abbruzzetti - Kernal64Alessandro Abbruzzetti - Kernal64
Alessandro Abbruzzetti - Kernal64
Scala Italy2.5K views
Beaglebone And Android by Lars Gregori
Beaglebone And AndroidBeaglebone And Android
Beaglebone And Android
Lars Gregori698 views
Interfacing the Raspberry Pi to the World by Omer Kilic
Interfacing the Raspberry Pi to the WorldInterfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the World
Omer Kilic9.1K views
Debian & the BeagleBone Black by Raju Vindane
Debian & the BeagleBone BlackDebian & the BeagleBone Black
Debian & the BeagleBone Black
Raju Vindane971 views
Beagle bone black by Boddukuri venkata saiteja by Sai Charan
Beagle bone black  by Boddukuri venkata saitejaBeagle bone black  by Boddukuri venkata saiteja
Beagle bone black by Boddukuri venkata saiteja
Sai Charan351 views
Hands On Embedded Linux with BeagleBone Black by Daniele Costarella
Hands On Embedded Linux with BeagleBone BlackHands On Embedded Linux with BeagleBone Black
Hands On Embedded Linux with BeagleBone Black
Daniele Costarella3.3K views
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black by Drew Fustini
Taking the BeagleBone Cookbook recipes beyond BeagleBone BlackTaking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Drew Fustini837 views
Connecting Hardware to the Web with the BeagleBone by Frank Hunleth
Connecting Hardware to the Web with the BeagleBoneConnecting Hardware to the Web with the BeagleBone
Connecting Hardware to the Web with the BeagleBone
Frank Hunleth3.8K views
Single board computer options by ALTANAI BISHT
Single board computer optionsSingle board computer options
Single board computer options
ALTANAI BISHT1.2K views

Similar to A2 Video Streamer

Introducing the Arduino by
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
2.1K views49 slides
Getting Started With Raspberry Pi - UCSD 2013 by
Getting Started With Raspberry Pi - UCSD 2013Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013Tom Paulus
1.9K views67 slides
Real by
RealReal
Realropesh
301 views4 slides
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICE by
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICEINTERACTIVE KIOSK SOLUTION FOR SELF-SERVICE
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICEPartner Tech Corp
269 views7 slides
Raspberry pi technical documentation by
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentationGR Techno Solutions
1.1K views56 slides
Android Things Linux Day 2017 by
Android Things Linux Day 2017 Android Things Linux Day 2017
Android Things Linux Day 2017 Stefano Sanna
536 views52 slides

Similar to A2 Video Streamer(20)

Getting Started With Raspberry Pi - UCSD 2013 by Tom Paulus
Getting Started With Raspberry Pi - UCSD 2013Getting Started With Raspberry Pi - UCSD 2013
Getting Started With Raspberry Pi - UCSD 2013
Tom Paulus1.9K views
Real by ropesh
RealReal
Real
ropesh301 views
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICE by Partner Tech Corp
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICEINTERACTIVE KIOSK SOLUTION FOR SELF-SERVICE
INTERACTIVE KIOSK SOLUTION FOR SELF-SERVICE
Partner Tech Corp269 views
Android Things Linux Day 2017 by Stefano Sanna
Android Things Linux Day 2017 Android Things Linux Day 2017
Android Things Linux Day 2017
Stefano Sanna536 views
2014 09 12 Dia Programador Session Materials by Bruno Capuano
2014 09 12 Dia Programador Session Materials2014 09 12 Dia Programador Session Materials
2014 09 12 Dia Programador Session Materials
Bruno Capuano1.5K views
how to use ZY-FGD1442701V1 with mbed by Kei Yoshimura
how to use ZY-FGD1442701V1 with mbedhow to use ZY-FGD1442701V1 with mbed
how to use ZY-FGD1442701V1 with mbed
Kei Yoshimura956 views
Innovation with pcDuino by Jingfeng Liu
Innovation with pcDuinoInnovation with pcDuino
Innovation with pcDuino
Jingfeng Liu2.1K views
10. GPU - Video Card (Display, Graphics, VGA) by Akhila Dakshina
10. GPU - Video Card (Display, Graphics, VGA)10. GPU - Video Card (Display, Graphics, VGA)
10. GPU - Video Card (Display, Graphics, VGA)
Akhila Dakshina4.1K views
Utft by Joc LM
UtftUtft
Utft
Joc LM384 views
VGA VHDL RTL design tutorial by Nabil Chouba
VGA  VHDL   RTL design tutorialVGA  VHDL   RTL design tutorial
VGA VHDL RTL design tutorial
Nabil Chouba9.6K views
Raspberry pi-spectrum-analyzer-display-on-rgb-led-strip by Stefan Oprea
Raspberry pi-spectrum-analyzer-display-on-rgb-led-stripRaspberry pi-spectrum-analyzer-display-on-rgb-led-strip
Raspberry pi-spectrum-analyzer-display-on-rgb-led-strip
Stefan Oprea359 views
Mitsubishi graphic operation terminal got2000 series (concise) by Dien Ha The
Mitsubishi graphic operation terminal got2000 series (concise)Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)
Dien Ha The114 views
Mitsubishi graphic operation terminal got2000 series (concise) by Dien Ha The
Mitsubishi graphic operation terminal got2000 series (concise)Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)
Dien Ha The72 views
Mitsubishi graphic operation terminal got2000 series (concise) dienhathe,vn by Dien Ha The
Mitsubishi graphic operation terminal got2000 series (concise) dienhathe,vnMitsubishi graphic operation terminal got2000 series (concise) dienhathe,vn
Mitsubishi graphic operation terminal got2000 series (concise) dienhathe,vn
Dien Ha The1K views
Mitsubishi graphic operation terminal got2000 series by Dien Ha The
Mitsubishi graphic operation terminal got2000 seriesMitsubishi graphic operation terminal got2000 series
Mitsubishi graphic operation terminal got2000 series
Dien Ha The117 views

A2 Video Streamer

  • 1. A2 Video Streamer By Alex Lukacz
  • 2. What is it? • Hardware that sends Apple IIc or IIe video serial stream over high speed USB. • Software that runs on desktops / laptops / tablets and shows the video feed.
  • 3. The aim was to get a mobile display for my IIc. • DVD Player. • Composite USB streamers. • Original flat panels. • LCD panels. • iPad? What no video in? Arrhhh!!!
  • 4. •Bulky. •Not great use of screen space. •Poor quality. •Flickering. •Noise / interference. •Difficult to customise view size.
  • 5. •Expensive. •Hard to find. •Poor contrast and no back light. http://www.callapple.org/documentation/technical-notes/apple-c-flat-panel-lcd-conversion/ This will be going on my next Christmas wish list.
  • 6. •Shows how hard it is to get something that shows a reasonable picture. http://quinndunki.com/blondihacks/?p=1998 http://www.eljavo.com/en/la-apple-c-a-color/ •LG Philips LB084S02 panel. •Interesting option.
  • 7. What problem do all of these options have in common? COMPOSITE Why? •Not well suited to modern technology. •Only monochrome on PAL IIc. •I can go on and on and on … Why deal with it when you don’t have to?
  • 8. iPad WiFi or iPad USB? •Suspect the lag on WiFi would be too great. •Streaming via USB is possible. http://www.redmondpie.com/how-to-monitor-canon-eos- dslr-camera-from-ipad-video/ http://www.exolabs.com/products.html
  • 9. Research http://kaput.retroarchive.org/appleii/appleiidigital.png http://john.ccac.rwth- aachen.de:8000/patrick/data/PALcard.pdf How simple is this? Cut out the composite part of the circuit and get a better picture. How sweet is that? Understanding the Apple IIe by Jim Sather Page 8-18 contains schematic for PAL video circuit. IIc video port (serial) to component (YPbPr)
  • 10. Analysing signals from the IIc video port. Checking to see which signals are going to be ok to send digitally. Expected to see a square 14M signal but found a saw wave instead.
  • 11. Logic Analyser Testing Clock pulse does not look even but that is because this Logic Analyser does not have a 14MHz (or multiple of) clock selection. Will need to use the Apple II clock when streaming data.
  • 12. Which graphics tool do I use to display the Apple II window? Needs to be portable. Knock something up and display a test pattern.
  • 13. Microcontroller with high speed USB Cypress EZ-USB FX2LP microcontroller (CY7C68013A). 14MHz streaming over high speed USB $10 device Easy to connect Lossless signal No overhead with video protocols Bypass NTSC / PAL processing Modes: ‘Ports’ mode ‘Slave FIFO’ mode GPIF - General Programmable Interface 'Slave FIFO' mode: Synchronous AUTOIN USB side: EndPoints BULK, INTERRUPT or ISOCHRONOUS transfers Buffers Packet per transfer Queues Programming: RAM EEPROM USB from application
  • 14. Sampling 14MHz -> Clock WNDW Bit[0] -> Line and page sync SEROUT Bit[1] -> Data bit CREF Bit[2] -> Colour reference signal. Needed? GR Bit[3] -> Graphics mode Spare Bit[4] -> Maybe for colour - TEXT? Spare Bit[5] -> Maybe for colour - SEBG? Spare Bit[6] -> Maybe for colour - LDPS? Spare Bit[7] -> Spare Note: For monochrome only the clock and bits 0 and 1 are needed.
  • 15. Development and Testing Firmware Software Keil uVision2 Microsoft Visual C++ 2008 Cypress USB examples are great if you have the professional versions of uVision2 and Visual Studio but if you have the free versions then they are a pain in the butt. That’s the difference you get when using products from a company that targets the commercial sector as opposed to the education sector.
  • 16. if (EndPt->FinishDataXfer(buffers[i], rLen, &inOvLap[i], contexts[i])) { BytesXferred += len; for (int iByte = 0; iByte < rLen; iByte++) { if (!bProcessData) { if (!(buffers[i][iByte] & 1)) { if (iDisplayBlank > 8000) { iDisplayY = 191; } else { if (iDisplayY > 0) iDisplayY -= 1; } // iDisplayX = -7; // 80 column setting. iDisplayX = -13; // 40 column setting. iDisplayBlank = 0; bProcessData = TRUE; } else { iDisplayBlank += 1; } } if (bProcessData) { if (iDisplayX < 560) { if (iDisplayX >= 0) { if (!(buffers[i][iByte] & 2)) { color[iDisplayY][iDisplayX][0] = 255; color[iDisplayY][iDisplayX][1] = 255; color[iDisplayY][iDisplayX][2] = 255; } else { color[iDisplayY][iDisplayX][0] = 0; color[iDisplayY][iDisplayX][1] = 0; color[iDisplayY][iDisplayX][2] = 0; } } iDisplayX += 1; } else { bProcessData = FALSE; } } } } Take out the Window, OpenGL and USB code and the remaining code is quite short. The data processing part is very simple.
  • 17. Results High Resolution Graphics Double High Resolution Graphics Note: Page is shifted to the left compared to HGR.
  • 18. ResultsText Monochrome text can be any colour including white, green or amber. Colour display is still a work in progress. Colour Will try and match something like AppleWin output. Normal 50% Scan Lines
  • 19. Issues • Still working on getting a colour solution. • Could only get BULK USB working. Prefer to get ISOCHRONOUS transfers working. • 80 Columns starts a character earlier than 40 Columns even though they both have the same line width. • Need to crapify (technical word) the picture to make it look more like a vintage monitor. This is the same issue that emulator developers have.
  • 20. Extra Information WNDW signal is good for synchronisation because it changes state just before the data begins but it can not be used to determine the end of line because it finishes before the data ends. LDPS signal can be used to determine if 80 Columns/HGR or 40 Columns/GR is being used. Pulse is half the size for 80 Columns / HGR. To determine which graphics mode is selected these signal lines are needed. Will this be needed for colour processing? Mode TEXT Mixed GR/TEXT Mixed HGR/TEXTHGR DHGR GR = 0 5/0 5/0 5 5 TEXT = 5 0/5 0/5 0 5* SEBG = pulse 5/5 0/0 0 0 * TEXT signal is high in DHGR mode.
  • 21. Design Note Using SEROUT and accompanying signals is not difficult. I encourage you to give it a go. I’ve used this method to build a better streamer but I would like to see what others can do. VGA cards like the Guimauve 2000 and Nishida Radio’s VGA options already process serial data. They use FPGAs to do the processing but what about using other devices such as a Raspberry Pi or a PSoC or a dedicated VGA chip? As screen technology has progressed video adaptors have been built to take up the slack from dwindling numbers of the original display solutions. As screen sizes increase the less appealing they for me as vintage monitor replacements. What sparks my interest is the current tablet market because the screens are of a similar size to our old favourites and the high resolutions can be used to reduce pixellation.
  • 22. I thought that video streaming to the iPad would take one to two days to set up. It has taken quite a bit longer and I’m only half way there. To be continued … http://lukazi.blogspot.com.au/search?q=A2VideoStreamer Conclusion