MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 52

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 51
Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.1.1 ByteToStr – Converts byte to string
Prototype
sub procedure ByteToStr(dim input as byte, dim byref txt as char[6])
Description Parameter <input> represents numerical value of byte type that should be converted to string; parameter <txt>
is passed by the address and contains the result of conversion.
Parameter <txt> has to be of sufficient size to fit the converted string.
Example
ByteToStr(Counter, Message)
' Copies value of byte Counter into string Message
5.2.1.2 WordToStr – Converts word to string
Prototype
sub procedure WordToStr(dim input as word, dim byref txt as char[6])
Description Parameter <input> represents numerical value of word type that should be converted to string; parameter <txt>
is passed by the address and contains the result of conversion.
Parameter <txt> has to be of sufficient size to fit the converted string.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (10 sur 112)05/11/2004 02:20:52
Zobrazit stránku 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 193 194

Komentáře k této Příručce

Žádné komentáře