PSoC™ 5, 3 & 1 Forum Discussions
Hi all,
I am working with psoc5 I have implemented the DMA which transferes data from filter to ping and pong buffers.
DMA ISR is coming everytime but i want to know which buffer is filled first .To do this can i get any code snippet related to DMA ?
and dma has any status registers to read which buffer is filled first?during runtime?
Regards,
Roopa
Show LessI am using CY8CKIT-059. When I make a project using EZI2C component, pin assignment is P12[1:0] by default.
When I use Bridge Control Panel, I can communicate via USB interface between my PC and KIT-059.
USB interface is SWDIO and SWDCLK using P1_0 and P1_1.
My question is how data from P12[1:0] can be connected to USB port P1{1:0}?
Tatsuo Kawasakli, Kyoto, Japan
Show LessHi all,
I need to write the uint16_t value in eeprom how to write? please give example.
Actually I want to enter the value using terminal and this value Rx pin getting this value and that value should be written in EEPROM. Please help me for that.
Thanks & regards
Rathang shah.
Show Lessin the datasheet of this CY8C5467LTI-LP003" chip datasheet , in page - 59 - Topic- 8.10.2 (Voltage DAC) it says that " For the voltage DAC (VDAC), the current DAC output is routed through resistors. The two ranges available for the VDAC are 0 to 1.02 V and 0 to 4.08 V. In voltage mode any load connected to the output of a DAC should be purely capacitive (the output of the VDAC is not buffered)." , so what is non-buffered output here? and what is the meaning of i can only connect capacitive loads only? , what i can do to use this dac as normal dac? do i have to connect any extra circuitry? if yes then please help me with the circuit diagram or any reference diagram so that i can understand the working and make my dac work like a normal one.
Show LessI've been using the 8-bit UART in a design for some time. I've recently changed from the internal 24M clock to using external 32.768kHz cystal and the PLL to generate a 23.986MHz internal clock. Now the UART does not seem to work reliably. I'm talking to a PC and if I change the baud rate around the nominal 19200 I get either the Tx or Rx to work but not both at the same time. It's as if the Rx and Tx are using different clocks. I know the internal clock is at the right frequency by putting an 8 bit counter in a digital block and dividing down VC3 and feeding to a pin. I get exactly the expected frequency. The difference between 24M and 23.986M should just make the baud rate closer to the nominal value.
Any thoughts?
Show LessI have been using the UART8 module to send and receive standard 8 bit wide serial communication on the CY8C29466-24PXI.
Now I need to receive 7 bit wide serial communication. Is there any way to reconfigure the standard UART8 or RX8 to UART7 or RX7 to receive standard 7 bit wide serial communication?
Have you any ideas? Thanks
Show LessHey Guys,
I'm relativley new in programming and PSoC. Right now I try to build a little shiftregister but I can't figure out how to read out the value from the output FIFO with an ISR.
Here is my setup:
With the two PWMs and the logic 'AND' I am generating a '1 0 0 0' bit flow every 10 kHZ. In the end I'm curious what is the speed limit from the ShiftReg.
I want to trigger the interrupt after 8 bits were shifted in. Therefore I connected a 5 kHz clock to the store input and selected 'Use interrupt' and 'on store' in the Shiftreg specification. In the ISR I want to read out the data from the FIFO. The UART component is just to display the output.
In the Debug mode I can see that the interrupt is only triggered once. Can somebody tell me what I'm doing wrong?
I already reproduced the example ShiftReg. In this example the load/ store inputs aren't triggered with clocks but with control registers.
Thanks in advance!
Show LessHello,
I'm having some problems getting my Generic 8-Byte HID interface working properly, and i don't know where is reason of this. I made my configuration as simple as I can with AN82072 to find reason of problem but have no luck.
Schematic is
and main function:
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
PWM_Start();
USBFS_Start(0, USBFS_5V_OPERATION);
while(USBFS_bGetConfiguration()==0){}
for(;;)
{
if(USBFS_GetEPState(IN_ENDPOINT) == USBFS_IN_BUFFER_EMPTY) // IN_ENDPOINT defined as 0x01
{
IN_Data_Buffer[0]=0x73; //115 as test, for debugging
IN_Data_Buffer[1]=Pin_2_Read();// read button pin
USBFS_LoadInEP(IN_ENDPOINT, IN_Data_Buffer, MAX_NUM_BYTES);// MAX_NUM_BYTES defined as 8
USBFS_EnableOutEP(OUT_ENDPOINT);// IN_ENDPOINT defined as 0x02
}
if(USBFS_GetEPState(OUT_ENDPOINT) == USBFS_OUT_BUFFER_FULL)
{
OUT_COUNT = USBFS_GetEPCount(OUT_ENDPOINT);
USBFS_ReadOutEP(OUT_ENDPOINT, OUT_Data_Buffer, OUT_COUNT);
PWM_Duty_Cycle = OUT_Data_Buffer[PWM_cmp_Pos];
PWM_WriteCompare(PWM_Duty_Cycle);
USBFS_EnableOutEP(OUT_ENDPOINT);
}
USBFS_EnableOutEP(OUT_ENDPOINT);
}
}
HID report was configured same as in AN82072.
And here is troubles.
I take my python and rust and tried to write some code to communicate with MCU with simple code like that:
Similar code i used on rust with hid.dll in windows 10
This is very strange but when i try to lit led up (second byte in array is PWM DC) and send buffer to psoc - nothing happens in 3 or 5 attempts (but True returns) and then after numerous attempts of buffer sending - it looks like data sent and PWM changes its DC.
Sometimes it works at 3 attempt, sometime - at 15 O_o.
So, the main question is how i should configure USBFS to communicate between PC and MCU so that MCU gets the data without excessive attempts or I get an error if no data ws sent or read out by MCU?
Show Lessi bought solar powered ble sensor RDK CYALKIT-E02. i want to use this for particular application called fan speed control.
the kit is having solar sensor beacon and debug board. debug board have the PSoC 5LP micro controller.
but when i use psoc creator code example i have compatability issues. how can i do programming and how can i dump program in that microcontroller.
can u suggest me ASAP. i have so many doubts regarding this.
Show Less