chipKIT® Development Platform

Inspired by Arduino™

Problem with Max32

Created Tue, 27 May 2014 17:51:08 +0000 by jayanthd


jayanthd

Tue, 27 May 2014 17:51:08 +0000

Hi

I purchased chipKit Max32 latest board and found that LD5 (LED) is connected to pin 6. I added int ledPin = 6; in the blink sketch and uploaded it to Max32 but the LD5 doesn't blink or turn ON. Have I received defective board? I purchased it from Microchip.


majenko

Tue, 27 May 2014 18:05:52 +0000

No, because LD5 isn't on pin 6, LD5 is on pin 86.

Also, the Blink sketch in MPIDE doesn't use an "int ledPin" variable, but #define macros, such as PIN_LED1 and PIN_LED2 (PIN_LED1 by default). Changing them to PIN_LED2 will make LD5 blink without you having to know which pin it's attached to.


jayanthd

Tue, 27 May 2014 18:11:47 +0000

No, because LD5 isn't on pin 6, LD5 is on pin 86. Also, the Blink sketch in MPIDE doesn't use an "int ledPin" variable, but #define macros, such as PIN_LED1 and PIN_LED2 (PIN_LED1 by default). Changing them to PIN_LED2 will make LD5 blink without you having to know which pin it's attached to.

Thank you very much. I was checking PORTC pin 6 in schematic and thought it to be mapped to pin 6 of header.

I used

int ledPin1 = 13; int ledPin2 = 12;

in sketch for Uno32 and uC32 and they worked. I will try pin 86 for LD5 on Max32 and update.