Searching \ for '[PIC] GPIB on a PIC using CB7210.2' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'GPIB on a PIC using CB7210.2'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] GPIB on a PIC using CB7210.2'
2003\06\24@145108 by Trevor Page

flavicon
face
Hi list,

I have been assigned the task of designing a piece of test
instrumentation which must have a GPIB (IEEE-488) interface. Naturally,
I have decided to use a PIC as the brains of the instrument. It will
probably be an 18F452 or similar.

I have never had to deal with GPIB before, ever. I've lots of
electronics and PIC experience in general, and dabbled with various
serial protocols for various projects, but never GPIB. So, the first
thing I did was get myself a handbook all about the IEEE-488 standard.
This book was conveniently found on the bookshelf in the place I work
and seems to contain everything I could possibly need to get me started
with the IEE-488 standard itself. So, when it comes to understanding the
actual protocols involved, I am pretty happy that I have all the info I
need and I just need some time now to absorb it all.

Next, I looked into what chips are available to implement GPIB. I have
learned that there are / were several industry standard devices,
including the NEC uPD7210. I have also learned that this is now
obsolete, and fortunately there are a number of suppliers, including
ComputerBoards, who offer an updated and enhanced 'clone' of this
device, including the CB7210.2 which conforms to IEE-488.2.

I've concentrated on the 7210 for now (not that I know which one is
best, but this seems to be the popular one). The datasheets for these
devices (i.e. the old NEC one and the CB one) are pretty thin. They just
go over the essential electrical specs, and then provide details on all
of the internal registers of the chips. And some example application
diagrams are given, which show how to hook the IC up to various 8-bit
microprocessors.

While I am now confident that I can wire one of these chips up to my
PIC, read / write the internal registers, and generally understand what
is going on within the low-level protocol side of things, one thing I
feel I really lack still is some sort of example application of the
microcontroller software. In other words, the code that talks to the
GPIB chip, does all it's magic, and churns out high-level commands to
the core of my program - e.g. turn this on, turn that off, reduce that
by 3dB, etc. In fact, as a first step, I would just concentrate on
having a GPIB-enabled PIC that turns LEDs on and off via external
commands.

This is something that I am eventually going to write from scratch
myself of course, but to get me going, I would really like to know if
anyone has done something very similar to what I'm doing, and can
provide me with some example code - written for any micro like the PIC,
8051, AVR etc, in assembler or C. It's just so that I can get a general
idea what this task is going to involve. Something to inspire me, and
also illustrate any particuarly challenging programming aspects would be
involved.

What I'm basically getting at here is that for all I know, handling the
GPIB stuff on the PIC via the 7210 could be little harder than doing
RS232... Or it could be almost as hefty as TCPIP. That's the problem. I
simply have no idea what scale of task it's going to be.

I know that this standard has been around for decades and even existed
on early CBM machines and things, so surely it cannot be that difficult.


I was hoping that the suppliers of any of these 7210 variants would
supply example microcontroller code, but I have found nothing.
ComputerBoards do say on their website that they have some 'free' code
for which I have written and requested, and I await their response. I
have spent hours Googling around and searching through Google Groups.
I've found various threads from people doing similar things but haven't
seen evidence of a working system around a PIC, or any code. A lot of
the links were dead because these are posts going back into the last
century :)

If anyone has any advice to offer me or even some information about
similar projects like that that you've already done, I would appreciate
it very much indeed.

Thanks in advance (and for reading my ramble).

Regards, Trevor.


. .  .   .    .     .
spam_OUTtTakeThisOuTspamintrospectiv.org
http://introspectiv.org/

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@153352 by Chris Loiacono

flavicon
face
> I have been assigned the task of designing a piece of test
> instrumentation which must have a GPIB (IEEE-488) interface.
> I simply have no idea what scale of task it's going to be.

With the above in mind, you either have the ideal job, or the world's worst.

It's hard to imagine anyone assigning such a project without a work
breakdown structure with time/cost estimates or task definitions and
budgets. Was this just thrown out at you with the understanding that it will
take as long as it will take? What a dream that would be.....Unless, of
course we're dealing here with a manager that thinks everything is a one or
two day task....

