Picadillo-35T 3.5" PIC32 Embedded Display Module Compatible with the chipKITTM/ArduinoTM Document Date: 19th September 2014 Document Revision: 1.5 Uncontrolled Copy when printed or downloaded. Please refer to the 4D Systems website for the latest Revision of this document Picadillo-35T Display Module Contents 1. Description ............................................................................................................................. 4 2. Features ................................................................................................................................. 4 3. Pin Configuration and Summary .............................................................................................. 5 Header Pinout Summary - By Header and Pin Number .................................................................................. 5 3.2. Jumper Pinout Summary ........................................................................................................................ 9 3.3. Header Pinout Summary - By IDE Pin Number .................................................................................... 12 3.4. Header Pinout Summary - By PIC32 Chip Pin Number ........................................................................ 15 4. Powering the Picadillo-35T.................................................................................................... 18 4.1. USB Power ............................................................................................................................................ 18 4.2. DC Barrel Jack ....................................................................................................................................... 18 4.3. Powering from the Headers ................................................................................................................. 18 4.4. The Power Supplies .............................................................................................................................. 18 5. Programming the Picadillo-35T ............................................................................................. 19 5.1. Programming with UECIDE ................................................................................................................... 19 5.2. Programming with Microchip Dev Tools .............................................................................................. 19 6. GPIO on the Picadillo-35T...................................................................................................... 20 6.1. GPIO Voltage Levels ............................................................................................................................. 20 6.2. Serial Ports ........................................................................................................................................... 20 6.3. SPI ......................................................................................................................................................... 21 6.4. I2C ........................................................................................................................................................ 21 6.5. PWM..................................................................................................................................................... 21 6.6. External Interrupts ............................................................................................................................... 22 6.7. Analog Reference ................................................................................................................................. 22 6.8. Analog Inputs ....................................................................................................................................... 22 7. Additional Features .............................................................................................................. 23 7.1. On Board Audio Amplifier .................................................................................................................... 23 7.2. Real Time Clock Calendar ..................................................................................................................... 23 7.3. Touch Screen Interface ........................................................................................................................ 23 7.4. PIC32 on-board USB Controller ............................................................................................................ 23 8. Display Features ................................................................................................................... 23 8.1. Display - 3.5" TFT Touch Screen .......................................................................................................... 23 8.2. Display Precautions .............................................................................................................................. 24 9. Software & Libraries ............................................................................................................. 24 9.1. UECIDE Programming IDE .................................................................................................................... 24 9.2. Libraries ................................................................................................................................................ 24 Picadillo-35T Display Module 9.3. Bootloader ........................................................................................................................................... 25 10. Notes ................................................................................................................................. 26 11. Scribble Box ........................................................................................................................ 26 12. Mechanical Details.............................................................................................................. 27 13. Schematic Diagram ............................................................................................................. 28 14. Specifications and Ratings ................................................................................................... 29 15. Revisions ............................................................................................................................ 30 16. Legal Notice ........................................................................................................................ 31 17. Contact Information............................................................................................................ 31 4D SYSTEMS Picadillo-35T Display Module 1. Description 2. Features The Picadillo-35T is a 3.5" 320x480 resolution (Half VGA) Embedded Display Module with Resistive Touch, featuring the Microchip PIC32MX795F512L 32bit microcontroller, featuring ArduinoTM/ chipKITTM style headers for easy attachment of shields, and compatible with UECIDE, MPIDE and MPLAB X Programming IDE's. * Powerful 3.5" Embedded LCD-TFT display module powered by a Microchip PIC32MX795F512L 32bit microcontroller. The Picadillo-35T was designed with complete system control in mind. It features a 3.5" display along with a ton of GPIO, making it a perfect candidate for system control which demands a GUI or user interface. The PIC32MX795F512L is a powerful 32bit microcontroller from Microchip, which has 512Kb of Flash and 128Kb of SRAM, runs at 80Mhz and is capable of 105 DMIPS. It features a PMP graphics port which is used to connect the on board 3.5" display, allowing for fast graphics fully controlled by the Users code. The same PIC32 is found on the popular chipKIT Max32 Development Board. The Picadillo-35T has been designed to be programmed using the UECIDE IDE, which is based on the Arduino IDE however with various enhancements and improvements. It can also be used with MPIDE, or even using Microchip MPLAB X. Using UECIDE or MPIDE, the display module can essentially be treated as if it was a chipKIT MAX32 and programmed using the familiar programming language found on the Arduino/chipKIT. The Picadillo-35T features an on board FTDI USB to TTL converter for programming and powering the display, along with an ICSP connection for using programmers such as the PICKIT3. * 320x480 HVGA Resolution, RGB 65K true to life colours, TFT Screen with integrated 4-wire Resistive Touch Panel. * 512 Kbytes of Flash memory Application Code and Data. for User * 128 Kbytes of SRAM. * 47 General Purpose I/O pins for user interfacing, which include 13 Analog Inputs. * Analog Inputs are 0V - 3.3V DC * chipKIT Uno32 style headers, compatible with Arduino style shields, for easy interfacing. * The GPIO is variously configurable for alternative functions such as: 2 Up to 4 I C channels available Up to 3 SPI channels available, with an additional channel dedicated for the microSD card. Up to 4 TTL Serial Comm ports available Up to 4 GPIO for PWM, can also be used for Audio and Backlight control * On-board FTDI USB to TTL converter for power/programming. * Breakout of connections. the PIC32 on-board USB * On-board micro-SD memory card connector for multimedia storage and data logging purposes. * Mono PWM Audio selectable using 1 of the PWM channels, filtered and fed to an on-board 1W amplifier, driving an on board speaker. Also featured on board is amicroSD connector, audio amplifier and speaker, RTC oscillator, and headers in the layout of the chipKit Uno32. * 5.0V Supply, available to be powered from the on-board USB port, or 5V DC Jack. Compatible international 1Amp DC Adaptors are available. 4D Systems highly recommends the UECIDE Programming IDE, which is available for download from www.uecide.org, which features the Picadillo-35T as a board for selection from the plugin system. * Module dimensions: 56.9 x 97.6 x 15.8mm (including corner plates). Weighing ~50 g. NOTE: Arduino, chipKIT and their TM's remains the property of the Arduino Team and Digilent inc respectively. All references to the words Arduino, chipKIT, Uno32, Max32 and their respective hardware are licensed under the Creative Commons Attribution Share-Alike license. * RoHS and CE Compliant. (c) 2014 4D SYSTEMS * Display Viewing Area: 49.7 x 77.0mm * 4x corner plates with 2.6mm holes for mechanical mounting. Page 4 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 3. Pin Configuration and Summary SPI J2 P4 P3 J1 P2 P1 J3 J4 ICSP Header Pinout Summary - By Header and Pin Number Pin Symbol I/O 1 2 N/C IOREF P 3 RESET I 4 +3.3V OP 5 +5V OP 6 7 GND GND P P 8 VIN IP P2 Pinout (Centre Right) Description Not Connected 3.3V Reference pin, used for Shields which utilise an IOREF capable module. Master Reset signal. Internally pulled up to 3.3V via a 10K resistor. An active Low pulse greater than 2 micro-seconds will reset the module. If the module needs to be reset externally, use open collector type circuits or at least a 200R resistor to GND. This pin is not driven low by any internal conditions. +3.3V OUTPUT pin, which is connected to the LP38692MP-3.3 regulator, and capable of supplying up to 1Amp. Note this 3.3V supply is also used for the Display and microSD card. +5V OUTPUT pin. This pin is designed to power external devices such as Shields, not to power this module as it comes after the reverse polarity protection. Output will be approximately 4.7V with a 5.0V input on VIN. Supply Ground Supply Ground Main Supply INPUT, 5V DC ONLY. This pin is designed to power the display module, features reverse polarity protection. Input should not exceed 5.5V DC, else damage to the Amplifier, Display and FTDI chip could result. Continued overleaf... I = Input, O = Output, P = Power, IP = Input Power, OP = Output Power (c) 2014 4D SYSTEMS Page 5 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module U1ARX - 16 U1ATX - 14 RE8 - 12 RA3 - 10 RF3 - 8 RG15 - 6 RD11 - 4 RE9 - 2 RD15 - 16 RD3 - 14 RC4 - 12 RD10 - 10 RD9 - 8 RD0 - 6 GND - 4 RA10 - 2 Pin Symbol IDE Pin P3 15 - RA0 13 - RA1 11 - RA4 9 - RA5 7 - RA2 5 - RD1 3 - RD2 1 - RB14 P1 15 - RD14 13 - RD8 11 - RA6 9 - RA7 7 - RG14 5 - RG12 3 - RG13 1 - RA9 A11 - 12 A10 - 10 A9 - 8 A8 - 6 A7 - 4 A6 - 2 P4 Pinout (Top Right) Chip Pin I/O 1 AN0 A0 / 14 25 A/I/O 2 AN6 A6 / 20 26 A/I/O 3 AN1 A1 /15 24 A/I/O 4 AN7 A7 / 21 27 A/I/O 5 AN2 A2 / 16 23 A/I/O 6 AN8 A8 / 22 32 A/I/O 7 AN3 A3 / 17 22 A/I/O 8 AN9 A9 / 23 33 A/I/O 9 AN4/SCL1 A4 / 18 21/66 A/I/O 10 AN10 A10 / 24 34 A/I/O 11 AN5/SDA1 A5 / 19 20/67 A/I/O 12 AN11 A11 / 25 35 A/I/O P4 11 - A5 or SDA1 9 - A4 or SCL1 7 - A3 5 - A2 3 - A1 1 - A0 Description General Purpose I/O. This pin is 5.0V tolerant. PGED1/AN0/CN2/RB0 General Purpose I/O. This pin is 5.0V tolerant. PGEC2/AN6/OCFA/RB6 General Purpose I/O. This pin is 5.0V tolerant. PGEC1/AN1/CN3/RB1 General Purpose I/O. This pin is 5.0V tolerant. PGED2/AN7/RB7 General Purpose I/O. This pin is 5.0V tolerant. AN2/C2IN-/CN4/RB2 General Purpose I/O. This pin is 5.0V tolerant. AN8/C1OUT/RB8 General Purpose I/O. This pin is 5.0V tolerant. AN3/C2IN+/CN5/RB3 General Purpose I/O. This pin is 5.0V tolerant. AN9/C2OUT/RB9 General Purpose I/O. This pin is 5.0V tolerant. AN4/C1IN-/CN6/RB4 or AETXCLK/SCL1/INT3/RA14 General Purpose I/O. This pin is 5.0V tolerant. AN10/CVREFOUT/PMA13/RB10 General Purpose I/O. This pin is 5.0V tolerant. AN5/C1IN+/VBUSON/CN7/RB5 or AETXEN/SDA1/INT4/RA15 General Purpose I/O. This pin is 5.0V tolerant. AN11/EREXERR/AETXERR/PMA12/RB11 Continued overleaf... I = Input, O = Output, P = Power, A = Analog Input (c) 2014 4D SYSTEMS Page 6 of 31 www.4dsystems.com.au 4D SYSTEMS Pin Symbol Picadillo-35T Display Module IDE Pin P1 Pinout (Centre Left) Chip Pin I/O 1 RA9 41 28 I/O 2 RA10 42 29 I/O 3 RG13 40 97 I/O 4 GND - - P 5 RG12 39 96 I/O 6 RD0 13 72 I/O 7 RG14 38 95 I/O 8 RD9 12 69 I/O 9 RA7 37 92 I/O 10 RD10 11 70 I/O 11 RA6 36 91 I/O 12 RC4 10 9 I/O 13 RD8 35 68 I/O 14 RD3 9 78 I/O 15 RD14 34 47 I/O 16 RD15 8 48 I/O Description General Purpose I/O. This pin is 5.0V tolerant. VREF-/CVREF-/AERXD2/PMA7/RA9 General Purpose I/O. This pin is 5.0V tolerant. VREF+/CVREF+/AERXD3/PMA6/RA10 General Purpose I/O. This pin is 5.0V tolerant. TRD0/RG13 Supply Ground General Purpose I/O. This pin is 5.0V tolerant. TRD1/RG12 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. SDO1/OC1/INT0/RD0 General Purpose I/O. This pin is 5.0V tolerant. TRD2/RG14 General Purpose I/O. This pin is 5.0V tolerant. SS1/IC2/RD9 General Purpose I/O. This pin is 5.0V tolerant. TRD3/RA7 General Purpose I/O. This pin is 5.0V tolerant. SCK1/IC3/PMCS2/PMA15/RD10 General Purpose I/O. This pin is 5.0V tolerant. RA6/TRCLK General Purpose I/O. This pin is 5.0V tolerant. T5CK/SDI1/RC4 General Purpose I/O. This pin is 5.0V tolerant. RTCC/EMDIO/AEMDIO/IC1/RD8 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC4/RD3 General Purpose I/O. This pin is 5.0V tolerant. Requires Jumper J1 to be connected between Pin1 and Pin3. AETXD0/SS3/U4RX/U1CTS/CN20/RD14 General Purpose I/O. This pin is 5.0V tolerant. AETXD1/SCK3/U4TX/U1RTS/CN21/RD15 I = Input, O = Output, P = Power, A = Analog Input P3 Pinout (Top Left) Chip Pin I/O Pin Symbol IDE Pin 1 RB14 33 43 I/O/A 2 RE9 7 19 I/O 3 RD2 32 77 I/O 4 RD11 6 71 I/O 5 RD1 31 76 I/O (c) 2014 4D SYSTEMS Description General Purpose I/O. This pin is capable of being an Analog Input, and therefore is only 3.3V logic. AN14/ERXD2/AETXD3/PMALH/PMA1/RB14 General Purpose I/O. This pin is 5.0V tolerant. AERXD1/INT2/RE9 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC3/RD2 General Purpose I/O. This pin is 5.0V tolerant. EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. Requires Jumper J1 to be Page 7 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 6 RG15 5 1 I/O 7 RA2 30 58 I/O 8 RF3 4 51 I/O 9 RA5 29 61 I/O 10 RA3 3 59 I/O 11 RA4 28 60 I/O 12 RE8 2 18 I/O 13 RA1 27 29 I/O 14 U1ATX 1 53 I/O 15 RA0 26 17 I/O 16 U1ARX 0 52 I/O connected between Pin3 and Pin6. OC2/RD1 General Purpose I/O. This pin is 5.0V tolerant. AERXERR/RG15 General Purpose I/O. This pin is 5.0V tolerant. SCL2/RA2 General Purpose I/O. This pin is 5.0V tolerant. USBID/RF3 General Purpose I/O. This pin is 5.0V tolerant. TDO/RA5 General Purpose I/O. This pin is 5.0V tolerant. SDA2/RA3 General Purpose I/O. This pin is 5.0V tolerant. TDI/RA4 General Purpose I/O. This pin is 5.0V tolerant. AERXD0/INT1/RE8 General Purpose I/O. This pin is 5.0V tolerant. VREF+/CVREF+/AERXD3/PMA6/RA10 General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Transmit SCL3/SDO3/U1TX/RF8 General Purpose I/O. This pin is 5.0V tolerant. TMS/RA0 General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Receive SDA3/SDI3/U1RX/RF2 I = Input, O = Output, P = Power, A = Analog Input Pin Symbol IDE Pin 1 2 3 4 5 6 SDI4 N/C SCK4 SDO4 SS4 GND 49 50 51 52 - SPI Header Pinout (Top Centre) Chip Pin I/O Description 49 39 50 40 - I/O I/O I/O I/O P SDA5/SDI4/U2RX/PMA9/CN17/RF4 Not Connected AC1TX/SCK4/U5TX/U2RTS/RF13 SCL5/SDO4/U2TX/PMA8/CN18/RF5 AC1RX/SS4/U5RX/U2CTS/RF12 Supply Ground I = Input, O = Output, P = Power, A = Analog Input (c) 2014 4D SYSTEMS 2 4 6 1 3 5 Page 8 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 3.2. Jumper Pinout Summary J1 Jumper Pinout (Central Left) I/O Description Pin Symbol Chip Pin 1 RB14 43 I/O 2 RD1 76 I/O 3 - - - 4 - - - 5 AUDENB - I/O 6 AUDIO - P When the Jumper is placed between Pin1 and Pin3, RB14 will be made available on P3 Pin 1 When the Jumper is placed between Pin2 and Pin4, RD1 will be made available on P3 Pin 5 Connected to P3 Pin 1. Either RB14 or AUDENB, depending on Jumper. Connected to P3 Pin 5. Either RD1 or AUDIO, depending on Jumper. When the Jumper is placed between Pin5 and Pin3, RD14 is not available on P3 Pin 1, and is instead used to enable/disable the on-board Audio Amplifier When the Jumper is placed between Pin6 and Pin4, RD1 is not available on P3 Pin 5, and is instead used to generate Audio which is then filtered and fed into the on-board amplifier. I = Input, O = Output, P = Power, A = Analog Input 6 5 4 3 AUDIO Enabled Standard RB14 Standard RD1 2 1 J2 Jumper Pinout (Top Right) I/O Description Pin Symbol Chip Pin 1 SCL1 66 I/O 2 SDA1 67 I/O 3 - - - 4 - - - 5 AN4 21 I/O 6 AN5 20 I/O When the Jumper is placed between Pin1 and Pin3, SCL1 will be made available on P4 Pin 9 When the Jumper is placed between Pin2 and Pin4, SDA1 will be made available on P4 Pin 11 Connected to P4 Pin 9. Either SCL1 or AN4 depending on Jumper Connected to P4 Pin 11. Either SDA1 or AN5 depending on Jumper. When the Jumper is placed between Pin5 and Pin3, AN4 will be made available on P4 Pin 9 When the Jumper is placed between Pin6 and Pin4, AN5 will be made available on P4 Pin 11 AN5 Enabled SDA1 Enabled 2 4 6 1 3 5 SCL1 Enabled (c) 2014 4D SYSTEMS AUDENB Enabled AN4 Enabled Page 9 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module J3 Jumper Pinout (Central) I/O Description Pin Symbol Chip Pin 1 +3.3V - P 2 BACKLITE - - 3 RD2 77 I/O When the Jumper is placed between Pin1 and Pin2, the backlight will be forced on 100%, and not controllable by software This pin is connected to the backlight circuitry When the Jumper is placed between Pin2 and Pin3, the backlight will be connected to RD2 which is PWM capable, so the backlight can be dimmed with software. RD2 is still connected to P3 Pin 3, so be weary of this. I = Input, O = Output, P = Power, A = Analog Input 1 Backlight ON 2 Backlight PWM Controllable 3 Pin J4 Jumper Pinout (Central) Description Symbol 1 RESET 2 RESET Both of these pads are connected to RESET. In the rare case that the Auto-Reset function is not required, which is where RESET is pulled low from the DTR signal of the FTDI USB to UART converter chip when programming takes place, the small track between the 2 pads of this header can be cut. If this function is wanted to be restored, a header could be carefully soldered in place, or a jumper wire placed between the pads to enable Auto-Reset once again. Please note, this is an unpopulated header. As above. 1 Bridge to restore Auto-Reset 2 (c) 2014 4D SYSTEMS Page 10 of 31 www.4dsystems.com.au 4D SYSTEMS Pin Symbol Picadillo-35T Display Module ICSP Header Pinout (Bottom Left) Chip Pin I/O Description - 1 RESET 2 3 N/C GND - P 4 PGED2 27 I/O 5 PGEC2 26 I 6 N/C - - Master Reset signal. Internally pulled up to 3.3V via a 10K resistor. An active Low pulse greater than 2 micro-seconds will reset the module. This pin is not driven low by any internal conditions. Not Connected Power Ground Data I/O pin for Programming/ Debugging Communication Channel 2 Clock input pin for Programming/ Debugging Communication Channel 2 Not Connected - I = Input, O = Output, P = Power, A = Analog Input 1 (c) 2014 4D SYSTEMS 2 3 4 Page 11 of 31 5 6 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 3.3. Header Pinout Summary - By IDE Pin Number U1ARX - 0 U1ATX - 1 RE8 - 2 RA3 - 3 RF3 - 4 RG15 - 5 RD11 - 6 RE9 - 7 RD15 - 8 RD3 - 9 RC4 - 10 RD10 - 11 RD9 - 12 RD0 - 13 P3 26 - RA0 27 - RA1 28 - RA4 29 - RA5 30 - RA2 31 - RD1 32 - RD2 33 - RB14 P1 34 - RD14 35 - RD8 36 - RA6 37 - RA7 38 - RG14 39 - RG12 40 - RG13 41 - RA9 RA10 - 42 IDE Pin Symbol Chip Pin I/O 0 U1ARX 52 I/O 1 U1ATX 53 I/O 2 RE8 18 I/O 3 RA3 59 I/O 4 RF3 51 I/O 5 RG15 1 I/O 6 RD11 71 I/O 7 RE9 19 I/O 8 RD15 48 I/O 9 RD3 78 I/O 10 RC4 9 I/O 11 RD10 70 I/O (c) 2014 4D SYSTEMS SDI4 - 49 SCK4 - 50 SS4 - 52 51 - SDO4 A11 - 25 A10 - 24 A9 - 23 A8 - 22 A7 - 21 A6 - 20 P4 19 - A5 or 53 -SDA1 18 - A4 or 54 -SCL1 17 - A3 16 - A2 15- A1 14 - A0 Description General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Receive SDA3/SDI3/U1RX/RF2 General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Transmit SCL3/SDO3/U1TX/RF8 General Purpose I/O. This pin is 5.0V tolerant. AERXD0/INT1/RE8 General Purpose I/O. This pin is 5.0V tolerant. SDA2/RA3 General Purpose I/O. This pin is 5.0V tolerant. USBID/RF3 General Purpose I/O. This pin is 5.0V tolerant. AERXERR/RG15 General Purpose I/O. This pin is 5.0V tolerant. EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 General Purpose I/O. This pin is 5.0V tolerant. AERXD1/INT2/RE9 General Purpose I/O. This pin is 5.0V tolerant. AETXD1/SCK3/U4TX/U1RTS/CN21/RD15 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC4/RD3 General Purpose I/O. This pin is 5.0V tolerant. T5CK/SDI1/RC4 General Purpose I/O. This pin is 5.0V tolerant. SCK1/IC3/PMCS2/PMA15/RD10 Page 12 of 31 www.4dsystems.com.au 4D SYSTEMS IDE Pin Symbol Picadillo-35T Display Module Chip Pin I/O 12 RD9 69 I/O 13 RD0 72 I/O 14 (A0) AN0 25 A/I/O 15 (A1) AN1 24 A/I/O 16 (A2) AN2 23 A/I/O 17 (A3) AN3 22 A/I/O 18 (A4) AN4 21 A/I/O 19 (A5) AN5 20 A/I/O 20 (A6) AN6 26 A/I/O 21 (A7) AN7 27 A/I/O 22 (A8) AN8 32 A/I/O 23 (A9) AN9 33 A/I/O 24 (A10) AN10 34 A/I/O 25 (A11) AN11 35 A/I/O 26 RA0 17 I/O 27 RA1 38 I/O 28 RA4 60 I/O 29 RA5 61 I/O 30 RA2 58 I/O 31 RD1 76 I/O 32 RD2 77 I/O 33 (A14) RB14 43 I/O/A 34 RD14 47 I/O 35 RD8 68 I/O (c) 2014 4D SYSTEMS Description General Purpose I/O. This pin is 5.0V tolerant. SS1/IC2/RD9 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. SDO1/OC1/INT0/RD0 General Purpose I/O. This pin is 5.0V tolerant. PGED1/AN0/CN2/RB0 General Purpose I/O. This pin is 5.0V tolerant. PGEC1/AN1/CN3/RB1 General Purpose I/O. This pin is 5.0V tolerant. AN2/C2IN-/CN4/RB2 General Purpose I/O. This pin is 5.0V tolerant. AN3/C2IN+/CN5/RB3 General Purpose I/O. This pin is 5.0V tolerant. AN4/C1IN-/CN6/RB4 General Purpose I/O. This pin is 5.0V tolerant. AN5/C1IN+/VBUSON/CN7/RB5 General Purpose I/O. This pin is 5.0V tolerant. PGEC2/AN6/OCFA/RB6 General Purpose I/O. This pin is 5.0V tolerant. PGED2/AN7/RB7 General Purpose I/O. This pin is 5.0V tolerant. AN8/C1OUT/RB8 General Purpose I/O. This pin is 5.0V tolerant. AN9/C2OUT/RB9 General Purpose I/O. This pin is 5.0V tolerant. AN10/CVREFOUT/PMA13/RB10 General Purpose I/O. This pin is 5.0V tolerant. AN11/EREXERR/AETXERR/PMA12/RB11 General Purpose I/O. This pin is 5.0V tolerant. TMS/RA0 General Purpose I/O. This pin is 5.0V tolerant. TCK/RA1 General Purpose I/O. This pin is 5.0V tolerant. TDI/RA4 General Purpose I/O. This pin is 5.0V tolerant. TDO/RA5 General Purpose I/O. This pin is 5.0V tolerant. SCL2/RA2 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. Requires Jumper J1 to be connected between Pin3 and Pin6. OC2/RD1 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC3/RD2 General Purpose I/O. This pin is capable of being an Analog Input, and therefore is only 3.3V logic. AN14/ERXD2/AETXD3/PMALH/PMA1/RB14 General Purpose I/O. This pin is 5.0V tolerant. Requires Jumper J1 to be connected between Pin1 and Pin3. AETXD0/SS3/U4RX/U1CTS/CN20/RD14 General Purpose I/O. This pin is 5.0V tolerant. RTCC/EMDIO/AEMDIO/IC1/RD8 Page 13 of 31 www.4dsystems.com.au 4D SYSTEMS IDE Pin Symbol Picadillo-35T Display Module Chip Pin I/O 36 RA6 91 I/O 37 RA7 92 I/O 38 RG14 95 I/O 39 RG12 96 I/O 40 RG13 97 I/O 41 RA9 28 I/O 42 RA10 29 I/O 43 44 45 46 47 48 RB12 RB13 RC2 RC3 RC1 RG9 41 42 7 8 6 14 O O 49 RF4 49 50 RF13 39 51 RF5 50 52 RF12 40 I/O 53 RA15 67 I/O 54 RA14 66 I/O 55 RG7 11 O 56 RG8 12 I 57 RG6 10 O (c) 2014 4D SYSTEMS I/O I/O I/O Description General Purpose I/O. This pin is 5.0V tolerant. RA6/TRCLK General Purpose I/O. This pin is 5.0V tolerant. TRD3/RA7 General Purpose I/O. This pin is 5.0V tolerant. TRD2/RG14 General Purpose I/O. This pin is 5.0V tolerant. TRD1/RG12 General Purpose I/O. This pin is 5.0V tolerant. TRD0/RG13 General Purpose I/O. This pin is 5.0V tolerant. VREF-/CVREF-/AERXD2/PMA7/RA9 General Purpose I/O. This pin is 5.0V tolerant. VREF+/CVREF+/AERXD3/PMA6/RA10 YU (Y Up) - Used exclusively for Touch Screen XL (X Left) - Used exclusively for Touch Screen YD (Y Down) - Used exclusively for Touch Screen XR (X Right) - Used exclusively for Touch Screen LCD Display Reset - Used exclusively for Display SD Card CS/SS - Used exclusively for SD Card ERXCLK/AERXCLK/EREFCLK/AEREFCLK/SS2/U6RX/ U3CTS/PMA2/CN11/RG9 General Purpose I/O. SPI Header MISO. SDA5/SDI4/U2RX/PMA9/CN17/RF4 General Purpose I/O. SPI Header SCK. SCK4/U5TX/U2RTS/RF13 General Purpose I/O. SPI Header MOSI. SCL5/SDO4/U2TX/PMA8/CN18/RF5 General Purpose I/O. SPI Header CS/SS. SS4/U5RX/U2CTS/RF12 General Purpose I/O. I2C SDA. AETXEN/SDA1/INT4/RA15 General Purpose I/O. I2C SCL AETXCLK/SCL1/INT3/RA14 SD Card MOSI - Used exclusively for SD Card. ECRS/SDA4/SDI2/U3RX/PMA4/CN9/RG7 SD Card MISO - Used exclusively for SD Card. ERXDV/AERXDV/ECRSDV/AECRSDV/SCL4/SDO2/U3TX/PMA3/ CN10/RG8 SD Card SCK - Used exclusively for SD Card. ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6 Page 14 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 3.4. Header Pinout Summary - By PIC32 Chip Pin Number Chip Pin IDE Pin Symbol I/O 1 5 RG15 I/O 2 3 4 5 6 7 8 47 45 46 RC1 RC2 RC3 O - 9 10 RC4 I/O 10 57 RG6 O 11 55 RG7 O 12 56 RG8 I 48 RG9 O 17 26 RA0 I/O 18 2 RE8 I/O 19 7 RE9 I/O 20 19 (A5) AN5 A/I/O 21 18 (A4) AN4 A/I/O 22 17 (A3) AN3 A/I/O 23 16 (A2) AN2 A/I/O 24 15 (A1) AN1 A/I/O 25 14 (A0) AN0 A/I/O 26 20 (A6) AN6 A/I/O 27 21 (A7) AN7 A/I/O 28 41 RA9 I/O 29 42 RA10 I/O 13 14 15 16 30 (c) 2014 4D SYSTEMS Description General Purpose I/O. This pin is 5.0V tolerant. AERXERR/RG15 VDD PMD5 - Used for the Display PMD6 - Used for the Display PMD7 - Used for the Display LCD Display Reset - Used exclusively for Display YD (Y Down) - Used exclusively for Touch Screen XR (X Right) - Used exclusively for Touch Screen General Purpose I/O. This pin is 5.0V tolerant. T5CK/SDI1/RC4 SD Card SCK - Used exclusively for SD Card. ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6 SD Card MOSI - Used exclusively for SD Card. ECRS/SDA4/SDI2/U3RX/PMA4/CN9/RG7 SD Card MISO - Used exclusively for SD Card. ERXDV/AERXDV/ECRSDV/AECRSDV/SCL4/SDO2/U3TX/PMA3/ CN10/RG8 MCLR SD Card CS/SS - Used exclusively for SD Card ERXCLK/AERXCLK/EREFCLK/AEREFCLK/SS2/U6RX/ U3CTS/PMA2/CN11/RG9 VSS VDD General Purpose I/O. This pin is 5.0V tolerant. TMS/RA0 General Purpose I/O. This pin is 5.0V tolerant. AERXD0/INT1/RE8 General Purpose I/O. This pin is 5.0V tolerant. AERXD1/INT2/RE9 General Purpose I/O. This pin is 5.0V tolerant. AN5/C1IN+/VBUSON/CN7/RB5 General Purpose I/O. This pin is 5.0V tolerant. AN4/C1IN-/CN6/RB4 General Purpose I/O. This pin is 5.0V tolerant. AN3/C2IN+/CN5/RB3 General Purpose I/O. This pin is 5.0V tolerant. AN2/C2IN-/CN4/RB2 General Purpose I/O. This pin is 5.0V tolerant. PGEC1/AN1/CN3/RB1 General Purpose I/O. This pin is 5.0V tolerant. PGED1/AN0/CN2/RB0 General Purpose I/O. This pin is 5.0V tolerant. PGEC2/AN6/OCFA/RB6 General Purpose I/O. This pin is 5.0V tolerant. PGED2/AN7/RB7 General Purpose I/O. This pin is 5.0V tolerant. VREF-/CVREF-/AERXD2/PMA7/RA9 General Purpose I/O. This pin is 5.0V tolerant. VREF+/CVREF+/AERXD3/PMA6/RA10 AVDD Page 15 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 31 32 22 (A8) AN8 A/I/O 33 23 (A9) AN9 A/I/O 34 24 (A10) AN10 A/I/O 35 25 (A11) AN11 A/I/O 38 27 RA1 I/O 39 50 RF13 I/O 40 52 RF12 I/O 41 42 43 44 RB12 RB13 - 43 33 (A14) RB14 I/O/A 47 34 RD14 I/O 48 8 RD15 I/O 49 49 RF4 I/O 50 51 RF5 I/O 51 4 RF3 I/O 52 0 U1ARX I/O 53 1 U1ATX I/O 58 30 RA2 I/O 59 3 RA3 I/O 60 28 RA4 I/O 61 29 RA5 I/O 36 37 44 45 46 54 55 56 57 62 63 (c) 2014 4D SYSTEMS AVSS General Purpose I/O. This pin is 5.0V tolerant. AN8/C1OUT/RB8 General Purpose I/O. This pin is 5.0V tolerant. AN9/C2OUT/RB9 General Purpose I/O. This pin is 5.0V tolerant. AN10/CVREFOUT/PMA13/RB10 General Purpose I/O. This pin is 5.0V tolerant. AN11/EREXERR/AETXERR/PMA12/RB11 VSS VDD General Purpose I/O. This pin is 5.0V tolerant. TCK/RA1 General Purpose I/O. SPI Header SCK. SCK4/U5TX/U2RTS/RF13 General Purpose I/O. SPI Header CS/SS. SS4/U5RX/U2CTS/RF12 YU (Y Up) - Used exclusively for Touch Screen XL (X Left) - Used exclusively for Touch Screen General Purpose I/O. This pin is capable of being an Analog Input, and therefore is only 3.3V logic. AN14/ERXD2/AETXD3/PMALH/PMA1/RB14 PMA0 - Used for the Display VSS VDD General Purpose I/O. This pin is 5.0V tolerant. AETXD0/SS3/U4RX/U1CTS/CN20/RD14 General Purpose I/O. This pin is 5.0V tolerant. AETXD1/SCK3/U4TX/U1RTS/CN21/RD15 General Purpose I/O. SPI Header MISO. SDA5/SDI4/U2RX/PMA9/CN17/RF4 General Purpose I/O. SPI Header MOSI. SCL5/SDO4/U2TX/PMA8/CN18/RF5 General Purpose I/O. This pin is 5.0V tolerant. USBID/RF3 General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Receive SDA3/SDI3/U1RX/RF2 General Purpose I/O. This pin is 5.0V tolerant. Primary Serial Port, Serial0 Transmit SCL3/SDO3/U1TX/RF8 VBUS VUSB D-/RG3 - Broken out to access USB Signals D+/RG2 - Broken out to access USB Signals General Purpose I/O. This pin is 5.0V tolerant. SCL2/RA2 General Purpose I/O. This pin is 5.0V tolerant. SDA2/RA3 General Purpose I/O. This pin is 5.0V tolerant. TDI/RA4 General Purpose I/O. This pin is 5.0V tolerant. TDO/RA5 VDD OSC1/CLKI/RC12 - Main Clock Crystal Oscillator Page 16 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 64 65 66 54 RA14 I/O 67 53 RA15 I/O 68 35 RD8 I/O 69 12 RD9 I/O 70 11 RD10 I/O 71 6 RD11 I/O 72 13 RD0 I/O 76 31 RD1 I/O 77 32 RD2 I/O 78 9 RD3 I/O 91 36 RA6 I/O 92 37 RA7 I/O 95 38 RG14 I/O 96 39 RG12 I/O 97 40 RG13 I/O 73 74 75 79 80 81 82 83 84 85 86 87 88 89 90 93 94 98 99 100 (c) 2014 4D SYSTEMS OSC2/CLKO/RC15 - Main Clock Crystal Oscillator VSS General Purpose I/O. I2C SCL AETXCLK/SCL1/INT3/RA14 General Purpose I/O. I2C SDA. AETXEN/SDA1/INT4/RA15 General Purpose I/O. This pin is 5.0V tolerant. RTCC/EMDIO/AEMDIO/IC1/RD8 General Purpose I/O. This pin is 5.0V tolerant. SS1/IC2/RD9 General Purpose I/O. This pin is 5.0V tolerant. SCK1/IC3/PMCS2/PMA15/RD10 General Purpose I/O. This pin is 5.0V tolerant. EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. SDO1/OC1/INT0/RD0 SOSCI/CN1/RC13 - RTC Clock Crystal Oscillator SOSCO/T1CK/CN0/RC14 - RTC Clock Crystal Oscillator VSS General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC2/RD1 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC3/RD2 General Purpose I/O. This pin is 5.0V tolerant. This pin is PWM Capable. OC4/RD3 ETXD2/IC5/PMD12/RD12 - Used for the Display ETXD3/PMD13/CN19/RD13 - Used for the Display OC5/PMWR/CN13/RD4 - Used for the Display PMRD/CN14/RD5 - Used for the Display ETXEN/PMD14/CN15/RD6 - Used for the Display ETXCLK/PMD15/CN16/RD7 - Used for the Display VCAP/VDDCORE VDD ETXD1/PMD11/RF0 - Used for the Display ETXD0/PMD10/RF1 - Used for the Display ETXERR/PMD9/RG1 - Used for the Display PMD8/RG0 - Used for the Display General Purpose I/O. This pin is 5.0V tolerant. RA6/TRCLK General Purpose I/O. This pin is 5.0V tolerant. TRD3/RA7 PMD0/RE0 - Used for the Display PMD1/RE1 - Used for the Display General Purpose I/O. This pin is 5.0V tolerant. TRD2/RG14 General Purpose I/O. This pin is 5.0V tolerant. TRD1/RG12 General Purpose I/O. This pin is 5.0V tolerant. TRD0/RG13 PMD2/RE2 - Used for the Display PMD3/RE3 - Used for the Display PMD4/RE4 - Used for the Display Page 17 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 4.4. The Power Supplies 4. Powering the Picadillo-35T 4.1. USB Power The Picadillo-35T is able to be powered numerous ways, however the most common will be using the USB Mini jack, which is also used to program the display module. The Picadillo-35T runs off a 5.0V DC supply, and draws approximately 250mA using an average arrangement of features at any given time. This is within the suitable limits of supply for most computers USB ports, however in some cases a powered USB hub or external power supply may be required. There is a 500mA PTC resettable fuse located on the 5V line coming from the USB, to protect the computer against excessive current draw which may damage your PC if any unfortunate events occur while developing with the Picadillo-35T. On board the Picadillo-35T are two 3.3V regulators. There are no 5.0V regulators, so power input to the Picadillo-35T is required to be a regulated 5.0V supply. There is a dedicated LP2992IM5-3.3 3.3V 250mA regulator for the PIC32 itself, which aims to provide the PIC32 with an isolated supply so any noise induced by external circuits will be at a minimum relative to the PIC32's supply. There is then a 3.3V Max 1A regulator for the peripherals and for the User, which is a LP38692MP-3.3. This powers peripherals such as the microSD card, and the display logic. The +3.3V pin on the P2 header, is powered off this supply. This supply is enabled by default, but there is a single pad on the PCB labelled PER_DIS, which can be grounded and this regulator will be disabled. This may be useful for low power solutions. The Audio Amplifier is powered directly off the 5V bus, however its power supply is enabled/disabled using the RB14 GPIO, which needs to be selected using the J1 header. 4.2. DC Barrel Jack The Picadillo-35T Features a DC Barrel Jack, designed for a fine pitch DC Jack, 2.35mm in diameter, with a centre hole of 0.7mm, and barrel length of 8mm or more. A suitable 1 Amp 5.0V DC Adaptor is available from the 4D Systems website, which has been designed specifically for 4D Systems. The FTDI FT232RQ is powered off the 5V bus, however features a simple switching circuit which holds it in reset unless the USB cable is attached. If powering the Picadillo-35T off the Barrel Jack or 5V header, then the FT232RQ will remain disabled. The Barrel Jack on board is a CUI Inc PJ1-023-SMT if more information is required. The LCD Backlight is also powered directly off the 5V bus, and therefore the backlight may be damaged if the display module is supplied with power outside the recommended ranges. 4.3. Powering from the Headers The Picadillo-35T is able to be powered off the Arduino style headers. There is a VIN pin located on Pin 8 of the P2 Header. This pin accepts only 5.0VDC, with a maximum input of approximately 5.5VDC. Input outside this range could damage the module as some peripherals run directly of the 5V bus. When powering the display, multiple power sources can be connected if desired, such as USB and Barrel Jack, or USB and 5V Header Input. There is a simple diode pair on board, so which ever has the highest voltage will take over supply to the display module. This protects multiple supplies from fighting each other, and allows the DC Barrel Jack to be used to power the display while programming it over the USB port. There is also a +5V pin, located on Pin 5 of the P2 header. This is NOT designed for direct input, this is an output pin for supplying external devices. This pin comes after the reverse polarity protection, so it is designed for output only. This pin will supply approximately VIN - 0.3V. (c) 2014 4D SYSTEMS Page 18 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 5.2. Programming with Microchip Dev Tools 5. Programming the Picadillo-35T 5.1. Programming with UECIDE UECIDE is the perfect programming environment for programming the Picadillo-35T using a standard USB Mini cable. UECIDE features the Picadillo-35T is its list of plugins which are available for download, so after a very simple setup, the IDE is ready to use with the Picadillo-35T. Please refer to the www.uecide.org website for further information. The UECIDE communicates between the Computer and the PIC32 using the Serial Port via the FTDI FT232RQ chip, and uses a bootloader running on the PICadilllo-35T. Before any attempts are made to communicate with the Picadillo-35T, the appropriate FTDI Driver must be downloaded and installed in order to successfully establish communications. This driver is available for download from the product page of the Picadillo-35T on the 4D Systems website, www.4dsystems.com.au When UECIDE needs to communicate with the Picadillo-35T, the PIC32 is reset and it starts running the bootloader. UECIDE then establishes communication with the PIC32 using the bootloader, and downloads the program to the Flash of the PIC32. When UECIDE establishes communication with the Picadillo-35T, the DTR pin of the FT232RQ is driven low, initiating the reset sequence. This reset pin is coupled through a series capacitor to the MCLR pin on the PIC32 microcontroller. The automatic reset feature is able to be disabled through the cutting of a trace on the PCB between the pads of the J4 jumper. J4 is not populated by default, but allows a header to be soldered carefully in place if the trace is cut and the auto reset feature is desired to be restored. There are 2 LED's present on the board, which indicate RX and TX traffic through the FT232RQ. The same information can be applied when using MPIDE, however UECIDE is the recommended IDE. (c) 2014 4D SYSTEMS In addition to being used with the UECIDE or MPIDE, the Picadillo-35T board can be used as a more traditional microcontroller development board using the Microchip Development Tools. The unpopulated ICSP connector located at the bottom left of the PCB is used to connect to a Microchip development tool, such as the PICkit3TM. Any Microchip development tool that supports the PIC32 microcontroller family, and can be connected via the same 6-pin interface as the PICkit3, can be used. Typically, a right-angle male connector is used in the ICSP header location so that a PICkit3 can be attached co-planar with the Picadillo-35T module. The connector must be loaded from the top and carefully soldered in place. The PICkit3 will be upright (button and LEDs visible), with Pin 1 located on the Left Hand Side, and marked with a dot. Note, the ICSP header does not provide a 3.3V connection to the Picadillo-35T, as more than 3.3V is required to power up the module. The 3.3V pin is therefore N/C, and an external power supply must be used, such as power from the USB, DC Jack or 5V Header pin. Note: On the PICKit3 Programmer, the 3.3V Output to `Power Target Circuit from Tool' must be enabled else the programmer will not see the PIC32 processor, even though this 3.3V is not used to power the Picadillo-35T itself. The Microchip MPLAB(R) IDE or the MPLAB(R) X IDE can be used to program and debug code running on the Picadillo-35T board. These programs can be downloaded from the Microchip web site. Using the Microchip development tools to program the Picadillo-35T board will cause the bootloader to be erased. To use the board with the UECIDE or MPIDE again, it is necessary to program the bootloader back onto the board. The bootloader source code and compiled image can be found on the 4D Systems website, under the Picadillo-35T product page, www.4dsystems.com.au Page 19 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 6. GPIO on the Picadillo-35T 6.2. Serial Ports 6.1. GPIO Voltage Levels The Picadillo-35T makes available 4 Serial UART ports of the PIC32 for the User. The Picadillo-35T features a Microchip PIC32 microcontroller, which itself runs off 3.3V. Typically the Arduino range of development boards was 5.0V and therefore shields used 5.0V IO. The concern with development platforms that run 3.3V logic is whether they can handle 5V input signals from external devices, and whether the 3.3V logic levels will be high enough to activate a logic high condition on 5V logic shields. The Picadillo-35T feature a PIC32 which has 5V tolerant digital GPIO, which means that 5V logic can be safely connected to this modules digital GPIO without any worry of damage to the module. The analog input pins however are only 3.3V, and therefore inputs on those pins (AN0 through AN11, along with RB12) should not have inputs exceeding 3.3V. That said, the Picadillo-35T features clamp diodes and current limiting resistors, which aims to protect the processor from over voltage conditions, such as 5V logic inputs. It is therefore safe to use 5V inputs on these pins, however it should be noted the analog inputs will only read up to a 3.3V level. When using this board with 5V shields, it should be noted that the minimum high level voltage level of the PIC32 is 2.4V when sourcing 12mA of current. While some 5V shields/devices will accept this as a logic high level, some will not. Many 5V logic devices will however work correctly with 3.3V logic. UART port 0: Asynchronous serial port. RX0 and TX0. These pins are connected to the P3 Header and are also connected to the FT232R USB serial converter. It is possible to use these pins to connect to an external serial device when not using the USB serial interface. This uses UART1 on the PIC32 microcontroller itself. Name U1RX (RX0) U1TX (TX0) IDE Pin 0 1 Header P3 Pin16 P3 Pin14 UART port 1: Asynchronous serial port. RX1 and TX1. These pins are connected to the P1 Header. This uses UART4 on the PIC32 microcontroller itself, RD14 and RD15. Name U4RX (RX1) U4TX (TX1) Chip Pin 47 48 IDE Pin 34 8 Header P1 Pin15 P1 Pin16 UART port 2: Asynchronous serial port. RX2 and TX2. These pins are connected to the SPI Header. This uses UART2 on the PIC32 microcontroller, RF4 and RF5. Name U2RX (RX2) U2TX (TX2) Chip Pin 49 50 IDE Pin 49 51 Header SPI Pin1 SPI Pin4 UART port 3: Asynchronous serial port. RX3 and TX3. These pins are connected to the SPI Header. This uses UART5 on the PIC32 microcontroller, RF12 and RF13. Name U5RX (RX3) U5TX (TX3) (c) 2014 4D SYSTEMS Chip Pin 52 53 Page 20 of 31 Chip Pin 40 39 IDE Pin 52 50 Header SPI Pin5 SPI Pin3 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 6.3. SPI The Picadillo-35T features an on board microSD card connector, which communicates to the PIC32 via the SPI Bus. Please note that a microSD card which supports SPI is a requirement. microSD Card: The on board microSD connector uses the SPI2 port which is (SS2, SDI2, SDO2, SCK2) on the PIC32 microcontroller, RG9, RG7, RG8, RG6. These are the IDE pins used for the microSD Card: Name SS2 (CS) SDI2 (MOSI) SDO2 (MISO) SCK2 (SCK) Chip Pin 14 11 12 10 IDE Pin 48 55 56 57 SPI Header, SPI Channel 1: Synchronous serial port. The SPI Header, labelled `SPI' and located at the top centre of the Picadillo-35T, uses the SPI4 port which is (SS4, SDI4, SDO4, SCK4) on the PIC32 microcontroller, RF12, RF5, RF4, RF13. These are the IDE pins used for the SPI Header: Chip Pin 40 49 50 39 IDE Pin 52 49 51 50 Header SPI Pin5 SPI Pin1 SPI Pin4 SPI Pin3 SPI Channel 2: Synchronous serial port. On the P1 Header, there is an SPI Port available which uses the SPI1 port which is (SS1, SDI1, SDO1, SCK1) on the PIC32 microcontroller, RD9, RC4, RD0, RD10. These are the IDE pins used for this SPI channel. Name SS1 (CS) SDI1 (MOSI) SDO1 (MISO) SCK1 (SCK) Chip Pin 69 9 72 70 IDE Pin 12 10 13 11 Header P1 Pin8 P1 Pin12 P1 Pin6 P1 Pin10 SPI Channel 3: Synchronous serial port. There is an SPI Port available which uses the SPI3 port which is (SS3, SDI3, SDO3, SCK3) on the PIC32 microcontroller, RD14, RF2, RF8, RD15. These are the IDE pins used for this SPI channel. Name SS3 (CS) Chip Pin 47 (c) 2014 4D SYSTEMS IDE Pin 34 52 53 48 0 1 8 P3 Pin16 P3 Pin14 P1 Pin16 6.4. I2C I2C Channel 1: Synchronous serial port. After selecting Jumper J2 to the appropriate location, I2C is available on the P4 header. This uses I2C1 on the PIC32 microcontroller, RA15 and RA14. Name SDA1 SCL1 These signals are not broken out to any headers, and only feature on the microSD socket itself. Name SS4 (CS) SDI4 (MOSI) SDO4 (MISO) SCK4 (SCK) SDI3 (MOSI) SDO3 (MISO) SCK3 (SCK) Chip Pin 67 66 IDE Pin 53 54 Header P4 Pin11 P4 Pin9 Note: The I2C channel on the Picadillo-35T does not feature on board I2C pull-up resistors, which are required as I2C uses open collector drivers. Typical pull-up resistors around 4K7 ohm are acceptable, however does depend on the number of devices found on the bus, the length of the wires, and the clock speed being used. Note: Additional I2C channels are available. Please refer to the Microchip datasheet for more information on these ports, and then cross reference using the Schematic found in the appendix, to find the pin and header they are found on the Picadillo-35T. 6.5. PWM There are 4 PWM channels available on the Picadillo-35T, and 2 of these have on board functions if the appropriate jumper is placed. Name OC1 (RD0) OC2 (RD1) OC3 (RD2) OC4 (RD3) Chip Pin 72 76 77 78 IDE Pin 13 31 32 9 Header P1 Pin6 P3 Pin5 P3 Pin3 P1 Pin14 OC2/RD1 - this can be used to generate PWM audio which then feeds into the on board Audio Amplifier. Requires the J1 Jumper to be set correctly. OC3/RD2 - this can be used to control the backlight with PWM to set various level of backlight brightness. Requires the J3 Jumper to be set correctly. Header P1 Pin15 Page 21 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 6.6. External Interrupts There are 5 External Interrupts available on the Picadillo-35T. Please take note that some are located on pins used for other functions, so decisions need to be made as to which is utilised for your application. Name INT0 (RD0) INT1 (RE8) INT2 (RE9) INT3 (RA14) INT4 (RA15) Chip Pin 72 18 19 66 67 IDE Pin 13 2 7 54 53 Header P3 Pin10 P3 Pin12 P3 Pin2 P4 Pin9 P4 Pin11 INT3 - This is shared with the I2C Port, and can be used as a GPIO/INT with the appropriate selection of the J2 Jumper. INT4 - This is shared with the I2C Port, and can be used as a GPIO/INT with the appropriate selection of the J2 Jumper 6.7. Analog Reference It is possible to specify an Analog Reference to be something other than the internal 3.3V reference used by default, by applying a voltage to P1 Pin 2. The external voltage must be between 0V and 3.3V. If an external voltage is not required, this pin can be used as a GPIO digital pin. There is a negative voltage reference also, found on P1 Pin 1, however this generally is unused as the default negative input is tied to AGND. Please refer to the Microchip datasheet of the PIC32 for more information. Name VREF+ (RA10) VREF- (RA9) Chip Pin 29 28 IDE Pin 42 41 Each analog input is fitted with current limiting resistors and clamp diodes, to protect the inputs from overvoltage conditions, such as applying 5V to these inputs. If 5V is applied, the circuitry will clamp the voltage down to 3.3V. It is not possible to read an analog voltage with a level higher than 3.3V. Of the 13 Analog Inputs, 12 of them are located on Header P4, which is the `normal' location for Arduino/Chipkit style boards. There is an additional analog Input on the Picadillo-35T which is found on Header P3 Pin1 (AN14, aka RB14). This can be utilised as an Analog input if required, however is typically used to control the Audio Amplifier Enable. Name AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 AN9 AN10 AN11 AN14 Chip Pin 25 24 23 22 21 20 26 27 32 33 34 35 43 IDE Pin A0 / 14 A1 / 15 A2 / 16 A3 / 17 A4 / 18 A5 / 19 A6 / 20 A7 / 21 A8 / 22 A9 / 23 A10 / 24 A11 / 25 A14 / 33 Header P4 Pin1 P4 Pin3 P4 Pin5 P4 Pin7 P4 Pin9 P4 Pin11 P4 Pin2 P4 Pin4 P4 Pin6 P4 Pin8 P4 Pin10 P4 Pin12 P3 Pin1 Header P1 Pin2 P1 Pin1 Note: When these pins are used for Analog References, they cannot be used for GPIO. 6.8. Analog Inputs The Picadillo-35T features 13 Analog Inputs which are accessible to the User. These are all by default in the range of 0V to 3.3VDC, however this can be altered with the use of the Analog Reference pins, discussed in the previous section. Each of the Analog Inputs is 10-bit resolution, and capable up to a maximum of 1Msps read rate. (c) 2014 4D SYSTEMS Page 22 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 7. Additional Features 7.3. Touch Screen Interface 7.1. On Board Audio Amplifier The Picadillo-35T has a 4 wire touch screen interface. The following pins (2 Analog, 2 Digital) are used to interface to the 4 wire touch: The Picadillo-35T features an on-board amplifier, capable of driving up to 1W and up to a 4ohm speaker, or the small speaker found on board the module itself. The on-board amplifier is fed from the PIC32 using a filtered PWM signal, and also features an amplifier enable so the amplifier can be disabled by the user. Based on the settings applied to Jumper J1, will determine if the PWM signal and Audio Enable signals are routed from the PIC32, or if they are routed to the headers for alternate use. It is not possible to have the audio and amplifier enabled if the 2 GPIO are desired to be used by the User for other uses. Name AUDIO (RD1) AUDENB (RB14) Chip Pin 47 43 IDE Pin 31 33 The AUDENB signal is Active Low, meaning you need to drive the AUDENB signal low in order to Enable the on board amplifier. Drive the pin high, or setting the pin to INPUT will disable the amplifier. The Amplifier Enable pin on the amplifier itself has a pull-up resistor, which will by default hold the amplifier to be in a disabled state. Name YU (Y Up) XL (X Left) YD (Y Down) XR (X Right) Ref RB12 RB13 RC2 RC3 Chip Pin 41 42 7 8 IDE Pin 43 44 45 46 Note: These pins are dedicated to the LCD displays 4 wire touch, and are not present on any other headers or pins. 7.4. PIC32 on-board USB Controller The on-board USB 2.0 controller built into the PIC32, has been broken out to 4 pads at the top right of the Picadillo-35T. Wires or a header can be soldered carefully on to this location, allowing the User to take advantage of the on board USB port of the PIC32 Processor. Note: This is not the same USB that is present down the bottom left of the Picadillo-35T. For more information on this USB Port, please refer to the Datasheet for the PIC32 from the Microchip website. 8. Display Features The on-board amplifier is an ST TDA2822D. If a larger external speaker is desired, instead of the small on board speaker, it can be carefully unsoldered from the + and - pads on the PCB, and a larger speaker be connected in its place. Please note the amplifier can drive a max of 4ohm load and a max of 1W (when using a 32ohm speaker). The recommended speaker rating is 8ohm 0.8W. 7.2. Real Time Clock Calendar The Picadillo-35T utilises the built in RTCC found on the PIC32 that can be used to maintain time and date information. It has an on board 32.768KHz oscillator mounted and ready to go. Please refer to the Microchip datasheet for this PIC32 processor, for more information about the RTCC. (c) 2014 4D SYSTEMS 8.1. Display - 3.5" TFT Touch Screen The Picadillo-35T module is equipped with a 3.5" TFT display. Details of the display are listed below: Screen Size: 3.5" diagonal, 320x480 resolution, 65K colours Integrated 4-Wire Resistive Touch Screen Screen Dimensions: 54.5 x 83.0 x 3.35mm Viewing Area: 49.76 x 77.04mm Pixel Pitch: 0.153(H) x 0.153(V)mm Brightness: 220cd/m2 Contrast Ratio: 500:1 Viewing Angle Above Centre: 60 degrees Viewing Angle Below Centre: 60 degrees Viewing Angle Left of Centre: 70 degrees Viewing Angle Right of Centre: 70 degrees Viewing Direction: 6 O'clock 7 LEDs for Backlighting Page 23 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module Note: The Displays used are the highest rated `Grade A' Displays, which allow for 0-4 defective pixels. A defective pixel could be solid Black (Dead), White, Red, Green or Blue. 8.2. Display Precautions * Avoid having to display the same image/object on the screen for lengthy periods of time. This will cause a burn-in which is a common problem with all types of display technologies. Blank the screen after a while or dim it very low by adjusting the contrast. Better still; implement a screen saver feature. 9. Software & Libraries 9.1. UECIDE Programming IDE The UECIDE Programming IDE is the recommended programming IDE for the Picadillo-35T, and features a plugin specifically for the Picadillo-35T, allowing the display module to be selected and programmed without the need to download separate core files and set them up. The UECIDE is a free application developed by Majenko Technologies, and is available for download from the UECIDE website, www.uecide.org. * Moisture and water can damage the display. Moisture on the surface of a powered display will cause the electrodes to corrode. Wipe off any moisture gently or let the display dry before usage. * Dirt from fingerprint oil and fat can easily stain the surface of the display. Gently wipe off any stains with a soft lint-free cloth. * The performance of the display will degrade under high temperature and humidity. Avoid such conditions when storing. * Do not tamper with the display flex cable that is connected to the control board. This may affect the connection between the display and the driving circuitry and cause failure. Under NO CIRCUMSTANCES should you disconnect the FPC connector which connects the display with the PCB. This is extremely delicate and if disconnected incorrectly, or connected incorrectly, either or both the display or the PCB connector can be irreversibly damaged. Do not take this warning lightly. This will void your warranty. * Displays are susceptible to mechanical shock and any excessive force exerted on the module may result in deformed zebra stripes, a cracked display cell and broken backlight * Always use the mounting holes on the module's corner plates to mount the display. UECIDE is available for download for PC, MAC and Linux Operating Systems, providing flexibility for the operating system of your choice. 9.2. Libraries The Picadillo-35T is also compatible with the TFT and supporting library, written by Majenko Technologies, which is available for download from their Github Repository, https://github.com/TFTLibraries This library provides both basic and advanced graphics features, and allows you to rapidly develop your application without the need to worry about writing low level TFT Graphics code yourself. (c) 2014 4D SYSTEMS Page 24 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module Provided with the TFT Library, are a range of demo applications specifically written for the Picadillo35T, which demonstrate some of the features of the display module. A repository of Fonts is also available from Majenko Technologies, available for download from here: https://github.com/TFTFonts Other libraries, such as BMPFile, and Widgets are also available from Majenko Technologies TFTLibraries Github repository, which are compatible with the Picadillo-35T 9.3. Bootloader The Picadillo-35T utilises a bootloader which enables the PIC32 Processor to be programmed using the on board FTDI USB to Serial IC, by simply connecting a USB cable between your PC and the Picadillo-35T. If however you wish to change the bootloader, simply connect a suitable programming device on to the ICSP headers, such as the PICKit3, and program the PIC32 as required. Note: On the PICKit3 Programmer, the 3.3V Output to `Power Target Circuit from Tool' must be enabled else the programmer will not see the PIC32 processor, even though this 3.3V is not used to power the Picadillo-35T itself. The bootloader for the Picadillo-35T is available for download from the Picadillo-35T product page on the 4D Systems website, www.4dsystems.com.au (c) 2014 4D SYSTEMS Page 25 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 10. Notes __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ __________________________________________________________________________________________ 11. Scribble Box (c) 2014 4D SYSTEMS Page 26 of 31 www.4dsystems.com.au 4D SYSTEMS uLCD-35DT Display Module 12. Mechanical Details (c) 2014 4D SYSTEMS Page 27 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 13. Schematic Diagram (c) 2014 4D SYSTEMS Page 28 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 14. Specifications and Ratings ABSOLUTE MAXIMUM RATINGS Operating ambient temperature ................................................................................................... -15C to +65C Storage temperature .......................................................................................................................... -30C +70C Voltage on any digital input pin with respect to GND ....................................................................... -0.3V to 5.5V Voltage on any analog input pin with respect to GND.................................................................................. 0V to 3.8V Voltage on VCC with respect to GND ................................................................................................. -0.3V to 5.5V Maximum current sunk/sourced by any pin (More detail please refer to Microchip Datasheet)............... 18.0mA Maximum current sunk/sourced across all pins simultaneously.................................................................... 200.0mA NOTE: Stresses above those listed here may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the recommended operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Please refer to the Microchip Datasheet for more information. RECOMMENDED OPERATING CONDITIONS Parameter Supply Voltage (VCC) Operating Temperature Input Low Voltage (VIL) Input High Voltage (VIH) Input High Voltage (VIH) Reset Pulse Operational Delay Conditions Stable external supply required 3.3V, all pins 3.3V, non 5V tolerant pins All GPIO pins, RX0 and TX0 pins External Open Collector Power-Up or External Reset Min 4.5 -10 0 0.8VCC 0.8VCC 2.0 500 Typ 5.0 ------- Max 5.5 +60 0.2VCC 3.3 5.5 -3000 Units V C V V V s ms GLOBAL CHARACTERISTICS BASED ON OPERATING CONDITIONS Parameter Supply Current (ICC) Output Low Voltage (VOL) Output High Voltage (VOH) Capacitive Loading Flash Memory Endurance Display Endurance Conditions 5.0V, heavily depends on screen usage conditions, sleep mode, audio, SD card 3.3V, IOL = 7.0mA 3.3V, IOL = -12.0mA All pins Hours of operation, typical Min Typ Max Units -- 250 -- mA -- -- 0.4 V 2.4 -- -- V -- -- 50 pF -- 1000 -- E/W 20000 H ORDERING INFORMATION Order Code: Picadillo-35T Packaging: Module sealed in an antistatic foam padded 4D Systems box (c) 2014 4D SYSTEMS Page 29 of 31 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 15. Revisions Revision 1.2 1.3 1.4 1.5 Revision Content Initial Public Release Updated drawing, slight error with AA placement on display Modified Github repository paths as they changed Name Change (c) 2014 4D SYSTEMS Page 30 of 31 Date 16/06/2014 17/07/2014 13/09/2014 19/09/2014 www.4dsystems.com.au 4D SYSTEMS Picadillo-35T Display Module 16. Legal Notice Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed without prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. The development of 4D Systems products and services is continuous and published information may not be up to date. It is important to check the current position with 4D Systems. 4D Systems reserves the right to modify, update or makes changes to Specifications or written material without prior notice at any time. All trademarks belong to their respective owners and are recognised and acknowledged. Disclaimer of Warranties & Limitation of Liability 4D Systems makes no warranty, either expressed or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non-infringement and fitness for any particular purpose. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. Images and graphics used throughout this document are for illustrative purposes only. All images and graphics used are possible to be displayed on the 4D Systems range of products, however the quality may vary. In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages. 4D Systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail - safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage (`High Risk Activities'). 4D Systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Use of 4D Systems' products and devices in 'High Risk Activities' and in any other application is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless 4D Systems from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any 4D Systems intellectual property rights. 17. Contact Information For Technical Support: support@4dsystems.com.au For Sales Support: sales@4dsystems.com.au Website: www.4dsystems.com.au Copyright 4D Systems Pty. Ltd. 2000-2014. (c) 2014 4D SYSTEMS Page 31 of 31 www.4dsystems.com.au