8031 single chip microcomputer expands a 8255A to control the light emitting diode circuit schematic diagram and assembly

Publisher:老卫Latest update time:2017-10-11 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

There is an 8031 ​​chip, which is expanded by an 8255A. If port B of 8255A is used as input, each bit of port B is connected to a switch, and port A is used as output, each bit is connected to a light-emitting diode, please draw the circuit schematic diagram, and write a program so that when a switch of port B is connected to a high level, the corresponding light-emitting diode of port A will be lit.


A: 7ffch

B: 7ffdh

C:7ffeh


Control port: 7fffh


              MOV DPTR,#7FFFH


              MOV A,#10000010B


              MOV @DPTR,A

              MOV DPTR,#7FFDH


              MOVX A,@DPTR

              MOV DPTR,#7FFCH

              MOVX @DPTR,A

  


Picture 1


Reference address:8031 single chip microcomputer expands a 8255A to control the light emitting diode circuit schematic diagram and assembly

Previous article:89C51 single chip computer 9-button determinant keyboard input circuit
Next article:MCU and keyboard interface diagram and keyboard message processing program

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号