links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
Michael Shook, member since May 27, 2004
.
Search Everyone: "avr",

Top "avr" experts: dhylands, pcs, ngregorich, mindaugasu, tnerb123, beebop,

11 - 20 of 21 « previous next »   Watch mshook
 
.nolist			; We don't want to actually include defs in our listing file.
.include "m168def.inc"	; m168def.inc defines all the pins on the Mega168 so we can
			; use them by their names rather than addresses (not fun).

.list			; We DO want to include the following code in our listing ;D

	rjmp	main 	; You usually place these two lines after all your
main:			; directives. They make sure that resets work correctly.

	ldi	r16,0xFF ; LoaD Immediate. This sets r16 = 0xFF (255)
	out	DDRB,r16 ; Out writes to SRAM, which is one way of accessing
			 ; pins. DDRB controls PORTB's in/out state.

	ldi	r16,0x00 ; r16 is where we'll store current LED state
			 ; 0x00 means all off. This is preserved over loops.
...
by mshook 2009-06-28 19:50 avr · arduino · minimal · blink · assembler · howto · example · code · asm · linux · good
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1218921378 - cached - mail it - history
hardware/tools/avrdude -Chardware/tools/avrdude.conf -v -v -v -v -pm328p -cstk500v1 -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/home/michael/arduino/BlinkArduinoLED.hex:i
by mshook 2009-06-27 18:20 example · c · blink · asm · assembler · avr · arduino · code · howto · upload
http://code.google.com/p/tinyprojects/source/browse/trunk/avr/ - cached - mail it - history
; LEDblink.asm - M. Covington 2006 
; For ATtiny13. 
; Blinks the LEDs attached to PB0 and PB1. 

.include "tn13def.inc" 

.def temp = R16 
.def temp1 = R17 
.def temp2 = R18 
.def mask = R19 

start: ldi temp,0b00000010
       out PORTB,temp ; initialize port B 
       ser mask 
       out DDRB,mask ; port B all outputs 
blink: 
       ; Delay 0.1 sec (1.2 MHz) 
       ldi temp1,200 ; outer loop count 
L1:    ldi temp2,199 ; inner loop count 
L2:    dec temp2 
       brne L2 
       dec temp1 
       brne L1 
       ; Toggle PB0 and PB1 
       ldi mask,0b00000011 
       eor temp,mask 
       out PORTB,temp 

       rjmp blink 
; End of program
by mshook 2009-06-14 17:36 avr · assembler · example · code · pdf · led · arduino · microcontroller · minimal
http://www.ai.uga.edu/mc/microcontrollers/avr/AVRnotebook.pdf - cached - mail it - history

So when I got to Maker Day at Maker Faire yesterday afternoon, I was happy to find that Limor Fried, the founder of Adafruit, was giving a presentation on how to start your own business selling kits. This is a growing business right now, as people look for reasons to teach their kids how to solder, or just want to build a neat device. (Adafruit teamed with the Maker Store to offer the infamous TV-B-Gone kit that garnered a lot of attention at CES this year.)

by mshook 2009-06-14 16:36 electronics · kit · business · howto · arduino · june · 2009 · may · 2008 · microcontroller · avr
http://www.edn.com/blog/1470000147/post/1630025963.html?nid=2432&rid=1357995328 - cached - mail it - history
void setup(){
  pinMode(13, OUTPUT);
}
 
void loop(){
  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
}

First, we configure pin 13 for output by setting a bit in Data Direction Register B. Then we turn pin 13 by setting its bit in PORTB. Then we delay 500 milliseconds by marking the current value of timer0, converted into milliseconds, and letting the counter be incremented repeatedly at each clock cycle and overflowed into ever larger holders until the new value of timer0 represents an elapsed time of 500ms. Next we set the bit for pin 13 in PORTB low to turn the LED off. We do the delay dance again and we're home.

by mshook 2009-06-14 16:18 arduino · avr · how · code · c · microcontroller · good · long · macro
http://www.urbanhonking.com/ideasfordozens/2009/05/an_tour_of_the_arduino_interna.html - cached - mail it - history

SoundChipThis is the first in a series of articles about generating sound with an Arduino. The goals are to generate good quality sound which can be used to play simple tones, stored music, sampled sound, and even act as a MIDI synthesizer. I will cover the basic design, including code and hardware that anyone can use to add sound to Arduino microcontroller projects.

The first step is to look what has already been done. We want to explore many possible options for sound generation and resolve which is best for given situations. I hope to spark some discussion so please comment with information links, advice, suggestions and general opinions.

by mshook 2009-06-06 07:57 arduino · howto · avr · sound · music · synth · midi
http://www.uchobby.com/index.php/2007/11/11/arduino-sound-part-1/ - cached - mail it - history
gdb and simulavr are the backend of AVR studio. With gdb and simulavr you can do the same things you can do with AVR studio. Ubuntu has in its repository some ready packages. Look for gcc-avr, binutils-avr, avr-libc, avrdude, gdb-avr, simulavr. Just install them, that's it Cool The downside is that you don't have a GUI, you probably need to simulate your code from the command line.
by mshook 2009-06-05 18:48 avr · arduino · linux · ubuntu · emulator · howto · up · microprocessor · simulate
http://forum.sparkfun.com/viewtopic.php?t=12095 - cached - mail it - history
This tutorial will demonstrate the following development process:

Write C programs in AVR Studio.

Compile them into a .hex file using the AVR-GCC compiler (which integrates into AVR Studio).

Simulate the target AVR chip and debug the code within AVR Studio.

Program the actual chip using the AVRISP mkII USB device, which is attached to our target chip with a special 6-pin cable.

Once programmed, the chip runs the program in your circuit.
by mshook 2009-05-25 19:03 via · avr · popular · microprocessor · simulation · howto · chip · simple · tutorial
http://imakeprojects.com/Projects/avr-tutorial/ - cached - mail it - history
Navigator:

+ AVR main

+ Frutt home
+ Contact me

Subjects
 o Assembler
 o DisAssembler
 o man avrdis
 o Gigaweb
 o NGW 100
 o Opcodes
 o Yomal
 o VAX 01
 o VAX 02

Okapi
 o Design
 o Control

Assembler
 o EBNF
 o aa001

Achatz
 o ICSP dongle

Service
+ Downloads
+ Achatz.nl 
by mshook 2009-05-22 16:14 assembler · avr · up · microprocessor · howto · linux · 8bit
http://verhoeven272.nl/fruttenboel/AVR/index.html - cached - mail it - history
by mshook 2009-05-19 00:06 gnb · avr · up · how · assembler · c · wishlist · music · synth · 8bit
http://www.google.com/notebook/html?nbid=BDQmISgoQ4vfT_JQk - cached - mail it - history
11 - 20 of 21 « previous next »  
Related Tags
 
- exclude ~ optional + require
Add Dates