User Manual
GAMMA instabus
Release: 12/2015
Application Program Bus Interface Modules M130, M131, M132 and M135
Runtime Environment for KNX-Processors 184/11 and 184/21
Siemens AG pages 17 Technical Manual
Building Technologies
Control Products and Systems
P. O. Box 10 09 53, © Siemens AG 2015 page 7
D-93009 Regensburg Subject to change without further notice.
3 User application program
The user application program has to be developed as a regular program for a Renesas 78K0
microcontroller, but with some modifications. To give the possibility to debug the user
application program on the evaluation board there are some special differences to a normal
program for the 78K0. First of all the linker file has no segment for the interrupt vectors
because the user application program can not handle any interrupt directly. In the linker file
the following segments are defined:
/********************************************************************\
|* D A T A *|
\********************************************************************/
-Z(DATA)CSTACK+_CSTACK_SIZE#FBCF
-Z(DATA)NEAR_I,NEAR_Z,NEAR_N=FB00-FBCF
-Z(DATA)EXPRAM=...
/********************************************************************\
|* C O D E *|
\********************************************************************/
-Z(CODE)PARAM=...
-Z(CODE)NEAR_ID,CONST,RCODE,CODE=...
-Z(CODE)COMTAB=...
-Z(CODE)ASSOCTAB=...
-Z(CODE)ADDRTAB=8116-...
-Z(CODE)APPINFOBLOCK=8000-8115
-Z(CODE)ROOTCODE=7800-7FFF
/********************************************************************/
-Z(CODE)BCU2_JMP=7700-77FF
-Z(DATA) is for variables in ram and -Z(CODE) is for all data that are stored in flash.
The stack of the user application program starts always at 0xFBCF and grows down from
there. ‘NEAR_I’ contains initialized, ‘NEAR_Z’ zero initialized and ‘NEAR_N’ non initialized
global variables. The ‘EXPRAM’ specifies the expansion ram of the 78K0 microcontroller and
is only available for the user application program in the BIM M 131 and M 132 as well as in
chipset 184/11 and 184/21.
In ‘BCU2_JMP’ the jump table with the vector addresses for the API functions is located. The
data in this segment is provided by the operating system. ‘ROOTCODE’ could be used for
the BIM M 132. This bus interface module has banked flash. A switch between these flash
banks has to be done in the root area. In the segment ‘APPINFOBLOCK’ the application info
block is located which is described below. At ‘ADDRTAB’ the code for the address table, at
‘ASSOCTAB’ the code for the association table and at ‘COMTAB’ the code for the
communication object table starts. These segments can be accessed from the bus via read
and write requests starting from 0x0116 and the specified addresses can be changed
according to the circumstances of the user application program but considering the
restrictions of the memory map of the different bus interface modules.