创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:avrgcc:portxn

PORT

Abstract

The PORTs are registers for bi-directional I/O. There are three registers called PORTB, PORTC and PORTD.

Source Code

The PORTB, PORTC and PORTD are defined in hardware/tools/avr/avr/include/avr/iom328p.h as below.

#define PORTB _SFR_IO8(0x05)
#define PORTC _SFR_IO8(0x08)
#define PORTD _SFR_IO8(0x0B)

0x05, 0x07, and 0x0A are I/O addresses of PORTB, PORTC and PORTD respectively. They call _SFR_IO8().

本页面的其他翻译:
arduino/avrgcc/portxn.txt · 最后更改: 2016/12/25 22:15 (外部编辑)