Author |
Message |
Topic: dsPIC33 SPI with DMA |
tripper269
Replies: 4
Views: 13069
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2019 12:29 pm Subject: dsPIC33 SPI with DMA |
I am using two DMA channels, for Rx and Tx. It will be fixed length packet, one or two bytes. The transfer will be on both sides at same time and it should work as fast as possible. whenever CPU is fr ... |
Topic: dsPIC33 SPI with DMA |
tripper269
Replies: 4
Views: 13069
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2019 10:28 am Subject: dsPIC33 SPI with DMA |
Hello All,
I am working on a project where FPGA and dsPIC33 are communicating through SPI. FPGA is a main processor, Master in SPI and sends temperature/Voltages setting to dsPIC33. Also read back ... |
Topic: dsPIC33 SPI Interrupt |
tripper269
Replies: 11
Views: 25632
|
Forum: General CCS C Discussion Posted: Tue Jun 12, 2018 1:57 pm Subject: dsPIC33 SPI Interrupt |
If i disable Timer1 interrupt, it works fine. I checked all run time SFRs using Real ICE, for ex - IFS2, SPI2BUF, SPI2CON1, SPI2CON2, SPI2STAT, INTCON1, INTCON2 and IEC0 - 2. When error state generate ... |
Topic: dsPIC33 SPI Interrupt |
tripper269
Replies: 11
Views: 25632
|
Forum: General CCS C Discussion Posted: Tue Jun 12, 2018 10:38 am Subject: dsPIC33 SPI Interrupt |
And, when SPI stops responding, Byte_Count also stops at one value. Which is usually between 1 - 3. |
Topic: dsPIC33 SPI Interrupt |
tripper269
Replies: 11
Views: 25632
|
Forum: General CCS C Discussion Posted: Tue Jun 12, 2018 10:30 am Subject: dsPIC33 SPI Interrupt |
Master sends 4 bytes, to set temperature and read back temperature.To send more than 255, it makes one byte as 1, which means its 255 +. Master code is written in LabVIEW, and its very big program. Th ... |
Topic: dsPIC33 SPI Interrupt |
tripper269
Replies: 11
Views: 25632
|
Forum: General CCS C Discussion Posted: Fri Jun 08, 2018 12:20 pm Subject: dsPIC33 SPI Interrupt |
Hi All,
I am working on a project where LabVIEW RIO is communicating with dsPIC33 over SPI. It works fine, but sometimes dsPIC33 stops responding. I checked with RealICE, its going into the SPI int ... |
Topic: ICD U64 data monitoring |
tripper269
Replies: 5
Views: 18758
|
Forum: General CCS C Discussion Posted: Fri Feb 23, 2018 3:36 pm Subject: ICD U64 data monitoring |
Hello Everyone,
Has anyone used data streaming with ICD U64, as explained in the below link
http://www.ccsinfo.com/content.php?page=stream_icd_offer
I tried but couldn't make it. |
Topic: int8 subtraction problem |
tripper269
Replies: 4
Views: 13576
|
Forum: General CCS C Discussion Posted: Thu Feb 08, 2018 4:18 pm Subject: int8 subtraction problem |
I think this will work
(int8)Error = SP - MV; |
Topic: int8 subtraction problem |
tripper269
Replies: 4
Views: 13576
|
Forum: General CCS C Discussion Posted: Thu Feb 08, 2018 4:10 pm Subject: int8 subtraction problem |
Hi there,
I am trying to subtract two int8 numbers and store result in signed int16 or float variable. But when the difference between these is more than 127, result look like under flowed. I tried ... |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Wed Oct 25, 2017 6:51 am Subject: SPI #use function |
Here is the complete code, Please let me know if i am doing something wrong.
#include <33FJ256GP710A.h>
#fuses XT,NOWDT,NOPROTECT
#use delay(crystal = 8Mhz, clock = 100Mhz)
#use sp ... |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Fri Oct 20, 2017 9:15 am Subject: SPI #use function |
Thanks to everyone for sharing there thoughts. I changed the setting to 8 bits,
#use spi(SLAVE, SPI2, BITS = 8, MODE = 1, ENABLE = PIN_G9, stream = SPI_2)
First of all, to use SS ENABLE = PIN_x ... |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Wed Oct 04, 2017 1:34 pm Subject: SPI #use function |
Thanks PCM,
I did something like this
#use spi(SLAVE, SPI2, BITS = 8, MODE = 0, ENABLE = PIN_G9, stream = SPI_2)
And its working. I can read 4 bytes from master, but couldn't send 4 byt ... |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Mon Sep 25, 2017 10:56 am Subject: SPI #use function |
In the following setup
#use spi(SLAVE, SPI2, MODE = 0, BITS = 8, stream = SPI_2) , is the SS is also configured automatically, cause what is seen in SPI2CON1 bit<7> is 0 not 1.
If i use EN ... |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Tue Sep 19, 2017 12:01 pm Subject: SPI #use function |
Thanks
Its working now, i changed settings to:
#use spi(SLAVE, SPI2, MODE=2, BITS=32, stream=SPI_PORT2)
and on AD2 changed the phase from 0 to 1. |
Topic: SPI #use function |
tripper269
Replies: 14
Views: 32825
|
Forum: General CCS C Discussion Posted: Tue Sep 19, 2017 9:06 am Subject: SPI #use function |
I am trying to communicate with Analog discovery 2 and dsPIC33FJ256GP710A on SPI. AD2 is working in Master mode and dsPIC33 is slave. I am trying to read 4 byte data using spi_xfer(). Below is the se ... |
|