chipKIT Max32

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

chipKIT Max32

Postby epulleh » Mon Mar 18, 2013 10:44 pm

Hi there,

I need some advice from you to settle down my problem. I am already download your suggestion software, called MAX32 uses modified Arduino IDE (MP IDE) but for my project, not has many reference that I can refer.

In cytron website, your description for product 'chipKIT Max32 Development Board' says The Max32 can be programmed using an environment based on the modified Arduino™ IDE. In addition, the Max32 is fully compatible with the advanced Microchip MPLAB® IDE and the PICKit3 in-system programmer/debugger (refer : http://www.cytron.com.my/viewProduct.ph ... nt%20Board).

My question is,
1. how the MP LAB compatible to Max32 Development Board? It because if I select device, but the board not connect / cannot debug by using MP LAB. so, what can I do? Is it I need download any compiler for MP LAB or MP LAB X or how?
2. If i stay want to use MP IDE that you suggest, any reference that can i refer for language or coding. because all the tutorial/example that i refer in website. it just the same with MP IDE. how if i want to write coding ADC bg using 8Leds.
ADC coding
led1=0b 00000001
led2=0b 00000010
led3=0b 00000100 and so on. any anyone can help :(
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Re: chipKIT Max32

Postby robosang » Tue Mar 19, 2013 9:55 am

epulleh WROTE:Hi there,
My question is,
1. how the MP LAB compatible to Max32 Development Board? It because if I select device, but the board not connect / cannot debug by using MP LAB. so, what can I do? Is it I need download any compiler for MP LAB or MP LAB X or how?
2. If i stay want to use MP IDE that you suggest, any reference that can i refer for language or coding. because all the tutorial/example that i refer in website. it just the same with MP IDE. how if i want to write coding ADC bg using 8Leds.
ADC coding
led1=0b 00000001
led2=0b 00000010
led3=0b 00000100 and so on. any anyone can help :(


My 1st question back will be how is the hardware setup for the use of MPLAB IDE? I do not have chipKIT, but from what I understand, it uses PIC32 from Microchip and MPLAB IDE is from Microchip and for sure they should make it to support their own microcontroller right? Do you have PICkit3 as stated?

Your 2nd question confused me more..... It just the same with MP IDE? Don really get you, does the software come with sample code for ADC?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby shahrul » Tue Mar 19, 2013 10:23 am

As I know,
If program chipKIT MAX32 with MPLab, program it by ICSP. Then, need to use PicKit 3. I don't know program MPLab to chipKIT MAX32 throught USB.
If program chipKIT MAX32 with MPIDE, program it by USB throught their bootloader.

Programming with MPLab, you need to know the configuration well. Programming with MPIDE, just throught bootloader so you no need to set configuration.
SKPIC32 also can have the bootloader and operate as chipKIT MAX32, example.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: chipKIT Max32

Postby robosang » Tue Mar 19, 2013 10:48 am

OK, now understand more. Similar to Arduino UNO and many other Arduino main board. Where the microcontroller is loaded with bootloader and uses UART to load program. You can also use ISP to load program, but another device is needed.

In that case, you need PICkit3 to use with MPLAB IDE.

Bear in mind, that once you load program into the chipKIT using ICSP or the PICkit3, the bootloader disappear, and you cannot use the MP IDE to load program anymore, until you load the bootloader firmware into the chipKIT using PICKit3
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby epulleh » Tue Mar 19, 2013 10:56 am

Oh.. sorry :( I'm not expert about that. Sorry for ask you so many.

If like that, I think I choose to use that Cytron suggest before (Arduino MP IDE). Can you assist me, how can I get or link the instruction set for Arduino MP IDE? For my reference to make programming.

Thank :D
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Re: chipKIT Max32

Postby shahrul » Tue Mar 19, 2013 11:25 am

epulleh WROTE:Oh.. sorry :( I'm not expert about that. Sorry for ask you so many.

If like that, I think I choose to use that Cytron suggest before (Arduino MP IDE). Can you assist me, how can I get or link the instruction set for Arduino MP IDE? For my reference to make programming.

Thank :D

This is the idea how to use ChipKIT MAX32 with various device.
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 1:37 am

By using MP IDE, how to make program ADC configuration to parallel digital output?
Example:
led1=0b 00000001
led2=0b 00000010
led3=0b 00000100
Anyone can help me :?:
epulleh
Freshie
 
Posts: 7
Joined: Mon Mar 18, 2013 9:45 pm

Re: chipKIT Max32

Postby shahrul » Wed Mar 20, 2013 5:29 am

epulleh WROTE:By using MP IDE, how to make program ADC configuration to parallel digital output?
Example:
led1=0b 00000001
led2=0b 00000010
led3=0b 00000100
Anyone can help me :?:

In this case, use MPLAB is easier than MPIDE because MPLAB works with PORT but MPIDE works with pin no or bit.
Ex use MPIDE
CODE: SELECT_ALL_CODE
  i=analogRead(A0);
  if((i>>0&0x01)==1) digitalWrite(2,HIGH);
  else digitalWrite(2,LOW);
  if((i>>1&0x01)==1) digitalWrite(3,HIGH);
  else digitalWrite(3,LOW);
  if((i>>2&0x01)==1) digitalWrite(4,HIGH);
  else digitalWrite(4,LOW);
  if((i>>3&0x01)==1) digitalWrite(5,HIGH);
  else digitalWrite(5,LOW);
  if((i>>4&0x01)==1) digitalWrite(6,HIGH);
  else digitalWrite(6,LOW);
  if((i>>5&0x01)==1) digitalWrite(7,HIGH);
  else digitalWrite(7,LOW);
  if((i>>6&0x01)==1) digitalWrite(8,HIGH);
  else digitalWrite(8,LOW);
  if((i>>7&0x01)==1) digitalWrite(9,HIGH);
  else digitalWrite(9,LOW);
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 10:16 am

Does it have whole port writting? Arduino does have, but is not commonly used. Write to the port like normal C language.

PORTB = 0b00010010;

this is possible.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: chipKIT Max32

Postby shahrul » Wed Mar 20, 2013 10:24 am

robosang WROTE:Does it have whole port writting? Arduino does have, but is not commonly used. Write to the port like normal C language.

PORTB = 0b00010010;

this is possible.

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Next

Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 0 guests

cron