ControlLogix FOR Instruction

Introduction to the ControlLogix FOR Instruction The ControlLogix FOR Instruction allows us to execute a routine for a specific number of times. To understand how a FOR loop works, let’s go back and look at some examples of BASIC from 1975. In this example, we will print the value of Read More »

ControlLogix FOR Instruction

Relocating Array Data in ControlLogix

Introduction to Relocating Array Data in ControlLogix In this post, we’ll be Relocating Array Data in ControlLogix by one element. For example, if we have a fault log, we might want to move all of the array data down one element. Our newest data will be at element zero. It’s Read More »

Relocating Array Data in ControlLogix

Tuning an Arduino PID

Introduction to Tuning an Arduino PID In this section, we’ll discuss Tuning an Arduino PID loop. Before we begin, it’s important to familiarize ourselves with what PID is. PID stands for “Proportional, Integral, and Derivative”. Don’t let the name be intimidating though. It’s just a way to provide the exact Read More »

Tuning an Arduino PID

Kenbak-1 Front Panel Interface

Introduction to the Kenbak-1 Front Panel Interface The Kenbak-1 Front Panel Interface allows us to input and view data to and from memory locations in the Kenbak-1 In this section, we’ll cover each of the front panel buttons as well as the indicator lights. In this post, I’ll cover the Read More »

Kenbak-1 Front Panel Interface

COSMAC 1802 OR & AND

Introduction to COSMAC 1802 OR & AND Statements COSMAC 1802 OR & AND instructions allow us to manipulate data. These instructions work on all 8 bits of a word at a time. These instructions work just like standard bit level logic gates work. They just perform the operation bit by Read More »

COSMAC 1802 OR & AND

COSMAC 1802 Subroutines

Introduction to COSMAC 1802 Subroutines We use COSMAC 1802 Subroutines to execute a specific set of instructions. For example, we might have a subroutine that causes a delay every time we execute it. You could also have a subroutine that converts Celsius to Fahrenheit, or vice versa. We might call Read More »

COSMAC 1802 Subroutines

COSMAC 1802 Basic Branching

Introduction to COSMAC 1802 Basic Branching COSMAC 1802 Basic Branching instructions allow you to execute different parts of code based on certain conditions. These conditions might include inputs that are high, or results of an operation that return a zero value, negative value, etc. In this section, we’ll cover the Read More »

COSMAC 1802 Basic Breanching

COSMAC 1802 Subtract Instructions

Introduction to COSMAC 1802 Subtract Instructions COSMAC 1802 Subtract Instructions will subtract the accumulator (D Register) from an immediate value, or a memory location (or vice-versa) In this post, we’ll go over each of these instructions, and how you would use them in your logic. There are eight subtract instructions Read More »

COSMAC 1802 Subtract Instructions

COSMAC 1802 Addition Instructions

Introduction to the COSMAC 1802 Addition Instructions There are four COSMAC 1802 Addition Instructions: ADD, ADI, ADC, and ADCI. In this section we’ll take a closer look at each one of these instructions. Basically, the ADD statement will add a memory location to the value in the accumulator. The ADI Read More »

COSMAC 1802 Addition Instructions

COSMAC 1802 Store Instructions

Introduction to the COSMAC 1802 Store Instructions The COSMAC 1802 Store Instructions allow us to store data to memory from the accumulator. We’ll discuss the different types of store instructions, and how they operate. You only have two store instructions, the STR (Store), and STXD (Store and Decrement). You can, Read More »

COSMAC 1802 Store Instructions