Sunday, 25 March 2012

9th week ( 19 Mar 2012 - 23 Mar 2012 )

Tittle of activity :
  • Project research

Basic features of PIC16F877A

200 nanosecond instruction execution
35 single word instructions
CMOS FLASH-based 8-bit
40 or 44 pins package
Memory : RAM/ROM(EEPROM)
Timers (2 x 8 bit & 1 x 16 bit)
ADC (8 channels, 10 bit)

PIC 16F877 Block Diagram 



  • PIC 16F877A Data sheet ( please see this link )

Saturday, 17 March 2012

8th week ( 12 Mar 2012 - 16 Mar 2012 )

Tittle of activity :
  • Project research
Microcontroller PIC16F877A

      The microcontroller is simply a computer on a chip. It is one of the most important developments in electronics since the invention of the microprocessor itself. It is essential for the operation of devices such as mobile phones, DVD players, video cameras, and most self-contained electronic systems. The small LCD screen is a good clue to the presence of an MCU (Microcontroller Unit) – it needs a programmed device to control it. Working sometimes with other chips, but often on its own, the MCU provides the key element in the vast range of small, programmed devices which are now commonplace.


 PIC 16F877 Architecture

           Microcontrollers contain all the components required for a processor system in one chip: a CPU, memory and I/O. A complete system can therefore be built using one MCU chip and a few I/O devices such as a keypad, display and other interfacing circuits. We will now see how this is done in practice in our typical microcontroller.


PIC 16F877 Pin Out

      

 Let consider the pins that are seen on the IC package, and then discover how they relate the internal architecture. The chip can be obtained in different packages, such as conventional 40-pin DIP (Dual In LinePackage), square surface mount or socket format. The DIP version is recommended for prototyping, and is shown in Figure below 





       Most of the pins are for input and output, and arranged as 5 ports: A(5), B(8), C(8), D(8) and E(3), giving a total of 32 I/O pins. These can all operate as simple digital I/O pins, but most  have more than one function, and the mode of operation of each is selected by initialising various 
control registers within the chip. Note, in particular, that Ports A and E become ANALOGUE  INPUTS by default (on power up or reset), so they have to set up for digital I/O if required.
      
        Port B is used for downloading the program to the chip flash ROM (RB6 and RB7), and RB0 and RB4–RB7 can generate an interrupt. Port C gives access to timers and serial ports, while Port D can be used as a slave port, with Port E providing the control pins for this function. 

        The chip has two pairs of power pins (VDD 5 V nominal and Vss 0V), and either pair can be used. The chip can actually work down to about 2 V supply, for battery and power-saving operation. A low-frequency clock circuit using only a capacitor and resistor to set the frequency can be connected to CLKIN, or a crystal oscillator circuit can be connected across CLKIN and CLKOUT. MCLR is the reset input; when cleared to 0, the MCU stops, and restarts when MCLR   1. This input must be tied high allowing the chip to run if an external reset circuit is not connected, but it is usually a good idea to incorporate a manual reset button in all but the most trivial applications.






Sunday, 4 March 2012

7th week ( 27 Feb 2012 - 2 Mar 2012 )

Tittle of activity :
  • Project research

Backup camera ( reverse, forward, side view )


         A backup camera is a special type of video camera that is produced specifically for the purpose of being attached 
to the rear of a vehicle to aid in backing up. Backup cameras are alternatively known as 'reversing cameras' or 'rear 
view cameras'.
         The design of a backup camera is distinct from other cameras in that the image is horizontally flipped so that the output is a mirror image. This is necessary because the camera and the driver face opposite directions, and 
without it, the camera's right would be on the driver's left and vice versa. A mirrored image makes the orientation of 
the display consistent with the physical mirrors installed on the vehicle. A backup camera typically sports a wide-
angle or fisheye lens. While such a lens spoils the camera's ability to see faraway objects, it allows the camera to 
see an uninterrupted horizontal path from one rear corner to the other. The camera is typically pointed on a downward 
angle, to view potential obstacles on the ground as well as the position of approaching walls and docks, rather than 
straight back.