Type in the full discussion title or a part of it.
Discussion Title Created date
SPI on m328P using assembler
Timer overflow triggers an interrupt which should commence an SPI transmission of two bytes but this does not happen. Seems to get stuck in the waiting loop for the SPI. Very new...
Monday, 26 June 2017 - 11:36
Starting with AVR assembly
Hi all. What is needed to create a basic assembly program in Atmel Studio 6? I have created an assembly code project but the page is blank and I don't really know what to write....
Thursday, 15 June 2017 - 20:07
Solved: SPI on m328p/Arduino UNO R3
Hello everyone, I return once again to this trusty forum. I am in the midst of establishing an SPI interface between my m328p/Arduino and my Artix-7/Basys 3. Something is not...
Sunday, 4 June 2017 - 12:07
Quick explanation - PWM on ATmega328P
Hello, I have successfully used TC2 - timer/counter2 as a pwm generator with the following settings: DDRB |= (1 << DDB3); // pin 11 on arduino (OC2A) TCCR2A |= (1 <...
Saturday, 5 November 2016 - 15:03
Implement map in C.
I want to implement a generic mapping function in C, although it doesn't have to be all that generic to start with.   Like Haskells simple definition of map; map _ [] = []...
Wednesday, 25 February 2015 - 18:35
Safe to switch between using AVRDUDE and Arduino IDE?
Hello, I want to program an ATtiny using my Arduino UNO R3. To program my Arduino on an everyday basis I use Atmel Studio 6 and avrdude. To make the Arduino act like an AVRISP I...
Monday, 16 February 2015 - 14:02
switch with enums does not work as expected - where's my error?
Hey, using atmel studio 6.1 with win-avr I guess. I've had to replace my switch with a simple if-statement, I can't see the difference. I've defined an enum beforehand: enum LED...
Sunday, 15 February 2015 - 23:03
How to get a working ADC? ATMEGA328P
The 328p datasheet does not explain what it means by "voltage reference selection". I want to connect a potentiometer to the Arduino Uno R3, how do I do it? The three pins to GND...
Saturday, 14 February 2015 - 05:16
Clocks and power consumption
Okay, I'm a bit confused about something. The lower the speed of the cpu, the lower the power consumption, that I get. In my project on the Arduino (which has an external 16MHz...
Tuesday, 10 February 2015 - 03:52
[ TUT ] [ C ] Multitasking - another approach (unfinished)
As requested I'll introduce an approach to multitasking on the AVR, this solution is platform dependent in respect to how the stackpointer indexes etc but don't worry, we won't...
Sunday, 1 February 2015 - 12:07
Writing a simple task scheduler. Help me reason about code (:
(editied because it looked hideous)   I've been at it for a couple days now, refreshing my memories of C, or rather learning anew. I'm building upon the tinythreads kernel...
Wednesday, 14 January 2015 - 01:41
Are util/delay.h-methods independent of whether being run or not?
Confusing question maybe, what I mean is, on a threaded time-shared system where an individual process might be preempted by another, will the delay-methods perform accurately or...
Sunday, 11 January 2015 - 13:26

Pages