Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Programming Cable

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

Programming Cable - fairy_dave - Mar 21 6:47:03 2008

Hi all,

Is there a way of determining if the programming cable is attached to
the Rabbit? I'm trying to set up some code which will only run when the
cable is plugged in like extra debug output, etc which is not needed
during normal operation.

Dave
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: Programming Cable - Alexis - Mar 21 9:26:40 2008

I don't think so Dave. When the cable is connected in Diag mode it
simply acts as a level converter.

I think the only way to do this is to set an input on the board.

A.

fairy_dave wrote:
>
> Hi all,
>
> Is there a way of determining if the programming cable is attached to
> the Rabbit? I'm trying to set up some code which will only run when the
> cable is plugged in like extra debug output, etc which is not needed
> during normal operation.
>
> Dave
>
>
========================================================================
Groups related to rabbit-semi
========================================================================

e-embedded (260 common members)
http://groups.yahoo.com/group/e-embedded?v=1&t=ipt&ch=email&pub=groups&slk=aftr0&sec=recg
Internet/Internet Appliances: Open-membership mailing list for embedded system d...

piclist (234 common members)
http://groups.yahoo.com/group/piclist?v=1&t=ipt&ch=email&pub=groups&slk=aftr1&sec=recg
Microprocessors/Microcontrollers: A discussion group for the PICMicro microcontrolle...

AVR-Chat (155 common members)
http://groups.yahoo.com/group/AVR-Chat?v=1&t=ipt&ch=email&pub=groups&slk=aftr2&sec=recg
Microprocessors/Microcontrollers: A place for Atmel AVR Microcontroller users to sha...

avrclub (148 common members)
http://groups.yahoo.com/group/avrclub?v=1&t=ipt&ch=email&pub=groups&slk=aftr3&sec=recg
Microprocessors/Microcontrollers: Atmel AVR Microcontroller discussion group!

msp430 (138 common members)
http://groups.yahoo.com/group/msp430?v=1&t=ipt&ch=email&pub=groups&slk=aftr4&sec=recg
Computers & Internet/Hardware: Welcome to the MSP430 User's Group! The purpose of...
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Programming Cable - Scott Henion - Mar 21 10:00:37 2008

fairy_dave wrote:
> Hi all,
>
> Is there a way of determining if the programming cable is attached to
> the Rabbit? I'm trying to set up some code which will only run when the
> cable is plugged in like extra debug output, etc which is not needed
> during normal operation.
>
> Dave
>
>

You can look at the slave port control register, that has the value of
the SMODE pins. Will be 0 if the cable is not connected.

There also os an OPMODE variable. DC uses it:

if (OPMODE & 0x08) {
... debug code here ...
}
--
------------------------------------------
| Scott G. Henion| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
Rabbit libs: http://www.shdesigns.org/rabbit/
today's fortune
Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
they use Borg to do their marketing and Ferengi to do their
programming.
-- Simon Slavin
========================================================================
Groups related to rabbit-semi
========================================================================

e-embedded (260 common members)
http://groups.yahoo.com/group/e-embedded?v=1&t=ipt&ch=email&pub=groups&slk=aftr0&sec=recg
Internet/Internet Appliances: Open-membership mailing list for embedded system d...

piclist (234 common members)
http://groups.yahoo.com/group/piclist?v=1&t=ipt&ch=email&pub=groups&slk=aftr1&sec=recg
Microprocessors/Microcontrollers: A discussion group for the PICMicro microcontrolle...

AVR-Chat (155 common members)
http://groups.yahoo.com/group/AVR-Chat?v=1&t=ipt&ch=email&pub=groups&slk=aftr2&sec=recg
Microprocessors/Microcontrollers: A place for Atmel AVR Microcontroller users to sha...

avrclub (148 common members)
http://groups.yahoo.com/group/avrclub?v=1&t=ipt&ch=email&pub=groups&slk=aftr3&sec=recg
Microprocessors/Microcontrollers: Atmel AVR Microcontroller discussion group!

msp430 (138 common members)
http://groups.yahoo.com/group/msp430?v=1&t=ipt&ch=email&pub=groups&slk=aftr4&sec=recg
Computers & Internet/Hardware: Welcome to the MSP430 User's Group! The purpose of...
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

RE: Programming Cable - Kevin Franzen - Mar 21 10:03:43 2008



We use this for the Rabbit 3000.

// for the Rabbit 3000

unsigned char smode_val;

smode_val = (RdPortI(SPCR) >> 5) & 0x03;

if (smode_val)

{

// The rabbit debugger is connected

} else

{

// The Rabbit debugger is not connected

}

From: r...@yahoogroups.com [mailto:r...@yahoogroups.com]
On Behalf Of Alexis
Sent: Friday, March 21, 2008 8:11 AM
To: r...@yahoogroups.com
Subject: Re: [rabbit-semi] Programming Cable

I don't think so Dave. When the cable is connected in Diag mode it
simply acts as a level converter.

I think the only way to do this is to set an input on the board.

A.

fairy_dave wrote:
>
> Hi all,
>
> Is there a way of determining if the programming cable is attached to
> the Rabbit? I'm trying to set up some code which will only run when
the
> cable is plugged in like extra debug output, etc which is not needed
> during normal operation.
>
> Dave



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Programming Cable - mehiegl - Mar 21 11:36:26 2008

Just curious, why bother with the shift right 5? Why not just use the
appropriate mask, 0x60?

Mark

