8031 MCU programming with 74ls373 input and 74ls377 output

Publisher:RainbowMelodyLatest update time:2017-10-14 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Use 74ls373 input (P2.7 chip select) and 74ls377 output (P2.6 chip select). Try to write a program to read ten data from 373 in sequence, invert them, and output them from 377.

 


Picture 1

  

Answer:


74LS373 (input): 7fffh


74LS373 (input): bfffh 

              MOV R7,#10 

              MOV      R0,#30H


              MOV DPTR,#7FFFH


LOOP0:  MOVX    A,@DPTR 

              CPL        A 

              MOV      @R0,A 

              INC        R0 

              DJNZ      R7,LOOP0

              MOV R7,#10

              MOV      R0,#30H


              MOV      DPTR,#0BFFFH


LOOP1:  MOV      A,@R0


              MOVX @DPTR,A

              INC        R0 

              DJNZ R7,LOOP1


Reference address:8031 MCU programming with 74ls373 input and 74ls377 output

Previous article:CJNE comparison jump instruction and P0 port status detection program example
Next article:Circuit diagram of two 8031 ​​systems for dual-computer communication and communication single-chip assembly language

Recommended ReadingLatest update time:2024-11-17 06:01

Design of intelligent surge current tester based on 8031 ​​microcontroller and conversion system
introduction With the widespread application of rectifier diodes in the electronics industry, especially the home appliance industry, users have increasingly stringent requirements for the technical parameters of rectifier diodes. In China, the manufacturer's test standard (national standard) for rectifier diode surge
[Microcontroller]
Design of intelligent surge current tester based on 8031 ​​microcontroller and conversion system
Digital clock controlled by 8031 ​​single chip microcomputer
There are many ways to design digital electronic clocks. For example, small and medium-scale integrated circuits can be used to form electronic clocks; dedicated electronic clock chips can be used with display circuits and the required peripheral circuits to form electronic clocks; single-chip microcomputers can als
[Microcontroller]
Digital clock controlled by 8031 ​​single chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号