MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 60

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 194
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 59
Programming PIC Microcontrollers in BASIC - mikroElektronika
CAN bit rate is set. All masks registers are set to '0' to allow all messages.
Filter registers are set according to flag value:
If (CAN_CONFIG_FLAGS and CAN_CONFIG_VALID_XTD_MSG) <> 0
Set all filters to XTD_MSG
Else if (config and CONFIG_VALID_STD_MSG) <> 0
Set all filters to STD_MSG
Else
Set half of the filters to STD, and the rest to XTD_MSG
Side Effects:
All pending transmissions are aborted.
Example
dim aa as byte
aa = CAN_CONFIG_SAMPLE_THRICE and ' form value to be used
CAN_CONFIG_PHSEG2_PRG_ON and ' with CANInitialize
CAN_CONFIG_STD_MSG and
CAN_CONFIG_DBL_BUFFER_ON and
CAN_CONFIG_VALID_XTD_MSG and
CAN_CONFIG_LINE_FILTER_OFF
CANInitialize(1, 1, 3, 3, 1, aa)
5.2.3.4 CANSetBaudRate – Sets CAN Baud Rate
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (18 sur 112)05/11/2004 02:20:52
Vue de la page 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 193 194

Commentaires sur ces manuels

Pas de commentaire