& I'll bet, somewhere at the headwaters, there's someone who said "if you
can make this, we'll buy bunches of them...."

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@160031 by Trevor Page

flavicon
face
Hi,

Actually it's a matter of "We are going to get a design firm to do this
project for us, because we don't have enough experience".

And then me saying: "But with my knowledge, I reckon we can actually do
this ourselves in-house. I know that I can do all of the core
microprocessor stuff, the LCD stuff, I2C etc, and most of the IO. Except
GPIB is a gap in my knowledge".

"Okay. But you're a new guy here and we don't really trust you yet. So
go away and show us what you can do by X date. And if you have a minimal
system with which you can demonstrate your knowledge with the various
technologies (uP, LCD driving, GPIB etc) within the design, then we'll
do it ourselves. Otherwise we'll get an outside company to do it".


If I can show them by date 'X' that I can get a basic minimal system up
and running, then I know the manager will decide to continue with the
project in-house. The reward, for me, is the experience I'll gain from
doing this. I'm just fed up with pushing bits of paper around. I am
determined to show I can do this.

I know you mean well with your thoughts but, please - I really need to
try and think positive about this. Trying to think positive is all I
have.

Trev


> {Original Message removed}

2003\06\24@160913 by Bob Barr

flavicon
face
On Tue, 24 Jun 2003 19:45:32 +0100, Trevor Page wrote:

>Hi list,

<comments below>

{Quote hidden}

You don't say what version of the spec that you're using. The original
spec (circa 1978) was superceded by two specs IEEE-488.1 and
IEEE-488.2

IEEE-488.1 (titled IEEE Standard Digital Interface for Programmable
Instrumentation) defines only the hardware aspects of GPIB.

I'd recommend that you also take a look at IEEE-488.2 (titled IEEE
Standard Codes, Formats, Protocols, and Common Commands). It defines
all of the standard protocols and interface structures between your
instrument and the bus. It looks nasty at first glance but it's very
thorough and gives you a basic structure to build upon.


{Quote hidden}

National Instruments also produces GPIB interface chips. They have
several different versions. I don't have a current pricing comparison
but I have used their chips in the past.


{Quote hidden}

Good first step.


{Quote hidden}

Sorry but all the code that I've written was done for a client so it
isn't mine to share. While I can answer questions and give you some
general direction, the code itself is proprietary.

I don't recall encountering any particularly challenging problems
coding a GPIB instrument for a Z-80. Actually, I had (almost)
unlimited ROM and RAM to use. :=) That may have made my task easier.


>What I'm basically getting at here is that for all I know, handling the
>GPIB stuff on the PIC via the 7210 could be little harder than doing
>RS232... Or it could be almost as hefty as TCPIP. That's the problem. I
>simply have no idea what scale of task it's going to be.
>
>I know that this standard has been around for decades and even existed
>on early CBM machines and things, so surely it cannot be that difficult.
>


You're certainly going to have to write more code than you would for
an RS-232 link. :=)  I'd say it probably falls just a bit under the
complexity of a USB device. Using IEEE-488.2 as a guide, your state
machines and data structures are all defined for you. That will ease
your task significantly. It's more a coding task than a full-blown
design effort.


{Quote hidden}

Ziatech (and lots of other companies) used to make GPIB
monitors/analyzers that can make your debugging a lot easier. You can
probably find them on eBay. A simple manual monitor is a very cheap
investment that can save you tons of debug time. My trusty ol' Ziatech
(ZT-488 GPIB Analyzer) has been worth its weight in gold on many an
occasion.


Hope this helps.


Regards, Bob

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@180018 by Steve Kosmerchock
picon face
Trevor,

Having been there and under a strong deadline myself, I understand where you are coming from. I was doubted also, proved them wrong. I decided to use a GPIB-232CV-A (RS232 to GPIB) from National Instruments. I was designing an industrial control system for factories, so the US$500 cost was acceptable. Rolling your own is possible, but I decided not to since time was very short. This is just another option for you, not sure if the cost is "allowed" for you design.

