MikroElektronika PIC Microcontrollers PIC16 Manual do Utilizador Página 15

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 14
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
10
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
Step 4
Before compiling, it is recommended to save the project (menu choice File>Save
All). Now you can compile your code by selecting menu Run > Compile,
or by clicking the Compile icon.
mikroBasic has generated hex file which can be used to program PIC MCU. But
before that, let's check our program with the Debugger. Also mikroBasic generates
list and assembly files.
Step 5
After successful compiling, we can use mikroBasic Debugger to check our pro-
gram behavior before we feed it to the device (PIC16F877 or other). For a simple
program such as this, simulation is not really necessary, but it is a requirement for
more complex programs.
To start the Debugger, select Run > Debug, or click the Debug icon, or simply hit
F9.
Upon starting the Debugger, Watch Window appears, and the active line in Code
Editor marks the instruction to be executed next. We will set the breakpoint at line
7 by positioning the cursor to that line and toggling the breakpoint (Run > Toggle
Breakpoint or F5). See the following image.
Compile Icon.
Debug Icon.
Vista de página 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 171 172

Comentários a estes Manuais

Sem comentários