why is this difference in memory Mapped and port mapped interafcing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

why is this difference in memory Mapped and port mapped interafcing

2,180 次查看
adityanagal
Contributor III

Hi ,

In the memory mapped I/O interfacing , peripherals are connected/interfaced over the address bus. If there are 32 address lines , then theoretically we can interface 2 power 32 devices to the CPU. This interfacing also includes MEMR  and MEMW (Memory Read and Memory write signals).

In the Port Mapped I/O interfacing , peripherals are again connected to the same address lines . Just the instructions for reading and writing would be different like inportb  and outportb  and the control signals would be IOR and IOW (IO READ and IO WRITE) . But the number of devices which can be interfaced will probably be less i.e. 2 power 16 . 

Why is this difference between Memory Mapped I/O and Port Mapped I/O. 

Regards, 

Aditya Nagal

0 项奖励
回复
1 回复

2,049 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Aditya

this depends in internal processor architecture, as memory and port may

use different internal processor buses. Please check processor manual with

description of internal mapping of peripherals.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复