XC8 Archives - electroSome https://electrosome.com/tag/xc8/ You Inspire.....We Create..... Sun, 05 Sep 2021 13:29:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 Digital Alarm Clock using PIC Microcontroller and DS3234 RTC https://electrosome.com/digital-alarm-clock-pic-microcontroller-ds3234-rtc/ https://electrosome.com/digital-alarm-clock-pic-microcontroller-ds3234-rtc/#comments Sat, 11 Apr 2020 14:44:29 +0000 https://electrosome.com/?p=13663 Here is a digital alarm clock made using PIC 18F4520 Microcontroller and DS3234 RTC (Real Time Clock). This project is for educational purposes or can be used as a reference for integrating DS3234 RTC. DS3234 is a very accurate RTC IC with integrated on chip temperature compensated crystal oscillator. It can be integrated with a […]

The post Digital Alarm Clock using PIC Microcontroller and DS3234 RTC appeared first on electroSome.

]]>
https://electrosome.com/digital-alarm-clock-pic-microcontroller-ds3234-rtc/feed/ 14
SPI Communication with PIC Microcontroller – MPLAB XC8 https://electrosome.com/spi-pic-microcontroller-mplab-xc8/ https://electrosome.com/spi-pic-microcontroller-mplab-xc8/#comments Mon, 01 May 2017 08:01:32 +0000 https://electrosome.com/?p=13670 SPI (Serial Peripheral Interface) is a full duplex synchronous serial communication interface used for short distance communications. It is usually used for communication between different modules in a same device or PCB. SPI devices communicates each other using a master slave architecture with a single master. SPI is called as a 4-wire bus as it requires […]

The post SPI Communication with PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/spi-pic-microcontroller-mplab-xc8/feed/ 2
I²C Communication with PIC Microcontroller – MPLAB XC8 https://electrosome.com/i2c-pic-microcontroller-mplab-xc8/ https://electrosome.com/i2c-pic-microcontroller-mplab-xc8/#comments Mon, 11 Apr 2016 17:02:37 +0000 https://electrosome.com/?p=11919 I2C or IIC or I2C stands for Inter-Integrated Circuit. It is a very popular multi-master, multi-slave serial communication interface developed by Philips. I2C uses two bidirectional open drain data lines, Serial Data (SDA) and Serial Clock (SCL) with pull up resistors as shown below. Unlike UART, you can connect and communicate to multiple devices using the same […]

The post I²C Communication with PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/i2c-pic-microcontroller-mplab-xc8/feed/ 69
Using ADC of PIC Microcontroller – MPLAB XC8 https://electrosome.com/adc-pic-microcontroller-mplab-xc8/ https://electrosome.com/adc-pic-microcontroller-mplab-xc8/#comments Thu, 12 Nov 2015 07:25:55 +0000 https://electrosome.com/?p=11418 In this tutorial we will learn, how to use the ADC module of a PIC Microcontroller using MPLAB XC8 compiler. For demonstration we will use the commonly available PIC 16F877A microcontroller. Every physical quantity found in nature like temperature, humidity, pressure, force is analog. We need to convert these analog quantities to digital to process […]

The post Using ADC of PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/adc-pic-microcontroller-mplab-xc8/feed/ 28
Generating PWM with PIC Microcontroller – MPLAB XC8 https://electrosome.com/pwm-pic-microcontroller-mplab-xc8/ https://electrosome.com/pwm-pic-microcontroller-mplab-xc8/#comments Thu, 21 May 2015 13:00:52 +0000 https://electrosome.com/?p=11152 Pulse Width Modulation (PWM) is the one of the simple and most commonly used technique to produce analog voltages from digital signals. It has a wide variety of applications such as Digital to Analog Converter (DAC), DC Motor Speed Control, Sine Wave Inverters, Brightness control etc. PWM signals are ON – OFF signals (HIGH or […]

