Home 9 Author archive for Jamie Starling ( Page 2 )

PIC10F322 : XC8 Code : WPUA Weak Pull Ups

XC8 Code for PIC10F320 – PIC10F322 – WPUA – XC8 Code – WPUA 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...

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 to Blink LED

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...

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...

Why Choose C and not MPASM or Assembly

When I first started in the MCU world there really wasn’t much choice when it came to programming languages. You had to learn ASM if you really wanted to do something. Granted there were flavors of C out there – but in most cases they came at a step price and only...

XC8 : PIC10F322 Configuration Bits

My recommended PIC10F322 Configuration Bits for XC8. So, you just made your first PIC10F322 XC8 program. Uploaded to the chip and….. Nothing… Chances are – did you setup the Device Configuration Bits? Here is the setup I generally use – put this at the top of your...

PIC10F322 Power Supply : Powering

For most of the work, I do with 8bit Microcontrollers – the PIC10F322 is an 8bit controller just saying – I run a +5-power supply. Call me old fashion. To power up the PIC10F322 and depending on how you are going to use it – you need some sort of power regulation...

Pin It on Pinterest