hi everybody, i am rookie in this area (microcontroller). I wanted to
build a circuit that microcontroller(68hc11) based connected to motor.
The idea was to control the motor from PC through PCI-bus that
interface to microcontroller.
so anybody out there, please help me with this? because i am really
lost...
tell me everything...
68hc11 interface with pci bus
Started by ●June 2, 2006
Reply by ●June 2, 20062006-06-02
From: addicted6220 a...@yahoo.com
hi everybody, i am rookie in this area (microcontroller). I wanted to
build a circuit that microcontroller(68hc11) based connected to motor.
The idea was to control the motor from PC through PCI-bus that
interface to microcontroller.
============================================I think you should use rs232 commands from the pc to the hc11 to control the motor. You can test it with a terminal program like hyperterminal.... use 'hotkeys' like +ter -=slower 0=stop
hi everybody, i am rookie in this area (microcontroller). I wanted to
build a circuit that microcontroller(68hc11) based connected to motor.
The idea was to control the motor from PC through PCI-bus that
interface to microcontroller.
============================================I think you should use rs232 commands from the pc to the hc11 to control the motor. You can test it with a terminal program like hyperterminal.... use 'hotkeys' like +ter -=slower 0=stop
Reply by ●June 2, 20062006-06-02
addicted6220 wrote:
> hi everybody, i am rookie in this area (microcontroller). I wanted to
Welcome to the uC club! All newcomers are welcome!
> build a circuit that microcontroller(68hc11) based connected to motor.
> The idea was to control the motor from PC through PCI-bus that
> interface to microcontroller.
Hmm. Perhaps you should state your goals rather than the means.
IMO:
PCI bus is not the way to go. You'll spend more time learning how
to program the bridge chip than learning how to program the uC. I
recommend to you instead to use a serial interface for these reasons:
(1) Comm packages for the serial port already exist for your development
machine.
(2) The SCI is easy to program on the uC.
(3) The hardware is cheap, and easy to design and build.
(4) The fewer pieces of programmable hardware involved, the greater
the chances of success.
> so anybody out there, please help me with this? because i am really
> lost...
Everyone starts somewhere.
> tell me everything...
This is pretty broad. I can outline how you can figure out what
you need for yourself.
(1) Define your requirements. The uC must control a such-and-such
motor with such-and-such voltage and current requirements. It must
be able to control the motor in such-and-such a way. (Like, start,
stop, reverse, speed, etc.)
(2) Based on the requirements, come up with a few preliminary designs.
If the uC cannot handle the current the motor needs, then figure out
some possible driver arrangements. At this stage, make a preliminary
estimate of the code complexity required to handle the commands from
the PC. This will tell you whether a single-chip mode will suffice.
If the code may not fit, then consider using an expanded mode with
external RAM/ROM. If you decide you may need expanded mode, consider
whether you can use the I/O ports on the chip, or will need to
do a more elaborate memory mapped I/O to control the motor.
(3) At this point, research the web for possible circuits. I recommend
getting a copy of M68HC11RM.pdf and reading it. It has some simple
circuits, one or more of which may be suitable for your needs.
(4) Design the communications protocol, and write a little code
for both the uC and PC, and make sure they can communicate.
(5) Refine your estimate of the amount of code, and decide on whether
you can use single-chip or need external RAM.
(6) Design your driver I/F to the motor, and write code to do one
function at a time with the motor. Write simple programs to make it
go forward, reverse, slow, fast, whatever, in some pattern you can
recognize.
(7) Write the full protocol handler, and try to control the motor
from the PC. Implement only one function in the protocol at a time,
and get it working, then move to another.
At any time, come back here, tell us what you've done so far, and
we'll help you over the humps.
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!
> hi everybody, i am rookie in this area (microcontroller). I wanted to
Welcome to the uC club! All newcomers are welcome!
> build a circuit that microcontroller(68hc11) based connected to motor.
> The idea was to control the motor from PC through PCI-bus that
> interface to microcontroller.
Hmm. Perhaps you should state your goals rather than the means.
IMO:
PCI bus is not the way to go. You'll spend more time learning how
to program the bridge chip than learning how to program the uC. I
recommend to you instead to use a serial interface for these reasons:
(1) Comm packages for the serial port already exist for your development
machine.
(2) The SCI is easy to program on the uC.
(3) The hardware is cheap, and easy to design and build.
(4) The fewer pieces of programmable hardware involved, the greater
the chances of success.
> so anybody out there, please help me with this? because i am really
> lost...
Everyone starts somewhere.
> tell me everything...
This is pretty broad. I can outline how you can figure out what
you need for yourself.
(1) Define your requirements. The uC must control a such-and-such
motor with such-and-such voltage and current requirements. It must
be able to control the motor in such-and-such a way. (Like, start,
stop, reverse, speed, etc.)
(2) Based on the requirements, come up with a few preliminary designs.
If the uC cannot handle the current the motor needs, then figure out
some possible driver arrangements. At this stage, make a preliminary
estimate of the code complexity required to handle the commands from
the PC. This will tell you whether a single-chip mode will suffice.
If the code may not fit, then consider using an expanded mode with
external RAM/ROM. If you decide you may need expanded mode, consider
whether you can use the I/O ports on the chip, or will need to
do a more elaborate memory mapped I/O to control the motor.
(3) At this point, research the web for possible circuits. I recommend
getting a copy of M68HC11RM.pdf and reading it. It has some simple
circuits, one or more of which may be suitable for your needs.
(4) Design the communications protocol, and write a little code
for both the uC and PC, and make sure they can communicate.
(5) Refine your estimate of the amount of code, and decide on whether
you can use single-chip or need external RAM.
(6) Design your driver I/F to the motor, and write code to do one
function at a time with the motor. Write simple programs to make it
go forward, reverse, slow, fast, whatever, in some pattern you can
recognize.
(7) Write the full protocol handler, and try to control the motor
from the PC. Implement only one function in the protocol at a time,
and get it working, then move to another.
At any time, come back here, tell us what you've done so far, and
we'll help you over the humps.
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!
Reply by ●June 2, 20062006-06-02
Hi !
What kind of PCI device will you use to interface the HC11 ?
Le 2 juin 06 17:36, addicted6220 a rit :
> hi everybody, i am rookie in this area (microcontroller). I wanted to
> build a circuit that microcontroller(68hc11) based connected to motor.
> The idea was to control the motor from PC through PCI-bus that
> interface to microcontroller.
>
> so anybody out there, please help me with this? because i am really
> lost...
> tell me everything...
> ------------------------ Yahoo! Groups Sponsor --------------------
> ~-->
> Home is just a click away. Make Yahoo! your home page now.
> http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/dN_tlB/TM
> --------------------------------
> ~-
What kind of PCI device will you use to interface the HC11 ?
Le 2 juin 06 17:36, addicted6220 a rit :
> hi everybody, i am rookie in this area (microcontroller). I wanted to
> build a circuit that microcontroller(68hc11) based connected to motor.
> The idea was to control the motor from PC through PCI-bus that
> interface to microcontroller.
>
> so anybody out there, please help me with this? because i am really
> lost...
> tell me everything...
> ------------------------ Yahoo! Groups Sponsor --------------------
> ~-->
> Home is just a click away. Make Yahoo! your home page now.
> http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/dN_tlB/TM
> --------------------------------
> ~-
Reply by ●June 7, 20062006-06-07
Hi !
>
>What kind of PCI device will you use to interface the HC11 ?
>
what kind of PCI device? to tell you the truth i dont have any idea what im going to do...i dont even know what am i dealing with...i have to build this project..Microcontroller based PCI card for motor controlling..
...i dont know where to start...
>
>What kind of PCI device will you use to interface the HC11 ?
>
what kind of PCI device? to tell you the truth i dont have any idea what im going to do...i dont even know what am i dealing with...i have to build this project..Microcontroller based PCI card for motor controlling..
...i dont know where to start...
Reply by ●June 7, 20062006-06-07
addicted6220 wrote:
>> hi everybody, i am rookie in this area (microcontroller). I wanted to
>
>Welcome to the uC club! All newcomers are welcome!
>
>> build a circuit that microcontroller(68hc11) based connected to motor.
>> The idea was to control the motor from PC through PCI-bus that
>> interface to microcontroller.
>
>Hmm. Perhaps you should state your goals rather than the means.
>
>IMO:
>
>PCI bus is not the way to go. You'll spend more time learning how
>to program the bridge chip than learning how to program the uC. I
>recommend to you instead to use a serial interface for these reasons:
>
>(1) Comm packages for the serial port already exist for your development
>machine.
>(2) The SCI is easy to program on the uC.
>(3) The hardware is cheap, and easy to design and build.
>(4) The fewer pieces of programmable hardware involved, the greater
>the chances of success.
>
>> so anybody out there, please help me with this? because i am really
>> lost...
>
>Everyone starts somewhere.
>
>> tell me everything...
>
>This is pretty broad. I can outline how you can figure out what
>you need for yourself.
>
>(1) Define your requirements. The uC must control a such-and-such
>motor with such-and-such voltage and current requirements. It must
>be able to control the motor in such-and-such a way. (Like, start,
>stop, reverse, speed, etc.)
>
Hi Mike,
Thanks for the reply earlier...
To be honest, I have to build a project given by my lecturer...
Microcontroller Based PCI card for Motor Controlling...
and it require to control 4 motors, and it must be able to control the motor to do start, stop, reverse, speed..
and for the voltage and current requirement, any amount is good for me as long as the motor run...
but i dont really familiar with both PCI bus and 68hc11..
thats all...thanks for everything..
>> hi everybody, i am rookie in this area (microcontroller). I wanted to
>
>Welcome to the uC club! All newcomers are welcome!
>
>> build a circuit that microcontroller(68hc11) based connected to motor.
>> The idea was to control the motor from PC through PCI-bus that
>> interface to microcontroller.
>
>Hmm. Perhaps you should state your goals rather than the means.
>
>IMO:
>
>PCI bus is not the way to go. You'll spend more time learning how
>to program the bridge chip than learning how to program the uC. I
>recommend to you instead to use a serial interface for these reasons:
>
>(1) Comm packages for the serial port already exist for your development
>machine.
>(2) The SCI is easy to program on the uC.
>(3) The hardware is cheap, and easy to design and build.
>(4) The fewer pieces of programmable hardware involved, the greater
>the chances of success.
>
>> so anybody out there, please help me with this? because i am really
>> lost...
>
>Everyone starts somewhere.
>
>> tell me everything...
>
>This is pretty broad. I can outline how you can figure out what
>you need for yourself.
>
>(1) Define your requirements. The uC must control a such-and-such
>motor with such-and-such voltage and current requirements. It must
>be able to control the motor in such-and-such a way. (Like, start,
>stop, reverse, speed, etc.)
>
Hi Mike,
Thanks for the reply earlier...
To be honest, I have to build a project given by my lecturer...
Microcontroller Based PCI card for Motor Controlling...
and it require to control 4 motors, and it must be able to control the motor to do start, stop, reverse, speed..
and for the voltage and current requirement, any amount is good for me as long as the motor run...
but i dont really familiar with both PCI bus and 68hc11..
thats all...thanks for everything..
Reply by ●June 7, 20062006-06-07
From: a...@yahoo.com
what kind of PCI device? to tell you the truth i dont have any idea what im
going to do...i dont even know what am i dealing with...i have to build this
project..Microcontroller based PCI card for motor controlling..
...i dont know where to start...
==========================================================Here is a 'sneaky' way to do the job.... get a pci rs232 communication card.... buy a little hc11 card
like a tech arts microcore and motorcontroller, run a short wire from the pci rs232 card to the rs232
input of the hc11 card, write a motor controller program on the hc11 that acce[ts speed commands from
the rs232. Done! This approach is all sw, you dont redesign a pci card.
________________________________________________________________________
Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.
what kind of PCI device? to tell you the truth i dont have any idea what im
going to do...i dont even know what am i dealing with...i have to build this
project..Microcontroller based PCI card for motor controlling..
...i dont know where to start...
==========================================================Here is a 'sneaky' way to do the job.... get a pci rs232 communication card.... buy a little hc11 card
like a tech arts microcore and motorcontroller, run a short wire from the pci rs232 card to the rs232
input of the hc11 card, write a motor controller program on the hc11 that acce[ts speed commands from
the rs232. Done! This approach is all sw, you dont redesign a pci card.
________________________________________________________________________
Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.
Reply by ●June 7, 20062006-06-07
On Wed, 2006-06-07 at 12:54 -0400, B...@aol.com wrote:
> Here is a 'sneaky' way to do the job.... get a pci rs232 communication card.... buy a little hc11 card
> like a tech arts microcore and motorcontroller, run a short wire from the pci rs232 card to the rs232
> input of the hc11 card, write a motor controller program on the hc11 that acce[ts speed commands from
> the rs232. Done! This approach is all sw, you dont redesign a pci card.
There's another matter involved here - it's called "isolation". In
any form of industrial design, it's generally inappropriate for a number
of reasons to have motor control gear of any substantial scale inside a
PC housing, sharing power supplies and such.
By preference, you would have the two sections optically isolated.
RS-232 is a modest compromise. Having a serial command link - either
optical, RS-232 or RS-422 (which you should also research as an option,
as PCI cards are available) narrows the isolation to one point, which is
a Good Thing.
--
Cheers,
Paul B.
> Here is a 'sneaky' way to do the job.... get a pci rs232 communication card.... buy a little hc11 card
> like a tech arts microcore and motorcontroller, run a short wire from the pci rs232 card to the rs232
> input of the hc11 card, write a motor controller program on the hc11 that acce[ts speed commands from
> the rs232. Done! This approach is all sw, you dont redesign a pci card.
There's another matter involved here - it's called "isolation". In
any form of industrial design, it's generally inappropriate for a number
of reasons to have motor control gear of any substantial scale inside a
PC housing, sharing power supplies and such.
By preference, you would have the two sections optically isolated.
RS-232 is a modest compromise. Having a serial command link - either
optical, RS-232 or RS-422 (which you should also research as an option,
as PCI cards are available) narrows the isolation to one point, which is
a Good Thing.
--
Cheers,
Paul B.
Reply by ●June 14, 20062006-06-14
Hello,
a...@yahoo.com> To be honest, I have to build a project given by my lecturer...
a...@yahoo.com> Microcontroller Based PCI card for Motor Controlling...
if your lecturer insists in this way: take a general purpose I/O card
with TTL outputs and connect it to HC11's Port C (and B). Use a simple
handshake to transfer commands, data etc. It's nearly the same as
using RS232.
PCI I/O cards are build by e.g. Meilhaus in Germany - they come with
an easy to use programming interface - no need to develop kernel mode
drivers. But it's no cheap solution ...
http://www.meilhaus.com/
and it has no galvanic isolation from motor electronics
regards
Werner
mailto:w...@wittig-werner.de
a...@yahoo.com> To be honest, I have to build a project given by my lecturer...
a...@yahoo.com> Microcontroller Based PCI card for Motor Controlling...
if your lecturer insists in this way: take a general purpose I/O card
with TTL outputs and connect it to HC11's Port C (and B). Use a simple
handshake to transfer commands, data etc. It's nearly the same as
using RS232.
PCI I/O cards are build by e.g. Meilhaus in Germany - they come with
an easy to use programming interface - no need to develop kernel mode
drivers. But it's no cheap solution ...
http://www.meilhaus.com/
and it has no galvanic isolation from motor electronics
regards
Werner
mailto:w...@wittig-werner.de
Reply by ●June 29, 20062006-06-29
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
To begin with .i dont know where PCI bus is locateddoes every PC have PCI bus?
I tried to find M68HC11RM.pdf on the internet but failed....(server problem)
And how am I gonna to interface PCI bus to the microchip in term of circuit and software?
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
I have start read it already...
Email me okey?....have a nice day
SPONSORED LINKS
Fast track Microcontrollers Technical support Intel microprocessors
---------------------------------
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
To begin with .i dont know where PCI bus is locateddoes every PC have PCI bus?
I tried to find M68HC11RM.pdf on the internet but failed....(server problem)
And how am I gonna to interface PCI bus to the microchip in term of circuit and software?
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
I have start read it already...
Email me okey?....have a nice day
SPONSORED LINKS
Fast track Microcontrollers Technical support Intel microprocessors
---------------------------------