Apple 1 Replica What's the purpose of this NOT gate on CB2?

3 posts / 0 new
Last post
Offline
Last seen: 1 year 2 months ago
Joined: Jan 29 2016 - 18:36
Apple 1 Replica What's the purpose of this NOT gate on CB2?

I'm trying to figure out whats the purpose of a NOT gate that's connected on pin CB2 of the 6821. In Tom Owad schematic this gate is connected to pin CB2 and then coupled with a capacitor to pin PB7 which is DA. To me this is useless because the cap will filter the output of the gate. On Briel's schematic the output of the gate is directly connected to the DA signal which I'm guessing both CB2 and DA are outputs and may probably create a logic contention. In the R1 plus the gate disapeared and instead there is capacitor connected from CB2 to ground. The original schematic is more similar to Briel's schematic but it shows that CB2 is an output and PB7 is an input which makes more sense.

AttachmentSize
Image icon Apple 1 NOT gate.jpg238.38 KB
speedyG's picture
Offline
Last seen: 12 hours 16 min ago
Joined: Nov 16 2011 - 07:45
Re: Apple 1 Replica What's the purpose of this NOT gate on CB2?

Hello reb2015,

welcome to the board....
the signal at CB2 is used to control the B Port and the gate causes a delay....
in general such a delay is used to delay the time when the chip will accept
the data at Port B to contain valid Data.

speedyG

resman's picture
Offline
Last seen: 9 hours 26 min ago
Joined: Feb 9 2006 - 12:41
Re: Apple 1 Replica What's the purpose of this NOT gate on CB2?

It might also help to understand how port B is being used on the Apple 1. It is connected to the display logic and is used to handshake the data being output. From the Apple 1 ROM:

<br />
ECHO    BIT DSP<br />
        BMI ECHO<br />
        STA DSP<br />
        RTS<br />

The data port is being used as both input on bit 7 (terminal output ready to accept data) and the character data on bits 0-6.

NOTE: this code is backwards from section III of the Apple 1 Operations Manual (BPL vs BMI).

It could be that Woz didn't have this NOT gate there originally to bit 7. That might explain why there is a discrepancy between the actual ROM code and the description in the manual. It doesn't appear there is an logical benefit to inverting the signal on bit 7 of the data port (DA to the terminal appears to want it inverted). Maybe it was one of those "Woz-isms". And adding the cap could also delay/clean up the reading of the the DA value.

Dave...

Log in or register to post comments