论坛风格切换切换到宽版
  • 2643阅读
  • 9回复

请教: [复制链接]

上一主题 下一主题
离线bd4mm
 
发帖
720
只看楼主 倒序阅读 0楼 发表于: 2005-11-14
为at89c52写的程序能直接写到ds80c320里吗?
离线明浩
发帖
62
只看该作者 1楼 发表于: 2005-11-14
ds80c320/ds80c323系列单片机的管脚与相同封装的标准80c32/32完全兼容
大部分代码应该可以直接写到52中
离线bd4mm
发帖
720
只看该作者 2楼 发表于: 2005-11-16
谢谢解答!
另:同样的程序在ds80c320中是否比在89c52 中执行速度要快?
离线webfch
发帖
3885
只看该作者 3楼 发表于: 2005-11-16
速度取决于晶体频率!!!
离线bd4mm
发帖
720
只看该作者 4楼 发表于: 2005-11-16
'
速度取决于晶体频率!!!
'
谢谢!
在89c51 中一个机器周期等于12个时钟周期,但在ds80c320中一个机器周期等于一个时钟周期(?(不确定)),请老师从这方面指导一下。
离线webfch
发帖
3885
只看该作者 5楼 发表于: 2005-11-17
英文的,翻译一下把。
离线webfch
发帖
3885
只看该作者 6楼 发表于: 2005-11-17
processor speed
while the ds80c320 is 100 percent compatible with the 8051 instruction set, the execution of the
instructions has been streamlined for increased performance. a single byte instruction that previously
required 12 clocks to complete now executes in 4 clocks. in addition, the ds80c320 can accept clocks up
to 25 mhz, where in some versions of the 8032 the maximum was 12 mhz. because of this higher
performance, there are issues relating to processor speed that must be considered when evaluating the
ds80c320 as a drop-in replacement for the 8032.
离线webfch
发帖
3885
只看该作者 7楼 发表于: 2005-11-17
introduction
the ds80c320 high-speed micro is another member of dallas semiconductor’s 8051 instruction setcompatible
family of microprocessors. it was designed with the same pinout and basic resources as a
conventional 8032, but has significantly enhanced performance capabilities and a number of additional
resources. since the instruction set and pinout are the same, many situations allow it to be used as a dropin
replacement. when doing so, however, there are some issues that must be taken into account. this
application note discusses those issues.
processor speed
while the ds80c320 is 100 percent compatible with the 8051 instruction set, the execution of the
instructions has been streamlined for increased performance. a single byte instruction that previously
required 12 clocks to complete now executes in 4 clocks. in addition, the ds80c320 can accept clocks up
to 25 mhz, where in some versions of the 8032 the maximum was 12 mhz. because of this higher
performance, there are issues relating to processor speed that must be considered when evaluating the
ds80c320 as a drop-in replacement for the 8032.
memory interface1
since the basic instruction execution time has been streamlined in the ds80c320, the time available to
transfer data to and from memory has also been reduced. this means that for the same frequency crystal,
there is less time available for memory access. a simple example illustrates this point. the data sheet for
the 80322 stipulates that, when using a 12 mhz crystal, the program memory must have an address access
time of 302 ns or less (neglecting any address latch overhead). a ds80c320 also using a 12 mhz crystal
requires a memory with an address access time of 230 ns of less. while this is not a tremendous
difference, it is something that must be considered, and may be important in some systems.
software loops
the other issue having to do with speed considerations is the use of software timing. it is frequently the
case that software writers will use the presumed constant execution speed of a processor as a real time
reference. often a tight loop that requires a known number of clocks to execute will be used for
generating delays. since the ds80c320 executes instructions much more quickly than the standard 8032,
these previously designed timing loops will no longer produce the originally intended results. while using
software timing loops is generally accepted as undesirable software design, in practice they are used
rather frequently in embedded applications. the ds80c320 was designed so that the internal timers
default to a condition where they behave exactly as the timers in the 8032. if application code is written to
make use of these timers rather than software delays, the code will run as originally intended.
1 details on selecting the correct speed memory devices for the ds80c320 may be found in dallas semiconductor’s application note 57 entitled “ds80c320
memory interface timing.”
2 data for the 8032 from the intel “8-bit embedded controllers” data book dated 1991.
离线webfch
发帖
3885
只看该作者 8楼 发表于: 2005-11-17
power-on reset
the ds80c320 incorporates circuitry to generate its own power-on reset function. while the rst pin
may still be connected to an external reset generating circuit, this on-board feature is provided as a
convenience to new designs. the fact that the processor has its own reset function is a benefit in most
cases; however, there are situations where the on-board reset is not exactly what the user wants. one
could conceive of situations where the reset may not be at exactly the desired voltage level or last for
exactly the desired duration. one example of this could be the case where battery backed ram is used
for storage. if the ram contains its own voltage detection circuitry and does not become unprotected at
the same voltage as the ds80c320 leaves reset (4.0 volts), then the processor could be accessing
protected ram. while these cases are not common, they remain something to consider for each specific
application.
power consumption
in addition to being a higher performance device, the ds80c320 is also a lower power device than the
8032 when equivalent work is considered. all cmos parts exhibit the property that they consume more
power as their speed goes up. since the ds80c320 is a higher speed part, it will consume more power for
a given crystal frequency. however, if an equivalent amount of work is considered, it consumes slightly
less power than a conventional 8032. this difference in power consumption is probably only important
for battery powered applications, in which case stop mode power is likely to be more important.
离线webfch
发帖
3885
只看该作者 9楼 发表于: 2005-11-17
现在是4个时钟周期。。。
a single byte instruction that previously required 12 clocks to complete now executes in 4 clocks.
而且最高时钟周期可以达到25m。
in addition, the ds80c320 can accept clocks up to 25 mhz, where in some versions of the 8032 the maximum was 12 mhz.