Pages: 1 ... 18 19 [20] 21 22 ... 32   Go Down
Author Topic: ATMEL Mega1284P evaluation board avalible  (Read 70317 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You must have much younger eyes than I do smiley-grin
I stopped to get some +3.0 reading glasses on the way home so I can see the little parts more clearly tomorrow.

Still trying to get my bootloading capability back, I seem to have lost the touch, see this thread, writing things as I go.
http://arduino.cc/forum/index.php/topic,67129.msg494716.html#msg494716
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2071
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using 3+ as well  smiley-eek purchased in a supermarket for this exact purpose..
Important is not to solder your nose in as well.. smiley-yell
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

First pair of "Bobuino"s are assembled &  minimally programmed! Spent a couple hours with my good friend Skyjumper, my son, and wife, got a little assembly line kind of thing going, me putting down solder paste & handing out parts, son placing parts on  1st and wife on 2nd , Skyjumper guiding us along in our first ever surface mount assembly project and driving the oven, group effort to find & fix the solder shorts on the FTDI chips.
Skyjumper got them bootloaded for me via ISP (I somehow managed to not bring a mini-USB cable out of all the toys we took down, only had regular USB and the large square kind between us).
Time to figure out how to do that with my tools, and write some sketches to show everything works now ...

Skyjumper, thank you again for all the help, and your wife for lunch!, and letting us use your tools.

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17292
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice progress. Good luck on the alfa software/firmware tests. Suspect there will be a need for a nice single zip file that includes all the nessesary file changes and additions and a read.me file for installation instructions.

Lefty

Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Lefty.  That's what I'm thinking also.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1330
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


  Beautiful job on the boards! Way to go!

Mark
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks smiley
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Very impressive looking boards you got there!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Mowcius. Finally got enough software pieces in place late last night that I can now select the board, compile, and make Blink - tho not on the pin I expected.
I think I am using the Sanguino-based pinout,
http://www.crossroadsfencing.com/pins_duino644.cxx I recreated it as pins_duino.1284.cxx (just added some comments, no actual changes).
I'm not sure how to follow the assemblage path to see that it gets used.
I have the L LED on the SCK line, yet I need to toggle D15 instead of D13 to make it turn on/off.
So I'm thinking I don't understand the software setup fully yet.
Going to play some more today, see what the other pin assignments ended up as.

Here's what I want it to be, not sure how to make it so.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, here's what I've figured out by working 0-31 thru Blink:
PB0-PB7 are working as D8-D15  >> wanted D4-D13
PD0-PD7 are working as D24-D31 >> wanted D0-D3, PD4, D8,D9, PD7
PC0-PC7 are working as D16-D23 >> hadn't assigned #s
PA0-PA7 are working as D0-D7 >> wanted D14-D19

What file do I change so that a shield expecting D0-D19 gets D0-D19?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2071
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

.. try pins_arduino.c ..
the pins are referenced by their position (the order) within

digital_pin_to_port_PGM[]
digital_pin_to_bit_mask_PGM[]
digital_pin_to_timer_PGM[]

P.

PS: in case you want to use sdfat lib you have to modify sd2PinMap.h (add the 1284p defs, SPI port defs, e.g. "BahBots" like)..
« Last Edit: July 24, 2011, 12:35:14 pm by pito » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, that's gonna take me a bit to comprehend. Seems to be a ton of stuff listed  under
Code:
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)

and if not it is mapped to the 168
Code:
#else
// these arrays map port names (e.g. port B) to the
// appropriate addresses for various functions (e.g. reading
// and writing)
const uint16_t PROGMEM port_to_mode_PGM[] = {
NOT_A_PORT,
NOT_A_PORT,
&DDRB,
&DDRC,
&DDRD,
};

So this would need to add something like this?
Code:
#if defined(__AVR_ATmega1284__)
and add similar stuff as the 1280/2560
and change the existing #else to this?
Code:
#if defined (__AVR_ATmega168__) || defined(__AVR_ATmega328__)
or leave it as is, with the #else etc. being after the last of the 1284 code?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2071
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

