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

    Mantis 9 1 CNC Mill

    The Mantis 9.1 design is a radical departure from version 8 and earlier. Most notably, the part count has been almost halved! The current design has 13 parts, all of which can be made with a handsaw and a drill press. Also, I’ve traded away my alignment free exactly-constrained design for extra stiffness. Several unsuccessful attempts to eradicate the last of the slop in the Z axis on version 8 lead me back to the world of over-constrained parallel rods. My previous attempts at an over-constrained design (versions 1-5) all failed because I was unable to make the rods sufficiently parallel to avoid jamming. What to do? [ ]

    Electronic Extended Play Circuit Diagram

    This is a Electronic Extended Play Circuit Diagram. A single op amp-one of four contained in the popular LM324-is operating in a variable pulse width, free-running square wave oscillator circuit, with its timed output driving two transistors that control the on/ off cycle of the tape-drive motor. The Oscillator` s positive feedback path holds the secret to the successful operation of the variable on/ off timing signal.   Electronic Extended Play Circuit Diagram The two diodes and pulse width potentiometer R8 allows the setting of the on and off time, without affecting the oscillator`s operating frequency. One diode allows only the discharge current to flow through it and the section of R8 that it`s connected to. The other diode, and its portion of R8, sets the charge time for the timing capacitor, C3. Since the recorder`s speed is controlled by the precise off/on timing of the oscillator, a simple voltage-regulator circuit (Ql, R3, and D4) is included.  Connecting the spe...

    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 ...