NetBurner 3.5.6
PDF Version
conf_mcan.h
Go to the documentation of this file.
1
27/*
28 * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
29 */
30#ifndef CONF_MCAN_H_INCLUDED
31#define CONF_MCAN_H_INCLUDED
32
34#define CONF_MCAN_ELEMENT_DATA_SIZE 8
35
43#define CONF_MCAN_NBTP_NBRP_VALUE 2
45#define CONF_MCAN_NBTP_NSJW_VALUE 3
47#define CONF_MCAN_NBTP_NTSEG1_VALUE 10
49#define CONF_MCAN_NBTP_NTSEG2_VALUE 7
50
51/*
52 * The setting of the data bit rate is based on the GCLK_MCAN is 48M which you can
53 * change in the conf_clock.h. Below is the default configuration. The
54 * time quanta is 48MHz / (5+1) = 8MHz. And each bit is (1 + FTSEG1 + 1 + FTSEG2 + 1) = 16 time
55 * quanta which means the bit rate is 8MHz/16=500KHz.
56 */
58#define CONF_MCAN_FBTP_FBRP_VALUE 5
60#define CONF_MCAN_FBTP_FSJW_VALUE 3
62#define CONF_MCAN_FBTP_FTSEG1_VALUE 10
64#define CONF_MCAN_FBTP_FTSEG2_VALUE 3
65
66#endif