The post Generating PWM with PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/pwm-pic-microcontroller-mplab-xc8/feed/ 32
Using UART of PIC Microcontroller – MPLAB XC8 https://electrosome.com/uart-pic-microcontroller-mplab-xc8/ https://electrosome.com/uart-pic-microcontroller-mplab-xc8/#comments Fri, 03 Oct 2014 11:01:27 +0000 https://electrosome.com/?p=8641 UART stands for Universal Asynchronous Receiver / Transmitter. It is a very popular serial communication interface which provides Full Duplex communication between two devices. UART uses two data lines for sending (TX) and receiving (RX) data. Ground/Reference of both devices should be made common. As the name indicates it is an asynchronous communication interface, which […]

The post Using UART of PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/uart-pic-microcontroller-mplab-xc8/feed/ 54
Interfacing LCD with PIC Microcontroller – MPLAB XC8 https://electrosome.com/lcd-pic-mplab-xc8/ https://electrosome.com/lcd-pic-mplab-xc8/#comments Mon, 18 Aug 2014 12:40:03 +0000 https://electrosome.com/?p=8468 In this tutorial we will see How to Interface a 16×2 character LCD module with PIC 16F877A Microcontroller using MPLAB X IDE and MPLAB XC8 C Compiler. 16×2 Character LCD is a very basic and low cost LCD module which is commonly used in electronic products and projects. 16×2 means it contains 2 rows that […]

The post Interfacing LCD with PIC Microcontroller – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/lcd-pic-mplab-xc8/feed/ 136
Interfacing HC-SR04 Ultrasonic Sensor with PIC Microcontroller https://electrosome.com/hc-sr04-ultrasonic-sensor-pic/ https://electrosome.com/hc-sr04-ultrasonic-sensor-pic/#comments Tue, 12 Aug 2014 17:18:28 +0000 https://electrosome.com/?p=8423 HC-SR04 Ultrasonic Distance Sensor is a popular and low cost solution for non-contact distance measurement function. It is able to measure distances from 2cm to 400cm with an accuracy of about 3mm. This module includes ultrasonic transmitter, ultrasonic receiver and its control circuit. HC-SR04 module has 4 pins : VCC – 5V, +ive of the power […]

The post Interfacing HC-SR04 Ultrasonic Sensor with PIC Microcontroller appeared first on electroSome.

]]>
https://electrosome.com/hc-sr04-ultrasonic-sensor-pic/feed/ 226
Using Push Button Switch – MPLAB XC8 https://electrosome.com/switch-pic-microcontroller-mplab-xc8/ https://electrosome.com/switch-pic-microcontroller-mplab-xc8/#comments Mon, 14 Jul 2014 19:36:55 +0000 https://electrosome.com/?p=8181 I hope that you already go through the first tutorial of MPLAB XC8, Getting Started with MPLAB XC8 – LED Blinking. In that tutorial we learn how to use an output pin by driving an LED. In this we will learn how to read an Input pin using a push button switch. We already seen […]

The post Using Push Button Switch – MPLAB XC8 appeared first on electroSome.

]]>
https://electrosome.com/switch-pic-microcontroller-mplab-xc8/feed/ 23
Getting Started with MPLAB XC8 Compiler – LED Blinking https://electrosome.com/led-pic-microcontroller-mplab-xc8/ https://electrosome.com/led-pic-microcontroller-mplab-xc8/#comments Tue, 01 Jul 2014 09:11:30 +0000 https://electrosome.com/?p=8002 In this tutorial we will learn How to Blink an LED with PIC Microcontroller using MPAB XC8 Compiler. Recently Microchip released a series of development tools including MPLAB X IDE and MPAB XC Compilers. MPLAB X IDE is a software that runs on a computer intended to develop applications for Microchip’s Microcontrollers and Digital Signal […]

The post Getting Started with MPLAB XC8 Compiler – LED Blinking appeared first on electroSome.

]]>
https://electrosome.com/led-pic-microcontroller-mplab-xc8/feed/ 50