Keil Software Knowledgebase Article 548
www.keil.com/support/docs/548.htm
C505C CAN XDATA Address: XX00h C515C CAN XDATA Address: F700h C505C CAN Interrupt: 9 C515C CAN Interrupt: 17These two things must be configured in the ICANCONF.A51 configuration file.
CONTROLLER_BASE EQU 0F700H ; XDATA start-address of the ; CAN-Controller ; The following constant defines the interrupt-number (as defined by ; RTX51) for the CAN-Controller ; ; Should be: 17 for Siemens C515C ; 9 for Siemens C505C USED_CAN_INT_NBR EQU 9Finally, the CAN controller must be located to the address you specify in ICANCONF.A51. It's probably a good idea to locate it at the same address as the C515C (0xF700). First, define the XPAGE special function register. This SFR contains the upper address byte of the XDATA address of the CAN controller.
sfr XPAGE = 0x91;Then, assign the address of the XDATA page to the SFR.
/* Put the CAN controller where the RTX CAN routines expect it. */ XPAGE = 0xF7;Once these two things are done, CAN routines work identically to the C515C.
Last Reviewed: 6/7/99
Copyright © 2001
Keil Software, Inc. All rights reserved.
Report any problems to the webmaster.