Busspeed 1Mb Kategorie: CAN-Bus (von Dieter Kalkofen - 24.07.2005 19:50) | ||
| ||
Halle Ich habe Probleme den CAN-Bus auf 1Mb einzustellen Benutzt wird das Modul Can.C2 2004 / 01 / 06 /******************************************************************** ------------------------ DO NOT MODIFY THIS FILE! ------------------------ can.c2 C-Control II system access, provided by Conrad Electronic, Germany release : 2004/01/06 version : 1.2 author : mafoe modified : by DIE HARD for C164 rev. DA compatibility (June 2003) modified : André Helbig, little Bugfix in publish() (V1.11) modified : Cris Ullmann, new function getID() (V1.2) requires : vmcodes.c2 contents : CAN bus data transmission ********************************************************************* This part is needed because Infineon changed some parts of the CPU CAN-Module at the DA step of the C164CI development. As an advantage of this change you get a speed of 1000 kbit/s using the speed value 5 Compatibility: compatible downwards except speed 1000 kbit/s }/******************************************************************** //------------------------------------------------------------------- {inline vmcodes.VM_CAN | (vmcodes.CAN_INIT << 8);} { int psc; //------------------------------------------------------------------- inline function initold ( int speed, int globalMask, int specialMask ) //------------------------------------------------------------------- {inline vmcodes.VM_CAN | (vmcodes.CAN_INIT << 8);} // valid speed constants: const SPEED_50 = 0; const SPEED_62 = 1; const SPEED_125 = 2; const SPEED_250 = 3; const SPEED_500 = 4; //-------------------------------------------------------------------- Fehlt da nicht der Eintrag const SPEED_1000=5 ? Beim Initialisieren wird immer 125 k bit gesetzt //CAN-Bustiming 1000 kB/s can.init(5,0x07FF,0x0000); Da ich nur noch neue C-Controls ohne Gehäuse einsetze müsste jetzt alles klappen weis Jemand dazu was ? Gruss Dieter | ||
Antwort schreiben Antworten: Re: Busspeed 1Mb (von Eberhardt weiss alles - 3.01.2006 11:48) |