Advertisement
Guest User

Untitled

a guest
Jun 27th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. VIA 6522 Bugs
  2. -------------
  3.  
  4. This is an attempt to document the bugs present in MOS technologies VIA6522. For
  5. some reason this has never been done in great detail, leading to confusing and
  6. inaccurate emulation.
  7.  
  8.  
  9. Shift Register Bug:
  10. -------------------
  11.  
  12. Due to a design defect, if the edge on CB1 falls within a few nanoseconds of the
  13. falling edge of the phi2 (phase–2) clock, the CB1 edge will be ignored, causing
  14. the loss of a bit and framing errors on subsequent data.
  15.  
  16. As a workaround, put the external clock signal into the D input of a 74AC74
  17. flip-flop, run the flop's Q output to the 6522's CB1 pin, and clock the
  18. flip-flop with phi0 or phi2.2
  19.  
  20. This infamous serial shift register bug was fixed in the California Micro
  21. Devices CMD G65SC22. California Micro Devices was acquired by ON Semiconductor.
  22.  
  23.  
  24. Register corruption Problem:
  25. ----------------------------
  26.  
  27. Aside from the aforementioned shift register bug, there was a potential register
  28. corruption problem that usually only occurred in systems using the 6522 with a
  29. microprocessor having a non-6502 bus architecture, such as a Motorola 68000.
  30.  
  31. If the address lines changed while chip select was low (inactive) but the phi2
  32. clock input was high (active), register contents could be changed despite the
  33. fact that the chip was not selected.
  34.  
  35. This was fixed in some but not all of the CMOS versions.
  36.  
  37. Timer Race Conditions:
  38. ----------------------
  39.  
  40. ??? mentioned a few times but never detailed
  41.  
  42.  
  43. References:
  44. -----------
  45.  
  46. https://en.wikipedia.org/wiki/MOS_Technology_6522#Bugs
  47. https://plus.google.com/108984290462000253857/posts/1Ei3qVWZHwn
  48. http://visual6502.org/images/pages/MOS_6522.html
  49. http://forum.6502.org/viewtopic.php?t=40&highlight=wd65c22s
  50.  
  51. --------------------------------------------------------------------------------
  52. perhaps related:
  53.  
  54. http://forum.6502.org/viewtopic.php?f=7&t=342&start=7
  55. "To get the 6522's T1 running in free-run mode, you must set bit 6 of the ACR
  56. before writing to the counters. Then, write to T1's counters to get it started.
  57. After that you can write to the latches. (This requirement may not hold for all
  58. manufacturers.) It took me a long time to get this going the first time since
  59. this information is not in the data books."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement