《(56)--CH2-3-1- Internal structure of I嵌入式系统原理.ppt》由会员分享,可在线阅读,更多相关《(56)--CH2-3-1- Internal structure of I嵌入式系统原理.ppt(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、第第2 2章章 单片机原理与应用单片机原理与应用Principles Principles and Applications of and Applications of MicrocontrollerMicrocontrollerChapter 2.3 Input/Output Ports of 8051 MCU主转盘电机控制信号步进脉冲方向针臂电机控制信号步进脉冲方向主转盘位置检测霍尔传感器信号限位检测上限位开关信号2个步进电机,配驱动电路3处位置检测,均为开关量下限位开关信号Chapter 2.3 Input/Output Ports of 8051 MCUP1P3P0:Without
2、built-in pull-up resistorP21.4 I/O Ports(32 lines)Chapter 2.3 Input/Output Ports of 8051 MCU2.Internal structure of I/O portChapter 2.3 Input/Output Ports of 8051 MCUOutputInputHow to output the logic(1)?2.Internal structure of I/O portChapter 2.3 Input/Output Ports of 8051 MCULearn to design an exercise to verify the input function?OutputInput(1)Write 1 to P1.1,then read back,P1.1=?(2)Write 0 to P1.1,then read back,P1.1=?Chapter 2.3 Input/Output Ports of 8051 MCUSummary:n8051 MCU has 4 I/O ports:P0,P1,P2,P3nEach pin can be used to input or outputnTo operate these ports by SFR