system
March 28, 2013, 7:18pm
1
I am using ADB to communicate with android app to arduino uno board..
But when i compile the program its giving DDRE AND DDRJ not declared within the scope..
http://english.cxem.net/arduino/arduino1.php
I am using the code from this site and i feel the problem is with adb library...
Please help
DDRx usually means Direct Data Register for port x.
Uno only has ports A,B,C,D.
Arduino Mega ADK has higher letter ports, up to L or M I think, have to check the '2560 data sheet.
system
March 28, 2013, 8:42pm
3
this is how my problem looks
Do you have the correct board selected?
system
March 29, 2013, 3:41am
5
Yup...I am using Arduino Uno with WiFi shield....
ssprasad1992:
I am using the code from this site and i feel the problem is with adb library...
It is. The Uno does not have a DDRE or a DDRJ register.
Try the MicroBridge library from here...
http://code.google.com/p/microbridge/
system
March 29, 2013, 5:38am
7
The problem persists....Same error
system
March 29, 2013, 6:18am
8
DDRE &= ~ 0x40;
DDRJ &= ~ 0x08;
DDRJ |= 0x04;
The error is with this in function void max3421e_init()...How can i modify this for my uno
You are trying to run software intended for a device with more hardware on microprocessor with less hardware.
UNO pin map - DDRA, DDRB, DDRC, DDRD supported
The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.
Mega/ADK pin map - DDRA, DDRB, DDRC, DDRD, DDRE, DDRF, DDRG, DDRH, DDRI, DDRJ, DDRK, DDRL supported
DDRE 0x40 refers to Port E bit 6
DDRJ 0x08 refers to Port J bit 3
DDRJ 0x04 refers to Port J bit 2
So you need to move those IO pins to pins that your Uno supports within Ports A,B,C,D and change the the DDRE & DDRJ references accordingly.