MICROCONTROLLER UART TUTORIAL using pic microcontoller

RS232 EIA232F TTL and USB Adaptor Examples Tx and Rx Baud Rate, Misc Asynchronous Tx Loop-Back Test $50 Robot UART What is the UART? The UART, or Universal Asynchronous Receiver / Transmitter, is a feature of your microcontroller useful for communicating serial data (text, numbers, etc.) to your PC. The device changes incoming parallel information (within the microcontroller/PC) to serial data which can be ...

Read more

EasyEDA features for Schematic and PCB design

EasyEDA is a unique cloud-based EDA tool, designed to give electrical/electronic engineers, educators, engineering students and electronics hobbyists an easier EDA Experience. The objective of this cloud based circuit design tool is to help designers move from idea to manufactured prototype by providing comprehensive data and collaboration tools for electronic design. It is suitable for all users spanning f ...

Read more

Starting with PICmicro controllers

intro, first steps, tips, links, etc. (C) 2002 .. 2005 Wouter van Ooijen ([email protected]) Last change made at 2005 AUG 18. The latest version of this document can be found at http://www.voti.nl/swp. Unaltered duplication is allowed. Translations require approval of the author, which will most likely be granted if the quality of the translation is adequate. This is not a fool's guide: fools are much more foo ...

Read more

I2C bus for 24LC16 For CSS Compiler

  #include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3) #INCLUDE "LCD_4BIT.C" #include "I2C_24LCxx.c " int8 value,setpoint=112; void main(){ setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_c(0B100 ...

Read more

One wire bus (DS1820) Control For Basic PRO Compiler

Include "modedefs.bas" @ Device PIC16F877,XT_OSC,WDT_off,PWRT_off,PROTECT_off ,BOD_Off define adc_bits 8 define osc 4 DEFINE LCD_DREG PORTD DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 0 low portD.2 trisa = $ff trisb = $00 TRISD = $00 adcon1 = 7 temperature VAR WORD count_remain VAR BYTE count_per_c VAR BYTE sV var byte PV var byte mode var porta.0 up var ...

Read more

PIC12F675 Tutorial 7: A Servo controller driving a standard servo motor using serial port command

This servo controller generates a signals to control a standard servo motor (I used a Futaba servo but you can use any servo) using the 12F675 microcontroller.  You can type a text command into a serial terminal e.g Hyperterminal to set the position of the servo. The project software works slightly differently to the previous one as interrupts are used for pulse timing - this lets it both service the serial ...

Read more

Shift left – shift right value For CSS Compiler

#include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) int8 x,k; void main() { setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_b(0x00); output_b(0); k=0; x=0x01; while(true) { for(k=0;k<=7;++k){ output_b (x); delay_ ...

Read more

PIC Microcontroller Unit(PIC16F877A)

A Project entitled "PIC Microcontroller Unit" presented by Quezon City Polytechnic University (QCPU), Fourth year students of Bachelor of Science in Information Technology (BSIT), Major in Computer Technology. For the elecytive subject of "MIcroprocessor". Submitted by Group number two(2) and to be submitted to Professor Ambito. For School Year 2012-2013, Second Semester. Group Members: Graellos Cesar Jr. G ...

Read more

How to work with inbuilt Analog Comparators of PIC18F4550

Analog comparator is an electronic device which compares the two voltage signals and provides TTL logic output to indicate the larger signal. The analog comparator is used in various applications where two inputs signals need to be compared. IR sensor is a very common example where analog comparator is used. PIC18F4550 has two in-built comparators which can be used in eight different modes. These in-built c ...

Read more

How to work with External (Hardware) Interrupts of PIC18F4550

Interrupts are special events that require immediate attention. They cause the processor to cease the running task to serve a special task for which the interrupt event had occurred. After the special task is over, the processor resumes performing the original task. The processor can also serve these events by polling method. But polling is an inefficient technique as compared to interrupts. In the polling ...

Read more
Scroll to top