PIC32MX in DIP forms

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PIC32MX in DIP forms

Postby Brian Griffin » Thu Nov 10, 2011 6:59 pm

That there about Microchip PIC32MX doesn't just stop at the Surface Mount technology - now they are delivering them in SPDIP form recently.

Now you can have 32-bit power, fully on a breadboard. Of course, these newer PIC32s have much lesser memory than their bigger cousins, but that doesn't mean it's all no better as well. And also, that doesn't mean that the dsPIC is inferior - the dsPIC has many DSP instructions which can facilitate computation of signals. The PIC32s, are more general-purpose in nature.

The datasheet is as follows: http://ww1.microchip.com/downloads/en/DeviceDoc/61168C.pdf

PIC32MX110F016B - 16KB Prog.Memory, 4KB Data Memory
PIC32MX120F032B - 32KB Prog.Memory, 8KB Data Memory
PIC32MX210F016B - 16KB Prog.Memory, 4KB Data Memory, USB OTG (USB on the go)
PIC32MX220F032B - 32KB Prog.Memory, 8KB Data Memory, USB OTG (USB on the go)

I have a few samples of them. They are just starting the first batch of manufacutring, so the SPDIP versions of those chips are not there in retail yet.

Photos - coming soon. 8-)
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PIC32MX in DIP forms

Postby robosang » Thu Nov 10, 2011 8:21 pm

Woh.... looking forward to see the performance! :mrgreen:
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PIC32MX in DIP forms

Postby aurora » Fri Nov 11, 2011 7:46 am

Already? I have a lot catch up to do :( By the way, saw a good book about PIC32 on shelf, wonder if I should get it or not. hmm.
16-bit word of uC is really great stuff, I get amazing output for my application. Now should I spend on this one?

We need a write up of comparison chart between 8-, 16-, 32-bit uC. Any volunteer? :)
aurora
Discoverer
 
Posts: 126
Joined: Sun Jun 07, 2009 4:52 pm

Re: PIC32MX in DIP forms

Postby shahrul » Fri Nov 11, 2011 8:38 am

aurora WROTE:We need a write up of comparison chart between 8-, 16-, 32-bit uC. Any volunteer? :)

At this moment, all my project still success using PIC16. Some of that, almost reach of limit in term of memory.
Then I have try PIC18 and dsPIC. If my project can't go with PIC16 then I switch to PIC18 or dsPIC. I'm still to long to use PIC32.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: PIC32MX in DIP forms

Postby Brian Griffin » Fri Nov 11, 2011 10:05 am

aurora WROTE:Already? I have a lot catch up to do :( By the way, saw a good book about PIC32 on shelf, wonder if I should get it or not. hmm.
16-bit word of uC is really great stuff, I get amazing output for my application. Now should I spend on this one?

We need a write up of comparison chart between 8-, 16-, 32-bit uC. Any volunteer? :)


Abandoning the 16-bit dsPIC is not really a good idea - they have things that can speed up signal processing. Example, bit reversals (some thing required in Fast Fourier Transform) is very fast on a dsPIC compared to the ARM/PIC32 due to the instructions themselves. Some assembly routines inside can handle simple matrices if I'm not mistaken. Meanwhile, the PIC32s are very general purpose in nature and have limited DSP capabilities.

I reserve my 16-bitters for anything DSP related. However, the 32-bitters are very capable too, just that you may need extra work to write DSP routines on it.

I believe that the book you mentioned is by Lucio di Jasio. His book is very comprehensive and very complete. Previously I had contacted him about implementing RTOS and USB in his next publications.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PIC32MX in DIP forms

Postby Brian Griffin » Fri Nov 11, 2011 10:41 am

Here's a simple code to blink an LED for half-seconds, using PIC32MX120F32B:

CODE: SELECT_ALL_CODE
#pragma config POSCMOD=HS, FNOSC=PRIPLL
#pragma config FPLLIDIV=DIV_4, FPLLMUL=MUL_16, FPLLODIV=DIV_1
#pragma config FPBDIV=DIV_2, FWDTEN=OFF, CP=OFF, BWP=OFF

#include <p32xxxx.h>
#include <system.h>
#include "TimeDelay.h"
#include "HardwareProfile.h"
#include "GenericTypeDefs.h"

int main()
{
   ANSELA = 0x0000;
   ANSELB = 0x0000;
   TRISA = 0x0000;
   AD1CON1bits.ON = 0;    
    SYSTEMConfigPerformance(40000000);
    mOSCSetPBDIV(OSC_PB_DIV_2);
   
   while(1)
   {
      PORTAbits.RA0 ^= 1;
      DelayMs(500);
   }   
   
}


The maximum speed on this chip is only 40MHz (crystal 10MHz), and you have to put decoupling capacitors on the supply lines. Consult the datasheet for the basic connection diagrams.

It is compiled using MPLAB IDE 8.80 and MPLAB C32 v2.01. Please take note that only the latest versions of the compiler and the IDE are able to properly detect the chip through PICKit 3 and a complete compilation. 8-)

P.S: Also, the Timedelay.h, HardwareProfile.h, GenericTypeDefs.h and Compiler.h can be obtained from the Microchip Applications Library, or get it from the Cytron SKPIC32 tutorial folders.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PIC32MX in DIP forms

Postby ober » Sat Nov 12, 2011 7:37 am

Brian, great to see you are working on new PIC32 with PDIP package. Looking forward for a photo, I might be able to send to our facebook admin and share it out.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PIC32MX in DIP forms

Postby Brian Griffin » Sat Nov 12, 2011 11:24 am

ober WROTE:Brian, great to see you are working on new PIC32 with PDIP package. Looking forward for a photo, I might be able to send to our facebook admin and share it out.


I will send you a photo to your PM, and here too. :)

By the way, the newer PIC32s are a bit glitchy, and I just checked the errata. One of them is the PICKit 3 in MPLAB IDE detecting these as serial numbers 0x000000 instead of the meaningful ones (like the SKPIC32's '795MX512L, it is shown as a specific number).

Also, the TimeDelay.c used in the Microchip libraries for these chips are not functioning properly. I will see if there are workarounds for this problem.

On top of that, decoupling capacitors and a tantalum capacitor on Vcap is needed.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PIC32MX in DIP forms

Postby yonghui » Sat Nov 12, 2011 2:37 pm

great!.

heard that new PIC32 has more mux for the peripherals such as OC module, that we can reassign it to more alternative pins.
if anyone there using, pls confirm my confuses bout that.


regards,
yh
thanks&regards,
yh
yonghui
Professional
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: PIC32MX in DIP forms

Postby Brian Griffin » Sat Nov 12, 2011 3:02 pm

yonghui WROTE:great!.

heard that new PIC32 has more mux for the peripherals such as OC module, that we can reassign it to more alternative pins.
if anyone there using, pls confirm my confuses bout that.


regards,
yh


yeah they have those stuff. but you need to print the chart about the pin mapping in the datasheet- it's pretty huge. it's easier to refer onto the printed media when you work on the microcontroller.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron