MikroElektronika PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 111

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 110
SetBit(PORTB,2)
' set PORTB bit RB2 to value 1
ClearBit(PORTC,7)
' clear PORTC bit RC7
TestBit(PORTA,2)
' returns 1 if PORTA bit RA2 is 1, and 0 if RA2 is 0
Lo(A)
' returns lower byte of variable A
' byte 0, assuming that word/integer comprises bytes 1 and 0,
' and longint comprises bytes 3, 2, 1, and 0
Hi(Aa)
' returns higher byte of variable Aa
' byte 1, assuming that word/integer comprises bytes 1 and 0,
' and longint comprises bytes 3, 2, 1, and 0
Higher(Aaaa)
' returns byte next to the highest byte of variable Aaaa
' byte 2, assuming that longint comprises bytes 3, 2, 1, 0
Highest(Aaaa)
' returns the highest byte of variable Aaaa
' byte 3, assuming that longint comprises bytes 3, 2, 1, 0
Delay_us(100)
' creates software delay equal to 100 microseconds.
Delay_ms(1000)
' creates software delay equal to 1000 milliseconds = 1s.
Length(Text)
' returns string length as byte
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
106
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Examples
Przeglądanie stron 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag