Go Down

Topic: New ATTiny Part (ATTiny841) (Read 36029 times) previous topic - next topic

jstamour802

Has anyone made any progress on a working core for this? This chip looks great, good bang for the buck.




Tom Carpenter

I had been planning on it but as it isn't supported in the version of avr-gcc used in the standard Arduino IDE, I haven't yet bought one of the chips.

As a start though, I have found that somebody has got AVRDUDE to program them. [Code below sourced from here: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1121049 ]
Add this to the avrdude.conf
Code: [Select]
#------------------------------------------------------------
# ATtiny841
#------------------------------------------------------------

part
id = "t841";
desc = "ATtiny841";
has_debugwire = yes;
flash_instr = 0xB4, 0x07, 0x17;
eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
0x99, 0xE1, 0xBB, 0xAC;
## no STK500 devcode in XML file, use the ATtiny45 one
stk500_devcode = 0x14;
## avr910_devcode = ?;
## Try the AT90S2313 devcode:
avr910_devcode = 0x20;
signature = 0x1e 0x93 0x15;
reset = io;
chip_erase_delay = 4500;

pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
"x x x x x x x x x x x x x x x x";

chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
"x x x x x x x x x x x x x x x x";

timeout = 200;
stabdelay = 100;
cmdexedelay = 25;
synchloops = 32;
bytedelay = 0;
pollindex = 3;
pollvalue = 0x53;
predelay = 1;
postdelay = 1;
pollmethod = 1;

hvsp_controlstack =
0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
hventerstabdelay = 100;
hvspcmdexedelay = 0;
synchcycles = 6;
latchcycles = 1;
togglevtg = 1;
poweroffdelay = 25;
resetdelayms = 0;
resetdelayus = 70;
hvleavestabdelay = 100;
resetdelay = 25;
chiperasepolltimeout = 40;
chiperasetime = 0;
programfusepolltimeout = 25;
programlockpolltimeout = 25;

ocdrev = 1;

memory "eeprom"
size = 512;
paged = no;
page_size = 4;
min_write_delay = 4000;
max_write_delay = 4500;
readback_p1 = 0xff;
readback_p2 = 0xff;
read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
"a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";

write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
"a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";

loadpage_lo = " 1 1 0 0 0 0 0 1",
" 0 0 0 0 0 0 0 0",
" 0 0 0 0 0 0 a1 a0",
" i i i i i i i i";

writepage = " 1 1 0 0 0 0 1 0",
" 0 0 x x x x x x",
" x a6 a5 a4 a3 a2 0 0",
" x x x x x x x x";

mode = 0x41;
delay = 6;
blocksize = 4;
readsize = 256;
;
memory "flash"
paged = yes;
size = 8192;
page_size = 16;
num_pages = 512;
min_write_delay = 4500;
max_write_delay = 4500;
readback_p1 = 0xff;
readback_p2 = 0xff;
read_lo = " 0 0 1 0 0 0 0 0",
" 0 0 0 0 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" o o o o o o o o";

read_hi = " 0 0 1 0 1 0 0 0",
" 0 0 0 0 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" o o o o o o o o";

loadpage_lo = " 0 1 0 0 0 0 0 0",
" 0 0 0 x x x x x",
" x x x a4 a3 a2 a1 a0",
" i i i i i i i i";

loadpage_hi = " 0 1 0 0 1 0 0 0",
" 0 0 0 x x x x x",
" x x x a4 a3 a2 a1 a0",
" i i i i i i i i";

writepage = " 0 1 0 0 1 1 0 0",
" 0 0 0 0 a11 a10 a9 a8",
" a7 a6 a5 x x x x x",
" x x x x x x x x";

mode = 0x41;
delay = 6;
blocksize = 32;
readsize = 256;
;
# ATtiny841 has Signature Bytes: 0x1E 0x93 0x15.
memory "signature"
size = 3;
read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
"x x x x x x a1 a0 o o o o o o o o";
;

memory "lock"
size = 1;
write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
"x x x x x x x x x x x x x x i i";
read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
"0 0 0 0 0 0 0 0 o o o o o o o o";
min_write_delay = 9000;
max_write_delay = 9000;
;

memory "lfuse"
size = 1;
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
"x x x x x x x x i i i i i i i i";

