home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128Toolkit / VDC-RAM-UPGRADE < prev    next >
Encoding:
Text File  |  2019-04-13  |  9.6 KB  |  238 lines

  1. C-128 VDC RAM UPGRADE
  2. Copyright 1986
  3. Twin Cities 128
  4. P.O. BOX 4625
  5. Saint Paul MN 55104
  6.  
  7. This article by John Kress appeared in the October issue of Twin Cities 128
  8. Permission is hereby granted to reprint provided the following conditions are
  9. met:   1. You are not reprinting this in a profit-seeking publication
  10.           or distributing it for profit
  11.        2. The above copyright notice and these conditions appear with
  12.           the article
  13.  
  14. The  very first time I had fired up my new C-128 I 
  15. loved the 80 column screen.  I remembered the days 
  16. of  my  Vic-20 with 23 characters per line.  Now I 
  17. had  a  computer  with  an  80 column screen and I 
  18. thought  to  myself  'Now  I own a real computer'. 
  19. Then  I came across a very basic 80 column graphic 
  20. program  that  used  a  joystick, and thought that 
  21. this is great, but it is too bad that you can only 
  22. use  one  color  on  the  screen  at  a  time, and 
  23. secretly  dreamed  of  owning an Amiga.  Then came 
  24. the day that I found out that the memory dedicated 
  25. to  the  Video Display Chip could be expanded from 
  26. the stock 16K to 64K of RAM.  Right then and there 
  27. I  was  hooked  (I  believe  it's  referred  to as 
  28. 'Technolust'  in  these parts) and wanted to learn 
  29. all  I  could  about  expanding  the  RAM  to  its 
  30. maximum.
  31.  
  32. I should explain a bit about the VDC and it's RAM. 
  33. The  80  column  screen  uses  a separate chip for 
  34. screen  processing,  and  that  chip  has  its own 
  35. dedicated  RAM.   Unlike  the VIC chip, for the 40 
  36. column  screen,  which  uses part of the BASIC RAM 
  37. for  screen  memory,  the  VDC has 16K of RAM tied 
  38. into it that cannot be accessed in the normal peek 
  39. and  poke  method.   The  VDC  is  in  some ways a 
  40. separate  processor  that  operates  independently 
  41. from the rest of the C-128, and is able to work at 
  42. a  faster  clock speed than the VIC chip.  That is 
  43. the reason why the video display goes blank on the 
  44. 40 column screen when the FAST command is issued.
  45.  
  46. Why expand the VDC memory?
  47.  
  48. Since  my  major  computer interest is GRAPHICS, I 
  49. wanted  to  find  out how things might be improved 
  50. with  more  memory.   One  of  the  first things I 
  51. pondered  was  the  graphics screen with attribute 
  52. RAM  for  color.   That  would allow more than one 
  53. color on the screen; although you're still limited 
  54. to  just  one color in any 8*8 pixel area, you can 
  55. have  more  that  one  color.   Then  there is the 
  56. ability  to  have  a combination of screens in VDC 
  57. memory,  up  to  4  graphic screens, up to 13 text 
  58. screens,  or a combination of both.  There is also 
  59. the  possibility  of  making  up  different  fonts 
  60. (print  styles) in memory and being able to change 
  61. them.  
  62.  
  63.  
  64. (Editor's note: The execution of this process will 
  65. void   your   computer's  warranty.   Readers  who 
  66. attempt  this  process  do  so  at their own risk.  
  67. Neither  this  author or Twin Cities 128 will take 
  68. responsibility  for  losses  due  to the attempted 
  69. execution   of   the   process  outlined  in  this 
  70. article.)
  71.  
  72. The parts you will need are :
  73.  
  74. *  Two  (2)  18 pin IC sockets, to be used to hold 
  75. the  RAM  chips.   These  can be found at most any 
  76. electronic supply house.
  77.  
  78. *  Two (2) 4464 Dynamic RAM Chips, with a speed of 
  79. 120  ns.   Yes  that's  correct, 4464 RAM chips, I 
  80. know  that  the  Commodore  Programmers  Reference 
  81. Guide  says  4164  RAM chips, but 4164 chips are a 
  82. sixteen  pin  type.   The 4416 chips are an 18 pin 
  83. type  so  if you try to use the 4164's you'll have 
  84. two extra holes and nothing will work right.
  85.  
  86. The  4464's  can be a hard item to locate, as most 
  87. of the manufacturers are either discontinuing them 
  88. or  require  minimum  orders  and are reluctant to 
  89. release 'just' two.  If you have some friends or a 
  90. local  computer  group  or  club, get together and 
  91. purchase a larger quantity, you may have more luck 
  92. with a volume purchase.
  93.  
  94. You will need the following tools:
  95.  
  96. Wire cutter or nippers.
  97.  
  98. A small pencil type soldering iron (35 watts is be 
  99. enough, much more may get too hot.)
  100.  
  101. Some rosin core solder or better yet,
  102. Solid  core  solder and a paste type non-corrosive 
  103. flux.
  104.  
  105. Small phillips screwdriver.
  106.  
  107. Small pair of pliers.
  108.  
  109. Now you're ready to begin:
  110.  
  111. NOTICE:    Integrated   Circuits   are   extremely 
  112. sensitive  devices,  and  very sensitive to static 
  113. charges.   A  small  static  shock  to  a IC is as 
  114. deadly  to them as a bolt of lightning would be to 
  115. a  human.   Take extreme caution to avoid a static 
  116. discharge to the computer.
  117.  
  118. First  thing  to  do is remove all power cords and 
  119. serial  connectors  from  the  C-128.   This means 
  120. everything,  since  the main board must be removed 
  121. from the machine.
  122.  
  123. Turn  the  computer over and locate and remove the 
  124. six  (6)  screws  holding the computer case halves 
  125. together,  then  carefully  separate  the  halves.  
  126. This  is  critical, because the keyboard and power 
  127. light  connector along with a ground braid for the 
  128. keyboard are still connected and could be damaged.  
  129. Carefully  remove  the  screw  holding  the ground 
  130. braid,  along  with  the  connectors for the power 
  131. light  and  keyboard,  taking note of their proper 
  132. connection.   I  found that the keyboard connector 
  133. was  installed  with  a  brown  wire closer to the 
  134. power switch, but things may be different on other 
  135. machines.
  136.  
  137. The next step is to remove the screws holding down 
  138. the  computer  board and the ground casing.  There 
  139. were  six  screws around the perimeter of the main 
  140. board/shield  assembly, remove all of these.  Then 
  141. you  must  use  the pliers to gently bend the tabs 
  142. holding  the  upper  ground  casing  to  the lower 
  143. casing.   There  is  one more screw mounted on the 
  144. ground  casing  in about the top middle, this must 
  145. be removed also.
  146.  
  147. There  is  one  spot  where the casing halves were 
  148. soldered  together  on my computer and that was in 
  149. the  front  right  side,  near  where  the numeric 
  150. keypad  sits.   Carefully  unsolder the halves and 
  151. lift  the  top half away.  What you now see is the 
  152. main  board with a small metal box on it, near the 
  153. center  of  the  board.  The chips that need to be 
  154. replaced are inside that metal box.
  155.  
  156. Inside the box are both of the screen controllers, 
  157. the  8564  Vic chip and the 8563 VDC chip.  Remove 
  158. the  lid  to the box and locate the two chips that 
  159. are  identified  on  the  circuit  board  with the 
  160. marking U23 and U25.  On my board these chips were 
  161. labeled  with  a  large  F  and  the  part  number 
  162. MB81416-12.   The  number  may  vary  due  to  the 
  163. manufacturer,  but  the markings on the board will 
  164. identify the correct chips.
  165.  
  166. Now for some very delicate surgery.  Since the RAM 
  167. chips  will  be  discarded,  I  suggest  that  you 
  168. carefully  cut away the chip pins (leads) from the 
  169. body  of  the  chip.   This will make removing the 
  170. remaining portion a lot easier, and leaves less of 
  171. a chance of damaging the main board than trying to 
  172. remove  the  whole chip, intact.  The next step is 
  173. to  carefully  unsolder  the pins from the circuit 
  174. board.   Make  sure  that you are working with the 
  175. correct  area,  as  things do get rather confusing 
  176. when you turn the board over and notice all of the 
  177. many  soldered  areas.   You  might be best off to 
  178. mark the correct area with a felt tip pen to avoid 
  179. confusion.
  180.  
  181. The  next  step  will be to install the IC sockets 
  182. into  the  circuit board.  Try fitting the sockets 
  183. into the board to make sure that they will fit all 
  184. of  the  way  through  the holes and that there is 
  185. enough  material  poking through for a good solder 
  186. joint.   Also  be  sure to orient the sockets with 
  187. the  small identification notch on the correct end 
  188. of  the  board.  The notch is printed on the board 
  189. so you should have no trouble.
  190.  
  191. When  you  have  the  sockets installed correctly, 
  192. lightly  bend  the pins over to hold them in place 
  193. and  you're  ready to solder them in place.  Again 
  194. be  careful, as drips of solder can cause a short, 
  195. and   a  cold  solder  joint  will  cause  a  poor 
  196. connection.
  197.  
  198. Now  you're  ready to install the 64K chips in the 
  199. sockets,  carefully inspecting the pins for proper 
  200. alignment.  Most of the time chips will be made so 
  201. that you will have to bend the pins inward, toward 
  202. the  center,  to  fit properly in the socket.  But 
  203. too much bending will break off a pin. 
  204.  
  205. Once  you've  installed  the chips you're ready to 
  206. start  the  reassembly  process,  just reverse the 
  207. disassembly  steps  and  make  sure  to solder the 
  208. ground  case  halves again.  Reconnect your cables 
  209. and power up the computer.
  210.  
  211. If  all went well, you should see NOTHING UNUSUAL. 
  212. The  same  old  cold  start up message and nothing 
  213. different.   Some  of you might notice a different 
  214. pattern  on  the  screen  when  the initialization 
  215. process  is going on but after that you should see 
  216. the  same OLD SCREEN.  The cold start routines for 
  217. the  C-128  initialize  the VDC registers, and the 
  218. VDC  chip  is told that it still has the 16K chips 
  219. in  it.   In order to tell the VDC you've upgraded 
  220. the  RAM,  you  will have to set bit 4 of register 
  221. 28.  When  this  is  done,  for  some  reason, the 
  222. character  information  gets scrambled, but a call 
  223. to  the  COPY  ROM  routine  at  $CE0C  clears the 
  224. problem.
  225.  
  226. If  your screen does not appear the way is should, 
  227. look  for a cold solder joint or a pin that is not 
  228. installed into the socket correctly.  I found that 
  229. when I tried to remove the old chips in one piece, 
  230. I  had damaged a portion of the copper foil on the 
  231. circuit  board  and  had to trace the circuits out 
  232. and  install a jumper wire from the 8563 socket to 
  233. one of the RAM sockets.
  234.  
  235. I  hope  to  be  passing  more  information to you  
  236. regarding  the  VDC chip and some programming tips 
  237. in the coming months, so keep looking.
  238.