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 11 matches
CCS Forum Index
Author Message
  Topic: RS232 on PIC18F87J50
nikin78

Replies: 0
Views: 3099

PostForum: General CCS C Discussion   Posted: Mon Nov 12, 2007 1:56 pm   Subject: RS232 on PIC18F87J50
I am using a PIC18F87J50 and the RS232 is not working. I am using the same hardware setup as the PIC18F4550 USB Diagnostic board for the RS232. I also got RS232 working on the PIC18F4550 USB Diagnos ...
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 2:41 pm   Subject: CCP2 Not Working
so i took another look at my code and i realized the CCPMP.C never sets any tris bits probably because of the pic chips that they use dont need to worry about that. I use a 4550 which has two lines f ...
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 11:55 am   Subject: CCP2 Not Working
so here is the thing I got everything working for the CCPMP.c example, but this week things started going wrong. so i tried changing the isr code to only using one capture line. the problem here is ...
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 11:35 am   Subject: CCP2 Not Working
this is how my pic is setup

#include <18F4550.h>
#define ICD = TRUE
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48000000)
#use rs232(baud=9600, ...
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 11:32 am   Subject: CCP2 Not Working
Describe the input signal in detail:
1. What device is producing the signal ? frequency generator
2. Is it an analog or digital signal ? 60hz square wave with 5Vpp
3. Describe the waveform. Freque ...
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 11:26 am   Subject: another question on same subject
Can I use the same signal for CPP1 and CPP2 where CCP1 is set up for rising edge and CCP2 is setup for falling edge? I used the CCPMP.c example to do this but it didn't work.
  Topic: CCP2 Not Working
nikin78

Replies: 9
Views: 10216

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 10:33 am   Subject: CCP2 Not Working
I am using the following setup

setup_ccp1(CCP_CAPTURE_RE); // Configure CCP1 to capture rise
setup_timer_1(T1_INTERNAL|T1_DIV_BY_4); // Start timer 1

enable_interrupts(INT_CCP1); ...
  Topic: Problem with USB
nikin78

Replies: 20
Views: 16077

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 4:39 pm   Subject: Problem with USB
i did the following and everything worked fine for fast mode

Vusb connected to D+ with a 1.5k resistor.
.1uf capacitor from Vusb to ground

This may help on the hardware end.
  Topic: EX_CCPMP.C Example
nikin78

Replies: 5
Views: 7460

PostForum: General CCS C Discussion   Posted: Wed Oct 03, 2007 4:19 pm   Subject: EX_CCPMP.C Example
So this is what my code looks like now

#include <18F4550.h>
#device ICD = TRUE
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48000000)
#use rs232 ...
  Topic: EX_CCPMP.C Example
nikin78

Replies: 5
Views: 7460

PostForum: General CCS C Discussion   Posted: Tue Oct 02, 2007 3:25 pm   Subject: EX_CCPMP.C Example
I am using the EX_CCPMP.C example to get the delay of a 60Hz square wave from falling edge to rising edge. I have the following setup in my code.

#include <18F4550.h>
#device ICD = TRUE
...
  Topic: Clock for 18F2550
nikin78

Replies: 1
Views: 3225

PostForum: General CCS C Discussion   Posted: Thu Sep 20, 2007 10:18 am   Subject: Clock for 18F2550
I have seen various sample code for the 18F2550. it looks to me that a 20MHz external clock can give you a 48MHz clock with the following code

#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group