Groups
Groups
Sign in
Groups
Groups
Homebrew radio
Conversations
Labels
About
Send feedback
Help
STM32duinoでdigitalモードでOUTPUT設定しても出力されない
124 views
stm32duino
Skip to first unread message
JA2NKD
unread,
Feb 19, 2017, 7:18:40 AM
2/19/17
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 Homebrew radio
STM32duinoで
Pin PA11,PA12,PA15, PB3, PB4をOUTPUTモードにセットしても使えない。これはこれらpinがUSB,SPI1に使用されるpinであり、コンパイルしても設定されないように設定されているためである。これを回避するためには以下の命令をsetupルーチンに書くことにより回避できる。
void setup() {
afio_cfg_debug_ports(AFIO_DEBUG_NONE);
詳しくは以下のフォーラムに掲載されている。
http://www.stm32duino.com/viewtopic.php?f=35&t=1130&hilit=PB3+PB4
Reply all
Reply to author
Forward
0 new messages