chipKIT Max32

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

Re: chipKIT Max32

Postby robosang » Wed Mar 20, 2013 11:14 am

shahrul WROTE:That is possible to write PORTB = 0b00010010; but many beginner user not know RB0 is which pin, RB1 is which pin, RB2 is which pin.


Betul tu! :D
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby Brian Griffin » Wed Mar 20, 2013 12:59 pm

There are PORTBSET, PORTBCLR and PORTBTG (don't remember how to spell it) too. They are very convenient if you happen to manipulate bits as quick as possible.
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: chipKIT Max32

Postby shahrul » Wed Mar 20, 2013 2:01 pm

Brian Griffin WROTE:There are PORTBSET, PORTBCLR and PORTBTG (don't remember how to spell it) too. They are very convenient if you happen to manipulate bits as quick as possible.

That's true. I see the little in the PIC32 datasheet, but not have many times to play around yet, :D
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: chipKIT Max32

Postby epulleh » Wed Mar 20, 2013 3:00 pm

TQ very much..
One more question. If I'm using MPLAB and able to generate hex file, can I load this hex file to ChipKIT Max32 through MPIDE?
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Re: chipKIT Max32

Postby shahrul » Wed Mar 20, 2013 3:11 pm

epulleh WROTE:TQ very much..
One more question. If I'm using MPLAB and able to generate hex file, can I load this hex file to ChipKIT Max32 through MPIDE?

No
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: chipKIT Max32

Postby robosang » Wed Mar 20, 2013 3:14 pm

Not that straight forward :) Because chipKIT itself uses bootloader, and the bootloader firmware on PIC32 will be take some place in the program memory. Loading new code which might overlap with this bootloader will carsh the bootloader process and cause it to stop working....

Except you find out where is the bootloader being put and use linker on MPLAB IDE to reserve that location.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby epulleh » Fri Mar 22, 2013 1:03 am

Sir,
1. How to set up USB Communication through MP IDE :?: For example that provided, which one I can refer for sending data between PIC to USB :?:

2. how to make coding to send data 10 bit of LEDs :?:

Thank a lot :mrgreen:
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Re: chipKIT Max32

Postby Brian Griffin » Fri Mar 22, 2013 5:25 pm

If you need to upload hex file from MPLAB X-IDE (with XC32), you have to wipe out the bootloader, and use PICKit 3 with it. Otherwise, you have to use the chipkit compiler with it.

The PIC32 is not totally that difficult, with the datasheet. Most of the registers are very straight-forward and easy to manipulate.
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: chipKIT Max32

Postby robosang » Fri Mar 22, 2013 10:46 pm

That's the major problem, those that uses chipKIT or Arduino don want to refer datasheet :)
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby Brian Griffin » Wed Mar 27, 2013 12:11 pm

robosang WROTE:That's the major problem, those that uses chipKIT or Arduino don want to refer datasheet :)


PIC32 is considered simple, if you checked the datasheet. Microchip is very generous about giving a lot of examples in their datasheets. It isn't too tedious because they explained each things inside word by word.

On the other hand, the STM32 and the Atmel SAM (ARM Cortex m3 in Arduino Due) series are not really forgiving. The ports itself in these microcontrollers are very hard to manipulate and they are never been straightforward.
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

PreviousNext

Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 25 guests

cron