Type in the full discussion title or a part of it.
Discussion Title Created date
[TUT][SOFT][ASM] Writing to the EEPROM on the AVR-0/1 series
This example shows how to use the NVM controller to write single bytes to the EEPROM (from the CPU, the UPDI interface can also access the NVM controller). It's also possible to...
Tuesday, 9 April 2019 - 20:12
[TUT][SOFT] How to set up MPLAB-X IDE to use different compilers (Windows OS)
Some time ago,  JohanEkdahl wrote a tutorial on how to setup Atmel Studio to use different compilers. I will use the same format for MPLAB-X IDE 5.xx, limited to Windows,...
Saturday, 23 March 2019 - 13:39
[TUT][SOFT] AVR 0/1-series Setting up TCA0 for split-mode PWM
In this example, I will show how to setup the timer/counter type A to generate PWM waveforms and output them to I/O pins. I used a tiny1616 here, but the process is similar for...
Sunday, 24 February 2019 - 19:43
How to refer to a pin? (AVR-0/AVR-1)
If using Microchip/Atmel toolsets, what is the correct way to refer to a pin (I'm using ATMega4809)? What is  more readable? It's just a matter of personal taste?  ...
Thursday, 18 October 2018 - 12:08
Weekend project: using the event system of the tiny1614 to create a full swing crystal oscillator
This is something I've been thinking about for a while, since the new xtinies only support a 32kHz crystal. However, they do have the event system and the custom logic peripherals...
Sunday, 19 August 2018 - 12:53
(var/2) vs. (var>>1) issue on avr-gcc
This code is a snippet from a software UART, I've stripped timing and control code to focus on the title issue.   #include<avr/io.h> int main () { /* Sample bits...
Thursday, 9 August 2018 - 10:11
Configuring the configurable logic on the new AVRs
I was playing with the programmable logic on a tiny1614, and the datasheet says:     What it doesn't say (at least I can't find it) is that the whole peripheral must be...
Thursday, 10 May 2018 - 21:27
avr-gcc is uselessly saving r24 in ISR.
I have this code:   #include <avr/io.h> #include <avr/interrupt.h> register uint8_t val_off asm("r2"); register uint8_t val_on asm("r3"); ISR (PCINT0_vect...
Sunday, 25 February 2018 - 14:54
UPDI programmer software for Arduino - compatible with avrdude
As you may recall, I've been working on a UPDI programmer firmware to run on Arduinos (Arduini?), to facilitate the programming of the new xtiny MCUs. These chips are clearly...
Saturday, 17 February 2018 - 17:46
Russian Mega128 clone
Today, there was someone asking here for a Russian transistor equivalent. So it occurred to me, "hey, there are Chinese AVR clones, so maybe there are Russian clones also?"...
Thursday, 11 January 2018 - 12:33
Signatures of the xtiny series and AS7 simulator bug
I want my STK2UPDI project to be able to talk to avrdude, so I need to write part definitions (avrdude.conf) for the xtiny series. I realized I'll eventually need the signatures...
Wednesday, 13 December 2017 - 21:43
STK500 to UPDI is working! (was: Enabling XTiny UPDI)
Thanks to the chips Brian sent me, I have now analyzed the process of how to connect to the UPDI interface. This will eventually allow me to write my STK500v2 to UPDI interface,...
Wednesday, 22 November 2017 - 14:03

Pages