===== Philips P2000T - Cassette to serial (backup) =====
==== Configure serial port ====
* Connect to the serial port on the back of the P2000T.
* On the P2000T, set output to the maximum speed of 2400 baudPOKE &H6016,0
* Set speed on Linux host, cat output:stty -F /dev/ttyUSB0 ispeed 2400
cat /dev/ttyUSB0
==== Serial (printer) output ====
* On the P2000T, press <00> (printer key). The current screen will be printed over serial.
* Dump complete BASIC program to serial. Load cassette program on P2000T and print:CLOAD "program"
LLIST
* Catch the whole file, when finished, press ctr-c:tee program.bas
==== Dump complete cassette (side) to file ====
* Load [[p2000t:serial.bas]] program on the P2000. By: [[http://www.komkon.org/~dekogel/m2000.html|Marcel de Kogel]]:CLOAD "serial"
* Insert cassette to be dumped.
* Prepare system to receive file:
(stty raw; cat > side-a.cas) < /dev/ttyUSB0
# or pipe through hexdump to see the data flow
(stty raw; tee -a dump.cas | hexdump -C) < /dev/ttyUSB1
* On P2000T:run
{{tag>[p2000 p2000t philips cassette basic hardware]}}