PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
I'm trying to do a DMA transfer of the capture value but I can not read anything.
Configure of DMA :
#define DMA_BYTES_PER_BURST 4
#define DMA_REQUEST_PER_BURST 1
#define DMA_SRC_BASE (CYDEV_PERIPH_BASE)
#define DMA_DST_BASE (CYDEV_SRAM_BASE)
Channel_Counter3 = DMA_Counter3_DmaInitialize(DMA_BYTES_PER_BURST, DMA_REQUEST_PER_BURST, HI16(DMA_SRC_BASE), HI16(DMA_DST_BASE));
counter3_TD_0 = CyDmaTdAllocate();
CyDmaTdSetConfiguration(counter3_TD_0, 4, counter3_TD_0, DMA_Counter3__TD_TERMOUT_EN | CY_DMA_TD_INC_SRC_ADR );
CyDmaTdSetAddress(counter3_TD_0, LO16((uint32) Counter_3_STATICCOUNT_LSB_PTR), LO16((uint32)counter[2]));
CyDmaChSetInitialTd(Channel_Counter3,counter3_TD_0);
CyDmaChEnable(Channel_Counter3, (1u));
DMA hardware Request :Rising edge
Is something wrong?
I want to transfer the capture data and then active the interrupt and reset the counter.
Regards and thank you!
Show LessI have the following problem with device enumeration on a CY8CKIT-059:
Anytime I program the device from the kitprog and then connect the USB - everything works as expected.
However once I program the board and remove the kitprog usb the USBFS component fails to get past "while(!USBFS_GetConfiguration())".
I feel its not a power supply problem for the following reasons:
1. All code before "while(!USBFS_GetConfiguration())" runs when I connect the micro USB port to my computer
2. Even if I plug in the kitprog into the computer and then plug in the micro USB - the program halts at "while(!USBFS_GetConfiguration())".
I am using libusb on the host side to communicate with the device and the following code prints out "device not found" (unless of course I program the kit and then plug in the usb while the device is powered)
dev = libusb_open_device_with_vid_pid(NULL, 0x1111, 0x2222);
if (dev == NULL) {
cout << "device not found" << endl;
return false;
}
Show Less
Hi,
I want to develop control unit for burner, kindly advise me, which board kit is near to match my requirements .!
I want to control burner flame with pressure and temperature sensors and three units are attached with burner working.
1: System start up with ( control : Monitor pressure and Temp by sensors )
2: Glow Plug 12v 17A (control : switch on/off with timer + Temp sensor )
3: Blower fan 12V 11A, ( Control : switch on/off + PWM variable speed + temp sensor
4: Fuel Pump 12V, 4A, PWM ( Control : Switch on/off + variable speed + temp sensor
Burner system will start up when Pressure and Temp will reached at desired level.
1st glow plug will on for produce flame , 2nd blower will on with low flow, 3rd fuel pump will on for produce continuous flame,
1: MCU 32Bit Cortex M4 200Mhz
2: Flash 2mb + Accelerator
3: Ram 512
4: 2USB + 2 CAN
5: Ethernet IEEE 1588
6: ADC 8
7: Power on/off 6 Mofsets
8: Temperature Sensor 6
9: Pressure Sensor 6
10: Jtag header
11: TFT controller + LCD
10: I/O 20
11: Multi Function Alarms 4 +RTC
12: PWM 8
Awaiting your helpful reply.
Regards
Sami
Hi,
As you know, the FreeSoc has an Arduino-Bootloader hex-File.
I tried to load it to a PSoC 5LP Board, with no success.
@Cypress, why not support the Bootloader = simple way to use Arduino-Libraries;)
Best regards
Franz
Show LessI ordered some backlit character displays to connect to the PSOC 5LP -050 kit. One is 2x16 which i was able to successfully hookup. The other is a 2x12 display from the same supplier, data sheet basically identical except for display size. Is there any reason the Character LCD component wouldn't work as is for a 2x12 display?
Thanks
Aaron
Show LessHi,
I've a question about DMA handling. I want to feed data from SRAM into a control register. This works with a single DMA channel and transaction descriptor. Now, I want to change it to have the possibility to select between multiple (at least 4 to 😎 SRAM sources.
From the WaveDAC component as example, I see that two DMA channels and transaction descriptors are used. I wonder if I have to use N DMA channels and/or TD's or if there's an easier way. 'AN84810 - Advanced DMA topics' states that it's possible to dynamically change a transaction descriptor by another TD. However, this approach seems to need two TD's chained, the modifying TD is always executed, and the data transferring TD is triggered by the modifying TD.
In my case, the data transfer should be executed always (TD loop configuration). If a change of the source is needed, the new source should be used when the TD starts again. Now, the question is: what's the best way to achieve this without creating multiple DMA components and/or TD's?
From my understanding of the DMA, it should be possible to reconfigure the source address by calling CyDmaTdSetAddress(uint8 tdHandle, uint16 source, uint16 destination) again with a new source address. If modify the source address between the DMA start signal and before the TD ends, the modification should take effect on the next cycle, right? Do I have to remove the 'preserve TD configuration' temporarily for that?
Alternatively, should I setup a second DMA which targets the first DMA TD source address? Are there any pros or cons between those approaches? Or is there a better way to achieve this?
Regards,
Ralf
Show LessHi,
I'm doing CapSense proximity sensing. Since I need information about the distance, I work with the sensor raw data. This works well. The only disadvantage is that the the raw data has some noise on it (if necessary, I can provide data). To get rid off the noise, I use the DFT block to process the CapSense raw data values. However, it seems that it's hard to setup the DFB the right way.
On a first thought, I think I need something like a FFT on the data, with only the DC bin as returned value. Is a FFT possible with the DFB? If not, how can I figure out how to setup the DFB to clean the noise out of the signal?
Regards,
Ralf
I have a low frequency (KHz) sensor with input range from 0 ~ 4.5V. What's the best way to sample with PSOC5 LP?
Is it possible to use PSOC Op-Amp to scale it down to the range of PSOC ADC and sample, and how?
I have chosen PSOC5 LP because the other part of the design uses it. The Op-Amp and ADC is not occupied.
Show LessHi,
I want to Generate the PWM Interrupt. Here i attached the project which i used. In this first time entering the isr. I generated the PWM Raising Edge interrupt. Could you please help me to solve this issue.
Thanks,
Mohan Raj R
Show Less