Using a PIC32MX4xx/5xx/6xx/7xx we have:
- 80 MHz power! (default on Pinguino 32X)
- 78 IO Pins (Arduino PIN 0 is PIC32 RC4 pin, see UBW32 pin order, look on eagle schematic)
- 16 Channels, 10bit ADC
- USB, DMA, OTG, CAN, LAN, RTC, SPI, i2c and more ...
First all, we need some vital pieces:
1- PIC32MX795F512L or a PIC32MX460F512L from Microchip, you can take 3 samples at Microchip.com, SAMPLES
PIC32
2- A TQFP 100pins 0.4mm, U$1,50 at Futurlec, SMD_Adapters
TQFP Adapter 100pins/0.4mm
3- Some common electronics:
Type | Value | QTD |
---|---|---|
Capacitor | 22 pF | 2 |
Capacitor | 100 nF | 6 |
Capacitor | 10 µF | 2 |
Capacitor | 1 µF | 1 |
Resistor | 10 KΩ | 3 |
Resistor | 330 Ω | 5 |
LED | - | 5 |
Crystal | 8MHz | 1 |
Switch Button | - | 3 |
Regulator | KIA78R33 (3.3V) | 1 |
4- And a Breadboard!
Next we need do the hard work, solder the chip, yeah a SMD 100pins 0.4mm, less then a half millimeter. Thanks a friend, he soldered to me it...
PIC32MX795 soldered
I made a schematic with Pinguino PINs 0 to 78, using UBW32 pin order.
Pinguino32 minimum circuit
Pinguino32X minimum
Files:
UBW32 Firmware:
UBW32_HIDBoot_MX795.hex
UBW32_HIDBoot_MX460.hex
Atention:
1- You need a pickit3 or similar to program PIC32MX795, I used MPLAB-X (blogged)
2- You can use a pickit2 for PIC32MX460 (last supported PIC32), pk2cmd works very well.
3- We need powerup PIC32 or can't program it, for a UBW32 board use the USB cable.
If you have a PIC32MX460, this is the command line for program it, using ICSP port:
linux>$ pk2cmd -P -W -M -F UBW32_HIDBoot_MX460.hex
A simple code like blink a LED can be used with this Pinguino32X minimum and Pinguino32X IDE, for now IDE is under development but all 78 Digital IOs are working.
Nenhum comentário:
Postar um comentário