Electrical engineering news, articles, occasional discounts, and more from Circuit Cellar
Archive Article
Arduino Program Timing
By Ed Nisley

Ed Nisely explains how output pulses can reveal the progress of invisible firmware routines. After presenting a straightforward way to instrument your code, he covers the detailed timing produced by Arduino statements and functions. He writes:

While writing the Arduino program for the RGB LED lights mentioned in my May column (Circuit Cellar 310), I wondered how much time the floating-point trigonometric calculations required. Rather than wrap a software measurement around the code, I added a pair of instructions to flip an output bit, then watched the results on an oscilloscope. It's a classic technique that helps you debug software when there's no other way to see what's going on inside your code or when elaborate tracing routines will disturb the firmware's normal operation.

In this column, I'll show a simple way to instrument your code, then take a look at the detailed timing produced by Arduino statements and functions. You'll need an oscilloscope or logic analyzer for this technique, but even the least-expensive instruments will suffice.
News & Recent Posts

Interested in developing cloud-connected wireless sensing products? Silicon Labs recently introduced its Thunderboard Sense Kit for developing cloud-connected devices with multiple sensing and connectivity options. The "inspiration kit" provides you with all the hardware and software needed to develop battery-powered wireless ... Continue reading →...»


Ultra-Small hSensor Platform for Wearable Apps

Maxim Integrated Products's ultra-small hSensor Platform enables you to quickly develop wearable fitness and wellness-related prototypes. With it, you have all the necessary hardware on one PCB along with readily-accessible hardware functionality with the ARM mbed hardware development kit (HDK). The ... Continue reading →...»

Pulse Electronics recently introduced three design-ready, standard, wireless printed circuit board antennas. Intended for tablets, laptops, and mobile devices, the SH0319D/E/W antenna family provides wireless signal reception ranging from dual bands to multibands covering GPS, Glonass, WLAN/dual-band WIFI, and GSM900/1800.  ... Continue reading →...»


Human Vision Image-Sensing System Provides 10× Faster Recognition

Mouser Electronics is now offering Omron Electronic Components's fully integrated B5T HVC-P2 face detection sensor modules. The Human Vision Component (HVC) plug-in modules are based on Omron's OKAO Vision Image Sensing Technology, which is used to quickly and accurately detect ... Continue reading →...»


New ARM Technologies for Secure IoT Applications

ARM recently released a new product suite of technologies for designers of secure Internet of Things (IoT) applications.The product suite comprises procesors, cloud-based services platform, radio technology, subsystems, and comprehensive security. Cortex-M Processors Integrated with TrustZone The ARM Cortex-M23 and ... Continue reading →...»

Sponsored by Matrix TSL
Flowcode 7 (Article 2)
Displays in Flowcode
 
In the first part of this article series, you were introduced to Flowcode 7, a flowchart-driven electronic IDE that enables you to produce hex code for more than 1,300 different microcontrollers, including PIC8, PIC16, PIC32, AVR, Arduino, and ARM. In the second free article, embedded engineer Ben Rowland gets you working with displays in Flowcode. He covers: communicating with displays, code and display porting, a bitmap drawer component, and more. Read the Article

Want a Free Trial and/or Buy Flowcode 7? Download Now

Flowcode is an IDE for electronic and electromechanical system development. Pro engineers, electronics enthusiasts, and academics can use Flowcode to develop systems for control and measurement based on microcontrollers or on rugged industrial interfaces using Windows-compatible personal computers. 

Visit www.flowcode.co.uk/circuitcellar to learn about Flowcode 7. You can access a free version, or you can purchase advanced features and professional Flowcode licenses through the modular licensing system. If you make a purchase through that page, Circuit Cellar will receive a commission.
Circuit Cellar YouTube Channel
Circuit Cellar reguarly features interviews with electrical engineers, EE/ECE academic, and electronics innovators. Visit our YouTube channel to check out our recent videos and subscribe!

Click to Access Our Channel
Current Issue - See Inside

Circuit Cellar #316 November 2016

Q&A: The PCB Artist | All About Analog ASICs Continued | The BalanceBot Project | Simple Display Solution | DIY Wearable Synthesizer | Adaptive Sprinting | Contactless Measurement Options | Arduino Program Timing | Powerless Display Technology Continued | The Future of Ultra-Low Power Signal Processing | And More

Circuit Cellar Inc | Segment LLC (audioXpress, Voice Coil) 
111 Founders Plaza | Suite 904 | East Hartford CT | 06108

Circuit Cellar is a media company that serves the international embedded design community with its products and services. As a reliable content provider for professional engineers and programmers, Circuit Cellar publishes Circuit Cellar magazine, engineering/programming-related books, a website, and a newsletter. Circuit Cellar also manages international design challenges relating to embedded design and programming. 

© 2016 Circuit Cellar Inc. All Rights Reserved.
Circuit Cellar Inc | Segment LLC (audioXpress, Voice Coil), 111 Founders Plaza, Suite 904, East Hartford, CT 06108
Sent by circuitcellar@circuitcellar.com in collaboration with
Constant Contact