登录
首页 » SCM » 由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15...

由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15...

于 2023-08-10 发布 文件大小:841.00 B
0 147
下载积分: 2 下载次数: 1

代码说明:

由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15-A8即高8位地址,P3口用作第二功能,只有P1口通常用作I/0口。P1口是8位准双向口,它的每一位都可独立地定义为输入或输出,因此既可作为8位的并行I/O口,也可作为8位的输入输出端。当工作在输入方式时,对应位的锁存器必须先置1,才能正确地读到引脚上的信号,否则,执行读引脚指令时,若对应位的锁存器的值为0,读的结果永远为0。-By 8051, composed of single-chip microcomputer system under normal circumstances, P0 timeshare I reuse as address, data bus, P2 I provide A15-A8 high eight address, P3 mouth for the second function, I usually only P1 for I/0 I. P1 I was eight quasi-two-way port, it can be independent of each and every defined as input or output, it can be used as 8-bit parallel I/O port, can also be used as 8-bit input and output side. When the work in the input, the corresponding bit latch must first buy one in order to correctly read the signal pin, or pin the implementation of reading instruction, if the corresponding bit latch the value of 0, Reading the results of Forever to 0.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是教你怎么利用单片机进行音乐的播放程序,非常好用
    这是教你怎么利用单片机进行音乐的播放程序,非常好用-This is to teach you how to use microcontroller to the music player is very easy to use
    2022-05-04 23:44:20下载
    积分:1
  • mage8的数码管扫描程序
    mage8的数码管扫描程序 -mage8 digital control digital control mage8 scanner scanner
    2022-02-16 06:30:52下载
    积分:1
  • 这是一个AVR单片机的头文件,有关引脚的位选,可BOOL输出输入,非常好用。我一直在用着。主要针对芯片ATMEGA128的头文件,其它的芯片也可向下兼容。
    这是一个AVR单片机的头文件,有关引脚的位选,可BOOL输出输入,非常好用。我一直在用着。主要针对芯片ATMEGA128的头文件,其它的芯片也可向下兼容。-This is an AVR MCU header files, the pin-bit elections BOOL input-output, very easy to use. I have been using. ATmega128 chip aimed at the header files, other chips can also be backward compatible.
    2022-03-20 11:33:20下载
    积分:1
  • C8051F040单片机CAN总线接收和发射程序,简单明了
    C8051F040单片机CAN总线接收和发射程序,简单明了-C8051F040 single-chip CAN-bus to receive and launch procedures, simple
    2023-07-14 03:55:03下载
    积分:1
  • 用C51实现的拼音输入法,这是改写的网友 embuffalo、独步上载在www.21ic.com自由发布区的由张凯原作的51上的拼音输入法程序。 原作使用...
    用C51实现的拼音输入法,这是改写的网友 embuffalo、独步上载在www.21ic.com自由发布区的由张凯原作的51上的拼音输入法程序。 原作使用了一个二维数组用以查表,我认为这样比较的浪费空间,而且每个字表的索引地址要手工输入,效率不高。所以我用结构体将其改写了一下。就是大家现在看到的这个。 因为代码比较的大,共有6,000多汉字,这样就得要12,000 byte来存放GB内码,所以也是没办法的 :-( 编译结果约为3000h,因为大部分是索引表,代码优化几乎无效。 在Keil C里仿真芯片选用的是华邦的W77E58,它有32k ROM, 256B on-chip RAM, 1K on-chip SRAM (用DPTR1指针寻址,相当于有1K的片上xdata)。条件有限,没有上片试验,仿真而已。 打算将其移植到AVR上,但CodeAVRC与IAR EC++在结构体、指针的定义使用上似乎与C51不太一样,现在还未搞定。还希望在这方面有经验的网友能给予指导。-C51 with the Pinyin input method, which is rewritten netizens embuffalo. Unrivaled www.21ic.com available in the free publication of the original work by Kai-51 on the Pinyin input method procedures . Appreciate the use of a two-dimensional array for the look-up table, I think this is a waste of space. Each of the characters but the index table to manually input address, efficiency is not high. I use the structure to rewrite a bit. We see now is this. Because the code comparison, a total of 6, more than 000 Chinese characters, this must
    2023-04-01 14:55:03下载
    积分:1
  • 2022-01-22 04:26:40下载
    积分:1
  • AP89042是不可从复录音的分段式语音芯片,对语音电路的开发人员有一定的帮助....
    AP89042是不可从复录音的分段式语音芯片,对语音电路的开发人员有一定的帮助.-AP89042 is not from the sub-Minute recording voice chip, the voice circuits developers will help.
    2022-12-03 09:05:03下载
    积分:1
  • at24c02读写函数。全部以打包完毕,使用时只需调用相应函数即可...
    at24c02读写函数。全部以打包完毕,使用时只需调用相应函数即可-at24c02 read and write functions. All finished in packages, use the function can simply call the corresponding
    2022-05-14 04:09:10下载
    积分:1
  • Learn hands
    动手组装学习板,既省钱又实用。欣欣工作室为您准备了齐全的PCB及制作、调试、实验文档,来欣欣论坛,为了让大家阅读方便,我制成了电子书格式-Learn hands-assembled panels, both to save money and practical. Xinxin studio prepared for you a full range of PCB and production, testing, laboratory documents, to Xinxin forum in order to allow ease of reading everyone, I made the e-book format
    2022-05-26 04:10:21下载
    积分:1
  • 128X64液晶显示模块驱动程序(CforC51)
    128X64液晶显示模块驱动程序(CforC51)-128X64 LCD Module Driver (CforC51)
    2022-07-09 17:31:45下载
    积分:1
  • 696516资源总数
  • 106642会员总数
  • 12今日下载