24.4.1 Initialization mode
The software initialization สามารถถูกทำในขณะที่ the hardware อยู่ใน Initialization mode. เพื่อเข้าสู่โหมดนี้ the software เซ็ต the INRQ bit ใน the CAN_MCR register และคอยจนกระทั่ง the hardware ถูกยืนยันการร้องขอโดยการเซ็ต the INAK bit ใน the CAN_MSR register.
เพื่อออกจาก Initialization mode, the software เคลียร์ the INQR bit. bxCAN ถูกออกจาก Initialization mode เมื่อ the INAK bit ถูกเคลียร์แล้วโดย hardware.
ขณะใน Initialization Mode, message ทั้งหมดส่งถ่ายถึงและจาก the CAN bus ถูกหยุดและสถานะของ the CAN bus output CANTX ถอน (high).
การเข้าสู่ Initialization Mode ไม่ได้เปลี่ยนแปลง the configuration registers ใดๆ.
เพื่อเริ่มต้น the CAN Controller, software ต้องตั้งค่า the Bit Timing (CAN_BTR) และ CAN options (CAN_MCR) registers
เพื่อเริ่มต้น the registers ที่เกี่ยวข้องกับ the CAN filter banks (mode, scale, FIFO การกำหนดค่า, การเปิดใช้งาน และ filter values), software ต้องเซ็ต the FINIT bit (CAN_FMR). Filter initialization สามารถถูกทำภายนอก the initialization mode ได้อีกด้วย.
Note: เมื่อ FINIT=1, CAN reception จะถูกปิดใช้งาน
The filter values สามารถถูกแก้ไขโดยปิดใช้งาน the associated filter activation bits (ใน the CAN_FA1R register)
ได้อีกด้วย.
ถ้า a filter bank ไม่ถูกใช้, ขอแนะนำให้ปล่อยมันไม่ให้ทำงาน (ปล่อยให้ the corresponding FACT bit เคลียร์).