PIC16F15214 Device Peripherals

PIC16F15214 Device Peripherals Digital Peripherals: Two Capture/Compare/PWM (CCP) Modules: 16-bit resolution for Capture/Compare modes – 10-bit resolution for PWM mode Two Pulse-Width Modulators (PWM):  10-bit resolution – Independent pulse outputs...

PIC16F15213 Device Peripherals

PIC16F15213 Device Peripherals List. Digital Peripherals: Two Capture/Compare/PWM (CCP) Modules: 16-bit resolution for Capture/Compare modes – 10-bit resolution for PWM mode Two Pulse-Width Modulators (PWM):  10-bit resolution – Independent pulse...

PIC16F15213 Pin Diagram

PIC16F15213 Pin Diagram – Image. PIC16F15213 Pin Out Diagram VSS – GroundVDD – Operating Voltage Range: 1.8V to 5.5V **NOTE RA3 – {MCLR} If used for IO is an input pin only! Cannot be used as Output. Cannot be used for Analog ADC Pin...

Microchip PIC10F322 Resources

A list of my : Microchip PIC10F322 Resources PIC10F322 and XC8 Code : Internal Temperature Sensor : Creative Use Seed Random Number GeneratorPIC10F322 and XC8 Code : Internal Temperature Module : How To ReadMicrochip PIC10F322 ResourcesPIC10F322 and XC8 Code : Light...

PIC10F322 XC8 Interrupts : Overview

PIC10F322 XC8 Interrupts – Here is a quick overview of how to get interrupts going in XC8. You will need to define your interrupt function or handler in your code. void __interrupt () isr_routine (void) { } The name isr_routine can be anything you want, however...

PIC10F322 Applications : Cascaded Timer

PIC10F322 Cascaded Timer – when input on PORT.A2 goes low – PORT.A0 will go high, for 1 second, then LOW, Then PORT.A1 will go high, for one second, then LOW. The on time can be changed by adjusting the PulseOut_Time. Of course you can move the input to PORT.A3 and...

Understanding XC8 MPLAB C Header Files

Received a question about – How to separate a program into multiple files. Simple programs can be put in a single file, but when your program grows larger, while it isn’t impossible to keep it all in one file, it starts to become a big pain in the rear. The purpose of...

PIC10F322 Applications : Basic Astable

Continuing with using a PIC10F322 as a 555 replacement – Here is a basic Astable XC code. The output pulses are on PORT.A0 Run down of the code We do some basic setup to get output on Port.A0, Set the speed of the cpu to 16Mhz. The code loop, toggles PORT.A0 on and...

PIC10F322 : XC8 : Timer0 Module

The PIC10F322 has two Timer Modules – we are going to take a look at TMR0 (Timer 0). Timer 0 – is an 8bit timer/counter – that can be incremented by either an external signal or internal instruction clock FOSC/4. When the timer overflows – (reaches 0xFF and turns over...

PIC10F322 : XC8 Code : PWM Functions

The PIC10F322 has two PWM modules. The period or frequency of the PWM output is common to all PWM modules, whereas the duty cycle is independently controlled. The two pins where the PWM output is present are: PORT A0 PWM1PORT A1 PWM2 During setup – make sure to set...

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