-
Recent Posts
Recent Comments
Archives
- May 2022
- December 2021
- September 2021
- July 2021
- May 2021
- April 2021
- October 2019
- August 2019
- April 2019
- February 2019
- January 2019
- May 2018
- January 2018
- November 2017
- May 2017
- January 2017
- December 2016
- November 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- July 2014
- June 2014
- May 2014
- April 2014
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- October 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Categories
Meta
Monthly Archives: March 2013
Arduino digitalWrite(pin, value)
In case you wonder why the Arduino digital write command is so slow, I present the following exercise in yak shaving: Here is the source code from inside the wiring_digital.c file (I’ve added comments and expanded some of the macros/defines): … Continue reading
Improving the Interrupt Service Routine
From the AVR Libc User Manual: Another solution is to still implement the ISR in C language but take over the compiler’s job of generating the prologue and epilogue. This can be done using the ISR_NAKED attribute to the ISR() … Continue reading
Time the Execution of a Short Piece of Code
For timing short intervals, you can use this timer #1 quick and dirty technique: Clear the timer, start then stop it. Read the value of the counter, it will be in cycles (times prescaler). This is particularly useful for profiling … Continue reading
Posted in Uncategorized
Leave a comment
Cornell University µC Course Videos
Cornell University microcontroller design course (ECE 4760) video lectures. Lectures dealing with microcontrollers as components in electronic design and embedded control. Course website. No tests!
Posted in Uncategorized
Tagged arduino, avr, course, learn, micro controller, school l, university, video
Leave a comment
Arduino, 23K256 SRAM and 74LVC245 Bus Transceiver
As discussed in this post, when interfacing 3.3V devices with a 5V Arduino, the logic level needs to be shifted. Most 3.3V devices will be damaged if operated with 5V signals, while others will simply operate unreliably. The shifting can … Continue reading