PSoC™ 5, 3 & 1 Forum Discussions
I have looked through quite a few posts and reference documents related to DMA and interrupts but can't seem to find the simple answer.
Which gets higher priority for memory access DMA or interrupts. I know with interrupts and DMA you can priorities, but are the 2 settings related.
The reason I ask is that I have a project with high priority time-critical interrupt. Which currently is working good. I am now working on my host connection which will probably be SPI and I would like to do this transfers via DMA.
I guess the question is if I am running my high priority interrupt and some data comes in over the DMA SPI I would not want my interrupt routine to be blocked by DMA memory access for the SPI receive. Can I just set my interrupt to high priority and my DMA to lower priority and I will be fine?
Any thoughts or insight?
Thanks,
Chris
Show LessIn using the ADC Del-Sigma Converter component, I'd like to have a lower sampling rate - 500 Hz - so sampling every 2 mS. The internal and external clock components don't allow this. Is there a way to implement a delay in the interrupt routine to achieve that sampling rate? I'm pretty new to coding and am not sure how to implement either a delay or some sort of loop to have the interrupt sample at the lower frequency. Any suggestions would be greatly appreciated!
Show LessAnyone know which block to use to design high pass filter using CY8C29466 IC?
Hi, hope all is good.
I have been trying to make DMA and SPI work together for at least two weeks, and i think i have something usefull, the end application of this is drive the nRF24 chip with DMA on the PSoC 5LP.
I have some doubts and hope somebody can help me, or suggest me a more efficient way to do it.
SPI FIFO is 4 bytes deep so i send 1 byte each time using the Tx FIFO not Full signal, if i try to send more bytes al goes crazy, same i get 1 byte on the receiver buffer with help of the Rx FIFO Not Empty signal.
nRF24 chip have several registers, most of them are 1 byte size, and few others are 32 bytes long, so to be able to read or write to them i need to send a read/write command byte + all the bytes of data, for this i was tinking on have 1 TD to send the command + 1 TD to send the data on the Tx side, and 1 TD for the received data. I did this on a function (DMATransfer on the attached project) but i do not know if i have to allocate the TD on the beggining of the function and then free the TD when i'm finishing the function, all this because i'm changing the TD transfer size parameter each time i call the function.
And also i would like to know if there's a way to avoid this:
while(0u == (SPI_TX_STATUS_REG & SPI_STS_SPI_DONE));
i have to do it because if i don't do it the /SS line never goes 'high' when i'm done sending the number of bytes i pass as parameter.
Attached the most recent project. Thanks in advance
Carlos
PS: I'm bad explaining, so any doubts pls let me know 😄
Show LessHi. In my project I have one element which measure acceleration, and I get data using I2C interface.
In my program I want to get this data, and make some calculation every (for example) 100 ms. I use for this Timer with interrupt, but then the program stops working, and I can't get any data from this I2C.
I know, that there is a way to do it, but I don't know it ;(
Show LessIn the following Kits :
CY8CKIT-001
CY8CKIT-030
CYC8KIT-050
There is a problem with Hardware Handshaking in that the CTS/RTS pins are swapped on the development kits.
This is a hardware/PCB error on the circuit boards and can only be fixed by a wiring change.
There are two workarounds to this problem :
1) Don't use hardware handshaking, select software handshaking (3 wire protocol) only.
2) Wire a DB-9 Female to DB-9 Male adaptor plug with the following pinout :
2 -> 2
2 -> 3
7 -> 8
8 -> 7
There is also an issue in PSoC5 with clock frequency drfit at high baud rates.
Enable the External Crystal to act as your Baud rate source for stable communications.
regards,
Tom Moxon
www.moxon.com
Hi everyone,
I'm using capsens with 2 channels 28 capsenses.
For my application I need to use Vdac 125 --> 2V and Current qsource 32uA
When I compile I have a warning that i don't understand.
I"m using a PSOC 5 with a 3.3v supply, so if I use 2V Vdac I am normaly in the range.
Thank you
Show LessMy ADC is in ASC10 block and my RefMux is ACB00. i set RefMux to the AGND.
now i want to connect and discount AGND to the ADC input with API.
how can i do it??
Show LessHi, There's a device that needs to be simulated. It's a simple uC sending serial data to a PC with Ubuntu interfacing with an FTDI chip. I already wrote a simple windows application that uses the COM port, and the simulator is working if i connect the two PC-s, windowsPC<->rs232<->FTDI(rs232-USB)<->Ubuntu. The problem is that the simulator should be portable, but only the FTDI driver is available. How can i make the PSoC CY8C4245AXI-483 or CY8C5888LTI work? Best regards, disznohus
Show Less