Show Posts
Pages: [1] 2 3 ... 54
1  Using Arduino / Microcontrollers / Re: The maximum limit on the downloaded program on arduino uno on: September 20, 2014, 10:48:52 pm
Agreed. There should be about 30K free. If it uploads it fits.

The problem is probably RAM (any large static arrays?)
2  Using Arduino / Microcontrollers / Re: Best ADC? on: September 19, 2014, 01:13:26 pm
There are plenty of external ADCs available with even 16 bit precision.
If you need more than 10 bits that is the way I would go
3  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 19, 2014, 12:48:12 pm
I am trying to suss out a bug I have with t13.. I am using EEPROM.h and im just wondering if when I upload the program it wipes the eeprom, how can I stop this with t13 ? (I think I had a similar problem with t85 before but got over that after someone on here helped) - Thanks in advance
Not a bug. Its because the Arduino IDE is passing the erase chip option to avrdude.

The way around it (AFAIK) is to upload manually with avrdude which is a pain
-edit-
oops coding badly has a better option. I forgot about the fuse
4  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 18, 2014, 02:38:14 pm
The mind boggles at how F_CPU could affect uploading at all.
Quote
To be honest with the settings I have (1200000) it seems that the micro is running alot faster than 9.6 but Im not sure what speed it is...
Its possible that it is running a little faster (10-15%) due to clock tolerances

Not likely to be "alot" faster.
5  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 04:02:22 pm
Change it back to 9600000. If you burned the fuses listed above you are already running at ~9.6MHz
but the core thinks it is is running at 1.2MHz

I don't know about PROGMEM. I think it works. not sure why it would crash (out of RAM?)
6  Using Arduino / Microcontrollers / Re: LEDFader (backgrounded, non-blocking PWM fader) on 328P-on-a-breadboard flickers on: September 17, 2014, 02:59:45 pm
Might be hardware.

Are you using resistors on your LEDS?
I suggest putting a pullup resistor from Reset to +VCC
Are you using capacitors across VCC?
Is your incoming voltage reasonably clean?
7  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 02:54:45 pm
Ok, I found my error, but not sure why this works....

Code:
attiny13.build.f_cpu=1200000L

thats all I changed and it works... although, the timings are well out of the window

I am measuring micros() and the results are 10x what they should be (eg 1040 to measure 104us)

I can live with that for now, as soon as I sussed these two problems, everything started to work

I love my T13's, although they are way short on ram after the compiler gets hold of things, not sure where 20 bytes are going, any clues ?? lol


You need to match the F_CPU and the fuses. Chances are changing F_CPU "fixed" it by coincidence only
since it shouldn't effect programming at all.

As far as RAM goes.. What is your code?
The core will naturally require some RAM and avr-libc might use some too.
8  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 17, 2014, 01:28:19 pm
Hi, I got my t13's !! smiley

HELP, I have a problem... I cant write the bootloader to 9.6mhz, I get the following error...

Code:
avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x3f
avrdude: verification error; content mismatch

I am sure I have all my boards.txt entry correct

Code:
attiny13.name=Attiny 13A 9.6mhz
attiny13.upload.using=arduino:arduinoisp
attiny13.upload.maximum_size=1024
attiny13.upload.speed=19200
attiny13.bootloader.low_fuses=0x7A
attiny13.bootloader.high_fuses=0xFF
attiny13.bootloader.path=empty
attiny13.bootloader.file=empty
attiny13.bootloader.unlock_bits=0xFF
attiny13.bootloader.lock_bits=0xFF
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=9600000L
attiny13.build.core=core13
That is a chip programming error.

What kind of programmer? An Arduino?
If so, did you add a reset prevention capacitor? You need atleast about 0.5uF from reset to ground (others say you need more
but I have used 0.56u with no problem)

If you are using a dedicated chip programmer, what kind is it?
9  Using Arduino / Microcontrollers / Re: What's this I found on eBay? on: September 13, 2014, 04:57:23 pm
Quote
The move from 8 to 32 bit architecture might get me a 4x speed improvement, so I would need another 3x clock speed improvement also
Not necessarily. It is possible to make up that much through software optimizations sometimes
10  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 13, 2014, 04:51:30 pm
Keep in mind  the timing of the RC oscillators is hit or miss.
Also core13 is designed to minimize the amount of timer interrupts and thus has less granularity
How close to 50uS do you need?
11  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 13, 2014, 12:40:20 pm
Quote
I have just 90 bytes left to squeeze in an up/down button input to set the DMX receive channel
Well that isn't necessarily true. When you switch to a different core the compiled code size may go up or down
12  Using Arduino / Microcontrollers / Re: arduino ADC and FFT on: September 11, 2014, 09:20:04 pm
Need to see the code to see where it is going wrong.
Have you seen this thread: http://forum.arduino.cc/index.php?topic=6549.0
13  Using Arduino / Microcontrollers / Re: Something wrong with ATTiny85 and its 2 PWM outputs on: September 11, 2014, 09:14:06 pm
You need resistors on the LEDS. You may be drawing too much current through the microcontroller causing a reset loop.
If you keep using it like that you WILL burn something out
14  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 06, 2014, 05:42:11 pm
This is brilliant !! Good work SmeezeKitty, I have been looking for a way to use 13's from my IDE and this is perfect

Ideally I want to run at 8mhz, I guess others have commented on this too, but I havent read all 16 pages of posts yet

Are the cores stable ? on page 1 you mentioned that alot is untested, is this still the case ?

Regards Bob
It runs fine on 8MHz but you need to use an external oscillator (which uses up an I/O pin)
The internal clock options are 128KHz, 600KHz, 1.2MHz, 4.8MHz, 9.6MHz
None of which are particularly accurate  smiley-razz
But they are R/C oscillators

It is pretty stable now. At first I had a lot of problems with hanging especially during I/O
but I think I have that problem more or less solved. There are still some functions I have not thoroughly tested.
Partly because it isn't that easy to test without UART. And partly because I haven't had much time lately.
15  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 02, 2014, 01:30:09 am
First release (minor update) of 2014
Pages: [1] 2 3 ... 54