Saturday, September 13, 2014

How many main functions we can write in single program of C /C++ ?

We can write two main functions in a single program.but we should write one main function as main function and other main function as calling function  in that main function....as shown in below

#include<stdio.h>
void main()
{
    printf("hello im going to enter into second main\n ");
    main();
   printf("im still waiting for execution...\n");
}


from the above program first execution start from the first main ,then it will execute and prints the massage
"hello im going to enter into second main"
hello im going to enter into second main
hello im going to enter into second main
hello im going to enter into second main
hello im going to enter into second main
hello im going to enter into second main
hello im going to enter into second main
..................................

it will never print the massage  "im still waiting for execution..."   because it will execute and repeats the first printf only because main calls main only..............

Sunday, August 31, 2014

Raspberry pi B+ features

Features of Raspberry Pi B+ :-

1.Broadcom BCM2835 SoC.

2.700Mhz ARM1176JZF-S core pi.

3.Broadcom Video core IV cpu.

4.512MB RAM.

5.4 X USB2.0 ports with up to 1.2A output.

6.Expanded 40 pin GPIO header.

7. Video/Audio out via 4-pole 3.5 mm connector HDMI .

8.Storage: Micro SD

9. 10/100 Ethernet (RJ45).

10. Low  level peripherals:
     a) 27 X GPIO
     b) UART
     c) I2C BUS.
     d) SPI bus with to chip selects.
     e) +3.3 V.
     f) +5 V.
     g)  ground.
11. Power  requirements: 5V @ 600MA via micro USB or GPIO header.

12. Supports debian GNU/LINUX ,Fedora,Arch Linux,RISC OS and more.

How many cores does raspberry pi have?


Raspberry pi has single core and ARM1176JZ-F of 700MHz

Tuesday, July 22, 2014

TOP 10 LANGUAGES YOU SHOULD LEARN IN 2014


LANGUAGES LIST:-

1.JAVA-35.7%


2.C ,C++ - 15.3%

3.C# -12.7%

4.Peri- 11.9%

5.Java script-10.9%

6.Visual basic .Net-5.2%

7.PHP- 2.9%

8.Ajax-2.7%

9.Python-2.0%

10.Ruby-0.7%

Wednesday, July 16, 2014

Wi-Fi TECHNOLOGY




                                        CLICK HERE TO READ THIS TECHNOLOGY

RFID TECHNOLOGY


                                 CLICK HERE TO READ THIS TECHNOLOGY

GSM TECHNOLOGY



                                         CLICK HERE TO READ THIS TOPIC

MEMS TECHNOLOGY



    MEMS is the Micro Electro Mechanical System, it is used as a sensor to monitor the change in angles of devices and vibrations etc.

                                              CLICK HERE TO READ MORE

Saturday, July 12, 2014

what is the need of pull up resisters in microcontroller 8051?

In 8051 micro controller have 4 ports ,out of these 4 ports port0 doesn't has internal pullup resisters ,so if we want to use that port as output port we need to connect external pull up resisters of 10kohm to protect from high currents...

Program to blink led with some time delay using 8051

/****** Program to blink led with some time delay******/
 /******************************************************/
 // Controller used: AT89S52  **************************/
 // Keil IDE version: 4                                //
 // Language : Embedded C                               //
 // O.S: Windows 7                                       //
 // Clock frequency: 11.0592Mhz   
 // copyright: venkys vision it solutions                       //
 /******************************************************/

 /***********PORT CONNECTIONS***************************/
 // LED =P0.0
 // Time delay= 20ms
 /******************************************************/

 #include<reg52.h>
 sbit led=P2^0;
 void delay(unsigned int);
 int main()
 {
  while(1)
  {
      led=0; // led off
       delay(20);
       led=1; // led ON
     delay(20);
  }
}
void delay(unsigned int i)
{
 unsigned int j;
 for(i;i>0;i--)
 for(j=0;j<=1275;j++);    // for 1ms timedelay
}

Wednesday, June 11, 2014

working of transistor


Working Of Transistor

For proper working of a transistor, the voltage at the base region must be more positive than that of the emitter region. The voltage at the collector region, in turn, must be more positive than that of the base region(to put it vaguely collector>base>emitter).
When voltage is applied to transistor, the emitter supplies electrons, which is pulled by the base from the emitter as it is more positive than the emitter.
This movement of electrons from emitter to collector creates a flow of electricity through the transistor. The current passes from the emitter to the collector through the base.
Thus, adjustment of voltage in the base region modifies the flow of the current in the transistor by changing the number of electrons in the base region.
In this way, small changes in the base voltage can cause large changes in the current flowing out of the collector.
Let us compare transistor with valve to understand working of transistor.

All transistors have three "elements": 
  • Emitter - analogous to the cathode of a valve. The emitter only emits electrons in a NPN device.
  • Base - the controlling terminal. A current at the base controls the current through the transistor.
  • Collector - basically, collects the emitted electrons. Somewhat analogous to the plate of a valve.

Using working of pump, functioning of transistor can be explained easily.
Let us consider working of pump on water current, which is similar to working of transistor on current.
There are three openings in the pump, which have been labeled as follows
1. Opening "B", similar to Base of transistor.
2. Opening "C", similar to collector of transistor.
3. Opening "E", similar to emitter of transistor.
 
http://www.embeddedworldbyvenkynaidu.blogspot.in/
Suppose, the main tank passes water into the opening "C"(same as source supplying voltage to collector) but the water cant flow ahead as there is a big plunger on the way, which is blocking the outlet to "E". Now, at this stage, if more water is passed out of main tank to opening "C", it will burst our pump (just the same way if we increase the voltage to a real transistor).
Now, if we pour water into opening "B" this water flows along the "Base" pipe and pushes plunger upwards, allowing some water to flow from opening "C" to opening "E". At this point of time, some water from "B" also gets added to the water running from "C to E". If more water is poured into "B", the plunger moves up further due to which a great amount of water current flows from "C" to "E".
Thus, by controlling amount of water flowing into "B", flow of water from "C" to "E" can be controlled.
Therefore, we can control a BIG flow of current with a SMALL flow of current.
If we continually change the small amount of water flowing into "B" then we cause corresponding changes in the LARGE amount of water flowing from "C" to "E". So 1mA flowing into "B" would allow 100mA to flow from "C" to "E".
The amount of current that flows from "C" to "E" is limited by the "pipe diameter". So, no matter to what extend plunger is pushed inside opening "C". Water flowing from "C to E" can`t exceed beyond a certain level.
The transistor can be used to switch the current flow on and off. If we put sufficient current into "B" the transistor will allow the maximum amount of current to flow from "C" to "E". The transistor is switched fully "on".
If the current into "B" is reduced to the point where it can no longer lift the black plunger thing, the transistor will be "off". Only the small "leakage" current from "B" will be flowing. To turn it fully off, we must stop all current flowing into "B".
In a real transistor, any restriction to the current flow causes heat to be produced. To get rid of this heat, the transistor might be clamped to a metal plate, which draws the heat away and radiates it to the air. Such a plate is called a "heat sink”

Friday, May 30, 2014

ARM 11 Based projects



                                                ARM11 BASED PROJECTS