Welcome! Log In Create A New Profile

Advanced

Pins.h in Marlin Firmware

Posted by GowthamJGR 
Pins.h in Marlin Firmware
November 03, 2012 02:11AM
Hi,

I have a doubt in pins.h in Sanguino atmega644P (I am using Gen6 Motherboard) and how do they write it ?

Some example codes in Marlin --> pins.h

#define X_STEP_PIN 15
#define X_DIR_PIN 18
#define X_ENABLE_PIN 19
#define X_MIN_PIN 20
#define X_MAX_PIN -1

here 15,18,19,20,-1 represents pin and how does it relate with Microcontroller. I was bit confused with Merging Electronics with this and presence of -1 here

Thanks in advance for your help
Re: Pins.h in Marlin Firmware
November 07, 2012 02:49AM
If you hold the IC in front of you with the text up right, you can count the pins as follows:

Top left: 1
Top right: 40 (last pin)



-1 means unused (but the software needs the define, otherwise the program will crash)
Re: Pins.h in Marlin Firmware
June 20, 2013 07:41AM
The pins for the DIP and surface mount IC have a different layout, So the above IS NOT correct for a GEN6 board as it has the 44pin SMT IC fitted.

Check the Atmel 644p data sheet and use the port numbers as reference.
Re: Pins.h in Marlin Firmware
June 25, 2013 10:38AM
Slymike, no wories I used the DIP package upgraded to sanguinololu1.3a so it suited me smiling smiley also done in Gen6 by taking into account of port !

Thanks for the contribution to help me smiling smiley


Enjoy life smiling smiley
Sorry, only registered users may post in this forum.

Click here to login