MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 80

  • 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 79
Programming PIC Microcontrollers in BASIC - mikroElektronika
These constant values define flags related to reception of a CAN message. There could be more than one this flag ANDed together
to form multiple flags. If a particular bit is set; corresponding meaning is TRUE or else it will be FALSE.
e.g.
if (MsgFlag and CAN_RX_OVERFLOW) <> 0 then
' Receiver overflow has occurred.
' We have lost our previous message.
const CAN_RX_FILTER_BITS = $07 ' Use these to access filter bits
const CAN_RX_FILTER_1 = $00
const CAN_RX_FILTER_2 = $01
const CAN_RX_FILTER_3 = $02
const CAN_RX_FILTER_4 = $03
const CAN_RX_FILTER_5 = $04
const CAN_RX_FILTER_6 = $05
const CAN_RX_OVERFLOW = $08 ' Set if Overflowed else cleared
const CAN_RX_INVALID_MSG = $10 ' Set if invalid else cleared
const CAN_RX_XTD_FRAME = $20 ' Set if XTD message else cleared
const CAN_RX_RTR_FRAME = $40 ' Set if RTR message else cleared
const CAN_RX_DBL_BUFFERED = $80 ' Set if this message was hardware double-buffered
CAN_MASK
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (38 sur 112)05/11/2004 02:20:52
Vista de pagina 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 193 194

Comentarios a estos manuales

Sin comentarios