68881 FPU and other FPU

For discussing the 65xx hardware itself or electronics projects.
leeeeee
In Memoriam
Posts: 347
Joined: 30 Aug 2002
Location: UK
Contact:

Post by leeeeee »

Quote:
I think interfacing with a 65C02 would present some significant glue logic challenges.
I think this should suffice for connecting a 6502 to a 6888x

A4-A0 to A4-A0
R/W to R/W
D7-D0 to D7-D0 and D15-D8 and D23-D16 and D31-D24
Inverted phase 2 to /AS
Inverted phase 2 to /DS
Active low select to /CS
GND to /SIZE - selects 8 bit bus mode

Unless you clock the 6888x really slowly there should be no need to use the data strobe acknowledge signal from the 6888x.
Quote:
you'd have to write routines to convert to/from IEEE floating point format to use the 68881. The FPU doesn't do that for you
Actually it does. It can import and export values as byte, word and longword intgers, single, double and extended precision floating values and as a packed decimal string.
Quote:
Also, you'd need some way to add the 68881 assembly language instructions to your 65xx source code
I think you'd be better off writing a library of subroutines rather than trying to inline the 6888x opcodes. That way you only need code for instructions that make sense in a 6502 system.
Quote:
The data sheet doesn't list the equivalent machine instructions.
The 6888x user's manual describes each bit of each word for all the opcodes.

Lee.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Post by BigDumbDinosaur »

leeeeee wrote:
Quote:
you'd have to write routines to convert to/from IEEE floating point format to use the 68881. The FPU doesn't do that for you
Actually it does.
What I meant was converting between ASCII and the IEEE representation. Unless I'm not seeing something in the data sheet, it only works with binary representations of various types, as well as BCD.
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

Anyway the free shipping on ebay is not very free anymore, sow now i am considering other fpu as a possible solution, any suggestions?
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Post by ElEctric_EyE »

Someone here mentioned uM FPU 3.1 awhile ago...
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

Kinda expensive, the uM-FPU v3 21$ without shipping, the ebay 68881 is still cheaper...
leeeeee
In Memoriam
Posts: 347
Joined: 30 Aug 2002
Location: UK
Contact:

Post by leeeeee »

Quote:
What I meant was converting between ASCII and the IEEE representation.
At some stage you're going to have to convert from/to ASCII, if you can live with scientific notation packed decimal is very handy as conversion is almost trivial. Integer types are almost as easy and I don't think there is an FPU that can directly accept or output ASCII strings.

Lee.
User avatar
dclxvi
Posts: 362
Joined: 11 Mar 2004

Post by dclxvi »

Using a 68881 with a 6502 can be done, and in fact has been done. There was a floating point card for the Apple II called the Floating Point Engine that used a 68881. I don't know much about it other than that, though (I don't know how it worked). I read about it in a 1988 (or so) issue of Call-A.P.P.L.E. I still have the issue, though it's not easily accessible at the moment.
leeeeee
In Memoriam
Posts: 347
Joined: 30 Aug 2002
Location: UK
Contact:

Post by leeeeee »

leeeeee
In Memoriam
Posts: 347
Joined: 30 Aug 2002
Location: UK
Contact:

Post by leeeeee »

User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

Can the 68881 fit(pins) on a regular perforated experimental board?
My ms-paint says yes(i overlapped the board images from the links above).
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Post by ElEctric_EyE »

The MC6888x BGA type package (i.e RC suffix) has pins that are spaced .1". That is standard spacing on alot of prototype style perforated boards, but not all... The only other thing you will need to consider are the hole sizes specified on the board you plan on buying, maybe also the thickness of the perf board...
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

I never solder ic directly to the board, only in crazy situations(like in my digital clock project, since i hate to see the refresh of the 7 segment digits, i placed a 4026 ic(directly soldered) for every digit(14 of them)).
I plan to make myself a socket from this:
http://www.ebay.com/itm/260551794155?ss ... 1439.l2649

How do the instructions and r/w from registers work in peripheral mode?

(The 6000-post in this board)
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Post by ElEctric_EyE »

Dajgoro wrote:
I never solder ic directly to the board...
Neither do/did I. I used to prefer sockets that I could wire wrap to. Now in this age of 32,48,100,144,208-pin QFP, each QFP to wirewrap socket is very expensive, compared to a prefab'd board with many QFP's...

BGA will soon have to be mastered by the hobbyists...
Anyone looking to the future must realize BGA is a superior package... Unfortunately.

No socket there, but noise and speed issues are resolved with superior BGA.
Last edited by ElEctric_EyE on Mon Oct 17, 2011 11:49 pm, edited 1 time in total.
Nightmaretony
In Memoriam
Posts: 618
Joined: 27 Jun 2003
Location: Meadowbrook
Contact:

Post by Nightmaretony »

BGA has a problem of heat warpage, balls losing contact and repair capability. Notice how all the newer systems have such issues with their BGAs, creating such joys as the red ring of death....


//dip fan :)
"My biggest dream in life? Building black plywood Habitrails"
Post Reply