![Motorola MPC8240 Скачать руководство пользователя страница 540](http://html.mh-extra.com/html/motorola/mpc8240/mpc8240_user-manual_243927540.webp)
C-2
MPC8240 Integrated Processor User’s Manual
sync
sthbrx r4, 0, r6
sync
addis
r3,r0,BMC_BASE
// Set PCI_STAT
ori
r3,r3,0x0006
stwbrx
r3,0,r5
sync
li r3, 0x0002
lhbrx r4, r3, r6 // Get old PCI_STAT
sync
ori r4, r4, 0xffff // Writing all ones will clear all bits in
sthbrx r4, r3, r6 // write the modified data to CONFIG_DATA
//-------PICR1
addis
r3,r0,BMC_BASE
// Set PICR1 (A8)
ori
r3,r3,PROCINTCONF1
stwbrx
r3,0,r5
sync
lwbrx
r4,0,r6
// Get PICR1 bits
lis
r0,0x0011
ori
r0,r0,0x0000
and
r4,r4,r0
// preserve POR bits.
lis
r0,0xff00
oris r0, r0, 0x0000 // burst read wt states = 0
oris r0, r0, 0x0004 // processor type = 603
ori r0, r0, 0x1000 //enable writes to flash
ori r0, r0, 0x0800 //enable mcp assertion
ori r0, r0, 0x0200 //enable data bus parking
ori r0, r0, 0x0008 //enable address bus parking
or r4, r4, r0 // sets the desired bits
stwbrx r4,0,r6
//-------PICR2
addis r3,r0,BMC_BASE// Set PICR2 (AC)
ori r3,r3,PROCINTCONF2
stwbrx r3,0,r5
sync
lwbrx
r4,0,r6
// Get PICR2 bits
lis
r0, 0xfff3 // clear snoop wt state bits
ori
r0, r0, 0xfff3 // clear addr. phase wt state bits
and
r4, r4, r0 // clears the undesired bits
lis r0, 0x0000 // set no-serial-config bit
oris r0, r0, 0x0400 // Recover RCS1 from PCI
//
oris r0, r0, 0x0004 // snoop wt states = 1
oris r0, r0, 0x0000 // snoop wt states = 0
//
ori r0, r0, 0x0004 // addr. phase wt states = 1
ori r0, r0, 0x0000 // addr. phase wt states = 0
Содержание MPC8240
Страница 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Страница 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Страница 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Страница 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Страница 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Страница 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Страница 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Страница 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Страница 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Страница 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Страница 516: ...16 14 Watchpoint Trigger Applications ...
Страница 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Страница 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Страница 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...