Connector Specifications
|
X2: CAN Bus Interface |
|
|
No. |
Function |
|
1 |
|
|
2 |
CANL |
|
3 |
CAN GND |
|
4 |
|
|
5 |
|
|
6 |
AUX GND |
|
7 |
CANH |
|
8 |
|
|
9 |
VCAN+ |
All I/O ports of the MCP25050 are routed to X1 via series resistors of 120 Ohms.
When X1 is used to program the MCP25050, All connections to the module, including power supply, must be disconnected.
|
X1: Port Expansion |
||
|
No. |
Function |
Alt. Function |
|
1 |
GP0 |
AN0 |
|
2 |
GP1 |
AN1 |
|
3 |
GP2 |
PWM1 |
|
4 |
GP3 |
PWM2 |
|
5 |
GP4 |
VREF- |
|
6 |
GP5 |
VREF+ |
|
7 |
GP6 |
CLKOUT |
|
8 |
GP7 |
RST/VPP |
|
9 |
GND |
|
|
10 |
+5V |
|
|
1 |
+5V |
VCC |
|
2 |
/CS |
Connected to PB2 |
|
3 |
SCK |
SPI Bus |
|
4 |
MOSI |
|
|
5 |
MISO |
|
|
6 |
GND |
Ground |
|
7 |
/RESET |
CPU Reset In/Out |
|
8 |
/INT |
Interrupt input (PD2) |
|
9 |
SCL |
I2C Bus
|
|
10 |
SDA |
|
X3: Application Interface |
||
|
No. |
Function |
Configuration |
|
1 |
Input GP4 |
Switch to GND |
|
2 |
Input GP5 |
Switch to GND |
|
3 |
Input GP6 |
Switch to GND |
|
4 |
Input GP7 |
0…5V |
|
5 |
Output GP0 |
Open Drain, 25V/0.6A |
|
6 |
Output GP1 |
Open Drain, 25V/0.6A |
|
7 |
Output GP2 |
Open Drain, 25V/0.6A |
|
8 |
Output GP3 |
Open Drain, 25V/0.6A |
|
X4: Power |
||
|
No. |
Function |
|
|
1 |
VCAN+ Output |
9…24VDC |
|
2 |
DC Input + |
9…24VDC |
|
3 |
GND |
|
|
4 |
GND |
|
Jumper Settings
|
Jumpers |
|||
|
No. |
Des. |
ON |
OFF |
|
J1 |
TERM |
120 Ohm Resistor between CANH and CANL |
N.C. |
|
LEDs |
||
|
No. |
Des. |
Function |
|
D3 |
PWR |
CANly board is powered |
|
D4 |
RX |
Receive data |
|
D5 |
TX |
Transmit data |
Factory Default Programming
The MCP25050 controller contains an OTP memory which holds the default parameters. These parameters are transferred to RAM on power-up. The parameters in RAM can then be altered during run time by CAN messages as specified in the MCP25050 datasheet.
Please note that the EPROM is one time programmable only.
|
Factory Default CAN Identifiers |
||
|
Id |
Value |
Used for |
|
TXID0 |
0x3C |
On bus messages |
|
TXID1 |
0x3D |
§ Command acknowledge § Receiver overflow § Error condition |
|
TXID2 |
0x3E |
Edge detect messages |
|
RXMSK |
0x7F8 |
Receive mask. Lower 3 bits don’t care |
|
RXF0 |
0x40 |
Filter for information request messages |
|
RXF1 |
0x48 |
Filter for input messages to MCP25050 |
|
Factory Default I/O Configuration |
||
|
Pin |
In/Out |
Used for |
|
GP0 |
OUT |
Digital output |
|
GP1 |
OUT |
Digital output |
|
GP2 |
OUT |
Digital output |
|
GP3 |
OUT |
PWM Output Period: 200us |
|
GP4 |
IN |
Digital Input, positive edge |
|
GP5 |
IN |
Digital Input, negative edge |
|
GP6 |
IN |
Digital Input, negative edge |
|
GP7 |
IN |
Digital Input, negative edge |
|
Factory Default Bit Timing |
||
|
Parameter |
Value |
Description |
|
BRP |
4 |
Baudrate prescaler |
|
PRSEG |
3 |
Propagation segment |
|
PHSEG1 |
6 |
Phase segment 1 |
|
PHSEG2 |
6 |
Phase segment 2 |
|
SJW |
1 |
Synch jump width |
|
SAM |
1x |
Bus line sampled once |
|
WAKFIL |
OFF |
Wake-up filter disabled |
|
BTLMODE |
CNF3 |
Length of PHSEG2 determined by CNF3 |
|
Factory Default Bit Timing |
||
|
Parameter |
Value |
Description |
|
BRP |
1 |
Baudrate prescaler |
|
PRSEG |
1 |
Propagation segment |
|
PHSEG1 |
3 |
Phase segment 1 |
|
PHSEG2 |
3 |
Phase segment 2 |
|
SJW |
1 |
Synch jump width |
|
SAM |
1x |
Bus line sampled once |
|
WAKFIL |
OFF |
Wake-up filter disabled |
|
BTLMODE |
CNF3 |
Length of PHSEG2 determined by CNF3 |
|
Factory Default Option Register 2 Settings |
||
|
Bit |
Value |
Used for |
|
CAEN |
1 |
Command Acknowledge enabled |
|
ERREN |
0 |
Error Recovery into Normal Mode |
|
TXONEN |
1 |
Will send message if error counter(s) go high enough |
|
SLPEN |
0 |
Sleep mode disabled |
|
MTYPE |
0 |
RTR is used for IRM (Remote Frame) |
|
PDEFEN |
0 |
PWM output default values disabled |
|
PUSLP |
0 |
SLEEP disabled when in Listen-only mode during power-up sequence |
|
PUNRM |
1 |
Enters “Normal” mode after completing self-configuration during power-up sequence |
