Groups
Groups
Sign in
Groups
Groups
[LaunchPad互動裝置] TI MSP430 LaunchPad 使用者討論區
Conversations
About
Send feedback
Help
P2SEL的功用
35 views
Skip to first unread message
陳譽典
unread,
Oct 15, 2016, 6:33:04 AM
10/15/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to [LaunchPad互動裝置] TI MSP430 LaunchPad 使用者討論區
#include "msp430g2231.h"
int main( void )
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR=0XFF;
P2DIR=0XFF;
P2SEL=0X00;
P2OUT=0X80; //P2.7 ..XIN
P1OUT=0X3F; //七段顯示器上面顯示 0
}
我想請問 P2SEL 是在做甚麼的?
說明書上是寫 0的話 就是普通io口 1就是 第二功能
可是 如果我甚麼都沒打就不會顯示
k46974
unread,
Oct 15, 2016, 9:57:55 AM
10/15/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to [LaunchPad互動裝置] TI MSP430 LaunchPad 使用者討論區
你要去看手冊知道你要的功能在第幾腳位,然後再讓SEL在你的腳位置1 ,他才會有那個功能作用,不然只是單純/O口。
陳譽典於 2016年10月15日星期六 UTC+8下午6時33分04秒寫道:
Reply all
Reply to author
Forward
0 new messages