'Detecting C84 or C61 whilst running.'
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
What code would you guys use to test which processor you are currently
I have some ideas, but would like some of the inventive input from this
|Mayes uk <d-m-g.demon.co.uk> wrote: mike
> 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?
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.
Andrew Warren - ix.netcom.comfastfwd
Fast Forward Engineering, Vista, California
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.
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
>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
"We're Starfleet officers, weird is part of the job."
Capt. Catherine Janeway
In message <passport.ca> m0uYFMk-001BrACMITVMA.MIT.EDU writes: PICLIST
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.
More... (looser matching)
- Last day of these posts
- In 1996
, 1997 only
- New search...