--- In r...@yahoogroups.com, "Kevin Franzen"
wrote:
>
>
>
>
>
> We use this for the Rabbit 3000.
>
>
>
>
>
> // for the Rabbit 3000
>
> unsigned char smode_val;
>
> smode_val = (RdPortI(SPCR) >> 5) & 0x03;
>
> if (smode_val)
>
> {
>
> // The rabbit debugger is connected
>
> } else
>
> {
>
> // The Rabbit debugger is not connected
>
> }
>
>
>
> From: r...@yahoogroups.com [mailto:rabbit-
s...@yahoogroups.com]
> On Behalf Of Alexis
> Sent: Friday, March 21, 2008 8:11 AM
> To: r...@yahoogroups.com
> Subject: Re: [rabbit-semi] Programming Cable
>
>
>
> I don't think so Dave. When the cable is connected in Diag mode it
> simply acts as a level converter.
>
> I think the only way to do this is to set an input on the board.
>
> A.
>
> fairy_dave wrote:
> >
> > Hi all,
> >
> > Is there a way of determining if the programming cable is
attached to
> > the Rabbit? I'm trying to set up some code which will only run
when
> the
> > cable is plugged in like extra debug output, etc which is not
needed
> > during normal operation.
> >
> > Dave
> >
>
========================================================================
Groups related to rabbit-semi
========================================================================

e-embedded (260 common members)
http://groups.yahoo.com/group/e-embedded?v=1&t=ipt&ch=email&pub=groups&slk=aftr0&sec=recg
Internet/Internet Appliances: Open-membership mailing list for embedded system d...

piclist (234 common members)
http://groups.yahoo.com/group/piclist?v=1&t=ipt&ch=email&pub=groups&slk=aftr1&sec=recg
Microprocessors/Microcontrollers: A discussion group for the PICMicro microcontrolle...

AVR-Chat (155 common members)
http://groups.yahoo.com/group/AVR-Chat?v=1&t=ipt&ch=email&pub=groups&slk=aftr2&sec=recg
Microprocessors/Microcontrollers: A place for Atmel AVR Microcontroller users to sha...

avrclub (148 common members)
http://groups.yahoo.com/group/avrclub?v=1&t=ipt&ch=email&pub=groups&slk=aftr3&sec=recg
Microprocessors/Microcontrollers: Atmel AVR Microcontroller discussion group!

msp430 (138 common members)
http://groups.yahoo.com/group/msp430?v=1&t=ipt&ch=email&pub=groups&slk=aftr4&sec=recg
Computers & Internet/Hardware: Welcome to the MSP430 User's Group! The purpose of...
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Programming Cable - Alexis - Mar 21 11:55:36 2008

I thought that when you connected the programming cable with the
Diagnostic side that Smode 0 and Smode1 are pulled low.
This starts the cold loader built into the Rabbit. How do you then use
monitor the serial port A and only transfer data out it when the cable
is connected?
Is the rabbit not expecting a download? Is this not the purpose of Smode
0 and 1?

I thought that the question asked was to print data out of a rabbit
which is normally executing it's program.

Please explain.

A.
Scott Henion wrote:
>
> fairy_dave wrote:
> > Hi all,
> >
> > Is there a way of determining if the programming cable is attached to
> > the Rabbit? I'm trying to set up some code which will only run when the
> > cable is plugged in like extra debug output, etc which is not needed
> > during normal operation.
> >
> > Dave
> >
> > You can look at the slave port control register, that has the value of
> the SMODE pins. Will be 0 if the cable is not connected.
>
> There also os an OPMODE variable. DC uses it:
>
> if (OPMODE & 0x08) {
> ... debug code here ...
> }
>
> --
> ------------------------------------------
> | Scott G. Henion| s...@shdesigns.org
> |
> | Consultant | Stone Mountain, GA |
> | SHDesigns http://www.shdesigns.org |
> ------------------------------------------
> Rabbit libs: http://www.shdesigns.org/rabbit/
>
> today's fortune
> Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
> they use Borg to do their marketing and Ferengi to do their
> programming.
> -- Simon Slavin
>
>
========================================================================
Groups related to rabbit-semi
========================================================================

e-embedded (260 common members)
http://groups.yahoo.com/group/e-embedded?v=1&t=ipt&ch=email&pub=groups&slk=aftr0&sec=recg
Internet/Internet Appliances: Open-membership mailing list for embedded system d...

piclist (234 common members)
http://groups.yahoo.com/group/piclist?v=1&t=ipt&ch=email&pub=groups&slk=aftr1&sec=recg
Microprocessors/Microcontrollers: A discussion group for the PICMicro microcontrolle...

AVR-Chat (155 common members)
http://groups.yahoo.com/group/AVR-Chat?v=1&t=ipt&ch=email&pub=groups&slk=aftr2&sec=recg
Microprocessors/Microcontrollers: A place for Atmel AVR Microcontroller users to sha...

avrclub (148 common members)
http://groups.yahoo.com/group/avrclub?v=1&t=ipt&ch=email&pub=groups&slk=aftr3&sec=recg
Microprocessors/Microcontrollers: Atmel AVR Microcontroller discussion group!

msp430 (138 common members)
http://groups.yahoo.com/group/msp430?v=1&t=ipt&ch=email&pub=groups&slk=aftr4&sec=recg
Computers & Internet/Hardware: Welcome to the MSP430 User's Group! The purpose of...
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Programming Cable - fairy_dave - Mar 23 1:14:32 2008

Wow guys, thanks for the help. This should be very useful.
--- In r...@yahoogroups.com, "fairy_dave" wrote:
>
> Hi all,
>
> Is there a way of determining if the programming cable is attached to
> the Rabbit? I'm trying to set up some code which will only run when
the
> cable is plugged in like extra debug output, etc which is not needed
> during normal operation.
>
> Dave
>

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )