520
Chapter 14
FCAN Interface Function
Preliminary User’s Manual U15839EE1V0UM00
Example for C routine:
int CAN_ModuleStop (unsigned char module_no)
{
can_module_type *can_mod_ptr;
// define CAN module ptr
can_mod_ptr = &can_module[module_no];
// load CAN module ptr
if ((can_mod_ptr->CxCTRL & 0x0001)==0)
// if INIT flag not yet set:
can_mod_ptr->CxCTRL=0x0100;
// set INIT flag
while ((can_mod_ptr->CxCTRL & 0x0100)==0); // wait until initialisation state is confirmed
// (ISTAT bit = 1)
return 0;
}
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......