Skip to main content

Creating Project in Keil Micro Vision


Keil MicroVision is a free software, we use it for embedded program developing. In this software we have provided a platform to write a program using text editor, compile program to convert source code into machine language i.e. compiler will convert source code into hex file.  
Here is simple guidance for 
  • How to write programs in  Assembly language or C/C++
  • How to Compile and Assembling Programs
  • How to Debug program
  • Creating Hex and Axf file
  • Test a program without Available real Hardware (Simulator Mode) 
Here a program to write a data 55H to port 1  and complementing data after some time delay is explained. Following is the  process of  writing  program in Keil ,its  execution and Debugging :
    Step 1: Open Keil uV3



    Step 2: After opening Keil uV3, Go to Project tab,create New Project ,select new folder and  give name to the Project.

      
    Step 3: After Creating project following window will pop-up. Now Select your device model e.g AT89C51


    Step 4: To select device click on  left '+' sign in front of  Atmel device.

    Step 5:  Following window will pop-up. Now scroll down and Select your device model e.g AT89C51

    Step 6:  Following window will pop-up. click on No.

    Step 7: Now go to File and create new file, following window will open, this is text editor  to write your own code. Write the code in editor and save the it.

    Step 8: Save the program using extension '.asm' for assembly language or '.c' for c language.



    Step 9: Now Right click on Source Group1 and then add files to Group 'Source Group1'

     


    Step 10: Now Build the Target (compile the program) by clicking on build tab shown by green circle as below: It will give result of compilation in command window shown by red colored  square window :


    Step 11: Now  we can start Debug session using Debug tab  after that run the the program using Run tab shown by pink colored circle and check status on peripheral using peripheral tab.We can also check value of  general purpose register in project work space under the Register tab


    Step 12: If you want to watch waveform on particular port pin or port use Logic analyzer Window and add particular pin or port to the window then  you will see waveform on that particular port or port pin as shown below : here waveform on pin port 1.1 shown.  




    Comments

    Popular posts from this blog

    Power Amplifier with voltage regulator 4 × 50 Watt TDA8588

    Power Amplifier with voltage regulator 4 × 50 Watt TDA8588    The TDA8588 is a multiple voltage regulator combined with four independent audio power amplifiers configured in bridge tied load with diagnostic capability. The output voltages of all regulators except regulators 2 and 3 can be controlled via the I2C-bus. However, regulator 3 can be set to 0 V via the I2C-bus. The output voltage of regulator 2 (microcontroller supply) and the maximum output voltage of regulator 3 (mechanical digital and microcontroller supplies) can both be either 5 V or 3.3 V depending on the type number. The maximum output voltages of both regulators are fixed to avoid any risk of damaging the microcontroller that may occur during a disturbance of the I 2C-bus. The amplifier diagnostic functions give information about output offset, load, or short-circuit. Diagnostic functions are controlled via the I2C-bus. The TDA8588 is protected against short-circuit, over-temperature, open ground and open VP ...

    Digital Voltmeter Circuit with ICL7107

    Description. The circuit given here is of a very useful and accurate digital voltmeter with LED display using the ICL7107 from Intersil. The ICL7107 is a high performance, low power, 3.5 digit analog to digital converter. The IC includes internal circuitry for seven segment decoders, display drivers, reference voltage source and a clock. The power dissipation is less than 10mW and the display stability is very high. The working of this electronic circuit is very simple. The voltage to be measured is converted into a digital equivalent by the ADC inside the IC and then this digital equivalent is decoded to the seven segment format and then displayed. The ADC used in ICL7107 is dual slope type ADC. The process taking place inside our ADC can be stated as follows. For a fixed period of time the voltage to be measured is integrated to obtain a ramp at the output of the integrator. Then a known reference voltage of opposite polarity is applied to the input of the integrator and allowed to r...

    Akira HTS 38DVD HTS – Circuit Diagram Home Theater system

    Home theater system - AkiraHTS38DVD   Used ICs: KA5H0165RN (SMPS control) – LC6883807 – BU1923F – BD4740G – STA505 – PS9702B – WW8721 – LA1844M Exploded Circuit Diagram Click on the schematics to magnify google.com/+GopakumarGopalan