MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 59

  • 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 58
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub function CANGetOperationMode as byte
Description The function returns the current operation mode of CAN.
Example
CANGetOperationMode
5.2.3.3 CANInitialize – Initializes CAN
Prototype
sub procedure CANInitialize(dim SJW as byte, dim BRP as byte, dim PHSEG1
as byte, dim PHSEG2 as byte, dim PROPSEG as byte, dim CAN_CONFIG_FLAGS as
byte)
Description The procedure initializes CAN module. CAN must be in Configuration mode or else these values will be
ignored.
Parameters:
SJW value as defined in 18XXX8 datasheet (must be between 1 thru 4)
BRP value as defined in 18XXX8 datasheet (must be between 1 thru 64)
PHSEG1 value as defined in 18XXX8 datasheet (must be between 1 thru 8)
PHSEG2 value as defined in 18XXX8 datasheet (must be between 1 thru 8)
PROPSEG value as defined in 18XXX8 datasheet (must be between 1 thru 8)
CAN_CONFIG_FLAGS value is formed from constants (see below)
Output:
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (17 sur 112)05/11/2004 02:20:52
Vista de pagina 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 193 194

Comentarios a estos manuales

Sin comentarios