Loading...
  Show Posts
Pages: 1 [2] 3 4 ... 7
16  Using Arduino / Programming Questions / Re: Serial - Issues reading and parsing on: March 09, 2013, 09:08:18 pm
Nicks code wasn't written for your problem. You should read it figure out whats happening and apply it to solve your problem. Try it yourself you have to experiment..
17  Using Arduino / Programming Questions / Re: help with alarm code on: March 09, 2013, 09:04:25 pm
In setup you need to attachinterrupt with some parameters. See link for learn to use that function.
http://arduino.cc/en/Reference/AttachInterrupt
18  Using Arduino / Programming Questions / Re: help with alarm code on: March 09, 2013, 08:54:36 pm
Where is the attacthinterrupt at I see nothing for setting up or handling an external interrupt.
19  Using Arduino / Programming Questions / Re: Serial - Issues reading and parsing on: March 09, 2013, 08:49:02 pm
How many time are we going to cover this topic? Thanks Nick G for providing that awesome example for handling multiple character with serial communications.
Don
20  Using Arduino / Programming Questions / Re: Question using an array on: March 04, 2013, 09:01:45 pm
I didn't realize there is special read functions to fetch values from flash memory.
I work on that thanks guys.
21  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};

22  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

23  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. 
24  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. 
25  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
26  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?
27  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..
28  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
29  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
30  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.
Pages: 1 [2] 3 4 ... 7