Searching \ for 'Detecting C84 or C61 whilst running.' 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/index.htm?key=detecting+c84+c61
Search entire site for: 'Detecting C84 or C61 whilst running.'.

Truncated match.
PICList Thread
'Detecting C84 or C61 whilst running.'
1996\06\20@012535 by mike

flavicon
picon face
Hi,

I am working on a project which may use a C61 or a C84 depending
what my customer decides to use at the time.

I want to place some values in the EEProm at program time so that
the device is somewhat configurable (mostly the eeProm values relate
to timing parameters). This is, of course, not possible on the
C61, so when running on a C61 I propose to use default hardcoded
values.

What code would you guys use to test which processor you are currently
running on?

I have some ideas, but would like some of the inventive input from this
list.


Regards,


Mike Watson

1996\06\20@041925 by fastfwd

face
flavicon
face
Mayes uk <spam_OUTmikeTakeThisOuTspamd-m-g.demon.co.uk> wrote:

> I am working on a project which may use a C61 or a C84 depending
> what my customer decides to use at the time.
>
> I want to place some values in the EEProm at program time so that
> the device is somewhat configurable (mostly the eeProm values relate
> to timing parameters). This is, of course, not possible on the C61,
> so when running on a C61 I propose to use default hardcoded values.
>
> What code would you guys use to test which processor you are
> currently running on?

Mike:

If you MUST determine the chip type at runtime rather than using
conditional assembly at compile-time, you can probably just try
writing to the EEPROM and seeing whether you're successful.

I haven't looked at the data books to make sure, but I think you can
do this on the 16C61 without screwing up any important registers.

-Andy

Andrew Warren - .....fastfwdKILLspamspam@spam@ix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499

1996\06\24@132432 by myke predko

flavicon
face
Hi Folks,

I was just pruning my "Out" Mailbox when I noticed that I had sent this only
to Andrew Warren.  My intent was to send it out over the PICLIST.

Sorry Andy, I should have forwarded the message than replied.

Myke
{Quote hidden}

the '84 and not in the '61.  Looking at the Register Map the EECON1 WREN
Register may be a good choice, it is set to "0" on Power Up and flipping it
won't affect anything else (and has the added bonus of setting it for use
later).
{Quote hidden}

or "84").
>
>Now, when I first wrote this, I shuddered because I read the register
immediately after writing it (something you would get killed on an i86
Processor).
>
>Myke
>
Myke

"We're Starfleet officers, weird is part of the job."

Capt. Catherine Janeway

1996\06\25@065512 by mike

flavicon
picon face
In message  <@spam@m0uYFMk-001BrACKILLspamspampassport.ca> KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU writes:
{Quote hidden}

Hi,

Thanks for your replies.

The method you suggested, Myke, was the one I had in mind to use, but
on balance, I am going to go with conditional assembly.


Thanks again,


Mike

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