background image

Functional Modes of Operation

There are two primary functional modes of operation for the
HPC167064.

#

EPROM Mode

#

Normal Running Mode

EPROM MODE

In the EPROM mode, the HPC167064 is configured to ‘‘ap-
proximately emulate’’ a standard NMC27C256 EPROM.
Some dissimilarities do exist. The most significant one is
that HPC167064 contains only 16 kbytes of programmable
memory, rather than the 32 kbytes in 27C256. An
HPC167064 in the EPROM mode can be programmed with
a Data I/O machine.

Given below is the list of functions that can be performed by
the user in the EPROM mode.

#

Programming

CAUTION: Exceeding 14V on pin 1 (V

PP

) will damage the

HPC167064.

Initially, and after each erasure, all bits of the HPC
EPROM are in the ‘‘1’’ state. Data is introduced by selec-
tively programming ‘‘0s’’ into the desired bit locations.
Although only ‘‘0s’’ will be programmed, both ‘‘1s’’ and
‘‘0s’’ can be presented in the data word. The only way to
change a ‘‘0’’ to a ‘‘1’’ is by ultraviolet light erasure.

#

Program/verify EPROM registers

To read data (verify) during the programming process,
V

PP

must be at 13V. When reading data after the pro-

gramming process, V

PP

can be either 13V or at V

CC

.

#

Program/verify ECON registers

There are two configuration registers ECON6 and
ECON7 to emulate different family members and also to
enable/disable different features in the chip. These reg-
isters are not mapped in the EPROM user space. These
bytes must be programmed through a pointer register
ECONA.

To prevent unintentional programming, the ECON6, 7
registers must be programmed with the assistance of this
pointer register. ECONA, and externally presented ad-
dress, both identify the same ECON register may be pro-
grammed.

NORMAL RUNNING MODE

In this mode, the HPC167064 executes user software in the
normal manner. By default, its arcitecture imitates that of
the HPC16064. It may be configured to emulate the
HPC16083. The addressable memory map will be exactly as
for the HPC16083. The WATCHDOG function monitors ad-
dresses accordingly. Thus, the HPC167064 can be used as
a stand-alone emulator for both HPC16064 and HPC16083.

Within this mode, the on-chip EPROM cell acts as read only
memory.

Each

memory

fetch

is

16-bits

wide.

The

HPC167064 operates to 20 MHz with 1 wait state for the on-
chip memory.

The HPC167064 emulates the HPC16064 and HPC16083,
except as described here.

#

The value of EXM is latched on the rising edge of
RESET. Thus, the user may not switch from ROMed to
ROMless operation or vice-versa, without another
RESET pulse.

#

The security logic can be used to control access to the
on-chip

EPROM.

This

feature

is

unique

to

the

HPC167064. There is no corresponding mode of opera-
tion on the HPC16064 or the HPC16083.

#

Specific inputs are allowed to be driven at high voltage
(13V) to configure the device for programming. These
high voltage inputs are unique to the HPC167064. The
same inputs cannot be driven to high voltage on the
HPC16064 and HPC16083 without damage to the part.

#

The Port D input structure on this device is slightly differ-
ent from the masked ROM HPC16083 and HPC16064.
V

IH2

min and V

IL2

max are the same as for the masked

ROM HPC16083 and HPC16064. There is a V

IH2

max

requirement for this device equal to V

CC

a

0.05V. There

is also a V

IL2

min requirement for this device equal to

GND-0.05V. The V

IH2

max and V

IL2

min requirement for

the masked ROM devices is the Absolute Maximum Rat-
ings of V

CC

a

0.5V and GND-0.5V respectively.

#

The D.C. Electrical Characteristics and A.C. Electrical
Characteristics for the HPC167064, where T

A

e b

55

§

C

to

a

125

§

C, are guaranteed over a reduced operating

voltage range of V

CC

g

5%. This is different from the

masked ROM devices that it simulates which is V

CC

g

10%. These characteristics for the HPC467064, where

T

A

e b

0

§

C to

a

70

§

C, are guaranteed over the masked

ROM operating voltage range which is V

CC

g

10%.

#

In addition to the reduced operating voltage range for the
HPC167064, the A.C. timing parameter t

UDH

is required

to be a mimimum value of 25 ns. The masked ROM de-
vices require a mimimum t

UDH

0f 20 ns. This A.C. timing

parameter for the HPC467064 is required to be the same
as the masked ROM devices.

HPC167064 EPROM SECURITY

