I tired ADXL202 for accelerometer and tried to measure a short montion. I used capture mode and main cal are as below: ... ccp2_2=cpp2_read(); //cal total and width //65536*0.2us=13307.2us, is 13ms. for 20mhz crystal. //65536*1us=65 ms. for 4mhz crystal //keep every timer1_0->timer1_1 or timer1_1->t2 must <= than 65636. //can have one roll over. timer1 continuously run without reset. if (ccp2_2<=ccp2_1)ccp2_low_n=65536-(ccp2_1-ccp2_2); else ccp2_low_n=ccp2_2-ccp2_1; if (ccp2_1<=ccp2_0)ccp2_high_n=65536-(ccp2_0-ccp2_1); else ccp2_high_n=ccp2_1-ccp2_0; ccp2_0=ccp2_2;//cal end, give to _0 as next starting rise ... Above work perfect, but a value I get is too small comparing with g. So, useless if I can't keep excuracy of leveling, that I really can't. My conclusion is ADXL202 only for static titling measurement. Now, I turn to use PS2 mouse as motion sensor. Hope helpful Paul ----- Original Message ----- From: "Rick Regan" To: Sent: Saturday, December 06, 2003 11:13 AM Subject: Re: [PIC]:ADXL202 Accelerometer > --- Lee Barker wrote: > > What I was trying to do was send the raw data back > > My first suggestion is to break this down into small > chunks you can debug independently. Many things > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body