單片機作為一種微型計算機,其內部具有一定的存儲單元(8031除外),但由于其內部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數據線與地址線合并使用,通過軟件控制的方法實現數據線與地址線功能的分時轉換,數據線不僅用于傳送數據信號,還可作為地址線、控制線,用于傳送地址信號和控制信號,從而實現單片機與存儲器件的有效連接。以單片機片外256KB數據存儲空間的擴展為例,通過該擴展方法,僅用10個I/O端口便可實現,與傳統的擴展方法相比,可節約8個I/O端口。
Abstract:
As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data line and address lines combined through software-controlled approach to realize the time-conversion functions of data lines and address lines,so the data lines not only transmited data signals,but also served as address lines and control lines to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.
標簽:
單片機
P0口
數據存儲器
擴展
上傳時間:
2014-12-26
上傳用戶:adada