Posts

How to execute a c program using bat file in windows OS.

How to execute a c program using bat file in windows OS. Step 1 : Install gcc compiler or any compiler Step 2: Create a file with extension XXX.bat using following code REM - is command which mean comment (like in C as /* some comments about the code */) REM set the compiler path to variable CC. Here SET is a command which put the compiler path in CC SET CC="C:\TDM-GCC-64\bin\gcc.exe" REM call compiler using CC between % symbol is syntax then “-o” command for creating object file then give the path of the object file with filename and extension then give the REM   XX.c file which is needs to be compiled. %cc% -o  E:\gopi\Official\C_learning\Hello_world.exe "E:\gopi\Official\C_learning\Hello_world.c" REM Here executing the XXXX.exe will provide the out put. E:\gopi\Official\C_learning\Hello_world.exe Step 3: Go to the XX.bat file path which is created in step 2 and “Shift” key + Right click then select “ Open comma...

Robert bosch interview question for Embedded c developer in coimbatore ( Tidal park ).

Robert Bosch interview question Location: Coimbatore tidal park                                 Date: 12-04-2014 Job openings: Embedded c developer Requirement: Embedded c language, any controller knowledge, SPI, I2C, UART communication protocol, knowledge about sensors. Interview: 3 rounds Round 1 – technical (face to face) – technical question Round 2 – technical (face to face) - technical questions Round 1 – HR (face to face) – salary discussion and personal information Question asked on interview: Harvard architecture Von numen architecture Types of motor Architecture used in 8051, pic and ARM Difference between Harvard & von numen architecture What happen interrupt execute Difference between UART and I2C Induction motor How to swap a values between two variable in single instru...

How to create Exact 1 millisecond delay in PIC16F877A and Blink led

Image
TO CREATE EXACT 1 MILLISECOND DELAY IN PIC16F877A USING INBUILT DELAY FUNCTION   #define _XTAL_FREQ 20000000 is to initialize the operating frequency of the micro controller.  DELAY IN MILLISECOND : __delay_ms(500); is the function to create 500 millisecond, 500 is the number of millisecond and ms is to indicate millisecond  DELAY IN MICROSECOND: then u want to create delay in microsecond, u just replace __delay_ ms( )  and use  __delay_us( ); ie __delay_us(500) .  __delay_us(500); is to create 500 microsecond delay. u need exact 1 second means __delay_ms(1000); U CAN DOWNLOAD THE COMPLETE MPLAB IDE PROJECT FILE WITH PROGRAM + PROTEUS SIMULATION HERE download here