The HPC167064 includes security logic to provide READ
and WRITE protection of the on-chip EPROM. These de-
fined privileges are intended to deter theft, alteration, or un-
intentional destruction of user code. Two bits are used to
define four levels of security on the HPC167064 to control
access to on-chip EPROM.

Security Level 3

This is the default configuration of an erased HPC167064.
READ and WRITE accesses to the on-chip EPROM or
ECON registers may be accomplished without constraint in
EPROM mode. READ accesses to the on-chip EPROM may
be accomplished without constraint in NORMAL RUNNING
mode.

10

Summary of Contents for HPC167064

Page 1: ... of exter nal memory enables the HPC to be used in powerful appli cations typically performed by microprocessors and expen sive peripheral chips The microCMOS process results in very low current drain and enables the user to select the optimum speed power product for his system The IDLE and HALT modes provide further current savings The HPC167064 is available only in 68 pin LDCC package Features Y...

Page 2: ... Logic High 0 7 VCC V VIL2 Logic Low 0 2 VCC V ILI1 Input Leakage Current VIN e 0 and VIN e VCC Note 4 g2 mA ILI2 Input Leakage Current RDY HLD EXUI VIN e 0 b3 b50 mA ILI3 Input Leakage Current B12 RESET e 0 VIN e VCC 0 5 7 mA ILI4 Input Leakage Current EXM VIN e 0 and VIN e VCC Note 4 g10 mA CI Input Capacitance Note 2 10 pF CIO I O Capacitance Note 2 20 pF OUTPUT VOLTAGE LEVELS VOH1 Logic High C...

Page 3: ...D Falling Edge to Output Data Valid 0 60 ns tOD Rising Edge of URD to Output Data Invalid 5 45 ns Note 6 tDRDY RDRDY Delay from Rising Edge of URD 70 ns tWDW UWR Pulse Width 40 ns tUDS Input Data Valid before Rising Edge of UWR 10 ns tUDH HPC467064 Input Data Hold after Rising Edge of UWR 20 ns tUDH HPC167064 25 ns tA WRRDY Delay from Rising Edge of UWR 70 ns Clocks Timers Microwire Plus External ...

Page 4: ...ing Edge 18 ns tVP e 4 tC b 5 Hold of Address Valid after ALE Falling Edge 20 ns tARR e 4 tC b 5 ALE Falling Edge to RD Falling Edge 20 ns tACC e tC a WS b 55 Data Input Valid after Address Output Valid 145 ns tRD e 2 tC a WS b 65 Data Input Valid after RD Falling Edge 85 ns tRW e 2 tC a WS b 10 RD Pulse Width 140 ns tDR e 4 tC b 15 Hold of Data Input Valid after RD Rising Edge 0 60 ns tRDA e tC b...

Page 5: ...tC a 85 HLDA Falling Edge after HLD Falling Edge 151 ns Note 3 tHAD e 4 tC a 85 HLDA Rising Edge after HLD Rising Edge 135 ns tBF e 2 tC a 66 Bus Float after HLDA Falling Edge 99 ns Note 5 tBE e 2 tC a 66 Bus Enable after HLDA Rising Edge 99 ns Note 5 tUAS Address Setup Time to Falling Edge of URD 10 ns tUAH Address Hold Time from Rising Edge of URD 10 ns tRPW URD Pulse Width 100 ns tOE URD Fallin...

Page 6: ...o 2 falling edges of the CK2 clock Note CL e 40 pF Note 1 These AC Characteristics are guaranteed with external clock drive on CKI having 50 duty cycle and with less than 15 pF load on CKO with rise and fall times tCKIR and tCKIL on CKI input less than 2 5 ns Note 2 Do not design with this parameter unless CKI is driven with an active signal When using a passive crystal circuit its stability is no...

Page 7: ...s are driven at VIH for logic 1 and VIL for a logic 0 Output timing measurements are made at VCC 2 for both logic 1 and logic 0 FIGURE 2 Input and Output for AC Tests Timing Waveforms TL DD 11046 5 FIGURE 3 CK1 CK2 ALE Timing Diagram TL DD 11046 6 FIGURE 4 Write Cycle 7 ...

Page 8: ...Timing Waveforms Continued TL DD 11046 7 FIGURE 5 Read Cycle TL DD 11046 8 FIGURE 6 Ready Mode Timing TL DD 11046 9 FIGURE 7 Hold Mode Timing 8 ...

Page 9: ...Timing Waveforms Continued TL DD 11046 10 FIGURE 8 MICROWIRE Setup Hold Timing TL DD 11046 11 FIGURE 9 UPI Read Timing TL DD 11046 12 FIGURE 10 UPI Write Timing 9 ...

