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 16 matches
CCS Forum Index
Author Message
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Thu May 30, 2013 8:22 am   Subject: PIC 16F886 SPI CONFIGURATION
I almost forgot..

The PIC Project Wizard only puts in the fixed_io option when you make the selection to do so. In doing this you forgot to mention one output pin.

The problem was that when I wa ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Thu May 30, 2013 7:58 am   Subject: PIC 16F886 SPI CONFIGURATION
Ckielstra

Honestly I wasnt angry. Only I felt that you were angry because I asked over and over again the same thing. On the contrary, the more I can learn from the users of this forum and make me ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 4:12 pm   Subject: PIC 16F886 SPI CONFIGURATION
Ckielstra

Few weeks ago I started to LEARN to use both compiler tool as working with PICS, so I'm not perfect and Im still learning. Also my English is not perfect and not nearly to be, therefore, ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 1:41 pm   Subject: PIC 16F886 SPI CONFIGURATION
All right. I'm a little confused.


1) Yes, my first code works and the second code dont work.

The problem is here: #use FIXED_IO( B_outputs=PIN_B4)


As PCM said, Im setting ONLY B4 as outp ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 12:41 pm   Subject: PIC 16F886 SPI CONFIGURATION
If I delete #use FIXED_IO( B_outputs=PIN_B4 ), by default B4 and B5 will be defined as outputs? or I need to define them previously as outputs??


Also, an extra dummy question:


Why when I ch ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 10:16 am   Subject: PIC 16F886 SPI CONFIGURATION
ENABLE PIN is just a 5V signal to power up the Slave (TRF7970A's Vin).


TRF7970A_SS is the Chip Select Signal for SPI purposes.

Both, should be defined as Outputs.
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 9:54 am   Subject: PIC 16F886 SPI CONFIGURATION
Hi Ttelmah.

You mean I'm setting as B4 as an output, and NOT B5, right?


Regards!
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Wed May 29, 2013 9:12 am   Subject: PIC 16F886 SPI CONFIGURATION
Hi guys! Thanks PCM and Ckielstra for both answers.

Second Question: PIC sends the clock signal (SPI CLK - 2Mhz) only while It's sending/reading data from the SPI? I'm asking this because when I tr ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Tue May 28, 2013 9:04 am   Subject: PIC 16F886 SPI CONFIGURATION
Hello there? Sad


Any help/hint?


Thanks in advance
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Sun May 12, 2013 7:23 pm   Subject: PIC 16F886 SPI CONFIGURATION
CCS PCM C Compiler, Version 4.140d, 1 10-may-13 16:57
Compiler operating in Evaluation Mode
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Sun May 12, 2013 5:47 pm   Subject: PIC 16F886 SPI CONFIGURATION
Hi again PCM!

This week, I was testing the code for the TRF7970A's IC and I have 3 questions for you.

I tested 2 codes that I copy below:

FIRST CODE (From your previous code):


#include ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Fri May 03, 2013 5:45 pm   Subject: PIC 16F886 SPI CONFIGURATION
Hi PCM!

I am totally grateful to you.. Thank you so much and I'm glad that there are still people who kindly help those that are starting programming and learning about electronic.

Tomorrow I'l ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Thu May 02, 2013 10:04 pm   Subject: PIC 16F886 SPI CONFIGURATION
Oh, I'm sorry. Is an TRF7970A.

Is an multiprotocol Fully Integrated 13,56 MHz RFID/NFC IC.

I want to make it work ONLY as an NFC Card-Tag Emulator.

To do that i need:

1) Initialize SPI wi ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Thu May 02, 2013 7:02 pm   Subject: PIC 16F886 SPI CONFIGURATION
Yes, it brings the .LST file. Thank you so much again for your help.


One last thing. I'm trying to understand spi_xfer functionality. In older versions of CCS, it used spi_write and spi_read to m ...
  Topic: PIC 16F886 SPI CONFIGURATION
Armando

Replies: 30
Views: 50469

PostForum: General CCS C Discussion   Posted: Thu May 02, 2013 2:39 pm   Subject: PIC 16F886 SPI CONFIGURATION
Thank you so much PCM programmer for your quickly reply!



I can see the value that the compiler puts into SSPCON in "C/ASM List" buttom right?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group