
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Revised April 14, 2008
A protocol is a set of rules and conventions used to provide communication between two devices. A serial protocol is a protocol that sends data in one stream (through one line/media channel). There can be other streams/lines for control data. This in contrast to a parallel protocol that sends the data in multiple data streams. The main advantage a serial protocol has over a parallel one is simplicity (which makes it cheaper), less interference between media channels (which allows longer cables) and a higher possible data rate for one stream.
The OSI model ( O pen S ystems I nterconnect) is used to describe the different layers of protocols used in communicating across the network. The OSI model has largely been replaced by the TCP/IP stack, but is still useful for teaching purposes. The model consists of seven layers, and is designed so that changes in one layer will not affect the operation of the layers above and below. The model is usually presented starting at the Application Layer, and working its way down to the Physical Layer. This is to reinforce the following idea: Data begins at the application layer on the sending host where it works it way down through the layers across the network before working it way up the layers on the recipient. The seven network layers are illustrated in Figure 1.
Figure 1. OSI-ISO seven layer network model.
OSI divides telecommunication into seven layers. The layers are in two groups. The upper four layers are used whenever a message passes from or to a user. The lower three layers are used when any message passes through the host computer. Messages intended for this computer pass to the upper layers. Messages destined for some other host are not passed up to the upper layers but are forwarded to another host. The seven layers are:
Layer 7: The application layer ...This is the layer at which communication partners are identified, quality of service is identified, user authentication and privacy are considered, and any constraints on data syntax are identified. (This layer is not the application itself, although some applications may perform application layer functions.)
Layer 6: The presentation layer ...This is a layer, usually part of an operating system, that converts incoming and outgoing data from one presentation format to another (for example, from a text stream into a popup window with the newly arrived text). Sometimes called the syntax layer.
Layer 5: The session layer ...This layer sets up, coordinates, and terminates conversations, exchanges, and dialogs between the applications at each end. It deals with session and connection coordination.
Layer 4: The transport layer ...This layer manages the end-to-end control (for example, determining whether all packets have arrived) and error-checking. It ensures complete data transfer.
Layer 3: The network layer ...This layer handles the routing of the data (sending it in the right direction to the right destination on outgoing transmissions and receiving incoming transmissions at the packet level). The network layer does routing and forwarding.
Layer 2: The data-link layer ...This layer provides synchronization for the physical level and does bit-stuffing for strings of 1's in excess of 5. It furnishes transmission protocol knowledge and management.
Layer 1: The physical layer ...This layer conveys the bit stream through the network at the electrical and mechanical level. It provides the hardware means of sending and receiving data on a carrier.
There are two basic types of serial communications: synchronous and asynchronous.
The asynchronous communication technique is a physical layer transmission technique that is most widely used for personal computers providing connectivity to printers, modems, fax machines, etc. As illustrated in Figure 2, the most significant aspect of asynchronous communications is that the transmitter and receiver clock are independent and are not
Figure 4. The transition from the idle state triggers the UART at the receiver to start reception The reconstructed receive clock (receive (rx) clock) is normally generated using a local stable high rate clock, frequently operating at 16 or 32 times the intended data rate. Figure 5 illustrates that the clock generation proceeds by detecting the edge of the start bit and counting sufficient clock cycle from the high frequency clock to identify the mid position of the start bit. From there the centre of the successive bits are located by counting cycles corresponding to the original data speed.
Figure 5. Reconstruction of the clock (red) , by matching of phase to the transmitted data (blue) to the local stable high rate clock (black)
When asynchronous transmission is used to support packet data links then special characters have to be used ("framing") to indicate the start and end of each frame transmitted. One character (known as an escape character) is reserved to mark any occurrence of the special characters within the frame. In this way the receiver is able to identify which characters are part of the frame and which are part of the "framing". Some users get access to a network using a modem to send packet communications over asynchronous links. Most Wide Area Networks use synchronous links and more sophisticated link protocols. Most PC serial devices such as mice, keyboards and modems are asynchronous. Asynchronous communication requires nothing more than a transmitter, a receiver and a wire. It is thus the simplest of serial communication protocols, and the least expensive to implement. As the name implies, asynchronous communication is performed between two (or more) devices which operate on independent clocks. Therefore, even if the two clocks agree for a time, there is no guarantee that they will continue to agree over extended periods, and thus there is no guarantee that when point A begins transmitting, point B will begin receiving, or that Point B will continue to sample at the rate Point A transmits. See Figure 6 below for an illustration of what happens when transmission clocks differ significantly.
Figure 6. Asynchronous serial timing
To combat this timing problem, asynchronous communication requires additional bits to be added around actual data in order to maintain signal integrity. Asynchronously transmitted data is preceded with a start bit which indicates to the receiver that a word (a chunk of data broken up into individual bits) is about to begin. To avoid confusion with other bits, the start bit is twice the size of any other bit in the transmission. The end of a word is followed by a stop bit, which tells the receiver that the word has come to an end, that it should begin looking for the next start bit, and that any bits it receives before getting the start bit should be ignored. To ensure data integrity, a parity bit is often added between the last bit of data and the stop bit. The parity bit makes sure that the data received is composed of the same number of bits in the same order in which they were sent.
In communications, parity checking refers to the use of parity bits to check that data has been transmitted accurately. The parity bit is added to every data unit (typically seven or eight bits ) that are transmitted. The parity bit for each unit is set so that all bytes have either an odd number or an even number of set bits. Assume, for example, that two devices are communicating with even parity (the most common form of parity checking). As the transmitting device sends data, it counts the number of set bits in each group of seven bits. If the number of set bits is even, it sets the parity bit to 0; if the number of set bits is odd, it sets the parity bit to 1. In this way, every byte has an even number of set bits. On the receiving side, the device checks each byte to make sure that it has an even number of set bits. If it finds an odd number of set bits, the receiver knows there was an error during transmission. The sender and receiver must both agree to use parity checking and to agree on whether parity is to be odd or even. If the two sides are not configured with the same parity sense , communication will be impossible.
The sender places a negative voltage on the wire for a short time and then returns the voltage to zero - this represents a one. The receiver senses the negative voltage and records that a one arrived. To ensure that communications hardware built by different vendors will interoperate, the specifications for communications systems are standardized. Organizations such as the Electronic Industries Association (EIA), the International Telecommunications Union (ITU) and the Institute for Electrical and Electronics Engineers (IEEE) publish these specifications as standards.
RS-232 is a particular standard produced by the EIA is widely used to transfer characters across copper wires between a computer and a device such as a keyboard, modem, or terminal. RS-232 defines serial communication because the bits travel on the wire one after another. The transmission is asynchronous because the sender and receiver do not co-ordinate before transmission. Some of the key elements of RS-232 are:
RS-232 hardware never leaves a zero voltage on the wire, so the sender and receiver must agree on the length of time the voltage will be held for each bit. In order for the receiver to distingush between an idle line and a 1 bit, the sender transmits a zero before transmitting the bits of a character; this is called the start bit and is illustrated in Figure 9.
Figure 9. Using RS- A standard serial interfacing for PC, RS-232C, requires negative logic, i.e., logic '1' is - 3V to -12V and logic '0' is +3V to +12V. To convert a TTL logic, say, the transmit data (TxD) and the receive data (RxD) pins of the microprocessor, a converter chip is required. A MAX chip has long been using in many microcontroller boards. It provides 2-channel RS-232C port and requires external 10uF capacitors. Carefully check the polarity of capacitor when soldering the board. A DS275 IC, however, needs no external capacitor and it is physically smaller. Either circuit that is shown in Figure 10 can be used with little difficulty.
Figure 10. Schematic diagrams converting TTL level to RS232 levels The sender must leave the line idle for a minimum time; this is usually the time to transmit one bit and is called the stop bit (the standard allows one or two stop bits). Although Figure 2 shows seven data bits, all modern systems transmit eight bits (plus the start and stop bits). Bit rate is a measure of communications speed. Instead of specifying the time per bit (which is a fraction of a second), communication systems specify the number of bits that can be transferred in a second. Early RS-232 connections operated at 300 bps, modern systems use 19,200 bps and 33,600 bps. Technically, transmission hardware is rated in baud , the number of signal changes per second. For RS-232, the baud rate is identical to the bit rate. Other schemes can result where the bit rate is greater than the baud rate. All electrical circuits require a minimum of two wires - the current flows out on one wire and back on another called the ground. In many applications, we require data to flow in two directions at the same time, e.g. between a terminal and a computer. Simultaneous transfer in two directions is called full-duplex and requires independent sending and receiving paths or channels. These paths can be implemented using 3 or four conductors. In contrast to full duplex, there is half-duplex mode (one direction or the other, but not at the same time) and simplex mode (one direction only). However, if there are only two conductors between two devices, handshaking must be used to determine which device has permission to transmit. RS-232 defines a 25-pin connector and specifies how the hardware uses the 25 wires for control or data. For example, a receiver willing to accept characters supplies a voltage on one of the control lines that the sender interprets as clear to send (CTS). Cheap RS-232 hardware can be configured to ignore control signals and assume the other end is working. This is illustrated in Figure 11.
Table 1. Glossary of Abbreviations etc. CTS Clear To Send [DCE --> DTE] DCD Data Carrier Detected (Tone from a modem) [DCE --> DTE] DCE Data Communications Equipment eg. modem DSR Data Set Ready [DCE --> DTE] DSRS Data Signal Rate Selector [DCE --> DTE] (Not commonly used) DTE Data Terminal Equipment eg. computer, printer DTR Data Terminal Ready [DTE --> DCE] FG Frame Ground (screen or chassis) NC No Connection RCk Receiver (external) Clock input RI Ring Indicator (ringing tone detected) RTS Ready To Send [DTE --> DCE] RxD Received Data [DCE --> DTE] SG Signal Ground SCTS Secondary Clear To Send [DCE --> DTE] SDCD Secondary Data Carrier Detected (Tone from a modem) [DCE --> DTE] SRTS Secondary Ready To Send [DTE --> DCE] SRxD Secondary Received Data [DCE --> DTE] STxD Secondary Transmitted Data [DTE --> DTE] TxD Transmitted Data [DTE --> DTE]
One of the stickiest areas of confusion in data communications is over the terms "transmit" and "receive" as they pertain to DTE (data terminal equipment) and DCE (data communication equipment). In synchronous communication, this confusion is particularly acute, because more signals are involved. So why is it that you sometimes send data on TD, and other times you send data on RD? Is this just a cruel form of mental torture? Not really. The secret lies in adopting the proper perspective. In data-com, the proper perspective is always from the point of view of the DTE. When you sit at a PC, terminal or workstation (DTE) and transmit data to somewhere far away, you naturally do so on the TD (transmit data) line. When your modem or CSU/DSU (DCE) receives this incoming data, it receives the data on the TD line as well. Why? Because the only perspective that counts in data-com is the perspective of the DTE. It does not matter that the DCE thinks it is receiving data; the line is still called "TD". Conversely, when the modem or CSU/DSU receives data from the outside world and sends it to the DTE, it sends it on the RD line. Why? Because from the perspective of the DTE, the data is being received! So when wondering, "Is this line TD or RD? Is it TC or RC?" Ask yourself, "What would the DTE say?"
Find out by following these steps:
The point of reference for all signals is the terminal (or PC). 1 ) Measure the DC voltages between (DB25) pins 2 & 7 and between pins 3 & 7. Be sure the black lead is connected to pin 7 (Signal Ground) and the red lead to whichever pin you are measuring.
Table 2. This is a standard 9 to 25 pin cable layout for asynchronous data on a PC AT serial cable
Description Signal 9-pin DTE 25-pin DCE Source DTE or DCE Carrier Detect CD 1 8 from Modem Receive Data RD 2 3 from Modem Transmit Data TD 3 2 from Terminal/Computer Data Terminal Ready DTR 4 20 from Terminal/Computer Signal Ground SG 5 7 from Modem Data Set Ready DSR 6 6 from Modem Request to Send RTS 7 4 from Terminal/Computer Clear to Send CTS 8 5 from Modem Ring Indicator RI 9 22 from Modem This a DTE port as on the back of a PC Com Port - EIA-574 RS-232/V.24 pin out on a DB-9 pin used for Asynchronous Data
Figure 13. DB9 male connector. Pin 1 is in the top left position
Selecting data cable isn't difficult, but often gets lost in the shuffle of larger system issues. Care should be taken. However, because intermittent problems caused by marginal cable can be very difficult to troubleshoot. Beyond the obvious traits such as number of conductors and wire gauge, cable specifications include a handful of less intuitive terms. Characteristic Impedance (Ohms): A value based on the inherent conductance, resistance, capacitance and inductance of a cable that represents the impedance of an infinitely long cable. When the cable is out to any length and terminated with this Characteristic Impedance, measurements of the cable will be identical to values obtained from the infinite length cable. That is to say that the termination of the cable with this impedance gives the cable the appearance of being infinite length, allowing no reflections of the transmitted signal. If termination is required in a system, the termination impedance value should match the Characteristic Impedance of the cable. Shunt Capacitance (pF/ft): The amount of equivalent capacitive load of the cable, typically listed in a per foot basis One of the factors limiting total cable length is the capacitive load. Systems with long lengths benefits from using low capacitance cable. Propagation velocity (% of c): The speed at which an electrical signal travels in the cable. The value given typically must be multiplied by the speed of light (c) to obtain units of meters per second. For example, a cable that lists a propagation velocity of 78% gives a velocity of 0. X 300 X 106 - 234 X 106 meters per second.
Plenum rated cable is fire resistant and less toxic when burning than non-plenum rated cable. Check building and fire codes for requirements. Plenum cable is generally more expensive due to the sheathing material used. The specification recommends 24AWG twisted pair cable with a shunt capacitance of 16 pF per foot and 100 ohm characteristic impedance. It can be difficult to qualify whether shielding is required in a particular system or not, until problems arise. We recommend erring on the safe side and using shielded cable. Shielded cable is only slightly more expensive than unshielded. There are many cables available meeting the recommendations of RS-422 and RS-485, made specifically for that application. Another choice is the same cable commonly used in the twisted pair Ethernet cabling. This cable, commonly referred to as Category 5 cable, is defined by the ElA/TIA/ANSI 568 specification The extremely high volume of Category 5 cable used makes it widely available and very inexpensive, often less than half the price of specialty RS- 422/485 cabling. The cable has a maximum capacitance of 17 pF/ft (14.5 pF typical) and
characteristic impedance of 100 ohms. Category 5 cable is available as shielded twisted pair (STP) as well as unshielded twisted pair (UTP) and generally exceeds the recommendations making it an excellent choice for RS-232 systems.
In this document the term RS-232 will be used when referred to this serial interface. The description of RS-232 is an EIA/TIA norm and is identical to CCITT V.24/V.28, X.20bis/X.21bis and ISO IS2110. The only difference is that CCITT has split the interface into its electrical description (V.28) and a mechanical part (V.24) or Asynchronous (X.20 bis) and Synchronous (X.21 bis) where the EIA/TIA describes everything under RS232. As said before RS-232 is a serial interface. It can be found in many different applications where the most common ones are modems and Personal Computers. All pinning specifications are written for the DTE side. All DTE-DCE cables are straight through meaning the pins are connected one on one. DTE-DTE and DCE-DCE cables are cross cables. To make a destiction between all different types of cables we have to use a naming convention. DTE - DCE: Straight Cable DTE - DTE: Null-Modem Cable DCE - DCE: Tail Circuit Cable
RS-232 can be found on different connectors. There are special specifications for this. The CCITT only defines a Sub-D 25 pins version where the EIA/TIA has two versions RS-232C and RS-232D which are respectively on a Sub-D25 and a RJ45. Next to this IBM has added a Sub-D 9 version which is found an almost all Personal Computers and is described in TIA 457.
Male Female
Figure 15. Various connectors used for RS-232 communications
conventional serial port. Refer to the R3000 User’s Manual, Appendix A for additional information concerning the programming cable and using serial port A for conventional communications. The ECE 341 lab project board makes serial ports C and D available at RS- voltage levels. Serial port D is connected to the DB9 connector for a DCE interface and serial port C is connected for a DTE interface. When using the internal clock, data rates up to one half of the system clock rate can be used. (Wow!) If an external clock is used, the maximum clock rate is one sixth the system clock rate. Conventional data rates start at 300 Baud and are available on the R3000 processor up to 460.800 K Baud.
Table 5. Serial Port Signals
Serial Port Signal Name Function Port Assignment Serial Port A TXA Serial Transmit Out Port C: 6 RXA Serial Transmit In Port C: 7 CLKA Clock for clocked mode (bidirectional) Port B: ATXA Alternate serial transmit out Port D: 6 ARXA Alternate serial receive in Port D: 7 Serial Port B TXB Serial Transmit Out Port C: 4 RXB Serial Transmit In Port C: 5 CLKB Clock for clocked mode (bidirectional) Port B: ATXB Alternate serial transmit out Port D: 4 ARXB Alternate serial receive in Port D: 5 Serial Port C TXC Serial Transmit Out Port C: 2 RXC Serial Transmit In Port C: 3 CLKC Clock for clocked mode (bidirectional) Port F: Serial Port D TXD Serial Transmit Out Port C: 0 RXD Serial Transmit In Port C: 1 CLKD Clock for clocked mode (bidirectional) Port F: Serial Port E TXE Serial Transmit Out Port G: 6 RXE Serial Transmit In Port G: 7 TCLKE Optional external transmit clock Port G: RCLKE Optional external receive clock Port G: Serial Port F TXF Serial Transmit Out Port G: 2 RXF Serial Transmit In Port G: 3 TCLKF Optional external transmit clock Port G: RCLKF Optional external receive clock Port G:
The R3000 processor supports 7, 8, or 9 bit communications as well as odd, even or no parity. To support half-duplex serial communications, there is software support to determine when the last bit of communications A common shortcoming of the Dynamic C is the lack of documentation in either the Dynamic C User’s Manual or the Dynamic C Function Reference. A Rabbit Semiconductor application note, TN213, was written for the R2000 processor that lacks serial ports E and F. The library routines shown in Table 6 are supported in RS232.lib to manage two types of data streams (arrays). For the R3000 processor, the “X” in the list of functions is replaced with A, B, C, D, E or F depending upon which serial port is being referred to. The “gets”, function is for text based data streams only and must be NULL terminated. There is no restriction on data values for the other functions. Conspicuous by its absence is the function “serXgets” (get a string) of characters. Such a function can be easily written using the “serXgetc” function but requires agreement of the character that will be used to terminate the string. Since the terminating character may never be sent, the “serXgets” will also need a time limit to prevent the system from being deadlocked or other processes will be starved out. Starvation is when one function nominates the CPU’s time. Deadlock is when two processes are in contention for the same resource. Fair allocation of processor time can resolve starvation issues but not deadlock problems. Concurrency is a way to avoid deadlocks and starvation. Concurrency is the resource management where by processes cooperate in sharing common scarce resources. Dynamic C implements concurrency using cofunctions and costates hence a function “cof_serXgets” as well as others are listed in TN213. Concurrent programming is a topic covered in ECE 443. Writing the “serXgets” function is left as an exercise for the student.
Table 6. Stream-based library functions support in Dynamic C RS232 library serXgetc(); (^) reads the next character in the receive buffer. serXread(); (^) reads a specified number of bytes in the receive buffer. serXpeek(); (^) looks at the next character in the receive buffer. serXputc(); (^) writes a character to the transmit buffer. serXputs(); (^) writes a null-terminated string to the transmit buffer. serXwrite();. writes a specified number of bytes to the transmit buffer
Other serial port functions supported are listed below in Table 7. Only the “serXopen” function in Table 7 is always required.
Table 7. Support stream-based RS-232 library function serCheckParity(); (^) tests 8-bit character for correct parity. serXclose(); (^) disable serial port. serXdatabits(); (^) configures serial port to use 7 or 8 data bits. serXgetError(); (^) get byte of error flags set since last call to the function. serXopen(); (^) enable serial port. serXparity(); (^) set parity mode. serXrdFlush(); (^) flushes receive buffer. serXrdFree(); (^) returns the number of bytes unused in the receive buffer. serXrdUsed(); (^) returns the number of bytes currently in use in the receive buffer. serXwrFlush(); (^) flushes transmit buffer. serXwrFree(); (^) returns the number of bytes available for use in the transmit buffer.
void main(void) { static const char s[] = "Hello Z-World\r\n";
serDopen(19200); // Initialize serial port serDputs(s); // Send stream of characters to serial port D // first, wait until the serial buffer is empty while (serDwrFree() != DOUTBUFSIZE); // then, wait until the Tx data register and the Tx shift register // are both empty while (BitRdPortI(SDSR, 3) || BitRdPortI(SDSR, 2)); // now we can close the serial port without cutting off Tx data serDclose(); }
The bit definitions for the serial port status register shown in Table 8 help to explain the magic numbers in the last “while” statement in the code above. The purpose as noted in the comments of the code are to allow the data bits to shift out of the transmit-serial shift register prior to closing the serial port. Closing the serial port prematurely will abort the serial transmission before all of the data bits are sent as well as the final stop bit. Table 8 shows that bit fields of the serial port status register can also be used to determine the state of the serial port receive shift register.
Table 8. Bit definitions for serial port status registers, SxSR
Bit(s) Value Description for Asynchronous Mode
7 0 The receive buffer is empty.
1 There is a byte in the receive buffer. The serial port will request an interrupt while this bit is set. The interrupt is cleared when the receive buffer is read.
6 0 The byte in the receive buffer is data, received with a valid stop bit.
1 The byte in the receive buffer has a low 9th (or 8th) bit, a.k.a. an address bit, or there is a framing error. If no address bit is expected and the buffer is all zeros this is a break condition. (A break is a condition where the line is in a low logic state for a long time, often used to signify certain events by some pieces of hardware.) This bit is cleared when the receive buffer is read.
5 0 The receive buffer has not overflowed.
1 The receive buffer overflowed. This happens if the shift register and data register are both full and a start bit is detected. This bit is cleared when the receive buffer is read.
4 0 This bit is always zero in asynchronous mode.
3 0 The transmit buffer is empty.
1 The transmit buffer is full. The serial port requests an interrupt when the transmitter takes a byte from the transmit buffer. The interrupt is cleared when the byte is transferred into the shift register, or any value (which will be ignored) is written to SxSR.
2 0 The transmitter is idle.
1 The transmitter is sending a byte. An interrupt is generated when the transmitter clears this bit, which occurs only if the transmitter is ready to start sending another byte but can't because the transmit buffer is empty.
1:0 0 These bits are always zero in asynchronous mode.
As stated in the beginning of this chapter, there are two basic types of serial communications, synchronous and asynchronous. With synchronous communications, the two devices initially synchronize themselves to each other, and then continually send characters to stay in sync. Even when data is not really being sent, a constant flow of bits allows each device to know where the other is at any given time. That is, each character that is sent is either actual data or an idle character. Synchronous communications allows faster data transfer rates than asynchronous methods, because additional bits to mark the beginning and end of each data byte are not required. The serial ports on IBM-style PCs are asynchronous devices and therefore only support asynchronous serial communications. Since the receiver is explicitly told when to sample each data bit, the data bits are not required to have uniform spacing. There are various schemes of imbedding the clock signal into the data such as “return to zero” and “Manchester” encoding. Whether using asynchronous or synchronous communications, the mechanism used to synchronous consumes data channel bandwidth unless a separate data path is used for a clock signal. (It can be rightly argued that providing a second data channel just for the clock signal automatically consumes half of the path bandwidth capacity.) In the following sections of this chapter, we will look at two very common synchronous serial protocols.
With this article, the possibilities of serial communication with peripheral devices via SPI (Serial Peripheral Interface) will be discussed. More and more serial bus systems are preferred instead of a parallel bus, because of the simpler wiring. As the efficiency of serial buses increases, the speed advantage of the parallel data transmission gets less important. The clock frequencies of SPI devices can go up to some Megahertz and more. There are a lot of applications where a serial transmission is perfectly sufficient. The usage of SPI is not limited to the measuring area but is also used in the audio field. The SPI (this name was created by Motorola) is also known as Microwire, trade mark of National Semiconductor. Both have the same functionality. There are also the extensions QSPI (Queued Serial Peripheral Interface) and MicrowirePLUS. The popularity of other serial bus systems like I 2 C, CAN bus or USB shows, that serial buses get used more and more.
The Serial Peripheral Interface is used primarily for a synchronous serial communication of host processor and peripherals. However, a connection of two processors via SPI is just as well possible and is described at the end of this section. In the standard configuration for a slave device (see Figure 17), two control and two data lines are used. The data output SDO serves on the one hand the reading back of data, offers however also the possibility to cascade several devices. The data output of the preceding device then forms the data input for the next IC.
(^1) Excerpts from http://www.mct.net/faq/spi.html. This text has been altered to correct spelling and grammar or to
add additional information particularly in regards to the ECE341 lab project board.