|
@@ -199,24 +199,48 @@ static inline bool read_bit(void)
|
|
|
{
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
bool bit;
|
|
|
- wait_data_lo(75);
|
|
|
+ wait_data_lo(75);
|
|
|
_delay_us(55);
|
|
|
bit = data_in();
|
|
|
- wait_data_hi(36);
|
|
|
+ wait_data_hi(36);
|
|
|
return bit;
|
|
|
}
|
|
|
|
|
@@ -258,7 +282,7 @@ Resources
|
|
|
---------
|
|
|
ADB - The Untold Story: Space Aliens Ate My Mouse
|
|
|
http:
|
|
|
-Apple IIgs Hardware Reference Second Edition [p80(Chapter6 p121)]
|
|
|
+Apple IIgs Hardware Reference Second Edition [Chapter6 p121]
|
|
|
ftp:
|
|
|
ADB Keycode
|
|
|
http:
|
|
@@ -376,9 +400,9 @@ Communication
|
|
|
Global reset:
|
|
|
Host asserts low in 2.8-5.2ms. All devices are forced to reset.
|
|
|
|
|
|
- Send request from device(Srq):
|
|
|
+ Service request from device(Srq):
|
|
|
Device can request to send at commad(Global only?) stop bit.
|
|
|
- keep low for 300us to request.
|
|
|
+ Requesting device keeps low for 140-260us at stop bit of command.
|
|
|
|
|
|
|
|
|
Keyboard Data(Register0)
|