MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 46

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 194
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 45
Programming PIC Microcontrollers in BASIC - mikroElektronika
Introduction
BASIC was designed with focus on simplicity of use. Great number of built-in and library routines are included to help you
develop your applications quickly and easily.
5.1 Built-in Routines
BASIC incorporates a set of built-in functions and procedures. They are provided to make writing programs faster and easier. You
can call built-in functions and procedures in any part of the program.
5.1.1 SetBit – Sets the specified bit
Prototype
sub procedure SetBit(dim byref Reg as byte, dim Bit as byte)
Description Sets <Bit> of register <Reg>. Any SFR (Special Function Register) or variable of byte type can pass as valid
variable parameter, but constants should be in range [0..7].
Example
SetBit(PORTB,2) ' set bit RB2
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (4 sur 112)05/11/2004 02:20:52
Vue de la page 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 193 194

Commentaires sur ces manuels

Pas de commentaire