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

Search found 13 matches
CCS Forum Index
Author Message
  Topic: Somewhat broad question: What causes PIC lockups?
Jeff7

Replies: 2
Views: 4596

PostForum: General CCS C Discussion   Posted: Thu Oct 08, 2009 9:27 pm   Subject: Somewhat broad question: What causes PIC lockups?
Hm, I guess I was searching for the wrong keywords. Embarassed

Reading....


Edit: Alright, after a fair amount of reading, I thought I'd found one problem: The PIC was running at 3.3V, as I menti ...
  Topic: Somewhat broad question: What causes PIC lockups?
Jeff7

Replies: 2
Views: 4596

PostForum: General CCS C Discussion   Posted: Thu Oct 08, 2009 9:03 pm   Subject: Somewhat broad question: What causes PIC lockups?
I mentioned some lockups in do include it, the lockup still occurs even if the function never gets called. Simply including it seems to cause problems.


The problem: The PIC chip locks up solid af ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Tue Oct 06, 2009 8:53 pm   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
The spike appeared to be happening at the end of what should have been a logic high (I think that's the proper terminology), being driven there by the DS3231, but as best as I can figure, the PIC trie ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Mon Oct 05, 2009 11:19 am   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Some updates:
- The oscilloscope is a [url=http://www2.tek.com/cmswpt/psdetails.lotr?ct=PS&cs=psu&ci=14408&lc=EN]Tektronix TDS 210.
As for the probes, they're 1x/10x probes, without any ...
  Topic: LCD Bargraph
Jeff7

Replies: 20
Views: 172429

PostForum: Code Library   Posted: Sun Oct 04, 2009 10:16 pm   Subject: LCD Bargraph
I think that a flickering effect like that can result from very rapid updates to the display. Either add in some kind of a delay, or else have a timer-triggered flag to enable an update, perhaps every ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2009 4:20 pm   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Although 10k pullup is possibly a bit high, it should not cause the discussed behaviour. I asked for the pullup, because SDA seems to have a rather slow risetime, that can't be explained with e.g. 20 ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2009 3:31 pm   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
I edited my post; the FUSES I posted apparently was from a slightly older version of this code.
LVP and DEBUG have in fact been disabled.

And I'm not sure how much I'm really permitted to post of ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2009 3:11 pm   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
It's SDA, and just one bit of the data that's being sent.
The SCL line looks about like you'd expect - just series of evenly-spaced pulses during the time between i2c_start and i2c_stop.

In this p ...
  Topic: #INT_RDA interrupt problem
Jeff7

Replies: 4
Views: 6910

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2009 12:34 pm   Subject: #INT_RDA interrupt problem
Definitely do get rid of any delay_ms and printf's inside the interrupt.
Get the data first, maybe send the data to a holding array, and then afterward print out what's inside the array.
At least th ...
  Topic: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Jeff7

Replies: 13
Views: 19128

PostForum: General CCS C Discussion   Posted: Sun Oct 04, 2009 12:16 pm   Subject: Odd spike in I2C data pulse. Nofloat_high not doing its job?
Update: Problem solved, apparently. As per recommendations here, I dropped the value of the pullup resistors, and dropped the nofloat_high. Once that was done, the odd 0.48V bumps disappeared, as did ...
  Topic: PIC Wizard: Function Generation, and "Opening Brace&quo
Jeff7

Replies: 8
Views: 7795

PostForum: General CCS C Discussion   Posted: Tue Sep 22, 2009 10:30 pm   Subject: PIC Wizard: Function Generation, and "Opening Brace&quo
bkamen - you're closer to the field than me, I think.
I'm a mechanical engineer by degree; this job has me doing some mechanical design, some light electronic design, and a fair amount of programming ...
  Topic: PIC Wizard: Function Generation, and "Opening Brace&quo
Jeff7

Replies: 8
Views: 7795

PostForum: General CCS C Discussion   Posted: Tue Sep 22, 2009 10:12 pm   Subject: PIC Wizard: Function Generation, and "Opening Brace&quo
Typically no.


if (expr) {
}

and

if (expr)
{
}

are functionally the same.

The braces on separate lines I believe is a more proper etiquette.
Ok, I figured as much.
I just wanted ...
  Topic: PIC Wizard: Function Generation, and "Opening Brace&quo
Jeff7

Replies: 8
Views: 7795

PostForum: General CCS C Discussion   Posted: Tue Sep 22, 2009 7:24 pm   Subject: PIC Wizard: Function Generation, and "Opening Brace&quo
Huh, I didn't notice that I wasn't automatically logged in after activating the account. Oops.
(OP above is mine. )
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group