Good luck!!
Steve

Trevor Page <EraseMEtspam_OUTspamTakeThisOuTINTROSPECTIV.ECLIPSE.CO.UK> wrote:
Hi list,

I have been assigned the task of designing a piece of test
instrumentation which must have a GPIB (IEEE-488) interface. Naturally,
I have decided to use a PIC as the brains of the instrument. It will
probably be an 18F452 or similar.

I have never had to deal with GPIB before, ever. I've lots of
electronics and PIC experience in general, and dabbled with various
serial protocols for various projects, but never GPIB. So, the first
thing I did was get myself a handbook all about the IEEE-488 standard.
This book was conveniently found on the bookshelf in the place I work
and seems to contain everything I could possibly need to get me started
with the IEE-488 standard itself. So, when it comes to understanding the
actual protocols involved, I am pretty happy that I have all the info I
need and I just need some time now to absorb it all.

Next, I looked into what chips are available to implement GPIB. I have
learned that there are / were several industry standard devices,
including the NEC uPD7210. I have also learned that this is now
obsolete, and fortunately there are a number of suppliers, including
ComputerBoards, who offer an updated and enhanced 'clone' of this
device, including the CB7210.2 which conforms to IEE-488.2.

I've concentrated on the 7210 for now (not that I know which one is
best, but this seems to be the popular one). The datasheets for these
devices (i.e. the old NEC one and the CB one) are pretty thin. They just
go over the essential electrical specs, and then provide details on all
of the internal registers of the chips. And some example application
diagrams are given, which show how to hook the IC up to various 8-bit
microprocessors.

While I am now confident that I can wire one of these chips up to my
PIC, read / write the internal registers, and generally understand what
is going on within the low-level protocol side of things, one thing I
feel I really lack still is some sort of example application of the
microcontroller software. In other words, the code that talks to the
GPIB chip, does all it's magic, and churns out high-level commands to
the core of my program - e.g. turn this on, turn that off, reduce that
by 3dB, etc. In fact, as a first step, I would just concentrate on
having a GPIB-enabled PIC that turns LEDs on and off via external
commands.

This is something that I am eventually going to write from scratch
myself of course, but to get me going, I would really like to know if
anyone has done something very similar to what I'm doing, and can
provide me with some example code - written for any micro like the PIC,
8051, AVR etc, in assembler or C. It's just so that I can get a general
idea what this task is going to involve. Something to inspire me, and
also illustrate any particuarly challenging programming aspects would be
involved.

What I'm basically getting at here is that for all I know, handling the
GPIB stuff on the PIC via the 7210 could be little harder than doing
RS232... Or it could be almost as hefty as TCPIP. That's the problem. I
simply have no idea what scale of task it's going to be.

I know that this standard has been around for decades and even existed
on early CBM machines and things, so surely it cannot be that difficult.


I was hoping that the suppliers of any of these 7210 variants would
supply example microcontroller code, but I have found nothing.
ComputerBoards do say on their website that they have some 'free' code
for which I have written and requested, and I await their response. I
have spent hours Googling around and searching through Google Groups.
I've found various threads from people doing similar things but haven't
seen evidence of a working system around a PIC, or any code. A lot of
the links were dead because these are posts going back into the last
century :)

If anyone has any advice to offer me or even some information about
similar projects like that that you've already done, I would appreciate
it very much indeed.

Thanks in advance (and for reading my ramble).

Regards, Trevor.


. . . . . .
tspamspam_OUTintrospectiv.org
http://introspectiv.org/

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@185911 by William Chops Westfield

face picon face
   [7210 HPIB chip sample code.]
   If anyone has any advice to offer me or even some information about
   similar projects like that that you've already done, I would appreciate
   it very much indeed.

In cases like this, open source is your friend.  If there was an industry
standard chip for some popular protocol, chances are that someone (probably
several people) sold IBM PC cards with that chip.  Probably with proprietary
drivers for dos/windows (I used to have an HPIB card in one of my PCs...)
Along came linux, and people wanted to use all the same hardware they could
use in DOS/windows under Linux instead.  So there are probably linux drivers
for the same cards.  And linux drivers tend to be open source, so you can
look at them and see how things work.  Maybe even copy them wholesale...

