PSoC™ 5, 3 & 1 Forum Discussions
Hii,
I am using 16 bit ADC and Transferring my data to Filter using DMA and Getting the result of filter in 16 bit. My concern is when I run the code it is not going into the loop. The code is exiting at while (Filter_IsInterruptChannelA() == 0) ; I attached the code please help me regarding this. My aim is to transfer 16bit output of ADC to Filter using DMA and get the 16 bit filter output.
Thank you
Hem k
Show LessHi,
I need help in creating USBUART ISR.When data is coming through ISR in USBUART i want to give semaphore to some function that can perform some action.
Show LessHi, I would like to know how to display the menu bar of psoc designer 5.4. Accidentally delete it and can't appear. I tried uninstalling and installing again and it does not appear
Help me 🙂
Show LessHello !
( First of all, sorry for my middle english 😕 )
Can somebody help me in my project please ?
I've already made a tactile button (with a coppery touch) which switch on a LED when you put your finger on the touch (with CY8CKIT-059). Now, my goal is to realize the same thing but with matrix button 3x3. So with 9 touch on my PCB instead of 1. But I don't know how to configure the CapSense exactly and especially the C code program.
Thank you for your time !
Show LessHi,
I want to create a thread in PSOC CY8KIT-059. i linux we use pthread to create a thread but herei do not how to create thread in psoc.
is there any API is available for this ? please tell me.
waitinf for your reply....
Show LessHii,
I am Using PSOC 5LP as my SPI slave. I am using SPIS Example by using that I can able to transfer data and receive one time. But I want to transfer and receive the data continuously. i.e when ever I transmit the data to PSOC I should able to receive in buffer. please help me regarding this.
Thank you
Regards
Hem k
Show Lesshello,
i have attached project . I tried ti read potentiometer by ADC and use DMA to trasfer the adc data to Vdac.Also i have used usrt to print the value of adc. After each conversion of adc DMA should update the vdac but that dint happen. I believe i went wrong in configuring DMA.
Can DMA and UART access the same component at same time?
I Just wanted to know where have i gone wrong in configuring DMA. I used DMA wizard.
Thank You.
Show LessI have a simple Bootloader test program that shows the generated code for the 5LP gets stuck once the 64 char SW FIFO gets full (Write index = 63, Read index = 0).
For some reason, the UART code seems to stop pulling from the FIFO. It gets stuck in UART1_PutChar() at line 1067 of .\Generated_Source\PSoC5\UART1.c :
do { /* Block if software buffer is full, so we don't overwrite. */ #if ((UART1_TX_BUFFER_SIZE > UART1_MAX_BYTE_VALUE) && (CY_PSOC3)) /* Disable TX interrupt to protect variables from modification */ UART1_DisableTxInt(); #endif /* (UART1_TX_BUFFER_SIZE > UART1_MAX_BYTE_VALUE) && (CY_PSOC3) */ locTxBufferWrite = UART1_txBufferWrite; locTxBufferRead = UART1_txBufferRead; #if ((UART1_TX_BUFFER_SIZE > UART1_MAX_BYTE_VALUE) && (CY_PSOC3)) /* Enable interrupt to continue transmission */ UART1_EnableTxInt(); #endif /* (UART1_TX_BUFFER_SIZE > UART1_MAX_BYTE_VALUE) && (CY_PSOC3) */ } --> while( (locTxBufferWrite < locTxBufferRead) ? (locTxBufferWrite == (locTxBufferRead - 1u)) : ((locTxBufferWrite - locTxBufferRead) == (uint8)(UART1_TX_BUFFER_SIZE - 1u)) );
All I see are the first 2 chars ("..") on my terminal before everything stops in this simple test setup to reproduce the problem on my CY8CKIT-058 board:
#include <project.h> int main() { UART1_CyBtldrCommStart(); // Starts the communication interface and enables its interrupts & callbacks char str[] = "."; //"\r\nThis is a sample string."; uint16 written = 0; cystatus ret = CYRET_SUCCESS; for (uint16 loopCount = 0; ret == CYRET_SUCCESS; loopCount++) { Pin_User_LED_Write(loopCount & 1); //UART1_PutChar('.'); ret = UART1_CyBtldrCommWrite((uint8 *)str, sizeof(str), &written, 0); //CyDelay(10 * UART1_BL_CHK_DELAY_MS); <----- this keeps it from getting stuck at a full FIFO } }
Environment:
PSoC Creator 4.0 (4.0.0.432)
Culture: English (United States)
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR Version: 4.0.30319.42000
Installed CyInstaller Products:
CY8CKIT-059 PSoC 5LP Prototyping Kit 1.0 Rev.**
Cypress Document Manager 1.0 SP1
Peripheral Driver Library 2.1.0
PSoC Programmer 3.25.0
PSoC Creator 3.3 CP3
PSoC Creator 4.0 <--- using this one
Bootloader v1.50
cy_boot v5.50
UART v2.50
UART_Rx/Tx cy_pins v2.20
Anybody should be able to reproduce this with PSoC Creator 4.0, a CY8CKIT-059, a simple project with only a Bootloader component (mine is set for Dual-application mode) and a UART component, and the main() of main.c I pasted above. Can anybody explain why that's happening before I cry "BUG!!!" ?