Show Posts
Pages: 1 2 [3] 4 5 ... 8
31  Using Arduino / Programming Questions / Re: Question using an array on: March 04, 2013, 07:51:24 pm
Thank for your reply Nick.
I changed those arrays too below and the library still operates perfectly.

Code:
#include <avr/pgmspace.h>

prog_uchar rxPins[] = {5,6,7,8,9,10,11};
prog_uchar cdPins[] = {21,20,19,18,02,03};

32  Using Arduino / Programming Questions / Question using an array on: March 04, 2013, 06:34:31 pm
Hi
 I have an array of pin numbers they are part of a library and I'm using them with interrupts
External Interrupts and with Timer 3 output compare. I have declared the array as volatile I was wondering if I could put this array in flash memory since it the values never change? How would I do that inside a library? I'm using the values stored for digitalWrite and digitalRead. It works as I have it just fine but I'm wasting 12 bytes on sram do it the way I have below I'm using the 2560 board.
Thanks
Don

Code:
// variable used by interrupts
volatile uint8_t eomFlag = 0;
volatile uint8_t rxPins[] = {5,6,7,9,10,11};         // would like to put in flash memory
volatile uint8_t cdPins[] = {21,20,19,18,02,03};  // would like to put in flash memory

33  Using Arduino / Microcontrollers / Re: ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 08:36:46 pm
I use to use ICE200 with the AT90S2313 and the AT90S8515. I purchased a JTAGICE from ebay and loved how it how it worked with AVR Studio. So will the 1284p work better with a resonator then I was reading over a thread you guys where working on using 16 Mhz crystals with Opiboot. 
34  Using Arduino / Microcontrollers / Re: ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 08:16:43 pm
I was planning on using Optiboot with a 16 Mhz crystal. I've used JTAG with AVR Assembler projects I didn't know it was available to with Arduino. 
35  Using Arduino / Microcontrollers / Re: ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 08:10:43 pm
Thanks I'll read that over I appreciate your replies Don
36  Using Arduino / Microcontrollers / Re: ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 08:09:33 pm
Before you load the bootloader don't I have to set fuses in the brand new ATMega1284p I got from Mouser.
All chip come running with internal oscillators correct?
37  Using Arduino / Microcontrollers / Re: ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 08:03:42 pm
I didn't see 16Mhz to pick from that is the crystal I plan to use with the 1284p. I saw 3.0 to 8.0 and at the bottom it had 8.0 I wasn't sure if that meant 8.0 Mhz and above. I could try to include a picture of the selection box..
38  Using Arduino / Microcontrollers / ATMega1284p new chip fuse selections in AVR Studio 4.13 on: February 17, 2013, 07:48:11 pm
Hi
I'm using AVR Studio 4.13 still and I was setting fuses for a brand new ATMega1284p chip.
Should I turn off JTAG operation? ISP has been enabled. Brownout is set for 2.7 volts
How large of a bootloader should I select? I selected 8.0Mhz -  crystal with the longest startup delay.
Will these setting work? Does anyone have a opinion on what I fuses I should select.
This is my first time setting fuses to use an AVR for Arduino use.
Thanks
Don
39  Using Arduino / Programming Questions / Re: Anyway to get bigger font size while programming on: February 15, 2013, 10:10:31 pm
I now have a special pair for soldering cant see the components to well now
40  Using Arduino / Programming Questions / Re: Web Page wont load on: February 11, 2013, 08:48:16 pm
http://playground.arduino.cc/Main/Printf
Look in the middle of the page.
41  Using Arduino / Project Guidance / Re: Logic analyser on: February 03, 2013, 12:26:53 pm
Do you need to capture pin state on the 8 channels? I have a logic analyzer but never use it to show glitch. Ive only use to to record pin state and debug the 68hc11 and 8048 8051 series mpu.

42  Using Arduino / Project Guidance / Re: Security System on: February 03, 2013, 12:08:23 pm
My dvr has an alarm input so I have a small relay that triggers it to record in high quality mode.
43  Using Arduino / Project Guidance / Re: How to upgrade clock frequency of Uno R3? on: February 03, 2013, 11:59:06 am
The 25% speed bump does seem worth all the new problems. Timer 0 is used for delays and the bootloader speed change too.
Don
44  Using Arduino / Programming Questions / Re: Using serial.print to debug a library on: January 27, 2013, 04:30:30 pm
Paul
If you passed a pointer instead of a instance would you test to see if the pointer = NULL in the class member Begin()? before trying to use it. I'm trying to follow along here so get more experience.
I wonder of possible use myself.
Don
45  Community / Local Groups / Any Groups or person from Chicago,Il. on: January 27, 2013, 11:26:10 am
Hi
Is there a Group of Arduino user or persons in Chicago that want to start a group?
I live near Midway Airport here in Chicago.
Don
Pages: 1 2 [3] 4 5 ... 8