Making Music with PIC10F322 : Twinkle Twinkle Little StarCreating the MelodySteps to Create the MelodyThe Circuit:The Code:Have a Project or Idea!?Seeking Bespoke Technology Solutions?jamie@jamiestarling.com Making Music with PIC10F322 : Twinkle Twinkle Little Star In...
Sound Generation with PIC10F322 NCO and XC8: Emulating the IBM PC/XT BeepThe IBM PC/XT BeepUnderstanding the NCO (Numerically Controlled Oscillator)Key Features of the NCO:Implementing the IBM PC/XT Beep with PIC10F322 and XC8The Circuit:The Code:Have a Project or...
In a previous post, we discussed setting up the PIC10F322 ADC to read the internal temperature sensor. While the primary use of this sensor is to monitor the die's temperature to ensure it operates within its thermal limits, there are creative ways to utilize this...
PIC10F322 Internal Temperature Module The PIC10F322 microcontroller is equipped with an internal temperature indicator module that measures the operating temperature of the silicon die. This feature is crucial for ensuring that the microcontroller operates within its...
SetupHigh-Level OverviewDetailed ExplanationHardware ConfigurationThe Circuit…The CodeFuture ImprovementsSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions? In this tutorial, we will create a light-activated switch using the PIC10F322 microcontroller...
PIC10F322 ADC and PWM for LED Brightness ControlOverviewThe CircuitAnd now… for the code.How the Code WorksSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions? PIC10F322 ADC and PWM for LED Brightness Control In this guide, we will explore how to...
Getting Started with ADC on PIC10F322 Using XC8Enabling and Using the ADCStep-by-Step ProcessConfigure the Port:Configure the ADC Module:Select ADC input channel:Turn on the ADC module:Start ADC Conversion:Wait for ADC Conversion to Complete:Read the ADC...
Why Replace __delay_ms()?The CircuitSetting Up Timer0 and InterruptsHow the Code WorksAdvantages of Using Interrupt-Based Delay TimerSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions? In this post, we will explore how to create an interrupt-based...
Implementing interrupts on PIC10F322 using the XC8 compiler is straightforward. This guide provides a quick overview to help you get started. Defining the Interrupt Function To handle interrupts, you need to define an interrupt function (also known as an interrupt...
Replacing the 555 Timer with PIC10F322: Cascaded Timer ApplicationsCascaded Timer OverviewThe CircuitXC8 Code for Cascaded TimerHave a Project or Idea!?Seeking Bespoke Technology Solutions? Replacing the 555 Timer with PIC10F322: Cascaded Timer Applications In this...
How to Build Basic Astable Circuits with PIC10F322 NCO as a 555 Timer AlternativeUnderstanding the NCOSetting Up the NCO for a 500kHz OutputChanging the FrequencyAdditional ConsiderationsExample CodeSummaryHave a Project or Idea!?Seeking Bespoke Technology...
PIC10F322 Applications: Replacing 555 Timer with PIC10F322 for Basic Astable CircuitsOverviewXC8 Code for Basic Astable CircuitExplanation of the CodeAdjusting the Pulse Width and FrequencySummarySeeking Bespoke Technology Solutions? PIC10F322 Applications: Replacing...
Introduction to Timer0 on PIC10F322Timer0 ModesCounter Mode:Timer Mode:Timer0 PrescalerPractical Example: LED Blinker Using Timer0Code OverviewLogic Scope ViewCircuitThe CodeExplanation of the CodeTimer0 Calculation ExampleSummaryHave a Project or Idea!?Seeking...
How to Use PIC10F322 for Basic Monostable Circuits: A 555 Timer AlternativeWhy Use PIC10F322 Instead of a 555 Timer?The Monostable CircuitAbout The CircuitXC8 Code for the Monostable CircuitAdjusting the Pulse DurationSummaryHave a Project or Idea!?Seeking Bespoke...
Understanding and Implementing PWM with the PIC10F322 Using XC8PWM Output PinsPWM Setup InstructionsUnderstanding PWM TermsHow PWM WorksAbout the PIC10F322 PWM ModuleSetting Up PWM on PIC10F322Calculating PWM Duty CycleHere is the logic analyzer on the 33% duty...
Creating a Trigger-Activated Dual Alternating Flasher with PIC10F322 for Model Train Level Crossing LightsPIC10F322 Project OverviewThe CircuitXC8 Code for Trigger-Activated Dual Alternating FlasherExplanation of the CodeSummaryHave a Project or Idea!?Seeking Bespoke...
PIC10F322 Button Debounce Tutorial : Step-by-Step XC8 CodeHow Debouncing WorksExplanation of the Debouncing ProcessThe CircuitDebouncing CodeHow to Use This CodeTroubleshootingSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions? PIC10F322 Button...
What Are Weak Pull-Up Resistors?Setting Up Weak Pull-Up ResistorsExample CodeThe CircuitXC8 Code for Weak Pull-Up ResistorsHow It WorksTroubleshootingSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions? Understanding and Using Weak Pull-Up Resistors on...
OverviewInternal Oscillator FrequenciesXC8 Code to Generate Clock Reference Output on PIC10F322Have a Project or Idea!?Seeking Bespoke Technology Solutions? This guide demonstrates how to generate a clock reference output on PortA.2 of the PIC10F322 microcontroller...
A Simple Traffic Light Controller Using PIC10F322 and XC8The Traffic Light Circuit based on PIC10F233XC8 Code for Traffic LightCustomizing the TimingSum it upHave a Project or Idea!?Seeking Bespoke Technology Solutions? A Simple Traffic Light Controller Using...
The CircuitXC8 Code for Dual Alternating FlasherHow to Customize the Blink IntervalSummaryHave a Project or Idea!?Seeking Bespoke Technology Solutions?jamie@jamiestarling.com Looking for a way to create eye-catching model train level crossing lights? This guide...
Blinking an LED on a microcontroller is often considered the “Hello World” program for embedded systems. It's a great starting point for learning how to control hardware with software. This guide provides the XC8 code and circuit setup to blink an LED...
Simplifying Your PIC10F322 Projects with a Standard Header FileCreating the Header FileContents of the Header FileBenefits of Using a Standard Header FileHave a Project or Idea!?Seeking Bespoke Technology Solutions? Simplifying Your PIC10F322 Projects with a Standard...
How to Set a Pin as an Output on the PIC10F322 Using XC8Overview of I/O Pins and RegistersStep-by-Step InstructionsConfiguring a Single Pin as an OutputConfiguring Multiple Pins as OutputsConfiguring All Pins as OutputsConfiguring All Pins as OutputsImportant...
Understanding the TRISA Register on the PIC10F322 in XC8Basics of the TRISA RegisterConfiguring Pin RA0 as an OutputDisable Analog Functionality:Set the Pin Direction:Set the Pin High:Important Note about Pin RA3Example CodeSummaryHave a Project or Idea!?...
The Evolution of MCU Programming : From ASM to CThe Shift to CPortability:Efficiency:Ease of Learning:Readability:Industry Relevance:Summing It UpHave a Project or Idea!?Seeking Bespoke Technology Solutions? The Evolution of MCU Programming : From ASM to C When I...
Understanding and Configuring the PIC10F322 System Clock Speed Upon reset or power-on, the PIC10F322 microcontroller defaults to a system clock speed of 8MHz. This default setting remains until you modify it in your code. Default Clock Speed and OSCCON Register When...
PIC10F322 Configuration Bits for XC8 You've just written your first XC8 program for the PIC10F322 and uploaded it to the chip, but nothing happens. The issue might be that you haven't set up the Device Configuration Bits correctly. Proper configuration of these bits...
Understanding PIC10F322 Reset and MCLR The PIC10F322 microcontroller features a reset pin known as MCLR, located at pin RA3 or physical pin 8 on a PDIP device. This optional external input can be used to reset the device when needed. Here's a detailed guide on how to...
In my work with 8-bit microcontrollers, including the PIC10F322, I often rely on a +5V power supply. It's a tried-and-true method, appreciated for its reliability. Precision Power Regulation for the PIC10F322 To ensure optimal performance of the PIC10F322, a...
Streamline Your Projects with my PIC10F320 and PIC10F322 Pin Out Diagrams Are you seeking tailored, innovative solutions that streamline your work with PIC10F320 and PIC10F322 microcontrollers? Look no further. My custom visual map is crafted precisely to meet your...
{Content System Abstract}{Content System – Core Concept }{Focus on Long Tail Niches}{Content Aggregation}{Automation}{Attractors (Magnetic Mechanisms)}{Targets}{Optimization}{AND HERE IS THE PROBLEM – Or Problems}{Phase One}{Phase Two}{Phase Three}Local...
In case you didn't know – I enjoy model building – specifically model railroading. I have a website – Model-Rail Crafters where I sell the things I create. I thought I would run through the process of creating a simulator. In this case –...
PIC16F15214 MCU Overview The PIC16F15214 is an cost effective upgrade from the PIC10F322. This MCU will give you two more I/O pins compared to the PIC10F322 – About 14 times the flash program space, 8x the SRAM space, and various other peripherals such as...
So, what is the Difference between the PIC16F15213 and PIC16F15214? FLASH Program Space and SRAM Size. PIC16F15213 has 3.5K Program Flash Memory and 256 Bytes of SRAM. PIC16F15214 has 7K Program Flash Memory and 512 Bytes of SRAM. You get double the Program Space and...
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...
PIC16F15213 MCU Overview. The PIC16F15213 is a 8 Pin cost effective upgrade from the PIC10F322. This MCU will give you two more I/O pins compared to the PIC10F322 – About 7 times the flash program space, 4x the SRAM space, and various other peripherals such as...
Capture Image From Webcam – Using Python and OpenCV. Let's take a quick look on how we can use OpenCV2 to capture a single frame from a webcam. The code below uses a web cam to capture a single frame, that stores the results in the image variable. We are using...
Z80 Pinouts CPU View Z80 CPU Pinout Grouped by Function Z80 CPU Pinout Signal Functions {Address Bus} A0-A15 – Address bus output tri-state (active High) 16bit Address Bus, provides address for memory data exchanges (up to 64K) and for IO device data exchanges....
Introduction to the Z80 CPU The Z80 CPU, introduced by Zilog, marks the company's first foray into microprocessors. Conceived by Federico Faggin in late 1974 and developed by him and his team of 11 employees starting in early 1975, the Z80 quickly became a cornerstone...
Using OpenCV – Convert Image to Gray Scale in Python. In the past posts we looked at doing some image conversions using arrays and manual steps. All that is fun, it lets us see what is going on inside the black box. However, deadlines and everything else –...
Histogram for a Gray Scale Image – Using Python. What is an image histogram – it is a profile of the occurrences of each gray level present in an image. In the visual example below – we are using a bar graph to visualize it. It starts at 0 and goes...
In the last post we took a look at averaging the RGB channels to produce a gray scale image. It does require some math division to get the result. If you need a way that is even simpler and faster than averaging – we can extract the values from one of the color...
Let's us look at some ways of converting a color image into a black and white or gray scale image. The most straight forward approach is averaging the three color channels, RGB. GrayValue = (Red + Green + Blue) / 3 You do this for every pixel. It is quick and dirty....
There are a tons of image already – instead of going though the pain staking process of creating by hand our own images, I am going to use an image I already captured. And yes, it is of my three cats. I am also adding to the collection of cat images on the...