the Mountain Computer Expansion Box
   a legendary expansion to the Apple ][ series

  reverse engineered and de-mystified

   Page No.:H054-3
 
     
      Copyright note: The pictures used in this page, have been taken from members gsmcten, macnoyd* and Keatah ( all members at the Applefritter Forum )
                              * the pictures from macnoyd, result from the ebay offer he successfully won
                                 Therefor the copyrights of the pictures displayed at this page remain of course to the members at AF whom the units belong.
                                 The other pictures here resulting from the reengineering process remain with their copyright to me and none of the contents from this
                                 page may be used ( not even partially ) in any other webpage without the permission of the copyright owners.

 
 
     
 
 
   
    
  This page will start with analysis of the data resolved up to this point. This page targets to enable the owners to understand the function of the
  units. Therefor i will start splitting the groups of components to function groups explaining how they interact with each other.
 
    
 
  so lets just jump right to the center of the topic, by viewing the drawing below:

 
 
 
  The picture above splits groups of components at the mainboard of the box to functional groups.
  Below the next picture shows generalized drawing of the functiongroups and their relation to each other.
  In general we can state: the parts that have been covered with blue lighting are related to the powersource within the expansion box and
  they are responsible to transform the input from 24 Volt AC and 1,5 Ampere to the requested powersources requested from the Apple II interfacecards
  and the chips related to the communication between the interface cards and the Interfacecard in the Apple II computer.

  The parts related to the Apple II interfacecards and the communication with the MCEB interfacecard are coated with green lighting.
  The numbers displayed in the picture above are corresponding to the same groups displayed in the picture below.
   The violett enlighting in the picture above show the path of the adressinglines, the dark blue enlighting marks the path of the datalines,
  
- while the red enlighted lines show the general path of the so called "control-lines" which are responsible for communication with the Apple II and the
   interfacecards in the box and also grouped at the picture of the Apple II slot at the right side in the picture below. While the datalines contain the
  content and the adressing lines contain the information of the location where the information is to be stored the controllines contain the clocking
  and handshake signals that syncronize the timing of the box with the Apple II and their communication.

 
    
 Lets examine the powersupply part first ( enlighted blue ).
 At the rearside of the box the unit recieves 24 Volt AC from the external powerbrick. This voltage passes first the security fuse. In case of malfunction,
 this should be the very first part to examine. The fuse should be 125 Volt or 250 Volt with limitation to 1,5 Ampere ( maximum 1,6 Ampere ) and
 medium fast reaction time.

 Thereafter the voltage passes along through the bridgerectifier MDS 960-1. This represent 4 diodes and äquivalent type should have parameters as
  follows: voltagelimit 100 Volt or higher, minimum capacity 1,5 Ampere - but it may also be replaced with a type that can handle 2 Amperes or more up
  to limit of 7,5 Ampere which are more common today and easy to order today. The important thing to pay attention is the order of the leads of wire
 leaving outside of the block. They should of course have the same order.

  Behind this rectifier the voltages are all DC !

 The voltage of about 32 Volt to normal maximum of 36 Volt DC then gets collected at the pins of the electrolytic capacitors ( refered to in the text as the
 "big caps" ). By normal this capacitors have the capacity of 3300ĩF each and normal limit to 40 Volts DC or maximum of 50 Volt DC.
 ( this part is up to the point where the function group is marked with the number 6 !) In case of damage that limitation to 50 Volt DC should be secured !
 
 This is caused by the need that within the box the voltages should not exceed this limit of 50 Volt otherwise several components may get damaged
 resulting from their limitation to 50 Volt ( like for example the voltage regulator IC ( SG 340-24 ) or the transistors ( 2N2222A and 2N2907 ).

 Be carefull and check out that voltage regulator IC ( marked as funtion group 7 ) is correct. It might have happened a damage in earlier days and the IC
 might have been replaced in former days by a type that has limitation to maximum inputvoltage of 40 Volt DC ! In such a case it is urgently recommended
 to replace with a correct type of IC that again has a limitation of the input voltáge to 50 Volts. The IC must be able to handle 1,5 Amperes !
 Be sure not to use an adjustable type of regulator, but instead make sure it is a fixed type of regulator. In most cases such ICīs are pincompatible -
 but of course itīs better to proof by viewing the related datasheet ! The following parts of the powersupply on the mainboard recieve their entire power from
  this stage!

  Next a general explenation and general overview about the other parts in the powersupply of the mainboard. part 1 and part 2 are 2 independent oscilators
  each with 2 transistors and both are connected with syncronisation line that way that they are operating at opposite point, when 1 gets high then 2 gets low
  and the other way around. Each of this oscilators is followed by a kind of "powerstage" consisting of a power MOS FET transitor, ( part 4 is powerstage after
  part 1 and part 3 is powerstage behind part 2 ) that handles the "big-current" of 1,5 Ampere. Both "powerstages" work together at the opposite pins of the
  "primary side" of the "switching coil" ( marked as part 5 ). This results to a rectangle switching voltage of 24 Volts DC to 0 Volt and up to 24 Volt DC again.
  The frequency of both oscilators is between 50 kHz and 60 kHz and dutycycles are close to 50% to 50% and maximum of 40% to 60 %.

   This "switching-coil" is a kind of special transformer - and at the other secondary side there are 4 coils that deliver also switching voltages
   - but in fact their outputs are rather more AC-like than DC. 2 coils deliver voltages of rather clearly 14,5 Volts AC or after getting transmitted through the
   rectifying diodes this 2 paths result to a voltage at the one path to +12 Volt DC and at the other part ( part 11 ) to a voltage of - 12 Volts DC ( part 14 ).

   The 2 remaining windings of the switching-coil ( part 5 ) result to a output voltage from the switching-coil of each about 6,9 Volts switching AC and after
   the voltage passed the diodes the voltage is cleaned to the to remaining requsted voltages of + 5 Volts DC ( part  12 ) and - 5 Volts DC ( part 13 ).
   At the end of each of this output-voltage parts there is a measure point, before the voltages follow the traces behind this function blocks.

   At the end of the !"high current" branches ( +5 Volt and + 12 Volt ) there are 2 coils filtering there remaining "high frequency dirt" off away from the
   powerlines.

   Besides this parts dependent to the generation of the voltages there are 3 other function blocks too, that we have to talk about here.
   part 10 is rather simple: it consists of the LEDs at the frontpanel that indicate if the box is selected ot not the LED that indicates the power is active
   ( or to say better: if the Apple II is powered up ) and the switch that permits enableing or disabeling the box.
   Part 9 is the NE555 at the right frontside of the mainboard close to the frontpanel and that drives the LEDs and detects the position of the selection switch
   at the frontpanel and several lines that lead to the controlline section in the applepart that is cocered with green / red enlighting.
   Finally there is the Apple II detection ( part 8 ) which detects if the Apple II is powered up. Unless the Apple II isnīt powered up, the box remains in a
   deselected status and when the  Apple II gets powered up the rest of the control-line logic together with the frontpanel logic ( part 9 ) have to decide
   - dependent to the selection switch - if the use of the interfacecards is to be performed from the box or from the Apple II.
  
 
     
  Within the this following section the "applepart" ( the upper part in the drawíngs enlighted with light green ) of the box will be explained.

  In general you may state that the green enlighted area is a nearly exact copy of the Apple II with itīs slot area ( part 20 ). The entire siganls are leaded
  from the interfacecard by the 50pin flatribboncable to rhe expansion box and decodes there in nearly same manner like in the Apple II.

  Letīs start examining the details - starting with part 17 - which controls the databus. The databus consists from the datalines D0 to D7. They enter the box at the flatribbon
  cable to the connector J1. Then they are handed passing the pullup resistor network RP6 to the IC U6 which is a tristate device. This means, if pin 19 ( CE = Chip enable )
  is pulled high to +5Volt the chip acts like an open valve permitting the flow of data in both directions. the direction of the flow is controlled by pin 1 ( DIR ) which determines
  if the flow is from connector to slot ( Dir B > A equal to read operation ) if the pin 1 gets 0 Volt or from slot to connector ( DIR A > B equal to write operation ) if at pin 1
  gets + 5 Volt. If pin 19 drops to 0 Volt the chip changes to "tristate" mode and acts like a closed valve with no transmissions in any direction and by that the
  slots in the expansion box get "invisible" to the Apple II ( which will happen if at the box the "deselect" is active status.

  This description is valid the same way to the adressing bus ( represented by part 16 ) - with the assignments of the "lower" part of the adressing bus represented by the
  adressinglines A0 to A7 which pass the pullupresistor network RP4 and then get controlled by U4. And the "upper" part of the adressing bus represents the
  adressinglines A8 to A15 which pass the pullupresistor network RP5 and the IC U5.

   Just to explain the point about the "loop through" logic i now will show the "other side of the coin" the IFcard of the MCEB and the data lines ( in light violett )
   and adressinglines enlighted with light blue color in the circuitplan and you can see this lines just running through up to the "impendancy" resistorpacks
   and from there directly to the connector where the flatriddoncable just passes that lines along to the box:
 

    If some of that lines are used for decoding within the IFcard they just get a "split-off" leading to the chips.

  The slotselection logic ( which determines which of the 8 slots is selected at the moment ) is performed by the part 18 and part 19. both are decoder chips that
   select 1 line from 8 depending to the input of 3 bits ( pin 1 to 3 ) resulting from the adresses of the "soft switches" in adressing space while the box is active in
   "selected" mode. Part 18 ( U2 ) generates the Device select signal to pin 31 of each single slot while simultanously IC chip U3 generates for each slot the
   I/O select signal in part 19. Both chips are linked at pin 1 to 3 together to ensure that each time a slot is selected the same slot recieves both signals simultanously.
   The input pins 4, 5 and 5 ( E1 to E3 ) get control from the controlline logic in the rear back of chips close to connector J1 to ensure that slots only get activated,
   if the box is in "selected" status and the Apple II wants to access a slot. Otherwise if the expansionbox is deselected, one of that controlling lines from pin 4 to
   pin 6 changes status and disables the decoding in the chip and sets the chip to inactive mode. One important remark: this part of the slot-logic is firmly
   connected to the Chip U11 and the 16pin flatribboncable at the Interfacecard so if the powersupply of the expansionbox is O.K. and the Apple II is O.K. the
   communication between this parts 18 and 19 as well as the part of U11 at the interfacecard of the box should be one of the first things to check out for malfunction.
   They are essential for the Apple II to select access to the slots within the computer or at the expansionbox !

   Explaining all controlline signals in part 15 in depth would surely burst any kind of limits within the pages. I therefor in such a case urgently demand to download
   the book "THE APPLE II CIRCUIT DESRIPTION" from Winston D. Gaylor. The link is set here within the title of that book. You may also instead visit the Apple
   Documentation Center at the page: http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Books/ and pick up from there tha book ( listed in
   last position on that page ) - hint: use fast internet connection... the PDF-file of the book is sized 33 MB ! Before continueing here with the explenation i advise
   you to read the chapter 6 and 7  starting from page 58 in book ( page 60 in PDF-file ) till  64 in book ( page 66 in PDF file ) and 66 in book  ( page 72 in PDF file )
   till  page 74 in book ( page 80 in PDF file ) and the pages of chapter 7 up to 99 in book  ( page 105 in PDF file ) focused to the slot and its signals.

   Alternatively you may instead choose to read "Understanding the Apple II" from Jim Sathers the 15th book in the list of that same page at the Apple Documentation
   Center as listed above: http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Books/ . But also here is the hint valid: use fast internet connection...
   the PDF-file of the book is sized 80 MB !  Within that book itīs chapter 7  starting at page 157 within the PDF file and continued till page 165 in the PDF file and then
   again starting at page 173 in the PDF file up till page 177 in the PDF file to get familiar with !

   The "Riddle" posted in AF:

   You may choose from which of the two sources you want to recieve the intimate knowledge about the controlsignals and how they operate within the Apple II.
   The same functions are repeated within the expansion box with only minor changes. Butīs exactly the differences we want to examine here now for better
   understanding "how the box" is operated ! Just to spot it out the main difference is how the signals in part 15 are linked / interact with the 4 lines that come
   from the NE555 ( U1 ) in the front right corner of the box and that do the handling of the select/deselect switch !
   And to list the suspicious cadidates here exactly at the wall in line up:
   No. 1 - From the switch passing at the one end in the brown cable pin 1 at the connector J3 and the one end of the resistor R13
               ==> running straight ahead to pin 13 of U7 in the "control function block" !
   No. 2 - starts at the middle of the select / deselect switch running within the red cable to pin 2 of the connector J3 passing at one end the resistor R14 and
              ==> then straight ahead to pin 9 of the U7 in the "control function block" !
   No.3  - starting at the Reset pin4 of the NE555 ( U1 ) and running straight ahead ==> to pin 1 of the U10 linked there together with the READY signal !
   and of course "candidate"
   No.4  - starting at pin 7 of U1 ( DIS ) passing the point where the resistors R17 an R18 are linked together and then ==> running straight ahead to pin 6 of U8
                within the "control function block" !
 

    In this picture above i have transferred the markings of the function blocks to the "real" circuitplan, using the same numbering as in the previous block plans.
    I have marked the 4 previously mention lines as "special lines" and marked them with light violett enlighting for better contrast and tracability.

    By these 4 "links" to gates of ICs within the "control function block" part 15 the switches are connected directly to the part of the box that control the "action"
    of the expansion box !

    2 of the lines can be traced up till to J1 where the flatribboncable from the Interface card is ending. Tracing this 2 lines back along within the MCEB interfacecard
    you might view  that traces within the MCEB interface card back to the slotconnections in the Apple II and thereby find out that their origin are the adressinglines A2 and A6 !
    When that adressinglines arrive along the flatribboncable the MCEB bos they are directed to the controlline functionblock and "knitted" to a logic the permits the
    Interface card and the box determine if the box is in "selected" status or not. I also marked that ovvious lines in the plan bellow with violett enlighting.

   At the moment a have not analized thst 6 lines and their function in depth, but at least one thing is for sure at the moment: they are related to the "soft switches"
   within the Apple II memory and parts of the logic "knitted together" in the MCEB Interfacecard.

    Here is the end of the "Riddle-part".

   This "control-signal function block" numbered as part 15 contains the ICs U7 to U11 !

   As explained above before the large bunch of signals within the databus and the adressing bus can be judged as a kind of "loop through" starting at the
   mainboard of the Apple II and itīs CPU entering the interfacecard in the slot, passing resistor networks that operate as "impencance load" - without any further
   contact to the ICīs mounted at the interfacecard and then slipping along the 50 pin flatribboncable straight ahaed to the J1 connector in the expansion box
   - passing by the bus-control chips U4, U5 and U6 and handed then straight to the slots within the expansion box. The ICīs U4 to U6 just control direction of
   the signals and decide if they are to be made "insible" to the Apple II and the interface cards inserted in the expansion box dependent to the position / status
   of the select / deselect switch in the box.

   We now can devide the control-signals that are handled within the "control function block" ( part 15  ) into two groups:
   signals that are just passed along like a loopp through
   and signals that have to be treated with a kind of "processing" by getting delayed, inverted or connected for logic interaction.

   Within the first group the "clocking"-signals of:
   7M,
   Q3,
   Phase 0 and
   Phase 1īare treated as "loop through".

   This signals just pass an "driver" targeting to strengthen the signal after itīs "weakening" long journey made from the Apple II passing the
   interfacecard and the flatribboncable before itīs handed to the expansion box slots.
   Phase 0 enters - after entering the box at J1 - at pin 9 the IC U11 and leaves it at pin 8 into the box.
   Phase 1 enters - after entering the box at J1 - at pin 5 the IC U11 and leaves it at pin 6 into the box.
   Q3 enters - after entering the box at J1 - at pin 11 the IC U11 and leaves it at pin 10 into the box.
   7M enters - after entering the box at J1 - and jumps directly - without any kind of "freshen up procedure"  by any IC - into the box.

   The signals INTin and INTout are used as a daisychain same like DMAin and DMAout  with the same logic like in the Apple II:
  
 DMAin  DMAout -----------DMAin  DMAout -----------DMAin  DMAout -----------DMAin  DMAout -----------DMAin  DMAout -----------DMAin  DMAout
  INTin    INTout----------------INTin   INTout----------------INTin   INTout----------------INTin   INTout----------------INTin   INTout----------------INTin   INTout--

   the signals:
      
  
R/W            well the R/W line is used to of course to determine read or write oparations to the interface cards.... but in practical use within the box
                       this line is used to control the chips and control the bus by setting the lines to operate in the one or other direction. If Write operation is
                       demanded this line is pulled to low if Read operation is to be performed this line remains high.

  
   I/O STROBE  
 is one of the handshake lines. If set to low it indicates that at the interface card is valid information present at the bus.  This signal
                              controls the synconization of the 2 following handshakelines by issueing a Strobe-signal which is a short drop from high to low. 

   IRQ
                    this signal is pulled down to low from the interfacecard if it damands that the CPU shall listen to an inquiry from the card.
                              ( IRQ
= Interrupt Request )
  
READY             this signal is pulled to high if the CPU tells the card that the CPU will listen to it.
                              ( READY
... to listen... )

  
DMA                  if a card in one of the slots, has a own CPU and that CPU at the card wants to access the memory of the Apple II, then that
                              "card-CPU" will pull down this line to low and the CPU in the Apple II will recognize and grant this access to itīs memory
                              ( DMA = Direct Memory Access )

    INH                  The INHIBIT line is a very special kind of "blocking"-line. It can be pulled down by either a interfacecard or the Apple II and the
                             device, that pulls the line down to low blocks the access of any other one of the devices to access any parts of the computer.

   
RES                If the resetline is pulled down to low by either the Apple II or any of the interface cards, then the entire systems are set back to the
                            very initial status just after the system has been powered up.
When this line is pulled - any kind of operation that has been performed
                            before the line has been pulled - will be terminated immediatly.

    NMI
                 this signal is very similar to the reset signal, with one very difference: the reset signal sets all counters to "0" while NMIsignal
                            leaves the content of the counters in their very last sondition. This dfference make the signal work rather more like a "non-
                            stopable break" - and it permits to continue a program-execution after end of the NMI-process to be continued at the very point
                            where the NMI ocassion occured.

    USER1         This signal is used by interfacecards to lock a 2 kB adressing space from use by other cards an the control of that adresssing space
                           for that locking card only.

   So lets first view the origin od this signals at the IFcard - beginning from the Apple II Slot and tracing them till to the Backpanel connector,
   where they are passed along to the box: nearly all lines just pass along through from the Apple II slotconnectionpads to the backpanel-
   connestor of te IFcard - except few lines that pass by the driver U5 and then are passed to the connector.

  now lets follow up only that traces, when they have entered the MCEB board at the connector J1 and are passed to the "control function block" -
  the picture is only a reducted part limited to the area thats related to this lines. Recognize also the light blu enlighted line from pin 25 and 26
   of J1 to the collector of the transistor Q7 ! Only if the Apple II is powered up - this line gets + 12 Volt from the Apple II ! If the Apple II is shut down -
  Q7 canīt work.... and in such case the 2 oscillators of part 1 and part 2 wonīt start oscilation and the internal part of the box wonīt have power
  in that part behing the coil ( part 5 )! so this is one part of the Apple II detection circuit ( part 8 ) besides the 4 lines mentioned above as "special-lines".


    I will return later to this page and conrinue with the analysis.... but at the momet this explain fairly well the most important part of the functions....

 
     
     just to get further ahead with this pages i will display in the next page some parts of the function groups with detailed pictures,
   to link theory and practical hardware together....
 
         
         
       
     
   
   here is the link to the next page - where the story is continued =>
 
 
 
 <= here is the link back to the previous page

 
 
 
 <= here is the links to turn back to the indexpage of the Applebox
 
 
     
 
         
       due to european laws and german court decision:
 I hereby declare no responsibility to any "deep links" resulting from the links in this page. I have no influence to the pages linked hereby in this page and the
 contents in those pages. I therefor canīt take any kind of responsibility to contents in the pages, where these links direct the readers browser to nor to the
 contents resulting from following up links from those pages. The reference to contents by this links is dependent ro the status of the date when the links have
 been set ( April 2013 ) and it might occur that references and contents may change by the fact that domains may have been discontinued from their former owners.
 In such cases i canīt take any kind of responsibility to the changed contents. this is specialy valid to banners, advertisements or merchandising links in the targeted
 pages.