Author |
Message |
Topic: Help Please! Expression must evaluate to a constant (Solved) |
NWilson
Replies: 5
Views: 7422
|
Forum: General CCS C Discussion Posted: Fri Nov 17, 2023 2:39 am Subject: Help Please! Expression must evaluate to a constant (Solved) |
Brilliant! Thanks Ttelmah |
Topic: Help Please! Expression must evaluate to a constant (Solved) |
NWilson
Replies: 5
Views: 7422
|
Forum: General CCS C Discussion Posted: Thu Nov 16, 2023 1:34 pm Subject: Help Please! Expression must evaluate to a constant (Solved) |
I've just removed all the const declarations from the above code and it still gives me the same error.
I'm open to suggestions if anyone can help.
Best wishes
Neil |
Topic: Help Please! Expression must evaluate to a constant (Solved) |
NWilson
Replies: 5
Views: 7422
|
Forum: General CCS C Discussion Posted: Thu Nov 16, 2023 1:26 pm Subject: Help Please! Expression must evaluate to a constant (Solved) |
Thanks Ttelmah,
I'll try that tomorrow when I get to work. |
Topic: Help Please! Expression must evaluate to a constant (Solved) |
NWilson
Replies: 5
Views: 7422
|
Forum: General CCS C Discussion Posted: Thu Nov 16, 2023 8:37 am Subject: Help Please! Expression must evaluate to a constant (Solved) |
PCWHD Version 5.116
Hi all,
I’m trying to produce a hardware clone of an old instrument based on a siemens SAB-C165 microprocessor and port the code over to a PIC24FJ128GC006.
The instrument ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2014 3:19 am Subject: PIC24 - USB Device Not Recognized |
Been a few weeks now since I last tackled the USB on this chip.
Just wondering if anyone has got it going yet? |
Topic: Sigma-Delta ADC in PIC24FJ128GC010 |
NWilson
Replies: 4
Views: 14522
|
Forum: General CCS C Discussion Posted: Mon Sep 01, 2014 8:28 am Subject: Sigma-Delta ADC in PIC24FJ128GC010 |
Welcome to the club. I've been battling with it's peripherals for the last couple of weeks. So far I've managed to setup the internal op-amps, bandgap references and Pipeline ADC.
To get the Pipeli ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Wed Aug 20, 2014 7:51 am Subject: PIC24 - USB Device Not Recognized |
OK.
Still no joy. Stepping through the code I found the following registers had changed:
breaking after usb_init_cs(); gave
U1CON = 0b01000010
U1IR = 0b00000001
U1OTGCON = 0b10000000
U1PWRC = ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Tue Aug 19, 2014 9:37 am Subject: PIC24 - USB Device Not Recognized |
Hi Ttelmah,
Thanks for replying, I've just tried the standard way and it made no difference.
Triple checked D+, D-, Vbus and E1 and all OK.
The chip seems to be running at the correct speed as tog ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Tue Aug 19, 2014 6:17 am Subject: PIC24 - USB Device Not Recognized |
Hi All,
Many thanks for the help so far.
I've added the cable attached detection and changed the #fuses as suggested, however my problem still persists.
It seems that usb_enumerated() always ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Mon Aug 18, 2014 8:47 am Subject: PIC24 - USB Device Not Recognized |
Hi Ttelmah,
I based my circuit on Fig 19-3 of the data sheet (Page 267) and everything else is as in Fig 2.1 (page 33).
I'll try connecting VBUS to one of the 5V tolerant pins and enable the cable ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Mon Aug 18, 2014 8:34 am Subject: PIC24 - USB Device Not Recognized |
Hi temtronic,
Thanks for the quick reply.
My Development PCB appears as an 'Unknown Device' under the device manager. Also, I've tried to update the driver with 'cdc_NTXPVista78.inf' to no avail ... |
Topic: PIC24 - USB Device Not Recognized |
NWilson
Replies: 17
Views: 60211
|
Forum: General CCS C Discussion Posted: Mon Aug 18, 2014 7:28 am Subject: PIC24 - USB Device Not Recognized |
Device PIC24FJ128GC006
PCD 5.026
Hi All,
Saw this device advertised a few months back and thought it would be ideal for my next project as it contains many peripheral's like, USB, Op-Amps, DAC's, ... |
Topic: PIC24 'Interrupt-on-change Notification' problem |
NWilson
Replies: 10
Views: 19119
|
Forum: General CCS C Discussion Posted: Sun Jul 07, 2013 4:07 am Subject: PIC24 'Interrupt-on-change Notification' problem |
Hi Ttelmah / FvM,
Many thanks for clearing that up for me. I must admit that after your reply yesterday I did some 'Or' ing and couldn't possibly see howenable_interrupts(INTR_CN_PIN|ON_OFF|POW ... |
Topic: PIC24 'Interrupt-on-change Notification' problem |
NWilson
Replies: 10
Views: 19119
|
Forum: General CCS C Discussion Posted: Sat Jul 06, 2013 9:18 am Subject: PIC24 'Interrupt-on-change Notification' problem |
Cheers Jeremiah
The code in the ISR de-bounces a switch and checks when the battery is charging, so is a little bit more complicated than that shown.
I didn't think to enable them separately, but wi ... |
Topic: PIC24 'Interrupt-on-change Notification' problem |
NWilson
Replies: 10
Views: 19119
|
Forum: General CCS C Discussion Posted: Sat Jul 06, 2013 8:46 am Subject: PIC24 'Interrupt-on-change Notification' problem |
Hi jeremiah,
Thanks for the quick reply,
Still a little confused! do you mean that I've nearly got it right, I just enable the interrupts separately and have one interrupt handler or do I have to ... |
|