Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Damn protocol
2003-05-02 18:06
Cybernator

Registered: Jun 2002
Posts: 154
Damn protocol

I've been trying to make the god damn 2bit ATN protocol work, but seems as if it doesn't like me. :P
It continues to lock up, and I have no idea what to do anymore. Never would have thought that it could be more problematic than the GCR reader.

Someone, please explain me how does the protocol work, step-by-step.

Otherwise, I'll have to break something in order to calm down. :P

Thanx for understanding. :)

ps. I have checked Krill's sources, as well as the sources of DreamLoad. It doesn't help.
2003-05-02 19:32
cadaver

Registered: Feb 2002
Posts: 1153
- In beginning all lines are high
- Diskdrive signals the C64 somehow of sector data ready, for example by pulling DATA low
- C64 notices this
- C64 requests first 2 databits by pulling ATN low

Repeat for each byte in sector:
- 1541 sends them (by tablelookup), with ATN A set
- C64 reads databits
- C64 requests next 2 databits by setting ATN high
- 1541 sends them, with ATN A not set
- C64 reads databits
- C64 requests next 2 databits by pulling ATN low
- 1541 sends them (by tablelookup), with ATN A set
- C64 reads databits
- C64 requests next 2 databits by setting ATN high
- 1541 sends them, with ATN A not set
- C64 reads databits, and sets ATN low for next byte

End of sector:
C64 releases ATN. 1541 sees this transition and sets CLK & DATA high again
2003-05-02 20:13
Cybernator

Registered: Jun 2002
Posts: 154
Thanks a lot! Although, it's a bit too late, as the TV set has two cracks on the top. :-) (Kidding as always ;))
Advice: never hit the TV set! It's the computer's fault... Or maybe the diskdrive's fault. :)

This info should help a lot. I'll see what I was doing wrong.
If it doesn't work this time, I may as well throw all my equipment, and start drinking. :)

Thanks again!
2004-08-19 21:24
St0fF

Registered: Oct 2002
Posts: 40
maybe you stumbled over the skipped input registers ... in DD00 the lines are low-active, in $1800 the lines are skipped to be kinda high-active which they in fact are not.
so the c64 must release the bits - setting them high! otherwise it won't be able to see any sent data - and lock up.
it just might be, that i switched something in my explanation - just recalled it after few years of no time 4 code ... but with the explanation in mind you'll be able to figure it out i hope ...
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
eryngi
chronos/Therapy
Lazycow
A3/AFL
Menace/Spaceballs
zscs
psych
Frostbyte/Artline De..
MAT64
Mythus/Delysid
Guests online: 136
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.032 sec.