Home › Magazines › 2005 › March › Delphi for Electronic Engineers (3)

Delphi for Electronic Engineers (3)

Part 3: an external calculator

Published in issue 341, March 2005

Delphi for Electronic Engineers (3)

In the previous article we saw how we could implement a simple calculator using Delphi. This time we connect an external keypad to the serial port, to allow the calculator to be controlled externally. We'll use the program from the last article (slightly modified) to put the numbers onto the display and to perform the calculations.

The external keypad, which we'll build ourselves, consists of 16 keys in a configuration of 4 rows by 4 columns. When a key is pressed, a single row is connected to a single column. The combination of the exact row and column is unique for each key.

By activating each column in turn and then checking which row has a signal, we can determine which key has been pressed.

Relevant websites

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (U050352.pdf)
10 Elektor Credits
 

Free downloads 

040240-11.zip

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.

Elektor PCBs at 25% OFF