MikroElektronika PIC Microcontrollers PIC16 Manual do Utilizador Página 46

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 45
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
program TRIAL
include "other.pbas"
' You can declare variables in the program block
dim tA as integer
dim tD as integer
dim tF as integer
dim tR as word
dim tT as word
dim tY as word
main:
tA = tD and tF
tR = STATUS and $03
TMR0 = 45
end.
...
module other
' You can declare variables at the
' beginning of a module
dim Sss as longint
dim Ddd as longint
...
end.
sub function Sum( dim R as byte) as byte
' You can also declare variables in
' function or procedure block.
dim B as char
dim K as byte
...
end sub
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
41
page
Examples
Vista de página 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 171 172

Comentários a estes Manuais

Sem comentários