好吧,我使用了一个洋气的标题,anyway,this's my begin of the oc8051。so,管它中文还是英文,我要开写了。
作为开头,很多细节我就先略过了,主要简单的介绍几个步骤to make the OC8051 run。
1、获取OC8051源代码。(opencore或某电子类论坛下载)。
2、修改oc8051_defines.v。此文件可让用户对硬件进行裁剪和配置。
修改如下(部分):
1 // 2 // oc8051 pherypherals 3 // 4 `define OC8051_UART 5 `define OC8051_TC01 6 `define OC8051_TC2 7 `define OC8051_PORTS //ports global enable 8 `define OC8051_PORT0 9 `define OC8051_PORT1 10 `define OC8051_PORT2 11 `define OC8051_PORT3 12 13 14 // 15 // oc8051 ITERNAL ROM 16 // 17 //`define OC8051_ROM 18 `ifdef OC8051_RO