Pic18f452

Status
Not open for further replies.

yantheman

New Member
Im using PIC18F452, ADXL203 and the given microchip target board. Im trying to read the 2 analog output of the accelerometer and do a ADC and display the digital value on an LCD. The connection is as shown in the attachment. Just checking is the connection correct? Anything missing ? Is my analog input correct as someone pointed to me that RE port cannot be used.
 

Attachments

  • connections.jpg
    44.2 KB · Views: 237
Yeah, I believe all the analog inputs are on PortA. Check your spec sheet.

The output impedance of the ADXL devices is 32k ohms, at least the ones I know. That is FAR too high to provide to a PIC which needs 2.5k ohms max to live up to its full specifications.
Also the ADXL devices need to be band-limited. Simply put a cap on the output, the cap will make an RC filter with the internal 32k output resistance to make a lowpass filter. You want to get rid of not only the noise but any signal made from vibrations which are undesirable to capture.

What is the purpose of the input on RA0?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…