Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / Programming Questions / Re: Refering to pins on: November 18, 2013, 07:36:58 pm
Thanks all.
I guess I was expecting more of the compiler than it was able to supply.
I think I'll build an include for each of the chip families I work with to define the constants.
2  Using Arduino / Programming Questions / Re: Refering to pins on: November 18, 2013, 06:10:47 pm
Then its fair to say that you should never use constants defined in other includes.  Is that right?
3  Using Arduino / Programming Questions / Re: Refering to pins on: November 18, 2013, 04:54:30 pm
One thing I have noticed is that on the tiny85 this works:
Code:
attachInterrupt(0,isrResponse,HIGH);
but this does not:
Code:
attachInterrupt(INT0,isrResponse,HIGH);
.  INT0 is a constant '6' not '0'.  Sounds like a bug in the include files somewhere.
4  Using Arduino / Programming Questions / Re: Refering to pins on: November 18, 2013, 04:09:40 pm
Thanks again.
Starting to make better sense now.  The Intellisense on my Visual Studio for Arduino must get its input from this file....
5  Using Arduino / Programming Questions / Re: Refering to pins on: November 18, 2013, 02:14:31 pm
Thanks Jack.
The definitions are in my file:
Code:
C:\Program Files\Arduino\hardware\attiny\variants\tiny8
I assume that's the right one.  So I can refer to pin 7 as "PB2" for I/O or "INT0" when I use it as an interrupt.  Is that correct?
How are the other references used (the 'D' the '2' and the 'Ain1')? 
6  Using Arduino / Programming Questions / Refering to pins on: November 18, 2013, 12:43:11 pm
I'm confused.
I am attempting to write a small sketch that uses the tiny85 and its interrupt system.  I have my IDE setup to work with the tiny85 and an ISP and this works fine.  The problem I'm having is just how to refer to the pins on the tiny85.  For example.
In the AVR docs Pin 7 is labeled "PB2 (SCK/USCK/SCL/ADC1/T0/INT0/PCINT).  If I want to use that pin as an I/O pin I refer to it as PB2.  If I want to connect an external interrupt to it do I refer to it as INT0 or PB2.  Where are these defined? 

Is this all made clear somewhere?
7  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 02, 2013, 09:37:31 am
That was the trick.
Thanks Badly...
8  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 02, 2013, 09:22:04 am
I see what you mean.  I reverted back to vers 1.0.4 on the Arduino IDE and the tiny's all show up.
I think I'll switch back to 1.04 for what I do for a while. 1.5.4 causes me to many problems.
9  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 02, 2013, 09:02:53 am
URL on that one?
10  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 02, 2013, 01:40:30 am
https://github.com/damellis/attiny
11  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 01, 2013, 05:16:51 pm
I'm not sure what you mean by 'core' but this is what I have.
Arduino 1.5.4
usbtinyisp w32 driver v1.12
attiny downloaded from GitHub in the hardware directory of my Arduino IDE.

I also have the Atmel Studio 6.1 and the Atmel STK600 that seem to work fine. I use that for the ATMega2560 programming.
I also have MS Visual Studio 2012 and Visual Micro that I use to program my other Arduino boards.

What else do I need?
12  Using Arduino / Microcontrollers / Re: Arduino 1.5.4 and Tiny AVR Programmer on: November 01, 2013, 04:49:20 pm
Core what?
13  Using Arduino / Microcontrollers / Arduino 1.5.4 and Tiny AVR Programmer on: November 01, 2013, 02:27:51 pm
Has anyone managed to get the Arduino 1.5.4 to find the Tiny chips under Tools>board?  I cannot!
14  Using Arduino / Project Guidance / Load Sketch via Ethernet on: September 27, 2013, 02:18:30 pm
Is it possible to load a sketch to an Ethernet Arduino?
How about push or pull updating via the internet?
15  Using Arduino / Networking, Protocols, and Devices / Re: Cant connect to localhost on: July 15, 2013, 11:57:02 am
I *think* my router will do that as well (Asus RT-AC66U)  I'll look into it.
Thank you for all  your help Tim.  You are a paragon among Arduino users.
Pages: [1] 2 3 ... 5