Summary of Contents for Digilent chipKIT Basic I/O Shield
Page 1
This manual applies to the chipKIT Basic I/O Shield rev. C Overview The chipKIT Basic I/O Shield is an input/output expansion shield designed for use with chipKIT microcontroller boards such as the Uno32™, uC32™, and the Max32™. These boards are based on the popular Arduino® IDE open- source hardware prototyping platform.
C bus is used to access the temperature sensor and the EEPROM and for the I C daisy chain connector. Copyright Digilent, Inc. All rights reserved. Page 2 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 3
3.3V power bus and ground. The connector can be used to extend the I C bus to another board and to power an external I C device. Digilent has cables and a selection of I peripheral modules that can be connected to this shield. 9. Potentiometer This is a 10K-ohm potentiometer connected across VCC3V3 and ground.
(SS) is wired low on the Basic I/O Shield and the display is always enabled to receive data over the SPI interface. Copyright Digilent, Inc. All rights reserved. Page 4 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 5
Basic I/O Shield™ Reference Manual Digilent has a set of libraries for using the Basic I/O Shield with the chipKIT MPIDE. The OLED library can be used as-is or as a starting point for a more sophisticated graphics library.
Page 6
C device address for the EEPROM is ‘1010000’. Digilent has a library for using the EEPROM. It is contained in document # DSD-0000311 (chipKIT IOShield Library.zip) which can be downloaded from the Basic I/O Shield product page at www.digilentinc.com. The EEPROM library is IOShieldEEPROM.
Page 7
The TCN75A is rated for an accuracy of +/-1ºC and has selectable resolution from 0.5ºC down to 0.0625ºC. The 7- bit device address is ‘1001000’. Digilent has a library for using the temperature sensor. It is contained in document # DSD-0000311 (chipKIT IOShield Library.zip) which can be downloaded from the Basic I/O Shield product page at www.digilentinc.com. The temperature sensor library is IOShieldTemp.
Perform PIC32 device initialization to prepare for use of the OLED display. This example is hard coded for the chipKIT Uno32 and SPI2. Copyright Digilent, Inc. All rights reserved. Page 9 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 10
PORTClearBits(prtDataCmd, bitDataCmd); /* Start by turning VDD on and wait a while for the power to come up. Copyright Digilent, Inc. All rights reserved. Page 10 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 11
This function assumes that the display buffer to be copied is the global variable rgbOledBmp /* ------------------------------------------------------------ */ /*** OledUpdate Parameters: none Return Value: Copyright Digilent, Inc. All rights reserved. Page 11 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 12
- pointer to the buffer to send Return Value: none Errors: none Description: Send the bytes specified in rgbTx to the slave. Copyright Digilent, Inc. All rights reserved. Page 12 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Page 13
(SPI2STATbits.SPIRBF == 0); /* Put the received byte in the buffer. bRx = SPI2BUF; return bRx; Copyright Digilent, Inc. All rights reserved. Page 13 of 13 Other product and company names mentioned may be trademarks of their respective owners.
Need help?
Do you have a question about the chipKIT Basic I/O Shield and is the answer not in the manual?
Questions and answers