Forums

68hc11 interface with pci bus

Started by addicted6220 June 2, 2006
jo sun wrote:
>
> Dear mike,
>
> I am more than pleased with the tips you gave the other daybut the problem with me, I am such a nae person when it come with computer

That's not a problem, everyone starts somewhere.
Umm, I'd appreciate it if you hit return from time to time.

>
> To begin with .i dont know where PCI bus is locateddoes every PC have PCI bus?

All modern 80x86 based machines have PCI busses.

> I tried to find M68HC11RM.pdf on the internet but failed....(server problem)

I can send you one via e-mail if you haven't already found one.

> And how am I gonna to interface PCI bus to the microchip in term of circuit and software?

Well, it depends on what the requirements are. It isn't clear (to me)
whether your requirements require that the MC68HC11 be the master on
the bus. Just as a little background...

The PCI bus was intended to be a bus useful for connecting
all kinds of peripherals to all kinds of processors, but
at something like the normal processor bus speed. To
accomplish this, one uses a bridge chip, which is specific
to the processor bus. These bridge chips have significant
programming/initialization requirements. Modern PCs have
the code (firmware) necessary to initialize the bridge
chips, and enumerate the bus (find the peripherals actually
connected on the other side). If the MC68HC11 is the master,
then you'll have to find a bridge chip compatible with the
'11 bus. You'll also have to find out how to program that
chip, and enumerate a PCI bus.

On the other hand (OTOH) if that is not your requirement,
but it is intended for your MC68HC11 to be on the peripheral
side of the bus, then the PC can do the programming and enumeration.
In that case, depending on the exact requirements, perhaps you
can do what some others have suggested, which is to use a
PCI bus compatible serial card, and connect the '11 to the
serial port on the card.

>
> I dont even start the project yet because I dont know what to buythe only thing I have for the project is a book about 68hc11

Well, the requirements I've seen so far are so vague,
that I have only a foggy notion of what you are trying to
do, and without more information I can't really help you.

>
> I have start read it already...

That's a good start.

> Email me okey?....have a nice day

Here it is. Sorry not to get back in so long. I've
been busy.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
Dear mike

Thanks again...
it would be nice if you can send me the M68HC11RM.pdf .
because im having difficult time to find it..
Dear mike,
i will be pleased if you can send the M68HC11RM.pdf to me...because im having a difficult time finding it...thnks again..
a...@yahoo.com wrote:
> Dear mike
>
> Thanks again...
> it would be nice if you can send me the M68HC11RM.pdf .
> because im having difficult time to find it..

Ok, sent under separate cover. However, I compressed it
with zip (if you use Windows, use WinZip). It's still
about 3M. I also have a manual devoted specifically to
the E series chips. Perhaps you would prefer a URL?

Also, you may find quit a bit at

http://www.freescale.com/

http://www.freescale.com/files/microcontrollers/doc/data_sheet/M68HC11E.pdf
in particular looks pretty good.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
a...@yahoo.com wrote:
> Dear mike,
> i will be pleased if you can send the M68HC11RM.pdf to me...because im having a difficult time finding it...thnks again..

Did you get it?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
dear Mike....

I'm sorry for replying this late.I did get the file you sent. The problem is (maybe not a prob at all), my lecturer has change the project to a rs 232 to ease my burden as he said. And ofcoz the microcontroller still the main point in this project..So i wonder you if still want to help me...it still hard for me as rookie in this field, even with rs 232. Ofcourse i do need your help.

Thanks...reply soon..

Send instant messages to your online friends http://uk.messenger.yahoo.com



jo sun wrote:
> dear Mike....
>
> I'm sorry for replying this late.I did get the file you sent. The problem is (maybe not a prob at all), my lecturer has change the project to a rs 232 to ease my burden as he said. And ofcoz the microcontroller still the main point in this project..So i wonder you if still want to help me...it still hard for me as rookie in this field, even with rs 232. Ofcourse i do need your help.
>
> Thanks...reply soon..

I'd appreciate it if you hit the Return key on your
keyboard from time to time.

Try to get something done, and when you get stuck, send
us a description of where you got lost/stuck, and we'll
help you figure it out. That's the way it works.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
dear Mike,

The other day, I was just beginning to start my new project on rs-232,
but my lecturer have another idea...

He changed my project again..and now the title became....
parallel port interface with MC68HC11A1 (MOTOROLA).
So what do i have to do?
I use Visual Basic in this project,but that is not the problem, my
only concern now how to connect parallel port to the micro-c?

I already study parallel port pins. So can you helpme with the
connection?

thanks....
addicted6220 wrote:
> dear Mike,
>
> The other day, I was just beginning to start my new project on rs-232,
> but my lecturer have another idea...

Welcome to the real world. We call that "moving target" and
"changing requirements". You need to press for a "requirements
freeze".

> He changed my project again..and now the title became....
> parallel port interface with MC68HC11A1 (MOTOROLA).
> So what do i have to do?

Beats me. You haven't stated any requirments here at all.

> I use Visual Basic in this project,but that is not the problem, my
> only concern now how to connect parallel port to the micro-c?

No requirements, no help. You need at least to make a start, also.

You need to do the following things...

1. Get good requirements. Is this a one-way or a bi-directional
link? How much data goes in each direction? Data rates? Are there
any requirements on the protocol? (Like, "Must be Centronics
compatible" or "Must emulate a printer", etc.)

2. Design a protocol for data transfer. What kind of handshake,
if any, is to be used.

3. Depending on the complexity of the data processing to be done,
you might run in single-chip mode, and use the automatic parallel
I/O handshake provided on PORTB and PORTC.

> I already study parallel port pins. So can you helpme with the
> connection?

Depends on all the above. Try making some progress on your own,
and when you get stuck, come back for help.

Note that the Centronics port has only limited amounts of
data in the reverse channel (like 5 bits, I think), and some
of those bits undergo logic inversion.

HTH

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
On Thu, Jul 27, 2006 at 01:45:03PM -0500, Mike McCarty wrote:
>
> Note that the Centronics port has only limited amounts of
> data in the reverse channel (like 5 bits, I think), and some
> of those bits undergo logic inversion.

It Depends. There are many different implementations of the parallel
printer port on PC hardware. Not all were bidirectional. The design
originally used by AST was widely copied. But since that time there have
been a couple of "high performance" "standard" versions complete with
bidirectional DMA. There were attempts to change the "standard" cable
from DB25 at one end and huge "centronics" connector at the other to
something suitable for high data rates. These cables can be found but
USB and ethernet have mostly pushed parallel printer interfaces out of
the public's interest.

This is an example of why the student is required to actually assemble a
working demonstration, because its all the details and organization
which is required which is the real lesson. The microcontroller is only
a side bar.

--
David Kelly N4HHE, d...@HiWAAY.net
=======================================================================Whom computers would destroy, they must first drive mad.