Chapter 13. Physical Layer Interface Controller (PLIC)
13-37
Application Examples
Figure 13-35. Port 1 PLCR Configuration
The programming of the port 1 PLCR register in the above example is achieved with the
following ColdFire code sequence assuming the equates and init sections include the
following:
equates and init:
...
Module_Regs_Addr EQU
0x00300000 ;address of on-chip registers
P1CR
EQU
0x352
;offset of P1CR register
P1ICR
EQU
0x35A
...
move.l
#Module_Regs_Addr, A5
;reference register from A5
...
move.w
#0x9200,d0
;port 1 config ON, IDL10, SLAVE, port1 FSM
;msb first on B1 and B2, B1 and B2 disabled
move.w
d0,P1CR(A5)
;write to P1CR register
The above code segment is an example only.
13.6.2.2 Interrupt Configuration Example
The PLICR registers should be configured according to the specific interrupts, periodic and
aperiodic, required for each port. In addition, the port interrupt enable, (PLICRn[IE])
should be set for each active port prior to receiving interrupts.
Assuming port 1 is configured as in the above example then the following configuration
would enable periodic interrupts on port 1 with only the D channel active.
FSM (port 1 Only)
SCIT MODE (GCI ONLY)
SLAVE MODE
IDL10 MODE
Reserved
Port on
Reserved
B2 msb First
B1 msb First
B2 Disabled
B1 Disabled
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
P1CR
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0x
9
2
0
0
GCI ACT (GCI ONLY)
Summary of Contents for DigitalDNA ColdFire MCF5272
Page 1: ...MCF5272UM D Rev 0 02 2001 MCF5272 ColdFire Integrated Microprocessor User s Manual ...
Page 38: ...xxxviii MCF5272 User s Manual TABLES Table Number Title Page Number ...
Page 58: ...1 10 MCF5272 User s Manual MCF5272 Specific Features ...
Page 90: ...2 42 MCF5272 User s Manual Exception Processing Overview ...
Page 96: ...3 6 MCF5272 User s Manual MAC Instruction Execution Timings ...
Page 158: ...5 46 MCF5272 User s Manual Motorola Recommended BDM Pinout ...
Page 184: ...7 12 MCF5272 User s Manual Interrupt Controller Registers ...
Page 338: ...13 44 MCF5272 User s Manual Application Examples ...
Page 414: ...18 6 MCF5272 User s Manual PWM Programming Model ...
Page 452: ...19 38 MCF5272 User s Manual Power Supply Pins ...
Page 482: ...20 30 MCF5272 User s Manual Reset Operation ...
Page 492: ...21 10 MCF5272 User s Manual Non IEEE 1149 1 Operation ...