pef20320 Infineon Technologies Corporation, pef20320 Datasheet - Page 243

no-image

pef20320

Manufacturer Part Number
pef20320
Description
Multichannel Network Interface Controller For Hdlc With 32 Channels
Manufacturer
Infineon Technologies Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pef20320HV3.4
Manufacturer:
MAXIM
Quantity:
845
Part Number:
pef20320HV3.4
Manufacturer:
INFINEON/英飞凌
Quantity:
20 000
Part Number:
pef20320HV3.4R
Manufacturer:
SIEMENS
Quantity:
5 510
Part Number:
pef20320HV3.4R
Manufacturer:
SIEMENS
Quantity:
5 510
9
9.1
The MUNICH32 code extract is taken from the low level device driver for the MUNICH32,
which is written in ‘C’. This extract gives you a brief impression how a MUNICH32 device
driver could be programmed.
The munich control configuration (munichCtrlCfg) is a structure which consists of the
following substructures:
These substructures mainly consist of bit fields. The use of bit fields does not produce a
speed optimized but a highly readable code, in our case to demonstrate the
programming of the MUNICH32 very clearly.
The structures are directly memory mapped to the MUNICH32 structures and listed
below.
In this short example we select the CEPT-32 PCM highway format and the HDLC mode.
All time-slots are assigned to channel number 0. HDLC frames are send via channel0.
There are two functions:
The function InitChannel0AndSendFirstFrame() comprises the following initialization
tasks:
– the MUNICH32 is configured for the CEPT32 channel format
– the interrupt queue is initialized and assigned
– each time-slot consists of 8 bit and all time-slots are assigned to channel 0
– the transmit outputs and the receive inputs are active
– here nine transmit buffers are assigned to channel0
– idle code flags.
User’s Manual
Action Specification
Interrupt Queue Specification
Time-Slot Assignment
Channel Specification
Munich Receive Descriptor Pointer
Munich Transmit Descriptor Pointer
Appendix
Source Code Extract MUNICH32
243
actionSpec
timeSlot[ ]
channelSpec[ ]
currRcDescrAddr[ ]
currTxDescrAddr[ ]
InitChannel0AndSendFirstFrame()
TxHdlcFrame().
intQueueSpec
PEB 20320
Appendix
01.2000

Related parts for pef20320