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 53 matches
CCS Forum Index
Author Message
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Fri Sep 18, 2009 9:12 pm   Subject: PIC18F14K22 UART
I was wrong. The compiler does take care of timing after change frequency in #use delay(). Thanks.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Fri Sep 18, 2009 8:56 pm   Subject: PIC18F14K22 UART
PCM,
Your are right about this. However, the compiler does not take care timing. If I want to delay 100ms, I have to write 'delay_ms(400)'.

Thanks!!
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Fri Sep 18, 2009 5:04 pm   Subject: PIC18F14K22 UART
I enabled PLL in #fuses and changed baudrate to 28800 in #use rs232 since frequency is 4 times faster, now uart interrupt is working very well with the actual 115200 baudrate.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Fri Sep 18, 2009 4:37 pm   Subject: PIC18F14K22 UART
I think that it's too late to change crystal. Is it okay to enable 4xPLL in #fuse?
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2009 5:44 pm   Subject: PIC18F14K22 UART
I tried Ex_Sisr.c example, and it acts the same way. However, there is a good news that it works fine with my test code and example code if I use the other baudrates instead of 115200. Could anyone ...
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2009 4:19 pm   Subject: PIC18F14K22 UART
I already tried this method, it works. However, Interrupt method does not work well.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2009 3:33 pm   Subject: PIC18F14K22 UART
The below is my new test code; the result is not good. It receives the first 8 bytes correctly; 9th and 10th bytes are incorrect, the rest of packet is not received.

#use delay(clock=3686400, ...
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2009 2:53 pm   Subject: PIC18F14K22 UART
I deleted setup_spi(), setup_timer_1() and receive_packet(). Now I read uart interrupt buffer directly through ICD2 debugger. The result is same.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2009 2:12 pm   Subject: PIC18F14K22 UART
Hi,
Now I have a new issue with UART. If I use polling method, it has no problem to receive a whole packet, but if I use interrupt, it receives 8 bytes data correctly, the 9th and 10th bytes ar ...
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2009 5:59 pm   Subject: PIC18F14K22 UART
It still does not work after adding setup_adc(ADC_OFF) before the while loop.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2009 5:45 pm   Subject: PIC18F14K22 UART
Which register does allow me to turn off the analog function on RB5? Thanks.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2009 5:25 pm   Subject: PIC18F14K22 UART
The compiler is 4.099. I am going to try dyeatman's suggestion.
  Topic: PIC18F14K22 UART
boulder

Replies: 23
Views: 35177

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2009 4:58 pm   Subject: PIC18F14K22 UART
Hi,
The original MCU was PIC16F689 on my PCB, it worked very well. Since my project needs more memory, I replaced it to PIC18F14K22 without any external circuits changes. Now, I have no proble ...
  Topic: Why Is EEPROM Data Erased?
boulder

Replies: 5
Views: 10627

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2009 8:59 pm   Subject: Why Is EEPROM Data Erased?
PCM,
Thanks. You are right, the latest version of MPLAB, 8.20a has this option for PicKit2.
I have one more question about read data eeprom. Does it need to add delay between reading eac ...
  Topic: Why Is EEPROM Data Erased?
boulder

Replies: 5
Views: 10627

PostForum: General CCS C Discussion   Posted: Tue Mar 24, 2009 6:07 pm   Subject: Why Is EEPROM Data Erased?
But I am using PICKit2 instead of ICD2. I do not see the option of preserve EEPROM data.

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


Powered by phpBB © 2001, 2005 phpBB Group