Để làm cho các vi điều khiển hữu ích, nó phải được kết nối với thiết bị điện tử bổ sung, ví dụ như thiết bị ngoại vi. Mỗi vi điều khiển có một hoặc
đăng ký nhiều hơn (gọi là một "cổng") kết nối với các chân vi điều khiển. Tại sao đầu vào / đầu ra? Bởi vì bạn có thể thay đổi chức năng của pin như bạn
muốn. Ví dụ, giả sử bạn muốn thiết bị của bạn để biến ba đèn LED tín hiệu và đồng thời theo dõi trạng thái logic của năm bộ cảm biến hoặc đẩy
nút. Một số cổng cần phải được cấu hình để có ba kết quả đầu ra (kết nối với các đèn LED) và năm đầu vào (kết nối với các cảm biến). Nó được
chỉ đơn giản là thực hiện bằng phần mềm, có nghĩa là chức năng của pin có thể được thay đổi trong quá trình hoạt động.
đang được dịch, vui lòng đợi..