6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 12:18 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Mar 01, 2014 4:17 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Thought it would be useful to have a new topic for this. See this doc by David Empson (also here). Refer also to the '816 datasheet (newer).

From Brett Tabke's document (also here):

Code:
=====================
Appendix C: IC Pinouts
=====================

           /=============\                     /=============\
       VP  I1          40I RES            Vss  I1          40I RES
      RDY  I2          39I VDA            RDY  I2          39I o2 (OUT)
    ABORT  I3          38I M/X       o1 (OUT)  I3          38I SO
      IRQ  I4          37I o2 (IN)        IRQ  I4          37I o2 (IN)
       ML  I5          36I BE              NC  I5          36I NC
      NMI  I6          35I E              NMI  I6          35I NC
      VPA  I7          34I R/W           SYNC  I7          34I R/W
      VDD  I8          33I D0/BA0         Vdd  I8          33I D0
       A0  I9  W65C816 32I D1/BA1          A0  I9   6502   32I D1
       A1  I10         31I D2/BA2          A1  I10         31I D2
       A2  I11         30I D3/BA3          A2  I11         30I D3
       A3  I12         29I D4/BA4          A3  I12         29I D4
       A4  I13         28I D5/BA5          A4  I13         28I D5
       A5  I14         27I D6/BA6          A5  I14         27I D6
       A6  I15         26I D7/BA7          A6  I15         26I D7
       A7  I16         25I A15             A7  I16         25I A15
       A8  I17         24I A14             A8  I17         24I A14
       A9  I18         23I A13             A9  I18         23I A13
      A10  I19         22I A12            A10  I19         22I A12
      A11  I20         21I Vss            A11  I20         21I Vss
           \=============/                     \=============/


Quote:
Notes:
ML: Memory Lock line (pin 5) is asserted low during the execution of
the read-modify-write (asl,dec,inc,lsr,rol,ror,trb, and tsb
instructions to inform other ics that the bus may not be claimed
yet.

VP: Vector Pull is asserted whenever any of the hardware vector
address's are being accessed during an IRQ.

Abort: An input. When asserted caused the current instruction to be
aborted.

VPA/VDA. Valid Program Address and Valid Data Address. These two
signals extend on the 6502 SYNC line - to better handle
DMA schemes.

VPA VDA
0 0 -Internal Operation
0 1 -Valid program address
1 0 -Valid data address
1 1 -Opcode fetch

M/X: Memory and Index lines. These signals are multiplexed on pin
38. M is available during phase zero and X during Phase one.
These two signals reflect the contents of the status register
m and x flags, allowing other devices to decode opcode fetches.

E: Emulation pin. This signal reflects the state of the processors
emulation bit (E).


See also this topic on the use of the '816 in emulation mode.

To use the '816 in a 6502 socket, you will need an adapter:
- pin 1, VP, is now an output and should be no-connect
- pin 2, RDY, is now bidirectional if the WAI instruction might be used
- pin 3, ABORT, is now an input, and there is no clock output
- pin 5, ML, is now an output (was previously no-connect)
- pin 7, VPA, is not the same as SYNC. Use VPA and VDA if you need SYNC.
- pins 26-33, D7-D0, are now outputs during phi1, no longer undriven during phi1. A bus transceiver might be needed to avoid contention
- pin 35, E, is now an output (was previously no-connect)
- pin 36, BE, is now an input, should be tied high
- pin 38, M/X, is now an output (was previously SO input)
- pin 39, VDA, is not a clock output, and there isn't a clock output

I'll update this post if need be. Comments welcome!

Cheers
Ed


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 04, 2014 7:33 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
BigEd wrote:
Code:
VDA   VPA
 0     0  -Internal Operation
 0     1  -Valid program address
 1     0  -Valid data address
 1     1  -Opcode fetch

In the above table, VDA and VPA were reversed.

A little clarification of these signals is in order. VPA is asserted during both the opcode and operand fetch steps of instruction execution, making it possible for logic to cleanly distinguish instruction fetch from data fetch or store. Note that when the expression VDA | VPA is false (| means logical OR) the address bus is in an undefined state and may actually change states more than once before becoming valid. Beware of this characteristic if using non-65xx devices, which may misbehave in some cases.

Quote:
To use the '816 in a 6502 socket...
...
- pin 2, RDY, is now bidirectional if the WAI instruction might be used

RDY should be pulled up to Vcc through a 3.3K resistor. The 65C816's internal pullup is weak, which might make RDY noise-sensitive in some applications. In no case should RDY ever be directly connected to Vcc or the output of another chip. If RDY is to be driven by another chip, isolation via a Schottky diode will be necessary, with the anode connected to RDY. This also applies to the W65C02S.

Quote:
- pin 3, ABORT, is now an input, and there is no clock output

If unused, ABORT must also be pulled up to Vcc, as it has no internal pullup.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 52 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: