Öб±´óѧ΢»úÔÀí¼°½Ó¿Ú¼¼ÊõÏ°Ìâ¼°Á·Ï°²á
´ð£º´æ´¢Ìå¡¢µØÖ·ÒëÂëÆ÷¡¢¿ØÖÆÂß¼µç·¡¢Êý¾Ý»º³åÆ÷ 6£®ÉèÓÐÒ»¸ö¾ßÓÐ14λµØÖ·ºÍ8λ×Ö³¤µÄ´æ´¢Æ÷£¬ÎÊ£º £¨1£©¸Ã´æ´¢Æ÷ÄÜ´æ´¢¶àÉÙ×Ö½ÚµÄÐÅÏ¢
£¨2£©Èç¹û´æ´¢Æ÷ÓÉ1K*1λSRAMоƬ×é³É£¬ÐèÒª¶àÉÙоƬ£¿
£¨3£©×îÉÙÐèÒª¶àÉÙλµØÖ·×÷оƬѡÔñ ´ð£º£¨1£©16384 £¨2£©128 £¨3£©4
7£®Ïêϸд³ö°ëµ¼Ìå´æ´¢Æ÷µÄ·ÖÀà¡£
´ð£º°ëµ¼Ìå´æ´¢Æ÷Ö÷ÒªÓУºROM(Ö»¶Á´æ´¢Æ÷)ºÍRAM(Ëæ»ú´æÈ¡´æ´¢Æ÷)Á½À࣬RAMËæ»ú´æ´¢Æ÷ÓÖ¿ÉÒÔ·ÖΪ£º¶¯Ì¬RAM£¬¾²Ì¬RAM£»ROMÖ»¶Á´æÈ¡´æ´¢Æ÷ÓÖ¿ÉÒÔ·ÖΪ£ºÑÚĤÐÍROM£»¿É±à³ÌROM(PROM)£»¿É²Á³ý¿É±à³ÌROM(EPROM)£»µç²Á³ý¿É±à³ÌROM£¨EEROM£©¡£
8£®¼ÆËã»úµÄÄÚ´æÓÐʲôÌص㣿ÄÚ´æÓÉÄÄÁ½²¿·Ö×é³É£¿Íâ´æÒ»°ãÊÇÖ¸ÄÄЩÉ豸£¿Íâ´æÓÐʲôÌص㣿 ´ð£º¼ÆËã»úµÄÄÚ´æÒ»°ã´æ´¢ÈÝÁ¿Ð¡£¬´æÈ¡Ëٶȿ죬Ŀǰ¶à²ÉÓð뵼ÌåÆ÷¼þ×é³É¡£Í¨³£Óж¯Ì¬RAMºÍ¾²Ì¬RAMÁ½²¿·Ö×é³É¡£³£°ÑÈí´ÅÅ̺ÍÓ²´ÅÅÌ¡¢´Å´øµÈ×÷ΪÍâ´æÉ豸£¬×î½ü¹â´æ´¢Æ÷µÄÓ¦ÓÃÒ²Ô½À´Ô½¹ã·º¡£´¢´æÈÝÁ¿´ó¡¢Ëٶȵͣ¬±ØÐëÅ䱸רÃŵĶÁ/д¿ØÖÆÉ豸¡£
9£®ÔÚ´æ´¢Æ÷Æ÷¼þÄÚ²¿£¬ÎªÊ²Ã´×ÜÊDzÉÓþØÕóÐÎʽ×é³É´æ´¢½á¹¹£¿ÇëÓÃÒ»¸ö¾ßÌåµÄÀý×Ó½øÐÐ˵Ã÷¡£ ´ð£º²ÉÓþØÕóÐÎʽ´æ´¢ÐÅÏ¢Ö÷ÒªÊÇΪÁ˽ÚÊ¡µØÖ·ÒëÂëµç·£¬Ìá¸ß°ëµ¼ÌåÆ÷¼þµÄ¼¯³É¶È¡£ÀýÈçÒª×é³É1KBµÄÄڴ棬Èô²»²ÉÓþØÕóÐÎʽÀ´×éÖ¯ÕâЩµ¥Ôª£¬¾ÍÐèÒª1024ÌõÒëÂëÏß²ÅÄÜʵÏÖ¶Ô1KBµÄÑ°Ö·¡£µ«ÈôÓÃ32*32¾ØÕóÀ´ÅÅÁУ¬ÔòÖ»ÒªÓÐ32ÌõÐÐÑ¡ÏߺÍ32ÌõÁÐÑ¡Ï߾ͿÉÒÔÁË¡£´æ´¢ÈÝÁ¿Ô½´ó£¬¾ØÕóÐÎʽµÄÓÅÔ½ÐÔ¾ÍÔ½Ã÷ÏÔ¡£
10£®ÎªÁ˽ÚÊ¡´æ´¢Æ÷µÄµØÖ·ÒëÂëµç·£¬Í¨³£²ÉÓÃÄÄЩ·½·¨£¿
´ð£º³£²ÉÓô洢Æ÷µÄÄ£¿é½á¹¹¼°ÔÚÒ»¸ö´æ´¢Ä£¿éÄÚÔÙ½«´æ´¢Æ÷·Ö×飬ÕâÑù¿ÉÓõØÖ·µÄ¸ßλ¶ÔÄ£¿éÑ¡Ôñ£¬ÆäÓàλ¶Ô´æ´¢Æ÷×é½øÐÐÑ¡Ôñ¡£ ËÄ¡¢´æ´¢Æ÷Éè¼ÆÓ¦ÓÃÌâ
1£®ÒÑÖªÓÐSRAMоƬ62256£¨32K¡Á8£©¼°EPROMоƬ27256£¨32K¡Á8£©£¬ÏÖÓÃÕâÁ½ÖÖоƬ¹¹³É8088×îСϵͳÄÚ´æµÄÒ»²¿·Ö£¬ÆäÖÐSRAMËùÕ¼µÄµØÖ·¿Õ¼äΪ40000H--47FFFH£¬EPROMËùÕ¼µÄµØÖ·¿Õ¼äΪF8000H--FFFFFH£¬ÊÔÉè¼Æ³öÆäÔÀíͼ¡£ ´ð£ºÁ¬½ÓÈçͼ£º
2£®¸ø8088CPUϵͳÀ©Õ¹32KµÄROM£¬ÇÒËùÑ¡ÓõĴ洢Æ÷оƬΪ8K¡Á8£¬µØÖ·ÒëÂëÆ÷Ϊ74LS138£¬ROMµÄµØÖ··¶Î§´Ó60000H¡«67FFFH£¬ÒªÇóд³öÿһ¸ö´æ´¢Æ÷оƬµÄµØÖ··¶Î§£¬»³öÂß¼Á¬Ïßͼ¡£ ´ð£º´æ´¢Æ÷оƬΪ8K¡Á8£¬¿É֪оƬÈÝÁ¿Îª8K£¬µØÖ·ÏßΪ13Ìõ£¬Êý¾ÝÏßΪ8Ìõ£¬¶øϵͳҪÇóÈÝÁ¿Îª32K£¬Î»ÊýÊÇ8£¬Òò´ËΪ×ÖÀ©Õ¹¡£ÐèÒªµÄоƬΪ4¸ö ´æ´¢Æ÷оƬµÄµØַΪ£º
17
Öб±´óѧ΢»úÔÀí¼°½Ó¿Ú¼¼ÊõÏ°Ìâ¼°Á·Ï°²á
1£©¡¢µØÖ·ÒëÂëÆ÷£º3¸öÊäÈë¶ËµÄÐźÅÖбØÐëÓУºA13£¬A14£¬Æä¶ÔÓ¦µÄλÖò»Í¬£¬Êä³öµÄÒý½ÅÒ²²»Í¬¡£Ö»ÒªÊäÈëÐźÅÓëÊä³öÐźÅÒ»Ö£¬ÇÒÁ¬½Óµ½ÏàÓ¦µÄ´æ´¢Æ÷оƬÉÏ ¡£ 2£©¡¢Êý¾ÝÏßÁ¬½ÓÕýÈ· 3£©¡¢µØÖ·ÏßÁ¬½ÓÕýÈ·
3£®ÉèijϵͳµÄCPUÓÐ16¸ùµØÖ·ÏßA15-A0¡¢8¸ùÊý¾ÝÏßD7-D0¡£ÏÖÐèÀ©Õ¹6KBµÄROM£¬µØÖ··¶Î§Îª£º0000H-17FFH£¬²ÉÓÃ2716оƬ¡£
(1) Çëд³ö´æ´¢Æ÷Æ÷¼þ2716µÄÊý¾ÝÏߺ͵ØÖ·ÏßµÄÌõÊý£» £¨2£©¼ÆËãROMµÄоƬÊýÁ¿£»
£¨3£©Éè¼Æ´æ´¢Æ÷À©Õ¹ÔÀíͼ£¬²¢Ð´³öÿƬROMµÄµØÖ··¶Î§¡£ ´ð£º1£©´æ´¢Æ÷2716µÄÊý¾ÝÏßÓÐ8Ìõ£¬µØÖ·ÏßÓÐ11Ìõ¡£
2£©ÒòΪ2716µÄÈÝÁ¿Îª2KB£¬ÒªÀ©Õ¹6KB£¬ËùÒÔÐèÒªÈýƬ¡£ 3£©ÔÀíͼÈçÏ£º
4£®ÒÑÖªRAMоƬ½á¹¹ÈçͼËùʾ£¬»Ø´ðÏÂÁÐÎÊÌ⣺
1£© ¸ÃоƬÈÝÁ¿Îª¶àÉÙ£¿ÈôÒªÇó¹¹³ÉÒ»¸ö2K¡Á8µÄRAMÕóÁУ¬Ð輸¸öÕâÑùµÄоƬ£¿
2£© ÈôRAMÕóÁÐ×éµÄÆðʼµØַΪE1000H£¬»³ö´æ´¢Æ÷ϵͳÓë8086µÄµç·Á¬½Óͼ£¨8086¹¤×÷ÔÚ×îСģʽ£©£¬²¢Ð´³öÿ×éRAMоƬµÄµØÖ·¿Õ¼ä¡£
1 8
Öб±´óѧ΢»úÔÀí¼°½Ó¿Ú¼¼ÊõÏ°Ìâ¼°Á·Ï°²á
3£© ±à³Ì£º½«»º³åÇøÖеÄ10¸öÊý¾Ýд½øE1000¿ªÊ¼µÄ10¸öµ¥ÔªÖУ¬²¢ËµÃ÷ÈçºÎ²é¿´½á¹û£¿ 1£© 4Ƭ
2£© Á¬½ÓÈçͼ
3£© MOV AX£¬0E100H MOV CX£¬10 MOV ES£¬AX CLD
MOV SI£¬OFFSET BUF REP MOVSB
MOV DI£¬O
²é¿´½á¹û D E100£º0
Îå¡¢ÅжÏÌâ
1£®Ö»¶Á´æ´¢Æ÷ROMÖ»ÓÐÒ»ÖÖÀàÐÍ¡£ £¨ ¡Á £© 2£®¶¯Ì¬RAMµÄÒ»¸öÖØÒªÎÊÌâÊDZØÐë¶ÔËüËù´æµÄÐÅÏ¢¶¨ÆÚ½øÐÐˢС£ £¨ ¡Ì £©
3£®ÓÃ×ÏÍâÏßÕÕÉäһƬEPROMµÄ´°¿Úºó£¬Èô¶Á³öÆä´æ´¢µ¥ÔªµÄÄÚÈݾùΪ0FFH£¬Ôò±íÃ÷¸ÃEPROMÒѱ»²Á³ý¸É¾»¡£ £¨ ¡Ì £© 4£®¶Áд´æ´¢Æ÷RAM£¬ÓÐSRAMºÍDRAM¶þÖÖÀàÐÍ¡£ £¨ ¡Ì £©
5.2 ¿ÎºóÁ·Ï°Ìâ
Ò»¡¢Ìî¿ÕÌâ
1£®ÔÚIntel80x86ϵͳÖУ¬ÈôÒ»¸ö32루4×Ö½Ú£©×Ö11223344H£¬´æ´¢ÔÚµØַΪ10000HµÄ´æ´¢µ¥ÔªÖУ¬Ôò10000H×Ö½Úµ¥ÔªÄÚÈÝΪ_______44H_____£¬10003H×Ö½Úµ¥ÔªÄÚÈÝΪ____11H____¡£ 2£®ÈôоƬSRAMµÄÈÝÁ¿Îª4K¡Á4bit£¬ÏÖÓûÓÃÕâÑùµÄоƬ¹¹³É0A0000Hµ½0C3FFFHµÄÄڴ棬ÐèÒª__72ƬÕâÑùµÄоƬ¡£
3£®Èç¹ûij´æ´¢Æ÷оƬµÄÈÝÁ¿Îª4K¡Á8룬Ôò´æ´¢Æ÷ƬÄÚÑ°Ö·µØÖ·ÏßÊÇ___12____¸ù£¬Èç¹ûËüÔÚϵͳÖÐÆðʼµØַΪ0F0000H£¬ÔòËüµÄÄ©µØÖ·ÊÇ____0F0FFFH___¡£
¶þ¡¢¼ò´ðÌâ
1£®ÊÔÊö¶¯Ì¬RAMµÄ¹¤×÷Ìصã,Ó뾲̬RAMÏà±È£¬¶¯Ì¬RAMÓÐʲô³¤´¦ºÍ²»×ãÖ®´¦¡£ËµÃ÷ËüµÄʹÓó¡ºÏ¡£
19
Öб±´óѧ΢»úÔÀí¼°½Ó¿Ú¼¼ÊõÏ°Ìâ¼°Á·Ï°²á
1¡¢´ð°¸£ºÎÞÂÛ²ÉÓúÎÖÖ¹¤ÒÕ£¬¶¯Ì¬RAM¶¼ÊÇÀûÓõçÈÝ´æ´¢µçºÉµÄÔÀíÀ´±£´æÐÅÏ¢µÄ¡£Ó뾲̬RAMÏà±È£¬¶¯Ì¬RAMµç·½á¹¹¼òµ¥£¬¼¯³É¶È¸ß£¬´æ´¢ÈÝÁ¿´ó¡£µ«Ê¹ÓÃËü±ØÐëÅäÒÔ¸´ÔÓµÄˢпØÖƵç·£¬ÒԱ㲻¶ÏµØ¶ÔÆä²¹³äµçºÉ¡£Òò´Ë±ßÏ߽Ͼ²Ì¬RAM¸´ÔÓ£¬¹Ê³£ÓÃÔÚÒªÇóËٶȿ죬´æ´¢ÈÝÁ¿´óµÄ³¡ºÏ¡£
2£®ÓÃÏÂÁÐRAMоƬ¹¹³É32K¡Á8µÄ´æ´¢Æ÷Ä£¿é£¬¸÷ÐèÒª¶àÉÙоƬ£¿¶àÉÙ¸öƬѡÏߣ¿ £¨1£©1K¡Á8 £¨2£©4K¡Á8 £¨3£©1K¡Á4 £¨4£©16K¡Á4 ´ð°¸£º£¨1£©32£¬32 £¨2£©8£¬8 £¨3£©64£¬32 £¨4£©4£¬2
3£®Ê²Ã´ÊÇ×ÖÀ©Õ¹£¿Ê²Ã´ÊÇλÀ©Õ¹£¿Óû§×Ô¼º¹ºÂòÄÚ´æÌõ½øÐÐÄÚ´æÀ©³ä£¬ÊÇÔÚ½øÐкÎÖÖ´æ´¢Æ÷À©Õ¹£¿ ´ð°¸£ºµ±´æ´¢Æ÷оƬµÄÈÝÁ¿Ð¡ÓÚËùÐèÄÚ´æÈÝÁ¿Ê±£¬ÐèÒªÓöà¸öоƬ¹¹³ÉÂú×ãÈÝÁ¿ÒªÇóµÄ´æ´¢Æ÷£¬Õâ¾ÍÊÇ×ÖÀ©Õ¹¡£
µ±´æ´¢Æ÷оƬÿ¸öµ¥ÔªµÄ×Ö³¤Ð¡ÓÚËùÐèÄÚ´æµ¥ÔªµÄ×Ö³¤Ê±£¬ÐèÒªÓöà¸öоƬ¹¹³ÉÂú×ã×Ö³¤ÒªÇóµÄ´æ´¢Ä£¿é£¬Õâ¾ÍÊÇλÀ©Õ¹¡£
ÂòÄÚ´æÌõ½øÐÐÄÚ´æÀ©³äÊÇ×ÖÀ©Õ¹¡£ Èý¡¢´æ´¢Æ÷Ó¦ÓÃ
1£®Éèij΢»úϵͳÐèÒªÀ©Õ¹ÄÚ´æRAM 32KB£¬À©³äµÄ´æ´¢Æ÷¿Õ¼äΪ10000H¿ªÊ¼µÄÁ¬Ðø´æ´¢ÇøÓò¡£´æ´¢Æ÷оƬ²ÉÓÃ16K¡Á8µÄRAMоƬ£¬CPUʹÓÃ8088¡£ 1£©Ñ¡ÓÃоƬ£¬»³öÂß¼Á¬½Óͼ£» 2£©Ð´³ö¸÷ƬRAMµÄËùÔÚµØÖ·ÇøÓò¡£
´ð£ºµØÖ··¶Î§ µÚһƬ 10000H--13FFFH£» µÚ¶þƬ 14000H--17FFFH
2£®ÓÃ4K¡Á4µÄEPROM´æ´¢Æ÷оƬ×é³ÉÒ»¸ö16K¡Á8µÄÖ»¶Á´æ´¢Æ÷¡£ÊÔÎÊ£º (1)¸ÃÖ»¶Á´æ´¢Æ÷µÄÊý¾ÝÏߺ͵ØÖ·ÏßµÄλÊý¡£ (2)¸ù¾ÝÌâÒâÐèÒª¶àÉÙ¸ö4K¡Á4µÄEPROMоƬ£¿ (3)»³ö´Ë´æ´¢Æ÷µÄ×é³É¿òͼ¡£
´ð°¸£º1) ¸Ã´æ´¢Æ÷оƬÓÐ14λµØÖ·ÏߺÍ4λÊý¾ÝÏß¡£ 2) ¹²Ðè×ÜоƬÊýΪ8Ƭ¡£
2 0