Search results

  1. V

    Where to start

    1. you need development board, 2. compiler to write c or assembly program 3. Programmer software to programmed your code 4. when you will programmed MCU , you need cable to connect PC to micocontroller personally I use 8501 development board, containing Philips p89v51rd2 MCU. keil...
  2. V

    How to use switch statement

    I tried to understand your explanations but sorry I couldn't understand I understand meaning of above two line. you are making LED on for 125ms same, you are making LED off for 125 seconds I don't understand how is explanations related to my question. Its very good for me if you can make some...
  3. V

    How to use switch statement

    I think I understood what's wrong with my values. LED blinking was vary fast human eye can't see more than 18 - 20 per second. # There are 3 LED lights, numbered 1, 2, and 3. # Step 1: I want LED 1 to turn on and blink 4 times per second for 10 seconds, then turn off. # Step 2: After that, I...
  4. V

    How to use switch statement

    my bad I thought you ware assuming any value (delay value that I wrote in program). that's why I didn't describe in requirement. # There are 3 LED lights, numbered 1, 2, and 3. # Step 1: I want LED 1 to turn on and blink 1000 times per second for 1seconds, then turn off. # Step 2: After...
  5. V

    How to use switch statement

    sorry for my late response, first I want to do program1
  6. V

    How to use switch statement

    I use keil compiler to write c program. when I need delay generally I create delay function in program In your example you said to use if else condition and but I don't understand how does your delay function work in program. does below example similar to example that you explained. I have not...
  7. V

    How to use switch statement

    No this is not school assignment. I am trying to learn myself by using internet. if you will see my old thread's I have been written c program for LED blinking , LCD display and Motor based project's. that was easy projects after that I decided to add complex project than I wanted to do all in...
  8. V

    How to use switch statement

    I understood My mistake I haven't shown my effort to solve the problem but believe me I tried my best level to understand switch statement. First I studied what is switch statement in c programming and than I wanted to use that switch statement in program because I love to work with...
  9. V

    How to use switch statement

    How to use switch statement in C program. I want to use switch statement in program. I am using keil compiler I tried to use switch statement in program. whats wrong in program and how to correct ? blink three LED's for different times #include<reg51.h> //header file #define LED1_ON...
  10. V

    while(1) statement

    sorry but I don't understand what do you mean I am confused between two statement while (number) while (0) // while is set to 0 while (1) // while is set to 1 while (variable name = =value) while (i==1) // if condition is true i==1 then run forever loop other wise don't run...
  11. V

    while(1) statement

    you have added semi ; I think it's not valid while (j==1) { LED = LED_ON; delay(500); LED = LED_OFF; delay(5000); LED = LED_OFF; }
  12. V

    while(1) statement

    Hello I need help to use of while(1) statement in C programming. Look at following example #include <REG51.h> #define LED P2 #define LED_ON 0xff #define LED_OFF 0x00 void delay (unsigned int j) { unsigned int j; for (j = 0; j < 40000; j++); { } } void...
  13. V

    Need Help In Program

    Hello everyone I want to write C program to do following task. first blink LED, If LED is blinking than do task for motor start, forward , backword , stop if motor is working , display message '' motor working " on LCD I have written program individually for each task Now I want to combine all...
  14. V

    Embedded Project In Linux

    as you told me , I followed your instruction. what will next step to run compiler ? I think I have to type sdcc in command mode. can you tell me step by step. what will procedure to run compiler. I have never installed any software in linux platform. I am totally new
  15. V

    Embedded Project In Linux

    No I don't have that package manger. Now I think I have installed sdcc compiler successfully. I think to check installation sdcc -v command use
  16. V

    Embedded Project In Linux

    have you seen third picture. when I type apt-get install sdcc. I get some response which is show in third picture. so by response I think that packages are not installing correctly
  17. V

    Embedded Project In Linux

    Visual studio does not support the the microcontroller that I use in project. I have seen most people use sdcc on linux platform and sdcc support my microcontroller so that's why I am trying to install I think compiler and IDE both are same. by using both we can develop program
  18. V

    Embedded Project In Linux

    I feel sad when you give your full effort to teach me but I don't understand. I found following message. I think I need to install so I typed command program sdcc can found following packages * cc1111 * sdcc please see the pictures when I try to install. it show message, see the third picture
  19. V

    Embedded Project In Linux

    I have typed both command sudo apt-get install sdcc sudo apt-get update Now I am telling what I did , first I have downloaded software which is in download directory and created new folder abhi using mkdir command. I have extracted downloaded file and save to folder abhi (gui mode ) than I...
  20. V

    Embedded Project In Linux

    I have run that command. how to check that my compiler has been installed correctly ? also see the below picture where I have run that command
Top