MOS Technology 6522

MOS Technology 6522

The 6522 Versatile Interface Adapter (VIA) was an integrated circuit made by MOS Technology, as well as second sources including Rockwell and Synertek. It served as a I/O port controller for the 6502 family of microprocessors, providing the parallel I/O capabilities of the PIA as well as timers and a shift register for serial communications. The 6522 was very popular in computers of the 1980s, particularly Commodore's machines, and was also a central part of the designs of the Apple III, BBC Microcomputer and Apple Macintosh.

Input/output ports

The VIA contains 20 I/O lines, which are organised into 2 8-bit bidirectional ports (or 16 general-purpose I/O lines) and 4 control lines (for handshaking and interrupt generation). The directions for all 16 general lines (PA0-7, PB0-7) can be programmed independently. The control lines can be programmed to generate an interrupt when activated (all four), latch the corresponding I/O port (CA1 and CB1), automatically generate handshaking signals for devices on the I/O ports, or output a plain High or Low signal.

Timers

The VIA provides 2 16-bit timer/counters, which can be used in one-shot (monostable) mode, free-running (divider) mode or "pulse counting" mode, where the timer will monitor the 7th bit (PA6 or PB6) on its respective I/O port, and count how many state transitions pass by. Each timer can generate an interrupt when it reaches zero, and can also output square waves on the 8th bit of its respective I/O port (pin PA7 or PB7).

Shift register

The VIA's shift register is bidirectional, 8 bits wide, and can run from either a timer-generated clock (from timer 2), the CPU clock, or an external source on line CB1. The serial input/output is on line CB2, and CB1 can also be programmed to output a bit clock for external devices. The infamous serial shift register bug is fixed by the CMD G65SC22.

Bugs

Aside from the aforementioned shift register bug, there was a potential register corruption problem that usually only occurred in systems using the 6522 with a processor having a non-6502-like bus, such as a Motorola 68000. If the address lines changed while chip select was inactive but the phase 2 clock input was high (active), register contents could be changed despite chip select being inactive. This was fixed in some but not all of the CMOS versions.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • MOS Technology 6522 — Este artículo o sección necesita referencias que aparezcan en una publicación acreditada, como revistas especializadas, monografías, prensa diaria o páginas de Internet fidedignas. Puedes añadirlas así o avisar …   Wikipedia Español

  • MOS Technology — MOS Technology, Inc., también conocida como Commodore Semiconductor Group, (al ser adquirida por CBM), fue un fabricante de calculadoras y microprocesadores, siendo famosa por su microprocesador MOS Technology 6502. Pese a la similitud, no tiene… …   Wikipedia Español

  • MOS Technology — MOS Technology, Inc., также известная как CSG (Commodore Semiconductor Group)  американская компания, разработчик и производитель микросхем. Располагалась в Норристоне, штат Пенсильвания. Наиболее известна как разработчик микропроцессора… …   Википедия

  • MOS Technology, Inc — MOS Technology MOS Technologie, également connue sous le nom de Commodore Semiconductor Group, fut une société américaine d électronique et un fondeur de microprocesseurs. La société est particulièrement connue pour avoir conçu la gamme des… …   Wikipédia en Français

  • MOS Technology — Not to be confused with Mostek. MOS Technology, Inc. Industry Semiconductor design and manufacturing Predecessor Allen Bradley Successor Co …   Wikipedia

  • MOS Technology — MOS Technology, également connue sous le nom de Commodore Semiconductor Group, fut une société américaine d électronique et un fondeur de microprocesseurs. La société est particulièrement connue pour avoir conçu la gamme des microprocesseurs MOS… …   Wikipédia en Français

  • MOS Technology VIA — Chip MOS 6522 (VIA) Der Versatile Interface Adapter 6522 (VIA) ist ein flexibler Ein/Ausgabebaustein der Firma MOS Technology. Er verfügt über zwei sehr mächtige 16 Bit Intervalltimer, ein seriell nach parallel/parallel nach seriell… …   Deutsch Wikipedia

  • MOS Technology — Logo Teil einer C64 Platine mit einig …   Deutsch Wikipedia

  • MOS Technology CIA — Pin configuration of the 6526 CIA The 6526/8520 Complex Interface Adapter (CIA) was an integrated circuit made by MOS Technology. It served as a I/O port controller for the 6502 family of microprocessors, providing for parallel and serial I/O… …   Wikipedia

  • MOS Technology SPI — The 6529 Single Port Interface (SPI aka PIO) was an integrated circuit made by MOS Technology. It served as an I/O controller for the 6502 family of microprocessors, providing a single 8 bit digital bidirectional parallel I/O port. Unlike the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”