Page 10: ...he HPC16064 and HPC16083 except as described here The value of EXM is latched on the rising edge of RESET Thus the user may not switch from ROMed to ROMless operation or vice versa without another RESET pulse The security logic can be used to control access to the on chip EPROM This feature is unique to the HPC167064 There is no corresponding mode of opera tion on the HPC16064 or the HPC16083 Spec...

Page 11: ...000 Angstroms Ð It should be noted that sunlight and certain types of fluores cent lamps have wavelengths in the 3000Ð 4000Ð range After programming opaque labels should be placed over the HPC167064 s window to prevent unintentional erasure Covering the window will also prevent temporary functional failure due to the generation of photo currents The recommended erasure procedure for the HPC167064 ...

Page 12: ...ART Data Input I7 Port D is an 8 bit input port that can be used as general purpose digital inputs Port P is a 4 bit output port that can be used as general purpose data or selected to be controlled by timers 4 through 7 in order to generate frequency duty cycle and pulse width modulated outputs POWER SUPPLY PINS VCC1 and VCC2 Positive Power Supply GND Ground for On Chip Logic DGND Ground for Outp...

Page 13: ...rogrammed as inputs or outputs Port pins se lected as inputs are placed in a TRI STATE mode by reset ting corresponding bits in the direction register A write operation to a port pin configured as an input causes the value to be written into the data register a read opera tion returns the value of the pin Writing to port pins config ured as outputs causes the pins to have the same value reading th...

Page 14: ...orts A B Continued TL DD 11046 20 FIGURE 12 Structure of Port B Pins B0 B1 B2 B5 B6 and B7 Typical Pins TL DD 11046 21 FIGURE 13 Structure of Port B Pins B3 B4 B8 B9 B13 and B14 Timer Synchronous Pins 14 ...

Page 15: ... PSW register does two thingsÐaddresses are limited to the on chip EPROM range and on chip RAM and Register range and the illegal address detection feature of the WATCH DOG logic is engaged A logic 1 in the EA bit enables accesses to be made anywhere within the 64 kbytes ad dress range and the illegal address detection feature of the WATCHDOG logic is disabled All HPC devices can be used with exte...

Page 16: ...one wait state With 0 wait states internal ROM accesses are limited to 3 fC max The HPC167064 provides four software selectable Wait States that allow access to slower memories The Wait States are selected by the state of two bits in the PSW register Addi tionally the RDY input may be used to extend the instruc tion cycle allowing the user to interface with slow memories and peripherals TL DD 1104...

Page 17: ...HPC167064 Interrupts Continued TL DD 11046 24 FIGURE 16 8 Bit External Memory TL DD 11046 25 FIGURE 17 16 Bit External Memory 17 ...

Page 18: ...riate bit to be set There is no indi cation of the order in which the interrupts have been re ceived The bits are set independently of the fact that the interrupts may be disabled IRPD is a Read Write register The bits corresponding to the maskable external interrupts are normally cleared by the HPC167064 after servicing the interrupts For the interrupts from the on board peripherals the user has ...

Page 19: ...TL DD 11046 26 FIGURE 18 Block Diagram of Interrupt Logic 19 ...

Page 20: ...e clock rates The clock input to these two timers may be selected from the following two sources an external pin or derived internally by TL DD 11046 27 FIGURE 19 Timers T0 T1 and T8 with Four Input Capture Registers dividing the clock input Timer T2 has additional capability of being clocked by the timer T3 underflow This allows the user to cascade timers T3 and T2 into a 32 bit timer coun ter Th...

Page 21: ...nfinite loops and illegal addresses Should the WATCHDOG register not be written to before Timer T0 overflows twice or more often than once every 4096 counts an infinite loop condition is assumed to have oc curred An illegal condition also occurs when the processor generates an illegal address when in the Single Chip modes Any illegal condition forces the WATCHDOG Out put WO pin low The WO pin is a...

Page 22: ... application Information is visually presented to the operator by means of a LCD display controlled by the COP472 display driver The data to be displayed is sent serially to the COP472 over the MICROWIRE PLUS link Data such as accumulated mileage could be stored and re trieved from the EEPROM COP494 The slave HPC167064 could be used as a fuel injection processor and generate timing signals require...

Page 23: ... to 128 kHz in binary steps or T3 underflow By selecting a 9 83 MHz crystal all standard baud rates from 75 baud to 38 4 kBaud can be generated The external baud clock source comes from the CKX pin The Transmitter and Receiver can be run at different rates by selecting one to operate from the internal clock and the other from an external source The HPC167064 UART supports two data formats The firs...