For instance, I found this in a couple of seconds:

   http://cip.physik.uni-wuerzburg.de/~cip307/gpib/main.html

larger firms may want to pay careful legal attention to the implications of
using gnu-style-licensed code and similar in proprietary devices...  (gee,
I'm about to go take our on-line "class" in open source implications...)

BillW

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@190931 by Mike Harrison

flavicon
face
On Tue, 24 Jun 2003 19:45:32 +0100, you wrote:

>Hi list,
>
>I have been assigned the task of designing a piece of test
>instrumentation which must have a GPIB (IEEE-488) interface. Naturally,
>I have decided to use a PIC as the brains of the instrument. It will
>probably be an 18F452 or similar.

A customer of mine had exactly this situation a while ago. After some research we found a GPIB chip
supplier who could supply  microcontroller-oriented C source code for this application. The supplier
was INES :
http://www.gpib2000.com/
They do GPIB chips like the 7210, and also some with built in line drivers.
They implemented a GPIB target on a PIC16F877 - not sure how hard it was for them to get the code
running but I don't think it was a major hassle. This was for a fairly low-speed instrument and
didn't involve transferring lots of data - just setups etc.
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamBeGonelistservspamBeGonespammitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@193101 by Michael Davidson

flavicon
face
>In cases like this, open source is your friend.  If there was an industry
>standard chip for some popular protocol, chances are that someone (probably
>several people) sold IBM PC cards with that chip.  Probably with proprietary
>drivers for dos/windows (I used to have an HPIB card in one of my PCs...)
>Along came linux, and people wanted to use all the same hardware they could
>use in DOS/windows under Linux instead.  So there are probably linux drivers
>for the same cards.  And linux drivers tend to be open source, so you can
>look at them and see how things work.  Maybe even copy them wholesale...
>
>For instance, I found this in a couple of seconds:
>
>    http://cip.physik.uni-wuerzburg.de/~cip307/gpib/main.html
>
>larger firms may want to pay careful legal attention to the implications of
>using gnu-style-licensed code and similar in proprietary devices...  (gee,
>I'm about to go take our on-line "class" in open source implications...)

You might be better off trying to find a BSD driver as it won't have such a
restrictive license - if it's used in OpenBSD it'll have to have a BSD
compatible license, which means it's totally free for use. Not sure about
Free and Net's restrictions on having non-BSD compatible licenses. The
Mozilla license may also be handy.  So http://www.google.com.au/search?q=GPIB
+BSD&ie=ISO-8859-1&hl=en&btnG=Google+Search&meta= may be better off if you
are planning to make money off this thing / don't want to have the world
looking at your source. From one of the first few hits, it seems FreeBSD has
an included driver for National Instruments AT-GPIB card. You'd be able to
look at the source for that card at FreeBDS.org's CVS web.
--

"The society which scorns excellence in plumbing as a humble activity
and tolerates shoddiness in philosophy because it is an exalted
activity will have neither good plumbing nor good philosophy ...
neither its pipes nor its theories will hold water."

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistservEraseMEspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body

2003\06\24@215351 by Bob Barr

flavicon
face
On Wed, 25 Jun 2003 00:04:45 +0100, Mike Harrison  wrote:

>
>A customer of mine had exactly this situation a while ago. After some research we found a GPIB chip
>supplier who could supply  microcontroller-oriented C source code for this application. The supplier
>was INES :
>http://www.gpib2000.com/
>They do GPIB chips like the 7210, and also some with built in line drivers.
>
>They implemented a GPIB target on a PIC16F877 - not sure how hard it was for them to get the code
>running but I don't think it was a major hassle. This was for a fairly low-speed instrument and
>didn't involve transferring lots of data - just setups etc.

The 72010 looks like really nice chip. Do you happen to have ball-park
pricing on it? (I hate it when you have to email for pricing info.)


Regards, Bob

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...