Download Chapter 1: Hardware
Transcript
MPG LEVEL 2 The next step in selecting pins was to print a copy of the schematic symbol in Figure 1.2.2 and write in any of the critical pins required. On this printout, any multiplexed function that was not needed for sure was crossed off to help narrow our selections down and make the picture clearer. Following the selection hierarchy, critical pins and no-choice pins were identified on the sheet. The UART selection was made next. Notice that only UART1 is a fully-defined UART with the hardware flow control lines Ring, DCD, DTR and DSR. However, we know from reading the pin documentation that UART0 must be used for the boot loader. At this point an important decision is made: should both UARTs be made accessible on DB9 connectors so that programming can occur on UART0 and a full UART can be provided through UART1; or does cost, space and functionality requirements override the need to make UART 1 accessible. The latter argument wins out, but as a consolation, the additional UART pins will be brought out to test points near the connector so it would be possible to tie in to the signals. 1.2.1.2 Pins with Multiple Connections Note that UART1 (and a few other peripherals) have signals that appear on several different pins. It took a bit of hunting to see how this was handled, but eventually the information was found in the product manual on page 103 (see excerpt below). Given this information, the UART pins were selected based on the two options available (Port 0 and Port 2). Port 2 was selected because none of the UART functions on those pins overlapped pins of other communication peripherals. With this selection made, the alternate UART1 pins can be crossed off since they are not needed anymore. For the SPI interface, the LPC175x family offers a single SPI peripheral, or two SSP peripherals. The dedicated SPI peripheral is a legacy device that is limited in functionality over an SSP peripheral. For our purposes, they function the same but we will implement our ANT SPI communication assuming the SSP peripheral. Since the pins are the same, it does not really matter. Since the UART1 functions of the pins where the SSP0 is attached have been crossed out, these were assigned next. Some of the other signals on the processor symbol could be selected next since they have only one peripheral option left, though we had to be careful to avoid taking Port 0 or Port 2 signals that are possible interrupt sources needed for the 7 buttons. The buzzer is assigned to P1.18 since it is a PWM output that has no other required multiplexed signal. P4.28 and P4.29 are not used for anything else so notes_mpgl2_chapter1.docx Version 1.1 Page 9 of 37