CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ADC erratic readings
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19498

View user's profile Send private message

PostPosted: Wed Aug 03, 2016 12:46 am     Reply with quote

You'll find that everyone here, actually 'likes' working on threads where the poster is:
1) Reasonably courteous.
2) Involved themselves - reply to questions, do things themselves etc..
3) Something 'interesting' is going on.
Very Happy

I2C, is a little more complex (particularly in the slave), than it at first appears. There are also some chips that have issues (my next move was going to be to check for any errata). I was also going to suggest adding a delay at the start of the master (it could be sending before the supply has really got to a stable level).

The ones we hate, are where people want direct answers, without actually doing any programming themselves, and then (worse) don't actually tell us critical things like 'compiler version', or details of the hardware etc...

Having a break for the problems we are working on can be quite cathartic. Got my USB sorted. Was having problems with a new implementation of a mass storage device, on a different chip to the ones I have used before. Turns out to be a fractional difference in the handling of one status bit. The fun thing was the number of USB connections needed to the test bench:

USB to the unit being developed. This also has to 'pass through' the USB analyser/
USB to ICD.
USB to logic analyser/decoder. Also pass through connection to the unit under development.
USB to programmer (don't ask why but for some reason my ICD on this chip refuses to release program - though it debugs, for programming it complains that it doesn't 'know' the chip).

Spaghetti junction...
murgui



Joined: 23 Dec 2015
Posts: 37

View user's profile Send private message

PostPosted: Thu Aug 04, 2016 10:49 am     Reply with quote

I tried my best being courteous. I wonder why people may be rude to somebody who is losing his time to help them with absolutely no reward.

I really found the problem that is 'poorly documented' as you said some posts before.

I will edit the first post and titles with definitive codes to help the rest of people in the future.

Regards,

Murgui.
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Aug 04, 2016 1:51 pm     Reply with quote

re: I2C pullups.

While 4k7 will be fine at 5 volts 'most of the time', you really should use a scope to see the waveforms if possible. Speed ,distance and capacitance will degrade the signal and 'random' or 'odd' results will be seen. Even humidity can be a problem !
I typically use 3k3 on 5v PICs and 2k2 for 3v devices. So far so good....
For any serious PIC projects a scope, even a 20 year old analog one is better than nothing !!

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 04, 2016 5:27 pm     Reply with quote

Murgui,
Ttelmah did not mean his post to be a cut on you. You basically did
the things that he desires to see in a thread.
murgui



Joined: 23 Dec 2015
Posts: 37

View user's profile Send private message

PostPosted: Fri Aug 05, 2016 3:18 pm     Reply with quote

Oh I know, maybe I explained myself wrong. I said I don't understand why people may be rude to you(Ttelmah, PCM Programmer, Temtronic,...) when you are helping them with absolutely no reward. I'm really glad there's people like all you who can help newbies like me improve the programming skills.

Regards.
Ttelmah



Joined: 11 Mar 2010
Posts: 19498

View user's profile Send private message

PostPosted: Sat Aug 06, 2016 1:31 am     Reply with quote

Thanks. Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group