![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) | |
|
Quote:
Don't care about the PIC type, just select first from list |
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Minimum / Maximum who care's?
Quote:
Sorry sorry couldn't resist |
||
|
|
|
|
|
(permalink) | |
|
I will check out the datasheet on that, Nigel, thank you.
Currently, I have no complaints on how it is working -- it seems to be very consistent and reliable the way it is setup. Every once in a while, the readings will be off by a number, so last night I sat down and started to write in a high and low range (+/- 2) to deal with any noise. I have to finish the routine today. I have also added a check to make sure the button has been released. I have not yet written a calibration routine, but will once I have everything working as intended, and I understand WHY it works. The thing that I have noticed that is strange is the fact that I am only using the ADRESH byte for my calculations. I just got up and have not looked at the datasheet or midrange manual regarding A/D Conversion, but I was under the impression that the high byte should only contain the first 2 LSB, with the upper 6 clear. Nigels tutorial even masks the upper 6 bits to make sure they are clear. Anyway, what I am seeing is a consistent LOW byte (either C0/00 or 80/40) and a HIGH byte that is unique (but using more than the first two bits). My ADRESH readings are as follows; Quote:
|
||
|
|
|
|
|
(permalink) |
|
Here are the schematics, as I currently have the project wired.
|
|
|
|
|
|
|
(permalink) |
|
Finally someone using 8 bit addressing to the LCD; good point !
For the key pad I'm still convinced that we don't know how it's working; bad point! If your absolutely sure it's only a resistor devider like the sketch I made in a hurry this morning then you should first take your Ohm meter and measure the resistance in all possible combinations. Then and only then you can design a correct circuit toward the PIC ADC. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
A three cylinder car will get you to where you're going -- but an 8 is just wasteful, but so much more fun to drive! Last edited by Kyle-s4h; 10th August 2007 at 01:05 PM. |
||
|
|
|
|
|
(permalink) | |
|
Quote:
How do you expect us to help you with a good design since you don't give us the basic data needed ? |
||
|
|
|
|
|
(permalink) | ||
|
Quote:
A few points... 1) Why would you possibly call the ADC "weird hex data"? 2) Why would you say this is a "bad design" -- please be specific. 3) I never asked for design help -- I asked specific questions regarding A/D Conversion. 4) What the specific resistance values are are irrelevant (but I will post them for you below) -- the point is to get readings from them for A/D Conversion (which is what I asked about). Quote:
I look forward to your new and improved "good design" based on the quoted resistance values. PS - if you want pass-thru voltage readings, I can post them as well. |
|||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
@Nigel -- page 114 of the 16f87X datasheet;
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Analog Meter | windozeuser | General Electronics Chat | 19 | 3rd October 2007 02:44 PM |
| A/D, value for Vref on PICs for best accuracy. | Odin | Micro Controllers | 12 | 19th June 2007 03:04 AM |
| help on A/D conversion on pic18F2620 | lionman | Micro Controllers | 0 | 15th May 2007 03:28 PM |
| A/D problem | Merkur | Micro Controllers | 8 | 3rd February 2007 10:35 AM |
| Specifications Applied | Caltech | General Electronics Chat | 1 | 25th December 2003 05:00 PM |