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)
Содержание DigitalDNA ColdFire MCF5272
Страница 1: ...MCF5272UM D Rev 0 02 2001 MCF5272 ColdFire Integrated Microprocessor User s Manual ...
Страница 38: ...xxxviii MCF5272 User s Manual TABLES Table Number Title Page Number ...
Страница 58: ...1 10 MCF5272 User s Manual MCF5272 Specific Features ...
Страница 90: ...2 42 MCF5272 User s Manual Exception Processing Overview ...
Страница 96: ...3 6 MCF5272 User s Manual MAC Instruction Execution Timings ...
Страница 158: ...5 46 MCF5272 User s Manual Motorola Recommended BDM Pinout ...
Страница 184: ...7 12 MCF5272 User s Manual Interrupt Controller Registers ...
Страница 338: ...13 44 MCF5272 User s Manual Application Examples ...
Страница 414: ...18 6 MCF5272 User s Manual PWM Programming Model ...
Страница 452: ...19 38 MCF5272 User s Manual Power Supply Pins ...
Страница 482: ...20 30 MCF5272 User s Manual Reset Operation ...
Страница 492: ...21 10 MCF5272 User s Manual Non IEEE 1149 1 Operation ...
Страница 548: ...INDEX Index 12 MCF5272 User s Manual ...