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 84 matches
CCS Forum Index
Author Message
  Topic: CCP / 24 bit timer / 1hz to 150 hz range
Salenko

Replies: 75
Views: 208907

PostForum: General CCS C Discussion   Posted: Mon Mar 22, 2010 2:10 pm   Subject: CCP / 24 bit timer / 1hz to 150 hz range
Hi PCM,

finally I got a working code ! Smile

the error in my code was the use of:

#byte CCPR1_REG = 0x15 // Adress of CCPR1L
current_ccp = (int32)CCPR1_REG; // Read the current CCP ...
  Topic: CCP / 24 bit timer / 1hz to 150 hz range
Salenko

Replies: 75
Views: 208907

PostForum: General CCS C Discussion   Posted: Mon Mar 22, 2010 3:54 am   Subject: CCP / 24 bit timer / 1hz to 150 hz range
Hi and thanks PCM,

I've changed the frequency formula , but I'm still getting the same wrong values.
  Topic: CCP / 24 bit timer / 1hz to 150 hz range
Salenko

Replies: 75
Views: 208907

PostForum: General CCS C Discussion   Posted: Sun Mar 21, 2010 2:36 pm   Subject: CCP / 24 bit timer / 1hz to 150 hz range
Hi everyone,

Compiler version : PCW 4.057

I wrote this code after reading whole messages of this thread, measures aren't accurate for low frequencies ( I got 11.4 and 10.04 instead of 10 Hz, 19. ...
  Topic: LCD - blink a line ? (solved)
Salenko

Replies: 2
Views: 4324

PostForum: General CCS C Discussion   Posted: Mon Dec 21, 2009 2:37 am   Subject: LCD - blink a line ? (solved)
Thank you Mr PCM. Wink
  Topic: LCD - blink a line ? (solved)
Salenko

Replies: 2
Views: 4324

PostForum: General CCS C Discussion   Posted: Sun Dec 20, 2009 11:33 am   Subject: LCD - blink a line ? (solved)
Hi there,

is this possible to make an entire line blinking on LCD ?

I use flex_lcd420 driver, what should I add to my code then ?


lcd_putc(" LINE 1 ")


thanks.
  Topic: out of ROM ! [solved]
Salenko

Replies: 8
Views: 14451

PostForum: General CCS C Discussion   Posted: Fri Sep 25, 2009 3:26 pm   Subject: out of ROM ! [solved]
The keyword is in SherpaDoug's reply _optimise_. It takes slightly more space, and time, to call a routine that is actually 'separate', than the same code 'embedded' as an 'inline block inside an exis ...
  Topic: out of ROM ! [solved]
Salenko

Replies: 8
Views: 14451

PostForum: General CCS C Discussion   Posted: Fri Sep 25, 2009 11:04 am   Subject: out of ROM ! [solved]
thank you all the participants of this thread, thank you Ttelamh and PCM for being part of this forum.

I understood and did what you recommend me. I broke up the main() into five procedures and ca ...
  Topic: out of ROM ! [solved]
Salenko

Replies: 8
Views: 14451

PostForum: General CCS C Discussion   Posted: Wed Sep 23, 2009 2:52 pm   Subject: out of ROM ! [solved]
Hi,

I was out of ROM when I added those two instructions to my program:


printf("\n\r Buffer full");
buffer[5]=0;



http://img44.imageshack.us/img44/8496 ...
  Topic: I2c : Master and 2 Slaves
Salenko

Replies: 4
Views: 7392

PostForum: General CCS C Discussion   Posted: Fri Aug 21, 2009 8:57 am   Subject: Re: I2c : Master and 2 Slaves
(I have the diagram on ISIS but I know how to join it to the message!!!!).

Hi,

you can take a screen capture of your schematic then upload it with Bonjour à Tous,

NB/ j'attire votre attent ...
  Topic: Serial port and I2C problems
Salenko

Replies: 8
Views: 10007

PostForum: General CCS C Discussion   Posted: Thu Aug 20, 2009 3:42 pm   Subject: Serial port and I2C problems
thank you again Mr Ttelmah,

it seems that I have some work to do.


The I2C declaration for a 'slave', cannot have a clock speed associated with it.

should I remove "FAST" then ?
...
  Topic: Serial port and I2C problems
Salenko

Replies: 8
Views: 10007

PostForum: General CCS C Discussion   Posted: Wed Aug 19, 2009 5:17 pm   Subject: Serial port and I2C problems
Seriously, your problem is not with the I2C.
If the RS232 was working, it'd create a potential problem by spending too long in the RS232 handler (since the hardware buffer is only two characters long ...
  Topic: Serial port and I2C problems
Salenko

Replies: 8
Views: 10007

PostForum: General CCS C Discussion   Posted: Mon Aug 17, 2009 12:11 pm   Subject: Serial port and I2C problems
Are you using the I2C interrupt?.
If so, then the problem is almost certainly, that you are spending _too long_ in the handler for this. Look at the example I2C handler, and search here. The key with ...
  Topic: lcd_putc() works only when I touch the PICmicro
Salenko

Replies: 7
Views: 7689

PostForum: General CCS C Discussion   Posted: Thu Aug 13, 2009 1:35 pm   Subject: lcd_putc() works only when I touch the PICmicro
ive been having similar problems...

sugestions on how to control such erratic behavior can be found on most of the threads ive started...

check them out.. some of the guys here posted some prett ...
  Topic: lcd_putc() works only when I touch the PICmicro
Salenko

Replies: 7
Views: 7689

PostForum: General CCS C Discussion   Posted: Thu Aug 13, 2009 1:16 pm   Subject: lcd_putc() works only when I touch the PICmicro
If the MCLR pullup doesn't work, there may be a bad connection between your PIC and the LCD. The LCD driver routine features a wait - there's a while (pin low) or something like that which will cause ...
  Topic: lcd_putc() works only when I touch the PICmicro
Salenko

Replies: 7
Views: 7689

PostForum: General CCS C Discussion   Posted: Thu Aug 13, 2009 1:08 pm   Subject: lcd_putc() works only when I touch the PICmicro
Put a 10K pull-up on the MCLR pin. (Or use 47K if you're using the
CCS ICD-U40).

The MCLR pull-up resistor is important. Put it in all your designs with the 16F877A.

thank you PCM for you ...
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group