MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 150

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 149
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype sub procedure Soft_USART_Write(dim Data as byte)
Description Procedure transmits byte <Data>.
Example
Soft_UART_Write(Received_byte)
5.2.21 Sound Library
BASIC provides a sound library which allows you to use sound signalization in your applications.
5.2.21.1 Sound_Init – Initializes sound engine
Prototype sub procedure Sound_Init(dim byref Port, dim Pin as byte)
Description Procedure Sound_Init initializes sound engine and prepares it for output at specified <Port> and <Pin>.
Parameter <Pin> needs to be within range 0..7.
Example
PORTB = 0 ' Clear PORTB
TRISB = 0 ' PORTB is output
Sound_Init(PORTB, 2) ' Initialize sound on PORTB.RB2
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (108 sur 112)05/11/2004 02:20:55
Przeglądanie stron 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag