{"id":132,"date":"2007-04-16T19:13:19","date_gmt":"2007-04-16T19:13:19","guid":{"rendered":"http:\/\/www.cclo.idv.tw:8080\/blogs\/wordpress\/?p=132"},"modified":"2007-04-16T19:13:19","modified_gmt":"2007-04-16T19:13:19","slug":"programming_an_8bit_cpu_in_21s","status":"publish","type":"post","link":"https:\/\/blog.cclo.idv.tw\/?p=132","title":{"rendered":"Programming an 8-bit CPU in 21st Centry"},"content":{"rendered":"<p>\u6211\u5f9e\u4f86\u6c92\u6709\u60f3\u904e\uff0c\u6211\u6703\u56e0\u70ba\u6709\u4eba\u6d6a\u8cbb\u4e86 10 bytes \u7684\u8a18\u61b6\u9ad4\u7a7a\u9593\u800c\u6349\u72c2\uff0c\u4e5f\u4e0d\u77e5\u9053\u81ea\u5df1\u6703\u70ba\u4e86\u7701\u4e0b 0.1K \u7684 code size \u800c\u653e\u4e0b\u8eab\u6bb5\u5728 C \u88e1\u4f7f\u7528 goto....<br \/>\n\u5beb\u4e86\u56db\u5e74\u591a\u4e86 ODD firmware\uff0c\u6211\u7b2c\u4e00\u6b21\u89ba\u5f97\u6211\u5728\u505a embedded system\u3002<br \/>\n\u771f\u8981\u8aaa\u8981\u602a\u8ab0\uff0c\u5c31\u602a\u4e4b\u524d\u7684 chip\/solution vendor \u592a\u5962\u4f88\u4e86\u5427\uff01\u8ab0\u53eb\u4ed6\u5011\u5728\u5149\u789f\u6a5f\u7684\u63a7\u5236\u6676\u7247\u4e2d\u585e\u4e86\u4e00\u9846 32-bit \u7684 MIPS CPU\uff0c32-bit \u7684 address lines\uff08\u6240\u4ee5 addressing space \u53ef\u4ee5\u5230 4GB\uff09\uff0c\u9084\u6709\u4e00\u5957\u529f\u80fd\u5f37\u5927\u7684 compiler\uff0c\u4ee5\u53ca\u56b4\u8b39\u5230\u5687\u6b7b\u4eba\u7684 firmware structure.....\u96d6\u7136\u5076\u723e\u4e5f\u6703\u9047\u5230 code size \u6216\u662f efficiency \u7684\u554f\u984c\uff0c\u4f46\u81f3\u5c11\u5beb\u8d77\u7a0b\u5f0f\u4f86\u4e0d\u6703\u7d81\u624b\u7d81\u8173\u7684\u3002<br \/>\n\u4f46\u6b63\u662f\u56e0\u70ba\u4ed6\u5011\u592a\u5962\u4f88\uff0c\u50f9\u683c\u4e5f\u58d3\u4e0d\u4e0b\u4f86\uff0c\u8b93\u6211\u5011\u4e0d\u5f97\u4e0d\u63db\u7528\u6bd4\u8f03\u5ec9\u50f9\u7684 solution\u3002\u4f46\u4ee3\u50f9\u5c31\u662f\uff1aCPU \u5f9e 32-bit MIPS \u8b8a\u6210 8-bit \u7684 8051\uff1baddressing space \u8b8a\u6210 64K\uff08\u6240\u4ee5\u6703\u9047\u4e0a bank switching \u7684\u554f\u984c\uff09\uff1bDRAM access \u5fc5\u9808\u900f\u904e DSP \u7684 registers\uff0c\u6240\u4ee5\u4e00\u822c\u7a0b\u5f0f\u5167\u7684\u8b8a\u6578\u53ea\u80fd\u4f7f\u7528 256 + 4096 bytes \u7684\u7a7a\u9593\uff1b\u8655\u7406 32-bit \u7684\u8b8a\u6578\u6642\uff0cassembler \u9084\u6703\u547c\u53eb library \u53bb\u8655\u7406\uff0c\u6240\u4ee5\u70ba\u4e86\u6548\u7387\uff0c\u4e0d\u662f\u592a\u8907\u96dc\u7684 double word \u904b\u7b97\u6700\u597d\u624b\u52d5\u62c6\u6210\u56db\u500b bytes \u4f86\u8655\u7406\uff1b\u539f\u672c\u7684 source code \u6253\u626e\u5f97\u50cf\u662f\u8981\u53bb\u9078\u7f8e\u4e00\u6a23\uff0c\u73fe\u5728\u8b8a\u6210\u4e00\u96bb\u53ea\u6c42\u6703\u6349\u8001\u9f20\u7684\u8c93........<br \/>\n\u7576\u7136\u597d\u8655\u4e5f\u662f\u6c92\u6709\u3002\u6b63\u56e0\u70ba\u5b83\u539f\u59cb\uff0c\u6b63\u56e0\u70ba\u5b83\u4f4e\u968e\uff0c\u624d\u80fd\u8b93\u6211\u66f4\u6e05\u695a\u5730\u53bb\u4e86\u89e3\u6700\u4f4e\u5c64\u52d5\u4f5c\u7684\u6bcf\u4e00\u500b\u7d30\u7bc0\uff0c\u8b93\u6211\u9a57\u8b49\u4ee5\u524d\u6240\u5b78\u5230\u7684\u77e5\u8b58\uff08\u96d6\u7136\u9019\u4e0d\u662f\u73fe\u5728\u8a72\u505a\u7684\u4e8b\uff09\uff0c\u6fc0\u767c\u6211\u7684\u52d5\u529b\uff0c\u8b93\u6211\u66f4\u4ed4\u7d30\u5730\u53bb\u601d\u8003\u5728\u8655\u7406 embedded system \u6642\u8a72\u601d\u8003\u3001\u89e3\u6c7a\u7684\u554f\u984c\u3002<br \/>\n\u53cd\u6b63\uff0c\u7e3d\u4e4b\uff0c\u5de5\u4f5c\u9084\u662f\u5f97\u505a\u3002\u5c31\u7576\u4f5c\u662f\u6210\u9577\u7684\u6a5f\u6703\u5427\uff01\uff08\u4e0d\u7136\u9084\u80fd\u600e\u9ebc\u8fa6\u54a7\uff1f\uff09 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5f9e\u4f86\u6c92\u6709\u60f3\u904e\uff0c\u6211\u6703\u56e0\u70ba\u6709\u4eba\u6d6a\u8cbb\u4e86 10 bytes \u7684\u8a18\u61b6\u9ad4\u7a7a\u9593\u800c\u6349\u72c2\uff0c\u4e5f\u4e0d\u77e5\u9053\u81ea\u5df1\u6703\u70ba\u4e86\u7701\u4e0b 0.1K \u7684 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"table_tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category--working-days"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":0,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/blog.cclo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftable_tags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}