PIC12F675 Tutorial 3 : PIC Serial Port

The 12F675 does not have a built in USART that you can use for a PIC serial port so you have to use a software USART which you can download from this page. Adding a pic serial port connection to the circuit gives you scope for much more interesting projects as you can collect data from the ADC (inputs) or comparator or external infrared receiver module etc. and transmit it to a PC. This tutorial covers crea ...

Read more

How to configure EUSART in PIC18F4550

Both, Parallel and Serial modes of communication have certain advantages and disadvantages over one another. The serial communication is a preferred option due to its ability of long distance communication with error detection capability. The microcontrollers consist of an inbuilt hardware unit known as USART (Universal Synchronous Asynchronous Reception and Transmission) to facilitate serial transfer of da ...

Read more

RS232 Communication using PIC18F4520’s USART – PIC Microcontroller Tutorial

RS232 can be used to communicate between a variety of devices. Like your MCU and a GSM module or a PC. In this tutorial we will demonstrate a link between a PIC18F4520 MCU and a standard PC. On PC we will run a terminal program like RealTerm or Hyperterminal. A terminal program is used to send and receive text data. So any text send by the MCU will be visible on Terminal Screen and Any keypress you make on ...

Read more

Timer 0 mode timer For CSS Compiler

  // Generator frequency 100 Hz with Timer0 For Pic16f877 // //#include "D:\MICRO_PICC_Group\timer\timer_0\timer_0_100hz.h" #include <16F877.h> #device adc=8 #FUSES NOWDT,XT //No Watch Dog Timer #use delay(clock=4000000) int1 time; #int_RTCC void RTCC_isr(void) { output_toggle(pin_b0); /* time =!time; if(time==1){ output_high(pin_b0); } if(time==0){ output_low(pin_b0); }*/ set_timer0(236); } void ...

Read more

PIC12F675 Tutorial 5 : A Temperature data logger using PIC EEPROM

This PIC microcontroller EEPROM project saves the temperature from an LM35DZ IC to the PIC's internal long term data storage area.  The project follows on from the last project using the virtually the same hardware. It stores temperature readings internally at regular intervals until full and after this it turns on the LED. The LED is really just for showing that something is happening and in a real data lo ...

Read more

PIC12F675 Tutorial 4 : Making an LM35 temperature recorder

This page shows you how you can make an LM35 an temperature recorder by using the 12F675 PIC microcontroller as the controller and data store. It generates serial output so that you can view the results on a PC and it also calculates the temperature reading in Fahrenheit sending both to the serial port at half second intervals. The project uses the code from the previous tutorials to report the temperature ...

Read more

How to interface GPS with PIC18F4550 Microcontroller

Global Positioning System is based on satellite navigation technology. A GPS Receiver provides the accurate location of an object in terms of latitude and longitude. Accurate time calculation with respect to GMT can also be done by using GPS. For more information on different data obtained through GPS, refer GPS Receivers. Here a PIC microcontroller has been interfaced with a GPS module to extract its posit ...

Read more

Microchip PIC16F877 Microcontroller using pic-microcontroller

Table of Contents   Introduction 1 What is a Microcontroller? 2 Why are Microcontrollers used? 2 Getting started 1 Parts list and vendors 2 Connecting the equipment 3 PIC16fF877 Microcontroller 1 Flash PIC development board 2 CCS PIC-C compiler 3 In Circuit Debugger/Programmer (ICD-S) 4 Embedded C Programming and the Microchip PIC 4 Experiments on PIC16F877 1 LED 2 Dip Switch 3 ADC Temperature Measurem ...

Read more

How to work with inbuilt ADC Module of PIC18F4550

A microcontroller, a digital device, can read, execute and transmit only digital signals. On the contrary, the outputs of the most of the transducers are analog in nature. Thus it is hard to interface these transducers directly with controllers. Analog-to-digital convertor (ADC) ICs are one way to make the analog input compatible with the microcontroller. Using an external ADC adds complexity to the circuit ...

Read more

Hee Haw Sound

This experiment creates a Hee Haw sound for an alarm. The diagram shows the number of cycles for the HEE and the time taken for each cycle, equates to a certain length of time. The frequency of the HAW is lower and the number of cycles must be worked out so that the time for the HAW is equal to the time for the HEE. This is simple when writing the program. The values loaded into the two files for the HEE ar ...

Read more
Scroll to top