PSoC™ 5, 3 & 1 Forum Discussions
Hi all,
I am looking to have my PC enumerate two separate USB UART ports using Cypress' PSoC 5LP development board. I haven't found much documentation on how I can achieve this using a single USBFS block, and using two separate USBFS blocks on Creator 3.0 gives be this error. I was hoping someone could point me in a direction.
Many thanks,
G
Show LessHello everybody,
I have a problem with a project on the CY8C28452 device. I can program the custom board I have for it using PSoC Programmer. However, if I try yo program it from PSoC Designer it doesn not work, since the board I have is populated with a CY8C28433, which seems to be a similar device. When I clone the project, and port it on the new device, I can program the board from PSoC Designer, but it does not run correctly.
Can you, please, help me with some advice on what I should do?
Thank you!
Show LessHello,
I’m trying to transfer data from ADC-SAR to UART using the DMA. For this I followed the Configuration showed in AN52705, but I’ve got this error:
“.\main.c: In function 'DMA_Config':
.\main.c:83:36: error: 'ADC_SAR_1_WRK0_PTR' undeclared (first use in this function)”
Could anyone help me?
Best regards
Hosam
Main + DMA configuration:
#include <project.h>
/* DMA Configuration constants for DMA_1 */
#define DMA_1_BYTES_PER_BURST (1u)
#define DMA_1_REQUEST_PER_BURST (1u)
#define DMA_1_SRC_BASE (CYDEV_PERIPH_BASE)
#define DMA_1_DST_BASE (CYDEV_PERIPH_BASE)
void DMA_Config(void);
int main()
{
ADC_SAR_1_Start();
DMA_Config();
ADC_SAR_1_StartConvert();
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
for(;;)
{
/* Place your application code here. */
}
}
void DMA_Config()
{
/* Variable declarations for DMA_1 */
uint8 DMA_1_Chan;
uint8 DMA_1_TD[1] = {0};
/* Iniitialize DMA channel */
DMA_1_Chan = DMA_1_DmaInitialize(DMA_1_BYTES_PER_BURST, DMA_1_REQUEST_PER_BURST,
HI16(DMA_1_SRC_BASE), HI16(DMA_1_DST_BASE));
/* Allocate TD */
DMA_1_TD[0] = CyDmaTdAllocate();
/* TD configuration setting */
CyDmaTdSetConfiguration(DMA_1_TD[0], 1u, DMA_INVALID_TD, DMA_1__TD_TERMOUT_EN);
/* Set Source and Destination address */
CyDmaTdSetAddress(DMA_1_TD[0], LO16((uint16)ADC_SAR_1_WRK0_PTR), LO16((uint16)UART_TXDATA_REG));
/* TD initialization */
CyDmaChSetInitialTd(DMA_1_Chan, DMA_1_TD[0]);
/* Enable the DMA channel */
CyDmaChEnable(DMA_1_Chan, 1u);
}
Show LessHi,
I'm using the sample & hold component in my proyect since I need to sample a signald comming from a photosensor which receives light from a very short pulse of light which comes from an LED.
The problem is that when I use the sample and hold circuit I get a noisy signal compared to the one I get when sampling without the H&S.
In my case I'm turing on the LED, activating the H&S with a Control register connected to the clk input of the sample and hold , then turning of the LED and lastly I use the SAR ADC to sample 64 times the voltage in the sample and hold. I'm sampling 64 times to get a better resolution.
When I omit the S&H the signal is good but then it takes too much time for the ADC to make the 64 samples. If I add the S&H it gets very noisy.
I've checked the TRM which in page 271 shows the Track and Hold diagram and it has a hold cap of 12pF and a voltage follower.
If I use the S&H making just one sample at a time it gets a "smooth" signal.
I think the might be that the S&H might not be holding the voltage enough time to do all the conversions.
I've tried adding a unity gain PGA between the S&H and the ADC with the same results.
Does anyone have any idea why this is happening?
Thank you.
Show LessI am setting up a RTD project using IDAC, Multiplexer, ADC and RTD components.
In addiiton to these I only have some Digital IO and a UART.
When I compiler I get error "Resource LImit, Maximum number of decimator fixed blocks exceeded (max=0, required = 1).
What can I do about this?
Thanks
Show LessHi,
I am very new to PSOC. I have been reading about it. Can anyone help me with the following questions. Thanks in advance.
1. Am I right to assume PSOC 5 have the same or better capability than the rest of PSOC 1,3 and 4 in terms of analogue and digital capability?
2. Can I input bipolar analogue signal directly into PSOC 5, without external component for level shifting?
3. Can I directly implement analogue low pass, high pass and bandpass filters with PSOC 5?
4. I have found application note stating how to implement analogue multiplier with PSOC 1. Can I do the same with PSOC 5?
5. With the latest PSOC 5 LP, which can go up to 80MHz, would I be able to gain speed improvement for SPI?
6. Can I use PSOC 5 LP without external clock?
Thanks.
Show LessPSoC3/PSoC5 device has multiple sources which can reset the device.
- WatchDog
- Low Voltage Detect Analog, LVI-A
- Low Voltage Detect Digital, LVI-D
- Software Reset and so on
Once the device is reset it is possible to identify the source of reset by reading the value of the register, RESET_SR0. However this register is read on clear. When the reset is triggered and the device boots, the device by default waits for bootloader and in the bootloader code this register is read and the status is cleared. However before reading this register the code preserves this register value as a variable, uint8 CyResetStatus.
Show LessHi all,
PSOC 5 has an IDAC with 8MSPS. In my application, I required sinewave up 160kHz. Can I pass the output of IDAC to an trans-impedance amplifier so that I get sinewave in voltage format?
Thanks
Show LessI was wondering if there were any spcific major changes when code is running in the target (after programming) compared to when running on debugger (J-TAG interface via Miniprog 3). The target does not use external crystal.
The code appears to work fine when debugger attached, when I unplug the bebugger the code does not operate the same. The code initialises a GSM modem. When not on debugger, It does not appear to process data received back from the modem properly. Yet, the same routines have been working without error over debugging for last few days.
If I program the target and leave the debugger connected (even without running the code in creator, it is ok).
Show LessHello people, i need some help about the mixers in the microcontroller.
What is the sampled mixer, what is the principal using ? (ADC ?) the real description about the sampled mixer
What is the difference under sampled mixer and continuous time mixer in psoc5LP ?
thanks you
Show Less