Loading...
  Show Posts
Pages: [1] 2 3 ... 9
1  Using Arduino / Microcontrollers / Re: ATtiny84: Chip core and pinout chart mismatch? on: May 24, 2013, 03:28:45 pm
starting at the top-level working in a U-shape towards the top-right, number each "usable" pin sequentially.

oh lordy... all these years i thought portd was pins 1-7, portb 8-15, etc.. now i see that was coincident and the real method was far more ridiculous than i imagined. who are these guys and what are they trying to do to me?
2  Using Arduino / Microcontrollers / Re: Programming multiple ATMega's/arduino's at once on: May 17, 2013, 02:57:16 pm
generally there are 2 ways we program an avr. isp makes use of hardware built into the chip (miso/mosi/sck) and is normally the way to flash a raw chip from the factory. arduino chips have a bootloader program put into them which allows loading code via a serial port using the avr self program (spm) instructions. but a bootloader must be intalled using isp for this to work. so ALL chips can be isp flashed but only those with bootloader previously programmed can use a serial port. the datasheets and atmel app notes go into much more detail. google is your friend.
3  Using Arduino / Microcontrollers / Re: How to prevent someone from copying my firmware by dumping out hex from flash? on: May 17, 2013, 12:54:46 pm
NOTHING allows you to change fuse w/o erasing the chip. otherwise lock bits serve no purpose at all.
4  Using Arduino / Microcontrollers / Re: How to prevent someone from copying my firmware by dumping out hex from flash? on: May 17, 2013, 11:44:02 am
actually there is no 100% way to protect. for $400-$600 pirate houses in china and malasia will cut into the chip, disable lock bits, and read out the code. another level of protection is to enable rstdsbl which prevents most users from erasing and reprogramming. but of course you no longer have access either.
5  Using Arduino / Microcontrollers / Re: Programming multiple ATMega's/arduino's at once on: May 16, 2013, 11:58:56 am
yes, thats true. i was thinking of final application like mentioned in op. but like you say the guys who sell large quantities of arduino chips probably dont do one at a time. or maybe they have digikey or other atmel vendor put the bootloader in. not too expensive in quantty.
6  Using Arduino / Microcontrollers / Re: Programming multiple ATMega's/arduino's at once on: May 16, 2013, 06:56:08 am
actually i was referring to isp which is easy because no responses at all are required from the chip and they are all simply wired in parallel.  its doable with serial bootload also but data from the chip is needed so not as easy and again requires custom software. but imo if you need to do many chips at once using a bootloader dont make too much sense.
7  Using Arduino / Microcontrollers / Re: Programming multiple ATMega's/arduino's at once on: May 15, 2013, 06:44:34 pm
ive never found verfication of any practical use whatsoever. does little more than triple flashing time. in fact its turned off in all my avrdude command lines. in my experience if you can read a fuse or signature for a given setup then unlikely to be any issues with writing flash or eeprom. it may be useful to check new programming hardware or software but even then ive found things either work or dont. for those who require peace of mind and time/productivity not so important then maybe does serve a purpose. as usual everyones mileage may vary.
8  Using Arduino / Microcontrollers / Re: Why would anyone want to use RESET pin as PIO? on: May 15, 2013, 03:03:48 pm
op gave no hint of that. and im guessing most here in the arduino forum do have chips with a bootloader. in any case my comments were mainly in response to replies that avr cannot be programmed w/o reset which turn out not to be quite true.
9  Using Arduino / Microcontrollers / Re: Programming multiple ATMega's/arduino's at once on: May 15, 2013, 02:59:37 pm
actually 2 way communication is not necessary to program avr. for the past couple years ive been flashing as many as 16 at a time. it does require a custom pc program. one of the great drawbacks of avrdude is the inability to do mosi only flashing.
10  Using Arduino / Microcontrollers / Re: Why would anyone want to use RESET pin as PIO? on: May 14, 2013, 04:46:56 pm
actually you dont lose ability to program at all. ardunino bootloader works just as well by cycling power as by grounding reset. in fact by buffering the dtr output of the dongle there is little difference compared to using the reset pin. when using a real serial port instead of usb you dont even need to buffer.
11  Using Arduino / Microcontrollers / Re: Selfmade Due running way to slow on: May 09, 2013, 01:04:39 pm
for optiboot with 8mhz internal clk i found h=d6 l=e2 best. for 16mhz crystal i use h=d6 l=a7. these preserve ee on download as opposed to arduino settings which, for some peculiar reason, destroy the ee data every time.
12  Using Arduino / Microcontrollers / Re: Upgrade Programmers Firmware on: May 09, 2013, 01:00:44 pm
imo atmels "flagship" is actually a garbage scow. in addition to costing 8x-10x more and not being able to power the target, mine had endless issues requiring firmware upgrade. inability to do 128k chips being just one. the usbasp units on the other hand behaved a-ok fron the start. and as mentioned none of the 300 or so i purchased from a variety or sources for clients required upgrade. maybe i just got lucky. a quick search on ebay will reveal hundreds in the $3 range.

i would like to see a link for the "bad" usbasp. this would help others avoid repeating the tragedy.
13  Using Arduino / Microcontrollers / Re: AtMega8A bootloader with Uno ( without crystal) on: May 08, 2013, 07:10:50 pm
you may also find it necessary to fine tune the clock using osccal register. 30% of my last batch of m8 from digikey failed w/o this.

A bit hard to do before the chip is running isn't it?

i was referring to operation with bootloader using internal clock. regarding isp if attaching xtl dont work then try putting signal into x1.  if chip is still  no longer responding then rstdsbl is the issue and theres nothing to be done w/o 12v programmer.
14  Using Arduino / Microcontrollers / Re: UNO & ATMega328 with internal clock on: May 08, 2013, 03:02:06 pm
there is no way a pullup can cause increased consumption if its the only thing on that pin. almost certainly there was other circuitry there. i will however add that imo the reset pullup serves no real purpose. recommendations for it are probably a holdover from the old days when mcus lacked sophisticated debounce circuit of avr. in most cases nothing at all should be connected to that pin. in rare situations where a long cable is attached a 1k series may be used but removed when cable is removed. during arduino upload with that cap to ftdi attached a 10k is needed but for stand alone i find anything at all connected to the reset pin is cause for trouble.
15  Using Arduino / Microcontrollers / Re: AtMega8A bootloader with Uno ( without crystal) on: May 08, 2013, 02:47:35 pm
you may also find it necessary to fine tune the clock using osccal register. 30% of my last batch of m8 from digikey failed w/o this.
Pages: [1] 2 3 ... 9