第三章MSP430基本外设讲述.ppt

P1 端口输入输出电路 input/output schematic P1SEL.x=0,不考虑中断功能 P1SEL.x P1DIR.x P1OUT.x P1IN.x P1.x x = 0 ~ 7 P1SEL.x=0 , P1DIR.x=1 General-purpose digital I/O——Output P1SEL.x=0 , P1DIR.x=0 General-purpose digital I/O——Input Direction Registers PxDIR(输入/输出方向寄存器) Each bit in each PxDIR register selects the direction of the corresponding I/O pin, regardless of the selected function for the pin. PxDIR bits for I/O pins that are selected for other module functions must be set as required by the other function. Bit = 0: The port pin is switched to input direction Bit = 1: The port pin is switched to output di

文档评论(0)

1亿VIP精品文档

相关文档