Saturday, 13 June 2015

Serial Communication (Simplex)

Defination

In telecommunication and computer science, serial communication is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. This is in contrast to parallel communication, where several bits are sent as a whole, on a link with several parallel channels.


Types Of Serial Communication:

  1. Synchronous
  2. Asynchronous (Discuss In This Post)

Modes Of Communication 

  1. Simplex (Discuss in This Post)
  2. Half Duplex
  3. Full Duplex

Pin Diagram of RS-232 Connector (Serial Port)



Connection Of PIC with PC

Using Max-232

Using Max-233

Register for Transmitting Status in PIC (TXSTA)

Register for Receiving Status in PIC (RCSTA)


Set Baud Rate In Programming

Baud Rate Values use in C Language Programming

In C Language Program Baud Rate is Set by entering value in SPBRG Register


Formula For Calculating SPBRG


Task

  • Transmit Data on PortB from One Controller and Receive that data and display on PortB on Controller 
Schematic

Video

Softwares

Programming Software








Simulation Software




Friday, 12 June 2015

Traffic Light Controller with 7-segment Multiplex counter

7- Segment Multiplexing Technique

Turn off all 7- segment place data on data bus of 7 segment now turn on the 7 - segment for a short time approx half or 1 millisecond then turn it off now place data on data bus for other segment and repeat the process one by one for all 7-segments.
Schematic

Video


Coding

Coding in Basic Language
Coding in C Language

Wednesday, 10 June 2015

Bit-wise I/O Programming

Logical Operators used in programming

Task

  • Toggle Led in variable speed by reading a button.

Schematic

  • Generate Night rider Pattern using bit-wise programming

Schematic

  • 3-Way Traffic Light using bit-wise programming

Schematic

Monday, 8 June 2015

Input / Output Programming

Selecting the type of port pins

Before you start playing with the port pins, you should declare their type. Each one can be Input or Output. for selecting a pin as output you should clear it's respective TRIS bit for example if you want that pin3(RB2) of PortB act as output so you should clear TRISB.2 using

Command in Basic Language:

LOW TRISB.2

Command in C Language:

TRISB2_bit = 0;                            or                   TRISB &=  ~(1 << RB2)

Similarly for selecting a pin as input you should Set it's respective TRIS bit for example if you want that pin4(RB3) of PortB act as output so you should SET TRISB.3 using

Command in Basic Language:

HIGH TRISB.3

Command in C Language:

TRISB3_bit = 1;                            or                   TRISB |=  (1 << RB3)


Software Downloads







Task

1) Get Data From Port C And Display on PortB

Schematic

2) Night Rider Pattern

Video


Sunday, 7 June 2015

Saturday, 6 June 2015

Introduction













This Blog contain many different projects made up with the help of different microcontroller such as Microchip PIC
Arduino
AVR


You can also send request for any circuit on embededelectronics@gmail.com