MOS Technology CIA
Encyclopedia : M : MO : MOS : MOS Technology 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 capabilities as well as timers and a Time-of-Day (TOD) clock. The circuit's most prominent use was in the Commodore 64, Commodore 128, and Amiga home computers, each of which included two CIA chips.
Parallel I/O
The CIA had two 8-bit bidirectional parallel I/O ports. Each port had a corresponding Data Direction Register, which allowed each data line to be individually set to input or output mode.Serial I/O
An internal bidirectional 8-bit shift register enabled the CIA to handle serial I/O. The chip could accept serial input clocked from an external source, and could send serial output clocked with one of the built-in programmable timers. An IRQ was generated whenever an 8-bit serial transfer has completed.Handshaking
Two dedicated control lines (/FLAG and /PC) were implemented to allow coordination between multiple CIA chips.Interval timers
Two programmable interval timers were available. Each timer consisted of a 16-bit read-only presettable down counter and a corresponding 16-bit write-only latch. Whenever a timer was started, the timer's latch was automatically copied into its counter, and the counter would then decrement with each clock cycle until underflow, at which an IRQ would be generated. The timer could run in either "one-shot" mode, halting after the first IRQ, or "continuous" mode, reloading the latch value again and starting the timer cycle anew. In addition to generating IRQs, the timer output could also be gated to the second I/O port.Time-of-Day (TOD) Clock
A real-time clock was incorporated in the CIA. Accurate to a tenth of a second, it could be driven by either a 50 Hz or 60 Hz external signal, selected by a user-programmable register. This was to ensure compatibility with both NTSC and PAL systems. The clock operated in binary-coded decimal. Latching and halting behavior was implemented to prevent errors when reading or writing the clock. An "alarm" feature was also included, which allowed an IRQ to be generated whenever a certain time of day was reached. The 8520 revision, used in the Amiga, modified the time-of-day clock to be a 24-bit binary counter, replacing the BCD format of the 6526.Versions
The CIA was available in 1 MHz (6526) and 2 MHz (6526A) versions. The form factor was a JEDEC-standard 40-pin ceramic or plastic DIP. The 8520 CIA, with its modified time-of-day clock, was used in the Amiga computers.Commodore made a reduced (just 4 registers) CIA for the 1571CR called 5710.
External links
Interface chips from MOS Technology and second source/clone vendors |
| 6520 PIA ● 6522 VIA ● 6523 TIA ● 6525 TPI ● 6526 CIA ● 6529 SPI ● 6530 RRIOT ● 6532 RIOT ● 6551 ACIA |
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
