Go Down

Topic: Mighty-1284P core updated for Arduino 1.0.6 (Read 15390 times) previous topic - next topic

Constantin

#75
Jun 06, 2015, 02:39 pm Last Edit: Jun 06, 2015, 02:39 pm by Constantin
You guys are amazing. I started using the 1284p a few years back before switching most of my work to Teensy. However, some things are better done on an AVR, and the 1284p is perfect for my latest project, monitoring a multitude of 1-wire devices.  Thank you for updating the core/board/etc files to make it possible!!!

Quick question: why is the AVR-developer version not more popular a configuration? Having the hardware interrupt pins on otherwise unassigned pins seems like a much better solution than having them do double duty with RX1 and TX1.

oric_dan

#76
Jun 06, 2015, 08:10 pm Last Edit: Jun 06, 2015, 08:12 pm by oric_dan
I don't know what the developer variant says, but INT0,INT1 are fixed in chip hardware on the mega1284 on the same pins as RX1,TX1. Atmel did that, we have to live with it. If you want to use UART1, then you have only INT2 left, besides the pin-change interrupts.

Constantin

#77
Jun 06, 2015, 11:58 pm Last Edit: Jun 06, 2015, 11:59 pm by Constantin
Oric-Dan, thank you so much! Now I'll get to immerse myself in pcint libraries vs. suffering for ages trying to figure out why the AVR developer version of the chip isn't working. 

Too bad the hardware interrupts can't be handled by those pins. Would make life a lot easier for me. Anyhow, thank you, thank you, thank you. You probably just saved a tuft full of hair from early extinction.

GreyGnome

@Constantin- you mention pcint libraries. Thought I'd mention that 644/1284(p) support has been added to the EnableInterrupt library. See http://forum.arduino.cc/index.php?topic=313323

pico

#79
Jun 15, 2015, 06:28 pm Last Edit: Jun 15, 2015, 06:33 pm by pico
You guys are amazing. I started using the 1284p a few years back before switching most of my work to Teensy. However, some things are better done on an AVR, and the 1284p is perfect for my latest project, monitoring a multitude of 1-wire devices.  Thank you for updating the core/board/etc files to make it possible!!!
Just to note that development is still continuing with support recently added for the 1.6.x IDEs. I've created a new thread just for the 1.6.x updates:

Mighty-1284p repo updated for IDE 1.6.x

WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

mcnobby

I am still having trouble with my ATMEGA1284 with cores on 1.6.3

here is the trouble, if I try and output to a port (in C) it ALWAYS directs it to PortD

Code: [Select]
#define PIN 7
// PA7 drives PD7
// PD7 drives PD7 !
// PC7 drives PD7
// PB7 drives PD7
// Pin 7 drives PD7

void setup() {
  pinMode(PIN, OUTPUT);
}

void loop() {
  digitalWrite(PIN, HIGH);   
  delay(10);             
  digitalWrite(PIN, LOW);   
  delay(10);             


if I do this is ASM using
Code: [Select]
[port] "i" (_SFR_IO_ADDR(PORT_X))
then it works fine

This has driven me round the bend !
can anyone help please ?

http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

mcnobby

but yet it knows about port B because this works...

Code: [Select]
void setup() {
  DDRB = 11111111; //  pinMode(PIN, OUTPUT);
}

void loop() {
  PORTB = 11111111; // digitalWrite(PIN, HIGH);   
  delay(10);             
  PORTB = 00000000; //digitalWrite(PIN, LOW);   
  delay(10); 
}
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

pico

#82
Jun 27, 2015, 12:35 pm Last Edit: Jun 27, 2015, 12:38 pm by pico
If you are using the v1.6.3 branch of the repo, I suggest moving the question to that thread:

http://forum.arduino.cc/index.php?topic=321805.30

Don't forget to mention what variant you are using.
WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

Go Up