Path: EDN Asia >> Design Centre >> IC/Board/Systems Design >> Program with PIC32 MCUs using chipKIT (Part 2)
IC/Board/Systems Design Share print

Program with PIC32 MCUs using chipKIT (Part 2)

13 Feb 2015  | Dogan Ibrahim

Share this page with your friends

This series offers a guide in learning about PIC32 MCUs—and more important, how to program with it using the popular chipKIT development board. In this installment, we continue the detailed look at the circuits and functionality of the chipKIT MX3 board that started in Part 1.

I2C Bus Interface
The I2C bus on the board is an open-collector bus with medium speed communication, providing master and slave operation using either 7- or 10bit device addressing. Although the PIC32MX320 microcontroller provides two I2C interfaces, the chipKIT

Figure 8: I2C Interface.

MX3 is designed to provide only one interface (I2C1; the second I2C interface, I2C2, can be accessed at pins 2 and 3 of Pmod connector JC) on connector J2.

As shown in figure 8, 2.2k resistors are used to pull up the SCL1 and SDA1 lines to the power supply (there are no pull-up resistors on the second I2C interface, I2C2).

SPI Bus Interface
The PIC32 microcontroller supports two SPI bus interfaces. Each interface has four signals, named SS (Slave Select), MOSI (Master Out Slave In), MISO (Master In Slave Out), and SCK (Serial Clock). SPI1 supports master mode only and is accessed via Pmod connector JB. SPI2 is accessed via Pmod connector JE:

JB-01: SS1

JB-02: MOSI1

JB-03: MISO1

JB-04: SCK1

JE-01: SS2

JE-02: MOSI2

JE-03: MISO2

JE-04: SCK2

Figure 9: SPI Master/Slave Selection for SPI2.

As shown in figure 9, jumpers JP6 and JP8 are used to select between master and slave for the SPI2 bus interface.

UART Interface
The PIC32MX320 microcontroller provides two UART interfaces, named UART1 and UART2. Either two-wire (TX and RX) or four-wire (RX, TX, RTS, CTS) communication is possible. UART1 and UART2 can be accessed from Pmod connectors JB and JC, respectively:

JB-01: UART1 (CTS)

JB-02: UART1 (TX)

JB-03: UART1 (RX)

JB-04: UART1 (RTS)

JC-01: UART2 (CTS)

JC-02: UART2 (TX)

JC-03: UART2 (RX)

JC-04: UART2 (RTS)

1 • 2 • 3 • 4 Next Page Last Page

Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.

Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming

News | Products | Design Features | Regional Roundup | Tech Impact