Content for Programming

Personal Assistant with Telegram & Arduino.

“A few months ago I heard about a project that used an instant messenger bot to create a system that would automatically process and organize pizza’s orders sent by the costumers via Whats app. I was like…wow! Give …

Lightweight AVR assembler functions

“Over the past few years, I’ve written a few posts about small problems in the way avr-gcc generates code. These problems are typically poor optimization, and since they don’t cause problems in program functionality, they tend not to …

The Art of Representing Floating-Point Numbers as Integers

“Have you been using float or double variables to perform mathematical operations on embedded systems without a Floating-Point Unit (FPU)? You are doing it wrong! Thats incredibly inefficient. Use fixed-point representation instead. An FPU is an hardware block specially designed …

Trimming the fat from avr-gcc code

“Although writing in AVR assembly makes it easy to write programs that fit in a small codespace, writing in C and using AVR Libc is more convenient. This article outlines how to write C code that avr-gcc will build to …

Revista PROGRAMAR Edição 51 – Dezembro de 2015

“Nesta edição continuaremos também a premiar os autores dos três melhores artigos, dado o sucesso nas edições anteriores. E os leitores devem dar a sua opinião para que possamos premiar correctamente. Assim nesta edição trazemos até si, como artigo de …

Writing AVR assembler code with the Arduino IDE

“Although I have written a lot of code in high-level languages like C++, I enjoy writing assember the most. For inserting assembler code into Arduino sketches, you can read a gcc inline assembly guide. If you have some assembly code …

AVR Optimizations

In the world of microcontrollers and unlike the world of computers, resources are scarce and any optimizations that can be made are very useful. In this article we will cover some of the various optimizations that can be made so …