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 11 matches
CCS Forum Index
Author Message
  Topic: PIC18F46K80 Can Interface
timk

Replies: 14
Views: 39652

PostForum: General CCS C Discussion   Posted: Wed Oct 16, 2019 11:53 pm   Subject: PIC18F46K80 Can Interface
Okay, thank you.
I think I can work with that.

Haven't seen these examples before.
  Topic: PIC18F46K80 Can Interface
timk

Replies: 14
Views: 39652

PostForum: General CCS C Discussion   Posted: Wed Oct 16, 2019 7:31 am   Subject: PIC18F46K80 Can Interface
Hello!

Currently I want to use the CAN Interface of the PIC18F46K80.
I am using the CCS Compiler with the CCS IDE.
The Help Section of the CCS IDE says, that I should be able to init the CAN-Bus ...
  Topic: Problems with I2C on dsPIC30F6015
timk

Replies: 1
Views: 9671

PostForum: General CCS C Discussion   Posted: Tue Aug 21, 2018 3:37 am   Subject: Problems with I2C on dsPIC30F6015
Hello,

I got problems to send messages via I2C of the dsPIC30F6015.
I just want to get a really simple program to work.

#use i2c(master,I2C1,stream=I2C_NFC)

...

while(1)
...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Mon Aug 06, 2018 2:25 am   Subject: SPI problems with PN512 and dsPIC30F6015

As I said quite early on:

Quote:

Particularly that the NRSTPD line is being taken high (the chip won't run till it is).



Sad


I'm sorry,
I thought I had this pin at a high Leve ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Sun Aug 05, 2018 11:58 pm   Subject: SPI problems with PN512 and dsPIC30F6015
Sorry

You are misunderstanding how the nomenclature works.

I understood right but wrote it down wrong.
It was MISO - MISO.
and MOSI - MOSI.

Now I think I found the real error:
The NRSTPD ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 8:10 am   Subject: SPI problems with PN512 and dsPIC30F6015

From your post, you are using the low pin count version. 32pin


Yes it is 32 Pin.

It is wired like this:

PIC PN512
SDCK2/CN8/RG6 -> SC ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 7:08 am   Subject: SPI problems with PN512 and dsPIC30F6015

Seriously, if you are generating MOSI, and SCK, with CS low, then it is the slave that generates MISO.

This was my thinking too.

I also thought about it, because there are two versions of the ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 6:18 am   Subject: SPI problems with PN512 and dsPIC30F6015
In the real Code i used "SPI2" in the "use spi...", but i forgot to type it in there, because the Computer i do the programming with is offline.
I can "talk" to other SP ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 4:36 am   Subject: SPI problems with PN512 and dsPIC30F6015
Thats a good tip with the xfer command.
A colleague of me wrote his spi Drivers in this style and because the Drivers worked I adopted it.
But I think I will use the xfer command in the future.

T ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 2:55 am   Subject: SPI problems with PN512 and dsPIC30F6015
Here is some of the used Code:

#use spi(MASTER, BAUD=20000, BITS=8, MODE=0,stream=SPI_NFC)


while(1)
{
output_low(CS2);
spi_write2(0x82);
spi2_ ...
  Topic: SPI problems with PN512 and dsPIC30F6015
timk

Replies: 15
Views: 39987

PostForum: General CCS C Discussion   Posted: Fri Aug 03, 2018 2:36 am   Subject: SPI problems with PN512 and dsPIC30F6015
Hello,

I want to use SPI for the communication between my dsPIC30F6015 and my PN512 module.
The Problem is, that the communication over SPI does not work.

I connected the MISO, MOSI, NSS and SC ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group