Page 24: ...l bit The HLDA output is multiplexed onto Port B The host uses DMA to interface with the HPC167064 The host initiates a data transfer by activating the HLD input of the HPC167064 In response the HPC167064 places its system bus in a TRI STATE Mode freeing it for use by the host The host waits for the acknowledge signal HLDA from the HPC167064 indicating that the sytem bus is free On receiving the a...

Page 25: ...r 0151 0150 PWMODE Register 014F 014E R7 Register 014D 014C T7 Timer 014B 014A R6 Register Timer Block T4 T7 0149 0148 T6 Timer 0147 0146 R5 Register 0145 0144 T5 Timer 0143 0142 R4 Register 0141 0140 T4 Timer 0128 ENUR Register 0126 TBUF Register 0124 RBUF Register UART 0122 ENUI Register 0120 ENU Register 0104 Port D Input Register 00F5 00F4 BFUN Register Ports A B 00F3 00F2 DIR B Register Contr...

Page 26: ...7 Register 014D 014C T7 Timer 014B 014A R6 Register 0149 0148 T6 Timer 0147 0146 R5 Register 0145 0144 T5 Timer 0143 0142 R4 Register 0141 0140 T4 Timer 0128 ENUR Register 0126 TBUF Register 0124 RBUF Register UART 0122 ENUI Register 0120 ENU Register 0104 Port D Input Register 00F5 00F4 BFUN Register Ports A B 00F3 00F2 DIR B Register Control 00F1 00F0 DIR A Register IBUF 00E6 UPIC Register UPI C...

Page 27: ...p these capacitances but it s more effective to distribute them among the ICs If the design has a fair amount of synchronous logic with outputs that tend to switch simultaneously additional de coupling might be advisable Octal flip flop and buffers in bus oriented circuits might also require more decoupling Note that wire wrapped circuits can require more decou pling than ground plane or multilaye...

Page 28: ...dressed by the X register This mode automatically increments or decrements the X register by 1 for bytes and by 2 for words Register Indirect Auto Increment and Decrement with Conditional Skip The operand is the memory addressed by the B register This mode automatically increments or decrements the B register by 1 for bytes and by 2 for words The B register is then compared with the K register A s...

Page 29: ...A 11 8 wA 7 4 ÝA 3 0 RRC A Rotate A right thru C CxA15 x xA0xC RLC A Rotate A left thru C CwA15 w wA0wC SHR A Shift A right 0xA15x xA0xC SHL A Shift A left CwA15w wA0w0 SC Set C 1xC RC Reset C 0xC IFC IF C Do next if C e 1 IFNC IF not C Do next if C e 0 TRANSFER OF CONTROL INSTRUCTIONS JSRP Jump subroutine from table PCxW SP SPa2xSP W tableÝ xPC JSR Jump subroutine relative PCxW SP SPa2xSP PCaÝxPC...

Page 30: ...y bit of memory I O or registers can be set reset or tested by the single byte bit instructions The bits can be addressed directly or indirectly Since all registers and I O are mapped into the memory it is very easy to manipulate specific bits to do efficient control DECIMAL ADD AND SUBTRACT This instruction is needed to interface with the decimal user world It can handle both 16 bit words and 8 b...

Page 31: ...bility of remotely accessing the development system at a customer site INFORMATION SYSTEM The Dial A Helper system provides access to an automated information storage and retrieval system that may be ac cessed over standard dial up telephone lines 24 hours a day The system capabilities include a MESSAGE SECTION electronic mail for communications to and from the Micro controller Applications Group ...

Page 32: ...be available TL DD 11046 39 Examples HPC467064 EL20Ð16k EPROM Commercial temperature 0 C to a70 C LDCC HPC167064 EL20Ð16k EPROM Military temperature b55 C to a125 C LDCC to be used for automotive temperature range also Socket Selection Suggested sockets and extractor tool Socket Ý Amp PLCC Ý821574 1 6141749 YAMAICHI 1C51 0684 390 1C120 0684 204 ENPLAS PLCC 68 1 27 02 Extractors Tool Ý Amp 821566 1...

Page 33: ...33 ...

Page 34: ...roperly used in accordance support device or system or to affect its safety or with instructions for use provided in the labeling can effectiveness be reasonably expected to result in a significant injury to the user National Semiconductor National Semiconductor National Semiconductor National Semiconductor Corporation Europe Hong Kong Ltd Japan Ltd 1111 West Bardin Road Fax a49 0 180 530 85 86 13...

Reviews: