Author |
Message |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Tue May 24, 2022 5:04 am Subject: DSPIC33: SPI AND DMA |
Thanks!
Got it to work.
its functioning well now.
Thanks Ttelmah for the help |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Sun May 22, 2022 4:08 am Subject: DSPIC33: SPI AND DMA |
So... I am gonna need a little more help here.
I am now using DMA0 just to send the data in order to enable the read: OPCODE ADDRESSX3 and DUMMY bytes required by datasheet => 5 bytes.
EDIT:
I s ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 1:45 pm Subject: DSPIC33: SPI AND DMA |
I will not be at the lab for the next couple of days, but i can't let go
So you are suggesting that on the dma channel i am writing, i will keep the buffer to a size of 5 which is the size of th ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 9:51 am Subject: DSPIC33: SPI AND DMA |
OK.
The problem you have is that nothing is starting the clocking.
Think about it without clocks, the bytes can't read, and nothing is
saying to the SPI 'start clocking'.
I started the transacti ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 7:13 am Subject: DSPIC33: SPI AND DMA |
Regarding the last part of your message, i also tried sending the commands as part of the dma0
int8 dma0_buffer[256] = {RD_OP, ADDR_2,ADDR_1,ADDR_0,DUMMY};
I looked at the signals going out on t ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 6:24 am Subject: DSPIC33: SPI AND DMA |
OK, could you please elaborate?
because i think I tried some variation with continues,
but as I see it,
there is a point in my program, in which i would like to get data from the FLASH. It's a spes ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 6:08 am Subject: DSPIC33: SPI AND DMA |
My own setup for doing SPI receive on SPI2, is:
setup_dma(0, DMA_TRIGGER_SPI2RX, DMA_BYTE | DMA_RELOAD_ADDRESS);
Then the DMA start is:
dma_start(0, DMA_SOURCE_ADDR_UNCHANGED | DMA_INC_DEST_A ... |
Topic: DSPIC33: SPI AND DMA |
dman232323
Replies: 13
Views: 34279
|
Forum: General CCS C Discussion Posted: Thu May 19, 2022 5:05 am Subject: DSPIC33: SPI AND DMA |
Hi,
I would like to read data from flash using SPI and DMA.
I understand that i will need 2 dma channels, 1 to read and 1 to write while I read (dummy).
I can't seem to make it work.
#BA ... |
|