.. forget 1280 and 2560 - those have nothing to do with 1284p in any respect, 1284p=644p=32 as the pins are concerned..

download arduino-extra.zip
http://www.avr-developers.com/corefiles/index.html

and when required modify pins_duino644.cxx   == 1284p

See my last post on sdfat chages when runnig with 1284p/
P.


« Last Edit: July 24, 2011, 12:48:47 pm by pito » Logged

Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 3
Posts: 843
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Crossroady, you're very welcome, and also welcome back any time. We can get a full fledged assembly line going and make the last 10 boards!

I sent you a spreadsheet that matches port designations to arduino "digital pins." You do not need to modify the avr-developer cores, they work out of the box, including the pins files. Because the DIP package has different pin out than the SMT package we used on my board, you can't use my spreadsheet to map the physical pin number directly to the digital pin. But you can use it to map port to digital pin number.

If you need me to, I'll add another column for DIP physical pin number. but I expect you are ontop of that.

The data iin that spreadsheet is all tested. I also used that to add 1284 support to the NewSoftSerial library.

Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
[code]Ok, how's this look for a start to go the pinouts defined above?
Gotta run out for a while, next section (& corrections to this one) later...

Missed the previous 2 while typing this - please see if this is making sense...

// New definition added for ATMega1284 for use on "Bobuino"
// Just 4 ports, A,B,C,D
#if defined(__AVR_ATmega1284__)
const uint16_t PROGMEM port_to_mode_PGM[] = {
   NOT_A_PORT,
   &DDRA,
   &DDRB,
   &DDRC,
   &DDRD,

};

const uint16_t PROGMEM port_to_output_PGM[] = {
   NOT_A_PORT,
   &PORTA,
   &PORTB,
   &PORTC,
   &PORTD,

};

const uint16_t PROGMEM port_to_input_PGM[] = {
   NOT_A_PIN,
   &PINA,
   &PINB,
   &PINC,
   &PIND,

};

const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
   // PORTLIST      
   // -------------------------------------------      
   PD   , // PD 0 ** 0 ** USART0_RX   
   PD   , // PD 1 ** 1 ** USART0_TX   
   PD   , // PD 2 ** 2 ** USART1_RX   
   PD   , // PD 3 ** 3 ** USART1_TX

   PB   , // PB 0 ** 4 ** D4   
   PB   , // PB 1 ** 5 ** D5   
   PB   , // PB 2 ** 6 ** D6   
   PB   , // PB 3 ** 7 ** D7, PWM

   PD   , // PD 5 ** 8 ** PWM
   PD   , // PD 6 ** 9 ** PWM
      
   PB   , // PB 4 ** 10 ** SPI_SS, PWM   
   PB   , // PB 5 ** 11 ** SPI_MOSI,
   PB   , // PB 6 ** 12 ** SPI_MISO   
   PB   , // PB 7 ** 13 ** SPI_SCK

   PA   , // PA 0 ** 14 ** A0   
   PA   , // PA 1 ** 15 ** A1   
   PA   , // PA 2 ** 16 ** A2   
   PA   , // PA 3 ** 17 ** A3   
   PA   , // PA 4 ** 18 ** A4   
   PA   , // PA 5 ** 19 ** A5   

// start of new pins
   PA   , // PA 6 ** 20 ** A6   
   PA   , // PA 7 ** 21 ** A7
   
   PC   , // PC 0 ** 22 ** I2C_SCL   
   PC   , // PC 1 ** 23 ** I2C_SDA   
   PC   , // PC 2 ** 24 ** D24   
   PC   , // PC 3 ** 25 ** D25   
   PC   , // PC 4 ** 26 ** D26   
   PC   , // PC 5 ** 27 ** D27   
   PC   , // PC 6 ** 28 ** D28  // USD_SS   
   PC   , // PC 7 ** 29 ** D29  //

   PD   , // PD 4 ** 30 ** D30  //SD_SS, PWM
   PD   , // PD 7 ** 31 ** D31  // RTC INT, PWM
      
};
[/code]
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: 1 ... 18 19 [20] 21 22 ... 32   Go Up
Jump to: