網路城邦
上一篇 回創作列表 下一篇   字體:
mapping table: arduino uno pin / IC port
2019/09/19 13:49:59瀏覽70|回應0|推薦0
0   PORTD 0

1   PORTD 1

2   PORTD 4

3   PORTD 5

4   PORTD 5

5   PORTD 3

6   PORTD 3

7   PORTD 4


8   PORTB 0

9   PORTB 1

10   PORTB 2

11   PORTB 3

12   PORTB 4

13   PORTB 5


A0   PORTC 0

A1   PORTC 1

A2   PORTC 2

A3   PORTC 3

A4   PORTC 4

A5   PORTC 5



PORTD maps to Arduino digital pins 0 to 7


DDRD - The Port D Data Direction Register - read/write

PORTD - The Port D Data Register - read/write

PIND - The Port D Input Pins Register - read only

PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 & 7) map to the crystal pins and are not usable


DDRB - The Port B Data Direction Register - read/write

PORTB - The Port B Data Register - read/write

PINB - The Port B Input Pins Register - read only

PORTC maps to Arduino analog pins 0 to 5. Pins 6 & 7 are only accessible on the Arduino Mini


DDRC - The Port C Data Direction Register - read/write

PORTC - The Port C Data Register - read/write

PINC - The Port C Input Pins Register - read only

( 心情隨筆雜記 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=129523695