PSoC™ 5, 3 & 1 Forum Discussions
Hello,
I have a doubt about configuring a DMA with two TDs. For example, the first TD (TD[0]) goes from position 0 to 63 of an array, when it finishes, it switches to TD[1], where it goes from 64 to 128 of that same array. The first part is done correctly, however, the second part, the DMA is not transferring correctly the array's data.
I have set up the configuration as below:
-------------------------------------------------------------------------------------------------------------------------------------
CyDmaTdSetConfiguration(dmaDescriptor[0],
TEXT_MESSAGE_LENGTH*2, dmaDescriptor[1],
(TD_INC_SRC_ADR | DMA_1__TD_TERMOUT_EN));
CyDmaTdSetConfiguration(dmaDescriptor[1],
TEXT_MESSAGE_LENGTH*2, dmaDescriptor[0],
(TD_INC_SRC_ADR | DMA_1__TD_TERMOUT_EN));
CyDmaTdSetAddress(dmaDescriptor[0],
LO16((uint32)textMessage), LO16((uint32)UART_1_TXDATA_PTR));
CyDmaTdSetAddress(dmaDescriptor[1],
LO16((textMessage[TEXT_MESSAGE_LENGTH])), LO16((uint32)UART_1_TXDATA_PTR));
-------------------------------------------------------------------------------------------------------------------------------------
I think that the problem is that I didn't set up the offset correctly (I have tried using pointers also).
Thank you in advance
Chang
Show LessHi,
I´m using the "PSOC 3 Development Kit". In my project I would like to transmit data that has been received by a SPI SLAVE to my PC.
I tried to use USB_UART with Hyperterminal and I did work, but i was to slow. I need at least a datarate of 100 kByte/s. Now I'm trying to establish the data transfer with the USBFS in the Bulk mode using USB Suite. With CyConsole I´m able to read out the endpoint, but every time I want to read the data I have to press the button " transfer data" . But i need a continuous stream of data. The programm "streamer" does not work. Does anybody know how its possible to read out an store a continuous stream of USB data?
I attached my project.Pease help me out.
Regards,
Alex
Show LessHi
I''d like to get rid off the automatic indentation in PSoC Designer as I prefer manually tabulating when needed.
The Tools/Options/Code Editor/Behavior just mentions a tab-to-space replacement, but nothing about enabling/disabling the automatic indent.
Does anybody know where this parameter (if exists) can be managed?
Regards,
Michel
Show LessDear PSoC Developers
I'm using USBFS component and I wrote program that I'm sending data from the PC to the PSoC 3 device (I configured as a HID device) and getting the same data back to the PC.
In the PC I'm using Libusb 1.0 library.
I was able to have the connection, but I cannot send more then 1 byte data, when I'm trying to send for example 2 bytes, it only sends the last 1 byte.
Is it possible to send more then 1 byte and how?
What should I change (maybe in HID descriptors)?
Thanks in advance
Gurgen
I had implement a Sleep Timer Module,
Interval was set to 8 milisec.
I was checking the interrupt period by using LED.
Interval was shows quite wrong time, around 16u.sec.
This interrupt type set to DERIVED.
When set it to RISING_EDGE, Interrupt never happend.
Tell me what's wrong.