# Conquer the Divide - Faster Integer Division

## Introduction

How to implement C-style integer division on a microcontroller that doesn't provide appropriate instructions? In school we learn how to divide long nunmbers [1]. Wikipedia tells us that we can do better in certain cases [2]. However, these algorithm are only better for numbers longer than a certain limit. For C operations they don't give any advantage. This article presents an algorithm based on piecewise polynomial approximation to implement this operation.

# QSM - Quarter Square Multiplication, Speed Record on Extended Baseline PIC!

I'm a great fan of PIC10F / PIC12F / PIC16F controllers. They are inexpensive, they offer verstalie peripherals, and they are absoulely energy efficient which is becoming extremely important in the era of IoT. However, they don't provide mulitplication hardware. There are several code snippets for software multiplication around, but there is still the challenge of doing it better. I've taken it! And here we go with the fastest 8 x 8 -> 16 multiplication I know on extended baseline PIC.

# The challenge

On piclist.com we find lots of basic arithmetic routines including multiplication of two 4 bit numbers giving an 8 bit result [1]. It gives detailed derivation of his code which is small and fast, indeed.

But we can do better! Since this article was published Microchip has brought the enhanced baseline PIC to market which has competitive price, larger instruction set, and more special function registers with increased functionality. This gives the option of simple and fast table lookup in program memory.

# Happy Valentine with this strangely named new device!

## LDO current regulator for power LED

LDO current regulator for power LED
Challenge You've got a power LED? Great! Build a flash light! Read more

## My MakerBot Arrived! This is so exciting!!!

3D printing
Using a
Recently I ordered a MakerBot Thing-O-Matic. On Thursday I've got mail: "Your order # ...... has been Complete - Packed and Shipped." Deep breath. From experience I … Read more

## TSWLhexaPOC

Okay, I broke the rules. Yes, I'm ashamed. But I don't give up. Hopefully this is the right place for this article...

TSWLhexaPOC? Well, Two Servo Watt's Linkage hexapod Proof Of Concept would have been a bit too long for a name, wouldn't it? I stumbled over a few hexapods controlled by three servos. Well, it should be possible to walk over a plane with only two of them. If this is possible using some simple gear it would save money when building small robots. How did I find a solution?