Menu
Your Cart

Mcp2551 Library Proteus !!better!! Info

If you are unable to find a working simulator, consider using tools that support CAN simulation, or focus on simulating the logic controller (MCP2515) and treating the transceiver as a simple pass-through for basic testing. Conclusion

#include void CAN_Network_Init(void) // Switch microcontroller to CAN Configuration Mode CANCON = 0x80; while((CANSTAT & 0xE0) != 0x80); // Set Baud Rate to 125 Kbps assuming an 8MHz clock frequency BRGCON1 = 0x01; // Synchronization Jump Width = 1TQ, Baud Rate Prescaler = 2 BRGCON2 = 0x90; // Phase Segment 1 = 3TQ, Prop Time Seg = 1TQ BRGCON3 = 0x02; // Phase Segment 2 = 3TQ // Configure pins for digital/CAN execution TRISBbits.TRISB2 = 0; // CANTX as output TRISBbits.TRISB3 = 1; // CANRX as input // Switch CAN controller back to Normal Mode CANCON = 0x00; while((CANSTAT & 0xE0) != 0x00); Use code with caution. Troubleshooting Common Proteus CAN Simulation Pitfalls mcp2551 library proteus

Newsletter

* E-Mail:

* First Name:

* Last Name: