Author |
Message |
Topic: #PIN_SELECT problems |
bela
Replies: 20
Views: 45941
|
Forum: General CCS C Discussion Posted: Tue Sep 17, 2013 1:08 am Subject: #PIN_SELECT problems |
Agreed but some of the things wrong here are pretty fundamental.
And, as you all predicted, CCS have just said it's an old version of the compiler and refused to help me any further.
If I sent o ... |
Topic: #PIN_SELECT problems |
bela
Replies: 20
Views: 45941
|
Forum: General CCS C Discussion Posted: Mon Sep 16, 2013 7:43 am Subject: #PIN_SELECT problems |
To be honest, so many CCS bugs and issues have tripped me up / delayed projects that I'm about to switch to XC8 / XC16 from the Microchip.
Doesn't look like we'll need the extra optimisation which ... |
Topic: #PIN_SELECT problems |
bela
Replies: 20
Views: 45941
|
Forum: General CCS C Discussion Posted: Mon Sep 16, 2013 1:25 am Subject: #PIN_SELECT problems |
Thanks for the replies.
Sorry for not posting full code. However, it's very close to the example you supplied except #use SPI commented out and printf ("Test msg");
The sample code you ... |
Topic: #PIN_SELECT problems |
bela
Replies: 20
Views: 45941
|
Forum: General CCS C Discussion Posted: Sun Sep 15, 2013 12:41 pm Subject: #PIN_SELECT problems |
Hi thanks for your reply.
According to the family data sheet the SPI is software selectable.
Table 10-2 shows the Inputs (for SDI)
and 10-3 show the Outputs (CLKOUT and SDO)
The same tables ... |
Topic: [Solved]Loading eeprom with some initial values |
bela
Replies: 15
Views: 23866
|
Forum: General CCS C Discussion Posted: Sun Sep 15, 2013 12:25 pm Subject: [Solved]Loading eeprom with some initial values |
Hi,
You can also do it from MPLAB 8.x (don't know about MPLABX)
View->eeprom poke the values in and you can save it to a file.
When you program, the table will burn to the eeprom provided ... |
Topic: #PIN_SELECT problems |
bela
Replies: 20
Views: 45941
|
Forum: General CCS C Discussion Posted: Sun Sep 15, 2013 12:00 pm Subject: #PIN_SELECT problems |
Hi All,
I have an issue mapping my SPI to my RPx pins.
Chips tried: 24FJ64GA002, dsPIC33FJ64MC802, 33FJ12GP202
Compiler: PCD 4.097
#PIN_SELECT U1TX=PIN_B8 //UART works fine
#PIN_SELECT ... |
Topic: DSPIC33FJ128MC802 |
bela
Replies: 12
Views: 12541
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 3:03 am Subject: DSPIC33FJ128MC802 |
Hi. I'm not using the compiler routines, I'm trying to clock out / interrupt in as fast a possible.
This is the interrupt code in the dsPIC. The buffered data is forwarded onto the oled displays.
... |
Topic: Liquid dispenser |
bela
Replies: 6
Views: 6876
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 2:25 am Subject: Liquid dispenser |
Hi,
First thing: int8 i cannot count up to 1000; 255 max. Normally, replace int8 with long but this time, I'd be tempted to just do this:
void activate_solenoid()
{
output_hi ... |
Topic: Liquid dispenser |
bela
Replies: 6
Views: 6876
|
Forum: General CCS C Discussion Posted: Sun Aug 23, 2009 8:54 am Subject: Liquid dispenser |
You should not have the ISR taking so long. Also, there's no need to actually 'do anything' for a wake up interrupt.
#INT_EXT
void ext_isr()
{
return;
}
boolean chec ... |
Topic: Interrupt not firing on DATA Receive(INT_RDA,USB HID DEMO) |
bela
Replies: 10
Views: 18093
|
Forum: General CCS C Discussion Posted: Sun Aug 23, 2009 3:08 am Subject: Interrupt not firing on DATA Receive(INT_RDA,USB HID DEMO) |
The usb.c driver uses the USB interrupt (#INT_USB) and it pulls in the data so you shouldn't need to use an interrupt. Simply use usb_kbhit(x) to check if there's data ready. |
Topic: DSPIC33FJ128MC802 |
bela
Replies: 12
Views: 12541
|
Forum: General CCS C Discussion Posted: Fri Aug 21, 2009 11:55 am Subject: DSPIC33FJ128MC802 |
Thanks guys for your replies on this subject.
I remember from a very old version we had of the CCS compiler which included a tool for adding a new / modifying existing device in devices.dat. As far ... |
Topic: DSPIC33FJ128MC802 |
bela
Replies: 12
Views: 12541
|
Forum: General CCS C Discussion Posted: Thu Aug 20, 2009 11:29 am Subject: DSPIC33FJ128MC802 |
Your complaining about ten month old PCD 4.080.
Yes. Should have worked ten months ago because ten months ago I paid for a compiler that apparently supported this device. It didn't, that's a fu ... |
Topic: DSPIC33FJ128MC802 |
bela
Replies: 12
Views: 12541
|
Forum: General CCS C Discussion Posted: Thu Aug 20, 2009 10:06 am Subject: DSPIC33FJ128MC802 |
Just done. Has anyone else come across this? |
Topic: DSPIC33FJ128MC802 |
bela
Replies: 12
Views: 12541
|
Forum: General CCS C Discussion Posted: Thu Aug 20, 2009 9:28 am Subject: DSPIC33FJ128MC802 |
Does anyone know why the header file calls for 61 IO pins and 6 analogue ports (PortB-PortG) when the device is a 28 pin with only 5 A ports and a full B Port?
PCD 4.080
This is bad. I can't use ... |
Topic: Setting up 1 digital input |
bela
Replies: 8
Views: 11543
|
Forum: General CCS C Discussion Posted: Wed Aug 19, 2009 11:45 am Subject: Setting up 1 digital input |
Personally, I'd just do this:
boolean mydigi;
mydigi=input(PIN_C0);
to get its digital state.[/code] |
|