0 ,\
~' io
PROf'lPT 48
THE I-lOST II1PORTANT RULE OF THUMB is ~co ensure when you operate the Prompt 48 that these three things are correct:
ACCESS HODE P2 HAP
LSN of P2
TIM~R INTERRUP~ DISABLED ON 'SINGLE-STEP' or 'WITH-BREAKPOINT HODE. To dei:Juc; timer routines, - theiG-ins-cpt JTF (Jump on Timer flag) command in the program loop.
MONI'l'(ll~ RE--rNTnY usrs NEXT AVAILABLE LEVEL OF THE STACK. I f user is not al>]are of thls and puts data immediately above his s-tack, the date will be II zapped n •
UPPER 15 BYTES OF 1st lK BLOCK (3FO-3FF) MUST BE RESERVED FOR RI> L~iTRY ceDE. 'J'his applies h7hetheT' iT;e---usel~s running - out-
o'f
the-II( vJl"'i teable prosl'C'.]" memory or out of the lK on--boBPd pro:::-;. Prom prc)grarmning cOJnrnano. [7l (see command s truci~ul'C )autoffiat~cally progra~s this re-e~try code into tl10se 16 bytes.
Pl'om programming conTland [3] does not.
ANL ~US ,A and ORL BUS ,ft. ARE NOT SUPPOHTED EXCEPT IN ACCESS r-lOm:; 3 AND THEN ONLY HJ 'G0 NO BREAK I •
OUTL BUS.A CAN ONLY BE USED IN ACCESS MODE 0 OR 3.
r---
I a~CC2SS p:.~(~G~;}~ SYS'l':.:l1 TO 2nd E1.7Al'SION
----.::.-~ - - - SYS::-:2-I CAT_IS NI"}-fORY -'''1m 10
Cl.T~ ..
?Ol'\.T 0
I
{-or.-;;- :V=;:Q~YI ~
::10 :10 YE:S nono _yes no no
IJ avJ
"f- ();;,vi/t"f uJ~
no 2 \?..Iri'_S:S !_~ (!'\.:~':"f) yes 3 ~~E_:;'D O:'ZL': (O~'l GIl?) no 4 !Z~\D O~LLY (C~\ C::I?) ~o
:;(;S
-' c
Table 1 - Access Codes ye.s
no no
y~s
uo
n., '< _
"".1
,f"£'; '" "T ...
~. ' ~ <. f-::.. "Pi (. i(.J) :~"':"'; ':5 "':' ;;itS
~.~",f((,
/
o
o
Page 2
LIMITED USE OF INS A, BUS. This one takes some explanation.
At the chip level, the MCS48 BUS port was designed to work in one of the following configurations but not in combination of these modes.
CONfIGURATION 1) Bi-Directional 2) Uni-Directional
3) Uni-Directional
IN/OUT both out 1n TABLE 2
COMMAND MOVX OUTL INS
In all 3 configurations, command RD and WR 1S produced but is not generally used on the INS and OUTL.
PROMPT 48 supports the first and second configurations compl€tely:
bi-directional, using access mode 1 or 4 and uni-directional out- put using access mode 0 or 3. The INS cormnand is basically not
supported by the PROMPT 48 but i t can be used by doing the following:
1) 2) 3)
USE ACCESS .SET (DRIVE (explained STROBE THE
- -,
Ji1 I
PRQ}1PT48
__ - - _I
HODE HIGH) 1n #8 DATA
1 OR 4
PORT 2 LINE 2 OR 3 belmv)
ONTO THE BUS vJITH THE
82..12
Figure 1 - Strobed Data Input
RD LINE (Figure
USER1S EXTERNAL SYSTEM
1)
o
o
o
Figure ° 2 shows the reason for the above steps. Access mode 1 or 4 enables a bi-directional driver and tri-states a latch that holds the data on an OUTL BUS,A command. Setting P22 or P23 deselects internal PROMPT48 memories. Data must be strobed onto the bus or else the in~ts would fight the 8216 drivers which are driving out when RD is inactive.
TRI'"'STl1rr~ IN
~X[; C ()
r
101'1CPU )
-f\ V e
LATC.H BIT~
Moor: 1 - OR.r-- p--
4 ,]"1n
t:lJ
I1 I l
--"J
II
It I I
t I
I
BU5F-- ;L-
T O . L - - - ' /
l
:J.NT t?/ZNP. L ---I \
[----I \.: ______ I s--- _II _ .... - ~!
-r.J I
PROMPT !{-6
J!
~I\!
Buss ES Ii ' --g cs
~
l.
(rov",0 Dr) r:s ... D I
R I/ 1 0/\ '-1
h~D
filTH CL05£ /) IF
Pz.2. fiN [; P2:S flRG" LoW
Figure 2 - DATA PATH WITHIN PROJ1PT48 USING INS A, BUS
o
o
o
Page 4
P2 MAPPING. The lines of Port 2 must be designated on a pin by pin basis as to their direction. This is done with the P2 map command. The default condition is 'output'. The follow- ing items need to be considered:
P23-27 MAY BE MAPPED 'INPUT' OR 'OUTPUT' REGARDLESS OF ACCESS MODE. These pins are wired directly from the execution CPU to JI interface so the only cri- terion is what device the user attaches to the pin.
P20-23 MAPPING IS DETERMINED BY ACCESS. This re- quires explanation on a mode-by-mode basis:
NODES 0,2, OR 5 - HAP P20-23 AS OUTPUT P20-23 are used by the monitor to select various internal memories of the PROMPT 48 and therefore must not be affected by input devices. Referring to Figure 3, we can see the data path is P2,H,J,K. If P20-23 is mapped in- ppt, data Path Jl, A, D, G, H could foul things up.
MODE 1 or 4 - MAPPING IS 'DON'T CARE'
P20-23 are used by the user to select various external memories, 10 chips, and/or 8243 Port Expander chips he may have connected to Jl.
Being select lines, their function will always be output except if using an 8243 Port Expander.
In Figure 3 the path is H, G, B, E, Jl. The P20-23 mapping mechanism is actually bypassed in these modes and is therefo"re immaterial.
If i t is mapped as output, the contents are saved by the monitor during debug. If using an 8243, on a MOVD A,Pn command, the path switches to Jl, F, B, G, H. "
MODE 3 - HAPPING MAY BE INPUT OR OUTPUT AS THE USER REQU..l.RES
In this mode we are running a <lK program on- board the CPU. With INPUT mapping the path is Jl, A, D, G and H. With OUTPUT ~apping the path is P2, H, J, C, A, Jl. You might notice that if the monitor takes control (due either to single- step, with-break, or monitor interrupt pressed) the last data on the 4-bit latch is held and the P2-map is temporarily switched to OUTPUT. Again, this is to prevent possible innut lines from
affecting the internal memory ~elect lines.
o
EXECUTION
CPU
~
JI
@ _
@ .
A.1/ ..-~
: M()J)~.:s
¢, 2, '3 ....s-
I I z ~-~~."". [!'1t---,
&7,
1 . . - _1 1 / {'"t"· ::J®'Mrtnr.-<
J ulTO INTERNIl L Pi'! ~r./; PT4 6
611~~i~.::5 US E: () Lv mODE g OR.. 2
® Q)
@
"
/ I
/ / P2 MAPPED , INPUT
I
B
I
{
£X1: Ffrc.H P2 .5l:"'U:(T
S n'\
fl/'iLD OR.LO OV 0 Ptu f}).
I
I
,
/
MOVD A.~
® ,,, I@
I I---~M 0 Drr s OJ,2,3$
J1
:MOOE"5' 1,'1
I ...
P2. 'MA P
i(BIT S!;L(;CTA{3LF.)
rigure 3 - PROMPT48 PORT 2 BUS· STRUCTURE
o
'"d 'PJ
CQ ('I) (J'1
o
o
Page 6
RAM AND 10 SELECTION. On MCS 48 systems, the MOVX command is used for data and 10 transfers with RO or Rl as a pointer.
The addressing capability is then limited to 1 page (256).
This is expanded to 4K by using P20-23, decoded to 16 page
selects. Internally the PROMPT48 requires the first lK addresses, i.e. P22 and 23 low. There are 2 consequences of this:
a) To access the 256 byte user ram that's inside the PROMPT48, the user program must output O's to P22 and 23. (drive low). P20 and P2l are 'don't care'.
EARLY VERSIONS OF PROI1PTl.J 8:
a) EXHIBIT GLITCHES ON ,PORT 2 AND BUS
b) PERFORM READS ON EXPANSION BUS WHEN MONITOR IS OPERATING.
On some 10 chips this Cdn be a problem.
c) 'HANGS UP' HHEN 'USER INT' KEY HELD \\1HILE SINGLE-STEPPING THROUGH THE PROGRAM.
d) DON f T ALLOv] USER PROGRAMS TO HRITE TO DATA RAM UNDER ACCESS MODES 0 OR 1. If i t works under access mode 2, 'then you have this problem. - -First check that LSN of
P2 < 3.
All of the above have been fixed by ECO. Contact the factory if you are experiencing problems.
TTY AND CRT PERIPHERALS ARE USED ONLY fOR DUMPING OR READING PAPER TAPE. The keyboard input lS not a substi-tute for the keypad on the PROMPT48.
o
o
YOU MAY CONNECT A 40-PIN SOCKET TO JI AND RUN A PROTOTYPE WITH THE PROMPT48. All of the major
SS (pin 5») EA (pin 7~ Vcc (pin 40») This does not make i t an ICE module.
and no trace or symbolic debug.
pins are wired to JI except and VDD (pin 26). Caution:
It has limited breakpoints
GROSS SPEED DEGRADATION OCCURS WHEN 'GO WITH BREAKPOINTS'.
This is due basically because the operation is a replica of single-stepping. This means that after every instruction the monitor re-takes control, saves the processor state) checks the PC against the eight breakpoints, then restores the processor state and goes back to the USer mode. - If your program has
timing loops in it, you can easily think the processor has 'gone out to lunch'.
WHEN USING PROMPT48 SYSTEM CALLS, DO NOT 'GO WITH SGL. STEP' OR 'GO WITH BREAKPOINT'. The monitor is like a lot of us; i t does not handle self-examination very well!
~
I r I" / / fIO" /1.. I~I.) /I~/i.i-
"/ (,,;, /. I? l.. J-:/
' /l J
~ v
-I. -':0 ( ' (C P' ,. 1/ c., /.-" I ,r~ ,~
/J!.-:' ,.i/ /.;. ~
"'.'_"'. . . (1Id-1F3- /t; ~
Yr ~ -'1.0
filil/dll/ ba c- VI
0-. _.. ... '. ;-1'1 t
(/f')..)1CJ /- Q ~'-/~
{II' .... _. .... .... - .. - .... ".-=" .~ ] If I.li (! Lo 5 ~.~ _ .. ~
u • • • " • - - . - _ • • _ - _ • •~
. . .~~.
• • • • •. ... . __ .. II •
~~.~.
..0:' .. Ill< tJny I- '1 f 5(,;; ;;jJ;;f·~-;)":!;··~ ..
IT v
~
? .I~
.. _ _ .... 'r&/!. J?
0:>v II!. o).t>/IPJ1th'1 ..-... ..'
.• --_ .. - -... f{i7j{ ~~---.. {/ • ... "
- - '
.• .•• •..•••.••• -, ...-
.' ..._
... •7'~~ rl .
.l{( .NK. -.- ._ ... -.
__ I+,<rj _
I ... . ;I{O .. , .- ... ---..If!+-
__ -~.~t;"dCT J~C;-'
..~."
_ _
_ q __
rf. ' ... , .. __ ..-.
-LIt-- /-"d:...:>--' _ _ 11 J:=.' "J ..J._____ ... \ II (1./) ... -
iii.
g ' . .~ .. ~_ .. "'_'_ ... . ... _ IJi (;;. .... _-- ·;;ow
f-I_O--c-- J.~~~:-~ ~ . 1~ ~ .. -. --=~Ljif··:·~-~~~.--~:·· (-.- -'-~-~~.:~~~~~~~ ..
. ___ ._._: I - 1'/. ,7fj;, .' 11;/,<6( . . .
u • • • _ , _ " - , . - - -• • - -_ . - ./.) _____ .__ IS"
;1n-
::;1 ... >1 ,-,.-.. , .. --.---.--"--.1£/5 ._.' .,r. , 1 . . / - " . -
.______ 1(,. 110'1 5oei:..ff/
u - , . - - " , . - . , • • W • • - -,_.. ... r
I7 Ii tJ ::. :~.~. . . ' . --' ... -..
y. _ _ _ _ _
---.l!
11 ,,/, ... ". __ .. " - , - -, __ . ____ .. , tnt '_ ._____ ,9
/1 Vb 1 -- ., .• ' ..•• ' - - - ,. ---- •• -.---.. - - -.... 11 . .
IItJ7 ... .
.. '_. __ ..' , '--=r- ~" // Z ... -. - ._-._-
.... _._ 7.; ~. }~II
I-1-
"'-~~!. lil.. /'
{O.u·~~~~·~ .:=~
._- •• - ... _ ... -.. ~---.--
_. _._ .•... ; _ ....•...
)'7"~},,,.~.t'I/MK..
If . . "';1:0/lil-~
.... --.. ---.- - .. : .•... _.c.. ...•._l--1:.1 '·1-"--" -'.'-, - 1-/;:;,:-"[ ! l - - . l ... .
.. ... .. .' .. " . . . . ... :::==J(5.~:;" ... . . . - - _. ... . ... .
~, ... ':" . i''t>o
oJ~'--
_ _ _ •__ ~ __ . ~~D _---.-1---1
. . . ... .o 3'1 . ... . . ... .
• •