期末复习用,会不定期更新。
The 82C55 is used for interface to the keyboard and parallel printer port in many personal computers, but it is found as a function within an interfacing chipset. The chipset
also controls the timer and reads data from the keyboard interface.
1、芯片的基本结构
A1、A0选择端口,00是port A,01是Port B,10是Port C,11是命令寄存器。
2、芯片的三个模式
B组可以工作在0,1两种模式下,A组更强,0,1,2三种模式均可。A、B组的引脚都可被编程为输入\输出引脚。
command byte是8bit,bit7用来选择是command byte A(为1)还是command byte B(为0),为0时,如果芯片工作在mode1或mode2下,则端口C的任意一个bit都可以被置位或者复位(这个修改只会影响一位而不会影响其他位)。
示