AN1105 STMicroelectronics, AN1105 Datasheet - Page 16

no-image

AN1105

Manufacturer Part Number
AN1105
Description
ST7 PCAN PERIPHERAL DRIVER
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN1105W-12-RR
Quantity:
13 804
Part Number:
AN1105W-22-RR
Manufacturer:
SANYO
Quantity:
8 570
Part Number:
AN1105W-TR
Manufacturer:
PANASONIC
Quantity:
27 995
Part Number:
AN1105W-TR
Manufacturer:
STANLEY
Quantity:
20 000
ST7 pCAN PERIPHERAL DRIVER
functions defined in can_custom.c on certain events. The user only has to enter these func-
tions according to his needs before compiling the software.
2.1.3 Principle of Use
During compilation, the values of the hardware control registers are calculated by the preproc-
essor according to the compilation options selected in can_custom.h.
If the software filtering feature is enabled, the values of accepted identifiers have to be entered
by the user as a list in can_custom.h (See
The functions in can.c are compiled or not, according to the selected #define directives. (The
unwanted ones are simply left as comments).
Figure 10. Driver Customization System
During the first initialization (performed using the CAN_First_Init function), the peripheral’s
registers are written with the values defined at compilation time, the transmission FIFO is ini-
tialized and the cell starts (a wake up by bus can be chosen).
Then:
– The CAN_Transmit_Request function initiates a transmission which begins with an in-queu-
16/100
CAN_CUSTOM.C FILE
#ifdef STATUS_CHANGE_NOTIFICATION
void CAN_Bus_Passive_Notification(void)
{
//To implement if defined
}
#endif
...
...
#ifdef DEBUG
void CAN_Overrun_Notification(void)
{
//To implement if defined
}
#endif
ing of the message to be sent. Then, hardware buffer no.1 (the static transmission buffer) is
filled according to hardware requirements. (See
CAN_CUSTOM.H FILE
#define INIT_BRPR 0x11
...
#define STATUS_CHANGE_NOTIFICATION
...
//#define DEBUG
Compilation
“Filtering” on page
Section 1.6.2 "Cell
Not Compiled
Compiled
29)
ST7 Registers
BRPR Register
0x11
Behaviour").
Compilation

Related parts for AN1105