修改接收KGF1

This commit is contained in:
2025-11-14 11:32:48 +08:00
parent e5fe7833e6
commit 4ed261893e
2 changed files with 29 additions and 18 deletions

6
CAN.C
View File

@@ -942,11 +942,11 @@ void CAN_vInit(void)
/// - priority class 3; transmit acceptance filtering is based on the list
/// order (like class 1)
/// - extended 29-bit identifier
/// - identifier 29-bit: 0x14000001
/// - identifier 29-bit: 0x11000001
//--------------MOAR13 = 0xF4000001---------------------------------------
//--------------MOAR13 = 0xF1000001---------------------------------------
CAN_vWriteAMData(0xF4000001); // load MO13 arbitration register
CAN_vWriteAMData(0xF1000001); // load MO13 arbitration register
// CAN Address pointing to the CAN_MODATAH13
CAN_ADCON = ADR_DEC; // Auto Decrement the current address(-1)