Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 857

AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the first generations of the popular Arduino SBCs.

5 votes
Accepted

ATMega8 - PORT C - Digital Output Issue

OK, here goes: How to set registers with bitwise operators on the AVR. Let's unpack the _BV() macro and PCx definitions for a moment. _BV(x) is simply 1 << x. …
Kevin Vermeer's user avatar
9 votes

Setting pin to high in function instead of main, not full voltage output?

According to the AVR Instruction Set manual, the opcode for rjmp is 1100 kkkk kkkk kkkk, or, in hex, 0xCK KK, where the concatenation of K is k, our relative jump. … The AVR we're using is little-endian, so 00 C0 as seen in the program is a relative jump (C) to a position 0 bytes away. …
Kevin Vermeer's user avatar
3 votes

Using avr-gcc _delay_ms causes chip to freeze

function (in a very rough way) in the main function like this: #include <stdint.h> // Typedefs `unsigned long` or something to `uint16_t`, // a 16-bit unsigned number #include <avr … To poll from a loop, you'd do something like this: #include <avr/io.h> int main (void) { DDRB = 0xFF; // Set port as output TCCR1B |= _BV(CS10); // Set up timer while(1) { / …
Kevin Vermeer's user avatar
1 vote
Accepted

Arduino killed trying to load a sketch?

The const char javascript[] PROGMEM = "..." is a >5,000 character string. It's possible that the Arduino IDE doesn't support line lengths of this size, you can break it up using the continuation char …
Kevin Vermeer's user avatar
6 votes
Accepted

Arduino/Atmel Output Assembly?

The AVR, like most microcontrollers, uses memory-mapped IO. In a nutshell, this means that a part of the memory space of the microcontroller is reserved for the peripherals. … To understand the details of how this works on your AVR, the Special Function Registers section of AVR-libc (and, more importantly, sfr_defs.h and iom328p.h) are recommended reading. …
Kevin Vermeer's user avatar
35 votes
Accepted

Microcontroller with Java API

Be aware that this kind of hardware is much more difficult to design than an 8-bit AVR. I'm a computer engineering student with a computer science minor. … It can run on many AVR chips, it's definitely not restricted to their hardware. It will give you an easier learning curve than just jumping straight into C. …
Kevin Vermeer's user avatar
6 votes

Help finding a design house to build our MP3 player

However, it's more difficult to do this with microcontrollers, because the code isn't usually portable from, say, a PIC to an AVR, without a LOT of work. …
Kevin Vermeer's user avatar
5 votes

Which AVR hardware for USB?

The easiest way to interact with an AVR over USB would be to connect an FTDI FT232 to the UART, and then interact with your AVR as a virtual COM port using the FTDI drivers. …
Kevin Vermeer's user avatar
2 votes

Ideal WiFi to Serial (or SPI) bridge?

I've used the Lantronix XPort Pro (Ethernet) before...very straightforward, and excellent support staff. If you use the Matchport, call them! In my research, I also found the Digi Connect Wi Me, but …
Kevin Vermeer's user avatar
6 votes
Accepted

AVR Random Number Generator

How bad do you to use the XMega? If the crypto and random number generation are a big part of your project, Atmel's SecureAVR series has a hardware random number built in, and is designed for cryptog …
Kevin Vermeer's user avatar
2 votes

On an AVR (ATtiny2313), which is serviced first when TIMER0_OVF and TIMER0_COMPA are due at ...

I really hope somebody knows this, and that you get a straightforward answer with good reasoning from the docs, examples of how to plan for simultaneous interrupts, etc. but all I can tell you right n …
Kevin Vermeer's user avatar