微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > PSD813器件在单片机系统中应用

PSD813器件在单片机系统中应用

时间:03-01 来源:互联网 点击:

,因此使用十分方便。

由图2所示流程图,我们可以看到在PSDsoft软件环境下,PSD813器件的开发,从Abel文件的编写、硬件特性的配置,直至目标文件的写入,都可以很方便地完成。另外,PSDsoft软件还提供PSD器件的实时仿真,并可实现目标文件的C语言反汇编。

由于篇幅有限,现仅写出Abel文件以作参考:module c51_813

title 'WSI PSD813F1 design template for 80C51 fam-

ily microcontroller';

″PIN DECLARATIONS

bhe pin 49;″pin 49,byte high enable or CNTL2

wr pin 47; ″pin 47,write line or CNTL0

rd pin 50; ″pin 50,read line or CNTL1

reset pin 48; ″reset Input,active low

a15,a14,a13,a12,a11,a10,a9,a8,pin 39,40,41,42,43,44,45,46; ″Address bus

a7,a6,a5,a4,a3,a2,a1,a0,pin 30,31,32,33,34,35,36,37, ″Addressbus

″********Port A,B,C,D pin declaration*************

addr_out0..addr_out7 pin; ″address out, Port A pins

″Address output

WSIPSD PROPERTY ′Address_Out Aout[7:0]:addr_out

[7:0] PortA′;

addr_out8..addr_out15 pin; ″address out,Port B pins

″Address output

WSIPSD PROPERTY ′Address Out Aout 《15:8]:addr

out[15:8] PortB′

a16,a17,a18 pin 18,17,14; ″pc[2:4],a[16:18]

″Extend Address output

LCD_ce pin 11; ″pc7, the signal ce of LCD

SRAM_ce pin 9, ″pd1, the ce of 512K SRAM

ale pin 10; ″pin 10 address latch enable or PD0

csi pin 8; ″pin 8,/csi or pd2

fs7,fs6,fs5,fs4,fs3,fs2,fs1,fs0 node; ″Main Flash

segment chip selects

rs0 node;″PSD SRAM chip select

csiop node;″PSD control and I/O register

jtagsel node; ″Selects JTAG port active using a prod uct term

X = .x.; ″Don′t care symbol

address = [a18..a0]; ″De-muxed microcontroller

address signals

EQUATIONS

jtagsel = 0;

fs0 = (address >=^h2000  & address <=^h2FFF);

″Address of ROM

fs1 = (address >=^h3000)&(address <=^h3FFF);

fs2 = (address >=^h4000)&(address <=^h4FFF);

fs3 = (address >=^h5000)&(address <=^h5FFF);

fs4 = (address >=^h6000 )& (address <=^h6FFF);

rs0 = (address >=^h7000 )& (address <=^h77FF);

LCD_ce = (address >=^h7800) &(address <=^h7FFF);

csiop = (address >=^h8000) & (address <=^h80FF);

SRAM_ce=!(!a16&!a17&!a18)#((address >=^h8100  & (address <=^hFFFF)); ″Address

of RAM

end c51_813

由于PSD813具有很高的集成度和很强的在线编程功能,所以其应用对提高单片机的开

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top