The 8155 driver mainly involves setting the ports PA, PB, PC, control words and timers, mainly including the following codes and functions.
(1) Related function declarations and pin definitions.
The pin definition mainly refers to the definition of port PA, port PB, port PC, control word and timer A, B and memory first address and related flag bits; the function declaration involves memory and port PA, port PB, port PC read Write function, interrupt switch function and timer related function, the specific code is as follows:
Breaker Mcb,Mcb Circuit Breaker,32A Circuit Breaker,Miniature Circuit Breaker
ZHEJIANG QIANNA ELECTRIC CO.,LTD , https://www.traner-elec.com