Programator procesorów '51 firmy Atmel README2


22 JAN 1995

ATMEL AT89C51/C52/C1051/C2051 PARALLEL PROGRAMMER TIDBITS


New and improved.

The latest release incorporates design modifications to support the
AT89C51/C52 and the AT89C1051/C2051. Two new programs are provided for
the AT89C51 and two for the AT89C52. One program is provided for the
AT89C2051. Programmer support for the AT89C1051 is not yet available.
Each program is described briefly in the included README.DOC file.
All programs now include support for variable length object code files.
Versions supporting host-independent timing are provided for all devices.

Timing.

For the sake of simplicity, the first version of the programmer software
enforced timing requirements using software timing loops. As was stated in
the application note, this made the software host-dependent. Many reported
problems were due to running unmodified or incorrectly modified software on
unsuitable hosts. The latest release of the software eliminates this problem.

Host independence is achieved by using the Programmable Interval Timer
imbedded in the system hardware to enforce time delays independent of system
speed. The timer is reconfigured when the programmer software is invoked and
restored to its original state before the programmer software terminates.
In order to guarantee that the programmer software is not exited before the
timer configuration is restored, the operation of the CTRL-C and CTRL-BREAK
keys are disabled. This means that the programmer software cannot be aborted
except by specifying the exit option at the main menu or by rebooting the
system.

The granularity of the timer is 0.838 microseconds, which does not mean that
delays this short can be accurately produced. The minimum practical delay is
system and software dependent. The assembly language timer code only ensures
that the delay produced will not be of shorter duration than requested.

Vpp rise/fall times.

The second page of the programmer schematic was omitted from the first
edition of the application note. This page showed the crystal and the Vcc
and Vpp power supplies. The software includes delays to allow the Vpp supply
to reach the required voltages. If a different Vpp supply is substituted,
the rise/fall times may require adjustment.

Non-bidirectional parallel interfaces.

The original parallel interface provided by IBM was probably not intended to
support bidirectional data transfers. However, due to the way in which the
interface was implemented, bidirectional transfers are possible. Over the
years, many products have appeared which exploit this capability.

Unfortunately, many system and interface card manufacturers have not faithfully
cloned the IBM design, resulting in bus contention when the peripheral attempts
to drive return data into the interface. Usually the peripheral drivers can
overpower the interface drivers and the peripheral works, though this is not
considered a good design practice. If the programmer writes devices, but fails
to verify, or the signal levels at the interface don't meet TTL specifications,
the parallel interface in use may be incompatible with the programmer.

Most parallel interfaces are now implemented in a single chip, such as the
82C411 or 16C452. These chips allow their output drivers to be disabled under
software control, providing true bidirectional operation. The latest release
of the software automatically enables bidirectional operation when used with
parallel interfaces utilizing the 82C411, 16C452 or similar chips. Note that
these chips also possess a mode control pin which must be at the correct level
to enable the directional control feature. As a result, parallel interfaces
utilizing these chips cannot be assumed to be bidirectional.

If the existing parallel interface does not support bidirectional operation,
the only solution is to replace it with one that does. The latest release
includes a design for a parallel interface which is compatible with the
programmer. The design is simple, requiring only six ICs. The interface can
be strapped to appear as LPT1 (addresses 378-37F hex) or LPT2 (278-27F hex)
and will be recognized by the POST when the system is powered up. Due to its
simplicity, the parallel interface cannot be used as a printer interface.

Signal integrity.

Variations in parallel port interface design, excessive cable length and the
lack of proper line termination may result in severely degraded signals and a
non-functional programmer. The presented design worked well with most of the
parallel port cards with which it was tested. If all else fails, monitor the
signal levels at both ends of the parallel port cable with an oscilloscope
and verify that they meet TTL specifications. If the signals are trashed,
try a different parallel port card and/or shorten the cable. If necessary,
the design may be modified to better terminate the signal lines; this is left
as an exercise for the reader.


Wyszukiwarka

Podobne podstrony:
Programator procesorów 51 firmy Atmel README
Programator procesorów 51 firmy Atmel PPARTS
Programator procesorów 51 firmy Atmel PARTS D
programator procesorów AVR 1
programator procesorów AVR 2
avt 2502 Programator procesorów 89CX051 INNY
cw 3 programowanie procesow
avt 871 Programator procesorów AVR przez BASCOM
BACSOM College, czyli Szkoła Programowania Procesorów, cz 1
Adaptery do programowania procesorów ST62T?0 i ST62T?5
CUDA w przykladach Wprowadzenie do ogolnego programowania procesorow GPU cudawp
cw 4 programowanie procesu klasteryzacji
Zarzadzanie procesami Program

więcej podobnych podstron