MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 54

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 53
Programming PIC Microcontrollers in BASIC - mikroElektronika
Description Parameter <input> represents numerical value of integer 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
IntToStr(Counter, Message)
' Copies value of integer Counter into string Message
5.2.1.5 Bcd2Dec – Converts 8-bit BCD value to decimal
Prototype
sub procedure Bcd2Dec(dim bcd_num as byte) as byte
Description Function converts 8-bit BCD numeral to its decimal equivalent and returns the result as byte.
Example
dim a as byte
dim b as byte
...
a = 140
b = Bcd2Dec(a) ' b equals 224 now
5.2.1.6 Bcd2Dec – Converts 8-bit decimal to BCD
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (12 sur 112)05/11/2004 02:20:52
Vista de pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 193 194

Comentarios a estos manuales

Sin comentarios