Tag: avr

  • Give it time

    Give it time

    In hindsight, it’s obvious. Switching the ADC reference voltage takes a bit of time, the voltage on the AREF pin cannot change instantaneously. The Atmega48/88/168/328 datasheet recommends to discard the first sample after changing the reference voltage (in paragraph 24.5.2). So I did. But still I got false readings (or rather: my Atmega48A did). I’m…

  • tip: AVRdude on mac – using built-in from arduino

    tip: AVRdude on mac – using built-in from arduino

    More of a note to self*, since installing avrdude resulted in an avrdude without USB support. While Arduino also uses avrdude “under the hood”, but has USB support. And it would be nice if Arduino’ s avrdude can be used stand-alone, and it can: “/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m…

  • USBisp V2.0 to USBasp conversion to use TPI (or: USBisp did not connect to usb anymore after fw update – fixed!)

    USBisp V2.0 to USBasp conversion to use TPI (or: USBisp did not connect to usb anymore after fw update – fixed!)

    Recently I bought an USBasp, or at least that’s what I thought. I bought a clone that was advertised as  “USB ISP USBasp USBisp Programmer for 51 ATMEL AVR download support Win 7 64 (RANDOM COLOR)”, marked on the case as “USB ISP version 2.0” and “MX-USBISP-V5.00” on the PCB. I intend to use this…