Datasheet

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