Select Page

 

Latest From My Blog


Art of Technology

PIC10F322 – XC8 Code – Trigger Activated Dual Alternating Flasher – Model Train Level Crossing Lights

In a previous post – we built a dual alternating flasher. Power was supplied to the circuit and the lights flashed back and forth. This is a slight modification to the original circuit – when power is supplied the circuit doesn’t do anything until the input pin A3 is...

PIC10F322- XC8 Code – Input or Button Debounce

XC8 Code for PIC10F320 – PIC10F322 – Input or Button Debounce I put together some code to debounce a signal on the inputs of the PIC10F32X device. Switch debouncing is one of those things you generally have to live with when playing with switches and digital circuits....

PIC10F322- XC8 Code – WPUA Weak Pull Ups

XC8 Code for PIC10F320 – PIC10F322 – WPUA – XC8 Code – Weak Pull Ups The PIC10F322 has internal Weak Pull Up Resistors on all the GPIO ports. Each one can be individually selected. For those who might not know what an internal weak pull up is – it will tie a pin to...

PIC10F322 XC8 Code – Clock Reference Output

PIC10F322 XC8 Code – how to get a clock reference output on Port.A2 Reference Clock Output allows you to, basically turn the Port.A2 pin into a clock out device that you can use to drive other devices that require a clock input (think Z80 Clock input). What is nice...

PIC10F322 – XC8 – Simple Traffic Light

Here is a simple traffic light driven by a PIC10F322. After all what model train layout would not be complete without one? The default times are 4 seconds green, 1 second yellow, 4 seconds red. rinse and repeat. Change the timing by updating: define GREEN_TIME 4000...

PIC10F322 – XC8 Code – Dual Alternating Flasher – Model Train Level Crossing Lights

Need an attention getter? or into model trains? Here is a simple dual alternating flasher XC8 code for the PIC10F322. The LEDs are hooked up to Port.A0 and Port.A1. When power is applied the LEDs will alternate on and off. The default value in the code is set to one...

PIC10F322 – XC8 Code to Blink LED

Blinking a LED on a MCU is much like a “Hello World” program. Here is the XC8 Code and circuit to Blink an LED with a PIC10F322 Micro-controller. The LED is hooked up to PortA0. The code will blink an LED on PortA.0 ever second. The Circuit The Code /* * File:...

PIC10F322 MCU Overview of The Configuration Bits

What Are the Configuration Bits? They are a collection of special bits that can only be modified at program time. Configuration bits are “read” during reset and enable or disable hardware features in the microcontroller. The features controlled by the configuration...

Enabling the PICKit or ICD to Supply Power to Your Target Device – In MPLAB

How to Enable the PICKit or ICD to Supply Power to Your Target Device – In MPLAB By default – when you are using the PICKit or other ICD – the power target circuit from device is disabled. This can be good, if you already are powering the circuit with an external...

PIC10F322 XC8 Expanded Header File

Lets make things a little easier on ourselves by defining a standard header file for our PIC10F322 Projects. I named the file 10F322_deviceconfig.h and place it into my XC8 project directory. To use it, I add it to the headers in my XC8 project and include – #include...

Visual Interventions

Sunset in the Uinta Mountains

Sunset in the Uinta Mountains - This has to be my favorite time of day - near sunset when the shadows are long and the light is golden.

Obstacles in Life

There are always obstacles in life we need to over come - how are you going to adapt, so you can get after it?

Snowy Farm

Snowy Farm - Near Strasburg PA

By The Water

By The Water - Napa Valley CA

Simple Peace

This was at the end of day number two of a three day hike along the AT in North Carolina and Tennessee. The first day started out well, sun blue sky - about 2 hours into it - the bottom broke out and rained that day, and well into the 2nd day. Rain buckets is more...

Road Ahead

From a hike along the AT back in 2017.