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 97 matches
CCS Forum Index
Author Message
  Topic: 18LF25k22 oscillator too fast
theteaman

Replies: 2
Views: 3913

PostForum: General CCS C Discussion   Posted: Wed Jan 02, 2013 2:41 am   Subject: 18LF25k22 oscillator too fast
You sir, just saved me hours more confusion! Thank you! I never thought that the PLL default could be different for different devices.

Thanks again.
  Topic: 18LF25k22 oscillator too fast
theteaman

Replies: 2
Views: 3913

PostForum: General CCS C Discussion   Posted: Wed Jan 02, 2013 1:50 am   Subject: 18LF25k22 oscillator too fast
Hi

I am using an 18LF25K22 with the fuses


#use delay(clock=20000000, crystal=20000000)
#fuses NOWDT, WDT128, HSH, NOIESO, BROWNOUT, PUT, NOSTVREN, NODEBUG, NOLVP, NOEBTR, NOCPB, NOEBT ...
  Topic: Porting issue (initializing struct)
theteaman

Replies: 3
Views: 5030

PostForum: General CCS C Discussion   Posted: Thu Oct 18, 2012 8:02 am   Subject: Porting issue (initializing struct)
Thanks both for your help. I guess the issue is the struct has structs (with more structs) inside it. It just gets too messy. But I think I can use macros to make things look neater.. I will try it.
  Topic: Porting issue (initializing struct)
theteaman

Replies: 3
Views: 5030

PostForum: General CCS C Discussion   Posted: Thu Oct 18, 2012 6:42 am   Subject: Porting issue (initializing struct)
Hi

I am porting a program from x86 GCC to PIC CCS C. It has been a lot of work, for example, replacing all the recursive functions and ensuring the code is CCS compatible.

Now I am at a point wh ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Sun Jan 15, 2012 7:03 pm   Subject: Is it possible for RTCC to interfere with UART?
Thank you Ttelmah, it worked when I set the tris as you stated. Smile

Just for anyones information, the code I used was:

void disableUART(void)
{
setup_uart(false);
set_tr ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Sat Jan 14, 2012 7:58 pm   Subject: Is it possible for RTCC to interfere with UART?
Hi

Another thread stated you can disable the UART, then perform the output_high() operation, and then enable the UART again. But it didn't work for me. I am using the 18F2550.

Any help appreci ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 5:40 pm   Subject: Is it possible for RTCC to interfere with UART?
Do a search here.
Just set _both_ pins in the #USE RS232. Then drive the receive pin with whatever you want as normal.
If you look at the table of 'what pins do', when set as a receive pin, if you d ...
  Topic: Conflict between hardware UART and INT_EXT2 / I2C
theteaman

Replies: 2
Views: 4583

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 11:19 pm   Subject: Conflict between hardware UART and INT_EXT2 / I2C
If you are going to start a new thread instead of continuing your previous
thread, you need to post your PIC and your compiler version in the new thread.
We don't remember it from the old thread.
...
  Topic: Conflict between hardware UART and INT_EXT2 / I2C
theteaman

Replies: 2
Views: 4583

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 8:57 pm   Subject: Conflict between hardware UART and INT_EXT2 / I2C
Hi

I have a system where I:

1. listen for interrupt on pin INT_EXT2
2. in interrupt handler, set flag when INT_EXT2 triggered
3. in main loop code, if flag set:
- read data from IC with I2 ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 6:44 pm   Subject: Is it possible for RTCC to interfere with UART?
Do a search here.
Just set _both_ pins in the #USE RS232. Then drive the receive pin with whatever you want as normal.
If you look at the table of 'what pins do', when set as a receive pin, if you d ...
  Topic: I2C and pullups
theteaman

Replies: 4
Views: 5453

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 5:36 pm   Subject: I2C and pullups
Thanks Ttelmah, this information is very valuable to me! Smile Appreciated.
  Topic: I2C and pullups
theteaman

Replies: 4
Views: 5453

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 4:06 am   Subject: I2C and pullups
Hi

I'm using an 18F4550 at 3.3V with I2C comms to an IC.

My pull-up resistors are 4.7k.

I2C is playing up. When the IC sends data in small batches everything is fine, but when it sends lots o ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 11:17 pm   Subject: Is it possible for RTCC to interfere with UART?
You can add the DISABLE_INTS parameter to the #use rs232() statement
and the compiler will disable interrupts while each character is transmitted.
If you transmit at 31250 baud, it takes 320 usec to ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 10:39 pm   Subject: Is it possible for RTCC to interfere with UART?

#use rs232(baud=31250, xmit=PIN_C6, PARITY=N, STREAM=OUT_PORT)

That's not a hardware UART. That's software. When you specify only
one of the hardware pins, the compiler creates a software UAR ...
  Topic: Is it possible for RTCC to interfere with UART?
theteaman

Replies: 11
Views: 10716

PostForum: General CCS C Discussion   Posted: Mon Jan 09, 2012 9:59 pm   Subject: Is it possible for RTCC to interfere with UART?
Hi

I'm using an 18F2550 with 20MHz crystal. I have a timer that blinks an LED at 2HZ:


setup_timer_0(RTCC_INTERNAL|RTCC_8_BIT|RTCC_DIV_256);
enable_interrupts(INT_RTCC);

#in ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group