Welcome, Guest. Please login or register.

Author Topic: C64 Tape Port  (Read 3022 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline trekiejTopic starter

C64 Tape Port
« on: March 12, 2013, 02:28:14 AM »
Fast do you think the C64 Cassette Port runs?
1\8 * 1 or 2 MHZ = 128k or 256 k.

Was there ever a fast cassette for the C64?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline RobertB

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1838
  • Thanked: 23 times
    • Show only replies by RobertB
    • http://www.dickestel.com/fcug.htm
Re: C64 Tape Port
« Reply #1 on: March 12, 2013, 04:19:39 AM »
Quote from: trekiej;728871
Fast do you think the C64 Cassette Port runs?

A C64 runs at 1 MHz.  The cassette port transfers at 50 bytes per second.
Quote
Was there ever a fast cassette for the C64?

If you are talking about fast loaders/savers for cassettes on the C64, yes.

Truly,
Robert Bernardo
Fresno Commodore User Group
http://videocam.net.au/fcug
 

Offline spirantho

Re: C64 Tape Port
« Reply #2 on: March 12, 2013, 12:22:37 PM »
To be precise, the cassette port samples at 1000000 (more or less)  ticks per second, allowing a theoretical throughput of (1000000/8) bytes/s = 125KB/s.

That's a completely theoretical limit, of course - no loader gets even close (the ROM loader being 50 bytes/s) but in theory if you could sample reliably that to work out if the flux had changed or not you could get that rate. If you wrote a routine to check for changes in flux that often and connected it to a digital input, you could get that rate if your tape routine consisted of one instruction - which of course it won't.

In reality, I believe the fastest loaders were probably running at about 300 B/s (2400 baud) but that's just a guess from what I've observed.
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness!
 

Offline polyp2000

  • Full Member
  • ***
  • Join Date: Jan 2011
  • Posts: 244
    • Show only replies by polyp2000
    • https://soundcloud.com/polyp/sets/polyp-2013
Re: C64 Tape Port
« Reply #3 on: March 12, 2013, 02:34:46 PM »
If my maths is right - doesnt that mean it should be possible to record an 8bit 22khz sample via the tape port - with some headroom?

Offline trekiejTopic starter

Re: C64 Tape Port
« Reply #4 on: March 12, 2013, 03:07:45 PM »
Quote from: polyp2000;728909
If my maths is right - doesnt that mean it should be possible to record an 8bit 22khz sample via the tape port - with some headroom?


That is kind of what I am thinking.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline psxphill

Re: C64 Tape Port
« Reply #5 on: March 12, 2013, 04:10:40 PM »
Quote from: spirantho;728906
In reality, I believe the fastest loaders were probably running at about 300 B/s (2400 baud) but that's just a guess from what I've observed.

You run into problems with frequency response before you run out of CPU speed. There were fast loaders that had to be slowed down because the duplicators couldn't cope with them.
 
You have to take into account what the tape is made of & the analogue to digital conversion in the C2N.
 
Writing a 1 bit audio sample to the tape at full speed would be kinda interesting. However I don't think the bit that you write gets put straight onto the tape, I believe there is some additional circuit in the C2N. IIRC the zero's and one's are modulated on the tape somehow, not just stored as is.
« Last Edit: March 12, 2013, 04:13:48 PM by psxphill »
 

Offline jlariv8957

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 111
    • Show only replies by jlariv8957
Re: C64 Tape Port
« Reply #6 on: March 12, 2013, 04:59:06 PM »
Back in that days I remember having tried  a program published on a book that samples audio tapes played by the tape port, the sound was not that good but it was funny and was running so it was possible..
 

Offline polyp2000

  • Full Member
  • ***
  • Join Date: Jan 2011
  • Posts: 244
    • Show only replies by polyp2000
    • https://soundcloud.com/polyp/sets/polyp-2013
Re: C64 Tape Port
« Reply #7 on: March 12, 2013, 05:13:17 PM »
I've often wondered if sampling could also be achieved via the joystick port (isnt there an A2D converter for the pots in the paddles ? )

might not be too high resolution though.
N

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: C64 Tape Port
« Reply #8 on: March 12, 2013, 06:09:06 PM »
Quote from: RobertB;728876
The cassette port transfers at 50 bytes per second.


That fast?!  It seemed slower.  ;)
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline spirantho

Re: C64 Tape Port
« Reply #9 on: March 12, 2013, 06:12:23 PM »
Quote from: polyp2000;728909
If my maths is right - doesnt that mean it should be possible to record an 8bit 22khz sample via the tape port - with some headroom?


Not a chance, I'm afraid. The tape port is digital, not analogue, and is serial. You can write a '1' to it, and you can write a '0' to it, but that's all.

When you read the tape on a C64, the downward transition triggers an interrupt via the VIA (if you see what I mean). You don't have full control of the wave, just transitions from +ve to -ve.

Sorry. :)

@PSXPhill
That's basically what I was trying to get across, yes. :)
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness!
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: C64 Tape Port
« Reply #10 on: March 12, 2013, 07:48:09 PM »
Quote from: Darrin;728929
That fast?!  It seemed slower.  ;)


You're confusing that with the 1541 drives...
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: C64 Tape Port
« Reply #11 on: March 12, 2013, 07:51:03 PM »
Quote from: spirantho;728930
Not a chance, I'm afraid. The tape port is digital, not analogue, and is serial. You can write a '1' to it, and you can write a '0' to it, but that's all.

When you read the tape on a C64, the downward transition triggers an interrupt via the VIA (if you see what I mean). You don't have full control of the wave, just transitions from +ve to -ve.

Sorry. :)

@PSXPhill
That's basically what I was trying to get across, yes. :)


Not necessarily.  COMPUTE! Magazine had an ML program for the Apple which read the cassette in port in single-bit precision.  As well, we played with a similar program on the TI-99/4A which did essentially the same thing.

It was scratchy and sounded pretty horrible, but it did work.  In fact, one year I went away for school I sent an Apple floppy made in one of my classes to my old class and computer instructor on which I recorded me dictating my letter to them.
 

Offline RobertB

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1838
  • Thanked: 23 times
    • Show only replies by RobertB
    • http://www.dickestel.com/fcug.htm
Re: C64 Tape Port
« Reply #12 on: March 12, 2013, 10:04:04 PM »
Quote from: polyp2000;728909
...doesnt that mean it should be possible to record an 8bit 22khz sample via the tape port...

Oh, if you needed an audio digitizer, then those would go through the C64 user port.

Truly,
Robert Bernardo
Fresno Commodore User Group
http://videocam.net.au/fcug
 

Offline trekiejTopic starter

Re: C64 Tape Port
« Reply #13 on: March 14, 2013, 06:12:48 PM »
How about a tape port to tape port transfer? Has this been done?
The cart port I guess would go at a speed of 8/8 * 1 mhz = 1 MB/sec. theoretical.
I did see a video of the introduction to "Dallas" played from a REU.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: C64 Tape Port
« Reply #14 on: March 14, 2013, 06:41:44 PM »
Has anyone here used a 64hdd ( http://www.64hdd.com )before?
If so, how did you like it?
« Last Edit: March 14, 2013, 06:48:35 PM by trekiej »
Amiga 2000 Forever :)
Welcome to the Planar System.