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 19375 matches
CCS Forum Index
Author Message
  Topic: PIC24: What can make spi_xfer() hang?
Ttelmah

Replies: 14
Views: 15218

PostForum: General CCS C Discussion   Posted: Fri Nov 15, 2024 3:12 am   Subject: PIC24: What can make spi_xfer() hang?
Have you tried splitting the transfer?.

putc ('d');

// Frame (F) - one empty frame of at least 48 CLKs
output_low (SlaveSelectPin);

spi_xfer (A ...
  Topic: PIC24F Series 64-bit data handling Problem
Ttelmah

Replies: 3
Views: 244

PostForum: General CCS C Discussion   Posted: Wed Nov 13, 2024 6:35 am   Subject: PIC24F Series 64-bit data handling Problem
I just cut your code down to a mini test version, and ran it on your compiler
version:

#include <main64.h> //processor clock etc..

void main(void)
{
int16 g_stADCDataQ; ...
  Topic: PIC24F Series 64-bit data handling Problem
Ttelmah

Replies: 3
Views: 244

PostForum: General CCS C Discussion   Posted: Wed Nov 13, 2024 6:09 am   Subject: PIC24F Series 64-bit data handling Problem
How are you seeing this?. If using an IDE, you need to be very careful of
how it thinks the data is declared. MPLAB has problems with this.
This was described here:

http://www.ccsinfo.com/forum/ ...
  Topic: Problème de résolution DNS et de communication
Ttelmah

Replies: 2
Views: 334

PostForum: General CCS C Discussion   Posted: Mon Nov 11, 2024 5:00 am   Subject: Problème de résolution DNS et de communication
What version of the TCP/IP stack?.
On the current versions you have to call DNSBeginUsage before callingDNSResolve (thenDNSEndUsage after all the DNS transactions).
The older stack did not need thi ...
  Topic: Multiple USB CDC interfaces in one PIC24
Ttelmah

Replies: 10
Views: 1066

PostForum: General CCS C Discussion   Posted: Sun Nov 10, 2024 12:28 am   Subject: Multiple USB CDC interfaces in one PIC24
In Linux it is relatively easy. You don't make a composite device. You just
make it a communications class device, with two instances.
That worked straight away for me in Linux.
That is the botto ...
  Topic: Multiple USB CDC interfaces in one PIC24
Ttelmah

Replies: 10
Views: 1066

PostForum: General CCS C Discussion   Posted: Sat Nov 09, 2024 12:01 pm   Subject: Multiple USB CDC interfaces in one PIC24
Done a look back at my notes, and I had to set the device up as
'Miscellaneous', not as a standard COM port. Device class 0xEF.

This is how I had to do it:

https://stackoverflow.com/questions/ ...
  Topic: 16F1823 IOC interrupt
Ttelmah

Replies: 16
Views: 1793

PostForum: General CCS C Discussion   Posted: Sat Nov 09, 2024 11:55 am   Subject: 16F1823 IOC interrupt
Have to wonder why you are using the '<>' brackets rather than the inverted commas for this file?. I'm suspecting it is finding the wrong file, So it is
loading another 'funstions.c' than the ...
  Topic: 16F1823 IOC interrupt
Ttelmah

Replies: 16
Views: 1793

PostForum: General CCS C Discussion   Posted: Sat Nov 09, 2024 8:13 am   Subject: 16F1823 IOC interrupt
So, as I said, you need to show us the first few lines of this file,
  Topic: 16F1823 IOC interrupt
Ttelmah

Replies: 16
Views: 1793

PostForum: General CCS C Discussion   Posted: Sat Nov 09, 2024 4:05 am   Subject: 16F1823 IOC interrupt
Two things.

First, your include of the lcd driver should be after the fuses.
The sequence should always be:

Processor
Fuses
Clock

Then and only then other includes.

The fuses and clock ...
  Topic: Multiple USB CDC interfaces in one PIC24
Ttelmah

Replies: 10
Views: 1066

PostForum: General CCS C Discussion   Posted: Sat Nov 09, 2024 3:46 am   Subject: Multiple USB CDC interfaces in one PIC24
Yes, _BUT_, it can't be done using the standard Windows ubser.sys CDC
driver. This is limited to one port per USB device.
This is why third party units giving multiple ports use their own drivers
f ...
  Topic: Multiple USB CDC interfaces in one PIC24
Ttelmah

Replies: 10
Views: 1066

PostForum: General CCS C Discussion   Posted: Fri Nov 08, 2024 10:25 am   Subject: Multiple USB CDC interfaces in one PIC24
CDC (so normally serial), rather than Mice. Multiple serial ports are not a
lot of work especially on a PIC24.
  Topic: Embedding ID in IRQ ROM area
Ttelmah

Replies: 9
Views: 1363

PostForum: General CCS C Discussion   Posted: Thu Nov 07, 2024 6:24 am   Subject: Embedding ID in IRQ ROM area
Do the remark then. You can put this as the first line in the file, and
can make it always exactly the same format. Makes checking it much
easier.
  Topic: PIC24: What can make spi_xfer() hang?
Ttelmah

Replies: 14
Views: 15218

PostForum: General CCS C Discussion   Posted: Thu Nov 07, 2024 6:22 am   Subject: PIC24: What can make spi_xfer() hang?
Have you thoroughly checked the errata for your particular PIC?.
There are odd ones on some chips that can lead to a processor hang.
  Topic: Several questions about the modbus.c driver
Ttelmah

Replies: 4
Views: 639

PostForum: General CCS C Discussion   Posted: Wed Nov 06, 2024 7:20 am   Subject: Several questions about the modbus.c driver
The short delay, is the inter packet delay, not the inter frame delay. They
just have the inter packet delay, so you can then send another packet
straight away. A long inter frame delay tends to be ...
  Topic: Multiple USB CDC interfaces in one PIC24
Ttelmah

Replies: 10
Views: 1066

PostForum: General CCS C Discussion   Posted: Tue Nov 05, 2024 7:52 am   Subject: Multiple USB CDC interfaces in one PIC24
I have done this years ago, with the CCS library. It can be made to work.
However assuming you are using Windows, usbser.sys, is limited to
supporting a single serial device from a single USB inte ...
 
Page 1 of 1292 Goto page 1, 2, 3 ... 1290, 1291, 1292  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group