Chapter 4
Programming
© National Instruments Corporation
4-9
PC-TIO-10 User Manual
MC6821 Control Registers
The MC6821 Control Registers control the overall operation of the MC6821 and the selection of
the two internal registers that are accessed through each of the MC6821 Data Registers. Some of
the bits in the Control Registers are not used because of the design of the PC-TIO-10. These bits
should be set as follows.
Address:
Base a 05 (hex) for Port A
Base a 07 (hex) for Port B
Type:
Read-and-write
Word Size:
8-bit register, 8-bit port
Bit Map:
7
6
5
4
3
2
1
0
IRQ
0
0
0
0
DRS
EDGE
INTEN
Bit
Name
Description
7
IRQ
This is a read-only bit that reflects the current status of the
interrupt input for the selected Control Register. If this bit is one
in the
Port A Control Register, an interrupt request is pending on the
external interrupt line EXTIRQ1. If this bit is one in the Port B
Control Register, an interrupt request is pending on the external
interrupt line EXTIRQ2. Always write a zero to this bit.
6-3
Reserved
These bits are not used on the PC-TIO-10. Always write a zero to
each of these bits.
2
DRS
This is the Data Register Select bit. Writing a one to this bit
selects the Output Register, while writing a zero to this bit selects
the Data Direction Register. Reading this bit shows the bit's
current state. Refer to the description of the Data Register for
more information.
1
EDGE
This is the control bit for selecting the edge that will cause an
interrupt. Writing a one to this bit selects rising-edge interrupts,
while writing a zero to this bit selects falling-edge interrupts. The
Port A Control Register controls external interrupt line EXTIRQ1,
while the Port B Control Register controls external interrupt line
EXTIRQ2. Reading this bit shows the bit's current state.
0
INTEN
This bit enables and disables the interrupt generation capability of
EXTIRQ1 or EXTIRQ2. Writing a one to this bit enables
interrupts, while writing a zero to this bit disables interrupts. The
Port A Control Register controls EXTIRQ1, while the Port B
Control Register controls EXTIRQ2. Reading this bit shows the
bit's current state.
Summary of Contents for PC-TIO-10
Page 57: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 2 National Instruments Corporation ...
Page 58: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 3 PC TIO 10 User Manual ...
Page 59: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 4 National Instruments Corporation ...
Page 60: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 5 PC TIO 10 User Manual ...
Page 61: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 6 National Instruments Corporation ...
Page 62: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 7 PC TIO 10 User Manual ...
Page 63: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 8 National Instruments Corporation ...
Page 64: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 9 PC TIO 10 User Manual ...
Page 65: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 10 National Instruments Corporation ...
Page 66: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 11 PC TIO 10 User Manual ...
Page 67: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 12 National Instruments Corporation ...
Page 68: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 13 PC TIO 10 User Manual ...
Page 69: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 14 National Instruments Corporation ...
Page 70: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 15 PC TIO 10 User Manual ...
Page 71: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 16 National Instruments Corporation ...
Page 72: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 17 PC TIO 10 User Manual ...
Page 73: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 18 National Instruments Corporation ...
Page 74: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 19 PC TIO 10 User Manual ...
Page 75: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 20 National Instruments Corporation ...
Page 76: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 21 PC TIO 10 User Manual ...
Page 77: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 22 National Instruments Corporation ...
Page 78: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 23 PC TIO 10 User Manual ...
Page 79: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 24 National Instruments Corporation ...
Page 80: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 25 PC TIO 10 User Manual ...
Page 81: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 26 National Instruments Corporation ...
Page 82: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 27 PC TIO 10 User Manual ...
Page 83: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 28 National Instruments Corporation ...
Page 84: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 29 PC TIO 10 User Manual ...
Page 85: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 30 National Instruments Corporation ...
Page 86: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 31 PC TIO 10 User Manual ...
Page 87: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 32 National Instruments Corporation ...
Page 88: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 33 PC TIO 10 User Manual ...
Page 89: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 34 National Instruments Corporation ...
Page 90: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 35 PC TIO 10 User Manual ...
Page 91: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 36 National Instruments Corporation ...
Page 92: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 37 PC TIO 10 User Manual ...
Page 93: ...AMD Am9513A Data Sheet Appendix C PC TIO 10 User Manual C 38 National Instruments Corporation ...
Page 94: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 39 PC TIO 10 User Manual ...