read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
"x x x x x x x x o o o o o o o o";
min_write_delay = 9000;
max_write_delay = 9000;
;

memory "hfuse"
size = 1;
write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
"x x x x x x x x i i i i i i i i";

read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
"x x x x x x x x o o o o o o o o";
min_write_delay = 9000;
max_write_delay = 9000;
;

memory "efuse"
size = 1;
write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
"x x x x x x x x x x x x x x x i";

read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
"x x x x x x x x o o o o o o o o";
min_write_delay = 9000;
max_write_delay = 9000;
;

memory "calibration"
size = 1;
read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
"0 0 0 0 0 0 0 a0 o o o o o o o o";
;
;
~Tom~

jstamour802


jstamour802

I got 10 of these in for fun  - no bandwidth to get it working with Arduino though..

If anyone wants to add this to the core,  I'll mail you a few !!

bot-thoughts

Alright, how does this look? Can someone do me a big favor and double-check my pinouts / pin functions?

https://bot-thoughts-eezee.googlecode.com/svn/trunk/eeZeeTiny841/eeZeeTiny841_sch.pdf
https://bot-thoughts-eezee.googlecode.com/svn/trunk/eeZeeTiny841/eeZeeTiny841_brd_top.pdf
https://bot-thoughts-eezee.googlecode.com/svn/trunk/eeZeeTiny841/eeZeeTiny841_brd_bot.pdf

Complete repo with Eagle files is here: https://code.google.com/p/bot-thoughts-eezee/source/browse/#svn%2Ftrunk%2FeeZeeTiny841

If it looks good I'll make up a batch, populate, test, and make available on Tindie in the next few weeks.

Looks like it's going have sell at around $12 retail with all SMT populated including xtal, less without xtal. If there's enough interest to where I can justify ordering more, I can drop the cost a bit.

Thanks,
Michael
http://www.bot-thoughts.com/

graynomad

The schematic PDF is flipped (mirror image), I've never seen that happen before.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

bot-thoughts

aw dangit. I flipped the bottom board then printed to pdf the schematic without unflipping. :0

Fixing shortly...
http://www.bot-thoughts.com/

Geoff_S

Nice Michael.  Any idea if/when these will be available ?  I've got a little project on the go which is just begging for a tiny841 breakout board :)

bot-thoughts

Thanks! I'll order a prototype run soon, so about 2 weeks, maybe less. I'll post up when they're ready to go.
http://www.bot-thoughts.com/

bot-thoughts

The first eeZeeTiny841 boards just shipped from OSHPark, so they should be here by Friday or Saturday. Time permitting I'll have them populated and tested by end of next week.

If they check out I'll put them up on Tindie for sale and post up here.

I'll enable backorders in case there are more than 3 people who want one of these  XD
http://www.bot-thoughts.com/

Geoff_S

Hey Michael - any news ??

Also just wondering how you reflow your boards ?  The quality of the boards on tindie looks wonderful !

bot-thoughts

I got a batch in. I have 5 boards populated, one fully assembled for testing.

At some point in the next few nights I'll write up some quick test code to make sure everything checks out and then I'll post these on Tindie.

So who's going to port the Arduino core to these?

Reflow: I use a hot air station (Aoyue 852A++) to do my reflowing, Kester #2331-ZX flux pen, and 100+ boards' worth of practice. :)  Thanks for the kind words re: my Tindie boards. :)

Michael
http://www.bot-thoughts.com/

bot-thoughts

I have a blinky light program running on the internal 8MHz oscillator and the board's 16MHz crystal.

I'm using Atmel's AVR Toolchain v3.4.2 for Linux. I used avrdude 6.0.1 with the added configuration to avrdude.conf (early in the thread there's a link to an AVRfreaks thread) and programmed with my AVR Dragon. I created an ATtiny841.conf with the configuration from the thread.

The sample code is here. According to the AVRfreaks thread the 3.4.2 headers are missing but I do see a iotn841.h.

I'll post up the breakout board to Tindie in the next few days and share the link here.

I currently I have 4 extras available and will order more if there's enough demand.
http://www.bot-thoughts.com/

Geoff_S


I'll post up the breakout board to Tindie in the next few days and share the link here.

Any progress ??

bot-thoughts

Got slammed at work. Soon as I can get the product listed I'll post. Sorry for the delay.
http://www.bot-thoughts.com/

Go Up