68
The two examples below are two C macros for the 16-bit read and write access
of the MPC555 to the DPRAM. Only a slight adaptation is necessary for access-
ing even addresses. When accessing odd addresses, there has to be a division
into bytes:
#define DPR_W16B(Adr,Dat) {\
if ((Adr) & 0x1) {\
*(volatile uint32*)(DP\
(((Adr)-1)<<1)) = (((Dat)&0xFF00) >>8) |\
(*(volatile uint32*)(DP\
(((Adr)-1)<<1)) & 0xFF00);\
*(volatile uint32*)(DP\
(((Adr)+1)<<1)) = (((Dat)&0xFF) <<8) |\
(*(volatile uint32*)(SP\
(((Adr)+1)<<1)) & 0xFF);\
}\
else
*(volatile uint32*)(DP\
((Adr)<<1)) = Dat;\
}
#define DPR_R16B(Adr) ((Adr) & 0x1) ?\
((*(volatile uint32*)(DP(((Adr)-1)<<1)) &\
0x00FF) << 8)+\
((*(volatile uint32*)(DP(((Adr)+1)<<1)) &\
0xFF00) >> 8); :\
*(volatile uint32*)(DP((Adr)<<1)) & 0xFFFF
7.3.4
Size of the Address Range
The size of the address range occupied by the PB1650PRT1.1 in your system is
8 KBytes.
The B16 jumper on the ES1650.1 Piggyback Carrier Board has to be closed for
this address range size.
7.4
Configuration
This section contains information on configuring the jumpers of the
PB1650PRT1.1 Piggyback.
The jumpers are used to configure the hardware of the PB1650PRT1.1 module.
Summary of Contents for ES1650.1
Page 1: ...ES1650 1 Piggyback Carrier Board User s Guide ...
Page 10: ...Introduction 10 ...
Page 20: ...20 Physical Dimensions Circuit board 100 x 160 mm Front panel Height 3 U Width 4 HP 20 3 mm ...
Page 45: ...45 Physical Dimensions Length 100 mm Width 48 mm Depth 12 mm ...
Page 46: ...46 ...
Page 64: ...PB1650PRT1 1 Prototyping Piggyback 64 ...
Page 82: ...82 ...