
28
The main microcontroller shares the main control unit with two devices requiring
SPI connections, one device requiring an I
2
C connection, and one device
requiring a UART connection. Table 4 shown below shows the pin name, type
and description of the pins that will be utilized to accomplish this interfacing
Synchronous serial clock input/output for SPI1
SPI slave synchronization or frame pulse I/O
Synchronous serial clock input/output for SPI2
SPI2 slave synchronization or frame pulse I/O
Synchronous serial clock input/output for I2C1
Synchronous serial data input/output for I2C1
Table 4 Pins used for interfacing
2.2.3 Interfacing
The main microcontroller must interface with all of the components in the main
control unit. Along with the dsPIC33FJ256GP710A (main microcontroller) the
main control unit consists of an SHT21 temperature and relative humidity sensor,
an MRF24J40MB ZigBee wireless transceiver, an MRF24WBOMA 802.11b RF
wireless transceiver, and a 7 inch Evervision LCD module.
The interfacing for the relays requires a single wire from the microcontroller I/O
pin, with a darlington array driver in between the microcontroller and the relay.
The array driver is a surface mount chip that contains several internal transistor
circuits. This component ensures the correct current will be delivered to the relay
and that the I/O pin on the microcontroller will not exceed its maximum current
Komentarze do niniejszej Instrukcji