Because the bits are now sent in series, we call this serial communication. We can send the bits one at a time over a single data line. Is there a way to accomplish the same thing using fewer lines? (See Figure 1, left) But using eight lines to connect to a single sensor is usually a waste of resources. This type of transfer is referred to as parallel, as one full byte of data is transferred at a single time along parallel lines. The MCU's built-in GPIO (general-purpose input/output) port, explained in the first session of this series, could be used to connect eight signal lines with the sensor, enabling the sensor to send eight bits of data at a time-using up eight GPIO data pins. Consider, for example, how we might connect up a sensor. ![]() This means that the MCU must communicate with each of these units. Serial ConnectionĪs we've discussed before, the MCU functions as the "brain" of the embedded device, whereas external peripherals units as the "hands and feet".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |