17.05.2015 Views

~ National ~ Semiconductor - Al Kossow's Bitsavers

~ National ~ Semiconductor - Al Kossow's Bitsavers

~ National ~ Semiconductor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.0 CPU Registers (Continued)<br />

BIRO - Bi-directional Interrupt ReQuest '" [Read<br />

only]. Reflects the logic level of the Bi-directional<br />

interrupt pin (BIRO). Updated at the beginning of<br />

each instruction cycle.<br />

7 6 5 4 3 2 o<br />

I TO I RR I RW I BIRQ I N I v I C I z I<br />

N<br />

v<br />

C<br />

z<br />

DCR<br />

- Negative ... A high level indicates a negative<br />

result generated by an arithmetic, logical or shift<br />

instruction.<br />

- OVerflOW ... A high level indicates an overflow<br />

condition generated by an arithmetic instruction.<br />

- Carry ... A high level indicates a carry or borrow<br />

generated by an arithmetic instruction. During a<br />

shift/rotate operation the state of the last bit shifted<br />

out appears in this location.<br />

- Zero ... A high level indicates a zero result generated<br />

by an arithmetic, logical or shift instruction.<br />

DEVICE CONTROL REGISTER<br />

[<strong>Al</strong>ternate RO; read/write]<br />

ecs - CPU Clock Select .,. Selects CPU clock frequency.<br />

OCLK represents the frequency of the<br />

on-chip oscillator, or the externally applied clock<br />

on input X1.<br />

CCS<br />

o<br />

CPU Clock<br />

OCLK<br />

1 OCLK/2<br />

TCS1,O- Transceiver Clock Select ... Selects transceiver<br />

clock, TCLK, frequency.<br />

OCLK represents the frequency of the on-chip<br />

oscillator, or the externally applied clock on input<br />

X1. X-TCLK is the external transceiver clock input.<br />

765 43210<br />

I ccs I TCS1 ! TCSO ! IW1 I IWO ! DW2 I DW1 ! DWO!<br />

TCSt,a<br />

TCLK<br />

00 OCLK<br />

01 OCLK/2<br />

10 OCLK/4<br />

11 X-TCLK<br />

IW1,O - Instruction memory Wait-state select ...<br />

Selects from 0 to 3 wait states for accessing<br />

instruction memory.<br />

DW2-0 -<br />

DS DATA STACK<br />

[Main R31; read/write]<br />

Data memory Walt-state select ... Selects<br />

from 0 to 7 wait states for accessing data memory.<br />

D87-0 - Data Stack ... Data stack input/output port.<br />

Stack is 16 bytes deep. Further information:<br />

Chapter CPU.<br />

7 654 321 0<br />

I DS7 I DS6 I DS5 I DS4 I DS3 ! DS2 ! DS1 I DSO !<br />

ECR ERROR CODE REGISTER<br />

[<strong>Al</strong>ternate R4 with SEC high; read only]<br />

OVF - Receiver OVerFlow ... Set when the receiver<br />

has processed 3 words and another complete<br />

frame is received before the FIFO is read by<br />

the CPU. Cleared by reading IECR} or by asserting<br />

[TRES].<br />

PAR - PARity error ... Set when bad (odd) overall<br />

word parity is detected in any receive frame.<br />

Cleared by reading I ECR} or by asserting<br />

[TRES].<br />

IES - Invalid Ending Sequence .. , Set when the<br />

"mini-code violation" is not detected at the appropriate<br />

time during a 3270, 3299, or 8-bit<br />

ending sequence. Cleared by reading I ECR}<br />

or by asserting [TRES].<br />

7<br />

6 5 4 3 2 1 0<br />

I rsv I rsv I rsv I OVF I PAR ! IES ! LMBT ! RDIS !<br />

LMBT - Loss of Mid-Bit Transition ... Set when the<br />

expected Manchester Code mid-bit transition<br />

does not occur within the allowed window.<br />

Cleared by reading I ECR} or by asserting<br />

[TRES].<br />

RDIS - Receiver DISabled while active ... Set when<br />

transmitter is activated while receiver is active,<br />

without RPEN being asserted. Cleared by reading<br />

IECR} or by asserting [TRES].<br />

FBR FILL-BIT REGISTER<br />

[<strong>Al</strong>ternate R3; read/write]<br />

FB7-0 - Fill Bits ... 5250 fill-bit control. Further information:<br />

Transceiver Section.<br />

7 6 5 4 321 0<br />

I FB7 I FB6 ! FB5 I FB4 I FB3 ! FB2 ! FB1 I FBO I<br />

IBR INTERRUPT BASE REGISTER<br />

[<strong>Al</strong>ternate R1; read/write]<br />

IV15-8 -<br />

Interrupt Vector ... High byte of interrupt and<br />

trap vectors. Further information: Chapter CPU.<br />

7 6 543 2 1 0<br />

I IV15 I IV14!IV131 IV12!IV11 IIV10! IV9 I IV8 I<br />

I I I I I I I I I I I I I I I I I<br />

. IBR 0 0 vector address .<br />

15 8 5 o<br />

Interrupt Vector<br />

The interrupt vector is obtained by concatenating {lBR}<br />

with the vector address:<br />

Interrupt Vector Address Priority<br />

NMI 011100 -<br />

Receiver 000100 1 high<br />

Transmitter 001000 2 t<br />

Line Turn Around 001100 3<br />

Bi-directional 010000 4<br />

"'-<br />

Timer 010100 5 low<br />

rsv ... state is undefined at all times.<br />

2-134

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!