Archive for the ‘Embedded Adventures’ Category
How much AVR resources does your little program occupy?
If you’ve ever played with WinAVR, you have probably noticed the pretty resource usage info printed after each compile. You may miss that candy if you compile with GCC on Linux. In that case, grab a simple script avr-mem.sh. While the script should work with common AVR chips, you must modify it in order to use it with AT90USB646. Read more »
Using the MsTimer2 library on AT90USB646
Filed under: Embedded Adventures | Tags: Arduino, AT90USB646, avr, MsTimer2, Teensy++
Leave a Comment In order to use the Arduino MsTimer2 library on AT90USB646 microcontroller you have to minimally modify the source code of the library. First, download the library, unpack it into the “libraries” directory of your Arduino installation (it’s a subdir of “hardware”) and open the file MsTimer2.cpp. Read more »
Using the port F as digital I/O in Teensy++
Filed under: Embedded Adventures | Tags: AT90USB646, avr, Port F, Teensy++
Leave a Comment I wanted to use the port F in Teensy++ board as ordinary digital inputs/outputs and it turned out that there is an extra step involved to ordinary DDR stuff. I’m coding using the Teensy port of core Arduino libraries to AT90USB646 chip. After checking the chip datasheet, I found that the proper port initialization includes setting the DIDR0 register (setting desired pins of port F to digital instead of analogue). So the full initialization should look like Read more »