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 18 matches
CCS Forum Index
Author Message
  Topic: spi_xfer for more than 8 bits
krugger

Replies: 2
Views: 5368

PostForum: General CCS C Discussion   Posted: Fri Nov 25, 2011 3:27 pm   Subject: spi_xfer for more than 8 bits
Thanks PCM.

Changed the variables doce and trece for an int16 and works perfectly.

Sorry for the silly question.

Embarassed

Pablo
  Topic: spi_xfer for more than 8 bits
krugger

Replies: 2
Views: 5368

PostForum: General CCS C Discussion   Posted: Fri Nov 25, 2011 11:59 am   Subject: spi_xfer for more than 8 bits
Hi everybody,

I'm working in a project in which I need to communicate a PIC 16F1827 with an VDIP2 module by FTDI.

This module uses a -let's say funny- SPI that needs 13 bits to be transmitted pe ...
  Topic: Test code to test ds1305.c
krugger

Replies: 6
Views: 11790

PostForum: General CCS C Discussion   Posted: Thu Oct 06, 2011 6:11 pm   Subject: Test code to test ds1305.c
Thank you PCM,

When you say SPI mode 1 or 3 you are referring to these definitions, arent't you?

#define SPI_MODE_0 (SPI_L_TO_H | SPI_XMIT_L_TO_H)
#define SPI_MODE_1 (SPI_L_TO_H& ...
  Topic: Test code to test ds1305.c
krugger

Replies: 6
Views: 11790

PostForum: General CCS C Discussion   Posted: Thu Oct 06, 2011 5:34 pm   Subject: Using 4 wire-SPI between PIC16F1827 and DS1305
Hi,

I was wondering if it's possible to connect DS1305 RTC to PIC16F1827 using a 4 wire-SPI. The DS1305 datasheet it's says:

"The serial peripheral interface (SPI) is a synchronous bus for ...
  Topic: How to deal with RTCC in apps with timing constraints?
krugger

Replies: 6
Views: 8197

PostForum: General CCS C Discussion   Posted: Sat Jul 23, 2011 7:51 pm   Subject: How to deal with RTCC in apps with timing constraints?
Thank you Temtronic for your answers,

I'm using PIC16F1827, but I don't have problems with designing a clock, but with dealing with it together with my measures.

I need 2.4 seconds of continuous ...
  Topic: How to deal with RTCC in apps with timing constraints?
krugger

Replies: 6
Views: 8197

PostForum: General CCS C Discussion   Posted: Fri Jul 22, 2011 8:45 pm   Subject: How to deal with RTCC in apps with timing constraints?
Let's make an specific post for this doubt:

I'm programming an application that has to around 2 seconds of consecutive ADC measures each 10 minutes.

I think I do understand (hopefully) how to cr ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Fri Jul 22, 2011 9:20 am   Subject: Differences in instruction times using PIC16F1827 and PIC18F
An extra doubt:

In my country, the norm for harmonic distortion measuring in electrical network ask to takes measures each ten minutes during a complete week.

I think I do understand (hopefully) ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Thu Jul 21, 2011 2:32 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
The point is I need to take measures at a frequency that allows me to make a FFT to see at least 40th harmonic of the 60 Hz electric signal.

If I'm not wrong this means:

60 Hz x 40 th Harmonic = ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 6:03 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
Thank you to all.

Your feedback is greatly appreciated by all the users in this forum.

To sum up a bit:

I understand that all timing measures from Proteus-VSM are not reliable. Related questi ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 4:46 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
Ok, using your configuration in my header file I obtain the following execution times for some of the used instructions:

set_tris(0xXX); ==> 250 ns

spi_xfer_SRAM(0xXX); ==> 3.750 us

act ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 3:45 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
Also for data storage, consider one of those modules that take serial data and store onto a flashdrive into a file. Cheap, easy to use, transportable, no drivers to code.....all the hard stuff is don ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 3:40 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
I simulate both codes on their respectives similar schematics (only the PIC component changing from one to the other). I do it step by step, and Proteus shows the elapsed time between the previous ins ...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 3:15 pm   Subject: Differences in instruction times using PIC16F1827 and PIC18F
Thank yoo both for your feedback. I've changed the frequency to 32 MHz on both, and still have differences in execution times.

Any other suggestion?

Thank you again for sharing your knowledge!
...
  Topic: Differences in instruction times using PIC16F1827 and PIC18F
krugger

Replies: 16
Views: 33518

PostForum: General CCS C Discussion   Posted: Wed Jul 20, 2011 11:53 am   Subject: Differences in instruction times using PIC16F1827 and PIC18F
Dear all,

I'm pretty sure this should be related with delay definitions, but I still can't find the error. Let me put you in context. I'm working in a project to measure, store and send data from 6 ...
  Topic: MCP3208 driver vs SPI Library functions
krugger

Replies: 25
Views: 65069

PostForum: General CCS C Discussion   Posted: Tue Jul 19, 2011 8:53 pm   Subject: MCP3208 driver vs SPI Library functions
Embarassed

Thank you again!
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group