Atmel Studio
http://www.hilltop-cottage.info/blogs/adam/?p=211
AVR dude
http://www.ladyada.net/learn/avr/avrdude.html
Monday, February 25, 2013
Saturday, February 23, 2013
matlab plotting Arduino data
Arduino Data logging with :
MegunoLink
Tutorial:
http://tronixstuff.wordpress.com/2012/06/27/improving-arduino-to-pc-interactions-with-megunolink/
Read data text file into Matlab
Read data text file into Matlab
http://www.blueleafsoftware.com/Resources/EmbeddedSand/Building_an_Arduino_project_with_MegunoLink_and_Atmel_Studio_(Blink_Tutorial)
Monitor: Data Collection Portal
Log/Tab Enable start
Friday, February 22, 2013
Arial LaTeX
http://tex.stackexchange.com/questions/23957/how-to-set-font-to-arial-throughout-the-entire-document
Wednesday, February 20, 2013
Embedded C programming and Freescale MCU
Embedded C Programming Training
http://www.freescale.com/files/training/doc/dwf/AMF_ENT_T0001.pdf
App Notes
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2616.pdf
C for embedded system
http://www.eckhard-gosch.de/download/C_for_Embedded.pdf
http://www.freescale.com/files/training/doc/dwf/AMF_ENT_T0001.pdf
App Notes
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2616.pdf
C for embedded system
http://www.eckhard-gosch.de/download/C_for_Embedded.pdf
ATMega/Arduino Pullup Resistor
http://hifiduino.blogspot.com/2009/04/atmega-io-pull-up-resistor.html
Tuesday, February 19, 2013
C reverse bits in unsigned integer and All about BITS TWIDDLE HACKS
http://graphics.stanford.edu/~seander/bithacks.html
http://stackoverflow.com/questions/9144800/c-reverse-bits-in-unsigned-integer
Reversing the bits in a word is annoying and it's easier just to output them in reverse order. E.g.
http://stackoverflow.com/questions/9144800/c-reverse-bits-in-unsigned-integer
Reversing the bits in a word is annoying and it's easier just to output them in reverse order. E.g.
void write_u32(uint32_t x)
{
int i;
for (i = 0; i < 32; ++i)
putchar((x & ((uint32_t) 1 << (31 - i)) ? '1' : '0');
}
Here's the typical solution to reversing the bit order:
uint32_t reverse(uint32_t x)
{
x = ((x >> 1) & 0x55555555u) | ((x & 0x55555555u) << 1);
x = ((x >> 2) & 0x33333333u) | ((x & 0x33333333u) << 2);
x = ((x >> 4) & 0x0f0f0f0fu) | ((x & 0x0f0f0f0fu) << 4);
x = ((x >> 8) & 0x00ff00ffu) | ((x & 0x00ff00ffu) << 8);
x = ((x >> 16) & 0xffffu) | ((x & 0xffffu) << 16);
return x;
}
Subscribe to:
Posts (Atom)