Searching \ for '[PIC]:16C773 AD problem' 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=16C
Search entire site for: '16C773 AD problem'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:16C773 AD problem'
2001\02\26@013858 by Michael Jackson

flavicon
face
I've encountered a problem with my senior design project.  My 16C773 (12

bit AD) seems to be working as an 8 bit AD somehow...  I can sample and
the same result is in ADRESH as is in ADRESL.  They range from 00-FF
through the 0-5v input.  If I was just getting the low, it would go
00-FF and start over 15 more times, but it doesn't!  I have racked my
brain out looking for this!  Please help if you can!

just to let you know, 16C773 running 4MHZ XT have tried both 8Tosc and
32Tosc.  I'm only using AN0 input, and the input is 0-5V from a 5k pot
(using for testing).

Thanks in advance for any help!

Michael Jackson

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@030249 by Michael Rigby-Jones

flavicon
face
{Quote hidden}

Make sure you are setting the bank bits correctly, ADRESH and ADRESL are in
different banks!

Mike

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@040727 by Vasile Surducan

flavicon
face
You don't switch bank before reading ADRESL.
Vasile

On Mon, 26 Feb 2001, Michael Jackson wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@040742 by Vasile Surducan

flavicon
face
He-he, I had the same problem a while ago... You don't switch bank's
when you read ADRESL.
Cheers, Vasile
BTW in your spare time are you sing something ( I'm blak... I'm white...)


On Mon, 26 Feb 2001, Michael Jackson wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@084436 by Olin Lathrop

face picon face
> I've encountered a problem with my senior design project.  My 16C773 (12
>
> bit AD) seems to be working as an 8 bit AD somehow...  I can sample and
> the same result is in ADRESH as is in ADRESL.

Betcha you forgot to switch the register bank between reading ADRESH and
ADRESL.  They are at the same addresses in different banks.


*****************************************************************
Olin Lathrop, embedded systems consultant in Devens Massachusetts
(978) 772-3129, olinspamKILLspamembedinc.com, http://www.embedinc.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\26@222201 by Michael Jackson

flavicon
face
Just wanted to say thanks to Olin, Vasile, and Michael Rigby-Jones.  The bank
switching thing was it, and fixed my problem in 5 minutes.

In the spirit of the other discussion about students trying to buy code, I am
proud that this is the one and only question that I have to ask of the list,
because the rest I did on my own.  And with that, I will now unsubscribe
(until next project or a bug is found!) and say thanks to everybody that help
those of us who are learning!

MJ

Olin Lathrop wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\27@033704 by Bob Ammerman

picon face
Michael:

Don't unsubscribe!

Just lurk on the list, you'll probably learn more practical stuff here in a
month that you would in a semester of regular classes.

Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)

{Original Message removed}

2001\02\27@125314 by Dan Michaels

flavicon
face
MJ wrote:

>
>In the spirit of the other discussion about students trying to buy code, I am
>proud that this is the one and only question that I have to ask of the list,
>because the rest I did on my own.  And with that, I will now unsubscribe
>(until next project or a bug is found!) and say thanks to everybody that help
>those of us who are learning!
>

Michael, you certainly don't need to unsubscribe, and you certainly
don't need to stop asking questions. Piclist is here as a resource
to help people out with all kinds of technical problems. Most people
here are happy to help.

There is a big difference between trying a problem yourself and asking
for help with something you cannot understand or cannot get to work,
and simply asking someone else to give you the solution.

Some may come here with their hands out, wanting others to do their
entire work for them, but I really doubt they profit much from this
in the end. As the parable says - it is much better to learn how to
fish for yourself than to simply accept handout fishes from others.
Most instructors can immediately spot the difference between these
two types of individuals - [in about a second and a half, BTW].

Regarding any code/etc you may find on piclist, you should treat this
as a resource - if nothing else, as "templates for learning" and to
show how to do things. Anything you may use, you will most likely have
to modify anyways for your own purposes. This is done everyday in
every place. There is no need to continually re-invent the wheel.
It is fair game to bootstrap off of previous work - "standing on
the shoulders of giants ...", and all that. This is, of course, what
education is all about.

However, simply taking someone else's work and calling it your own,
or running around asking someone else to do all the work for you, is
a different morality. One thing experience teaches you is where
the line is drawn.

best regards,
- dan michaels
==============

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\02\28@021644 by Vasile Surducan

flavicon
face
Michel, if you want to unsubscribe because of my joke please accept my
appologize for that. It was just an inocent joke made to heat our
spirits...
It would be better for all to not unsubscribe and to share with us some of
your code, to be easyest for others who start playing with pics.
Vasile

On Mon, 26 Feb 2001, Michael Jackson wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\02\28@025257 by Michael Jackson

flavicon
face
Vasile:

No, I was not unsubscribing over any joke, by no means!  I was unsubscribing
because I didn't think I needed any more help, and that the very little I know I
didn't know how I could help.  So I unsubscribed and you know what happened?
13 hrs. later I had a question (not with PIC code, but with a hardware issue) that
I knew this would be a great place for.  So now I have re-subscribed, and this time
I won't go away for a while.  But no, it wasn't due to joke.

PS - your bank switching caused the design lab to be filled with dancing and
shouting... thanks again.

mj

Vasile Surducan wrote:

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


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