PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
I am just starting with CY8CKIT-050 Development Kit.
I am using two SAR-ADC (Sampling frequency 100 kHz) and some time-critical calculation in a hight priority interrupt service routine (prio 0). Everything works fine until I implement an additional interrupt service (rising edge @ 10Hz, priority 7) to set a flag for further processing. This further processing is done in den main-loop and sends some data to the display.
When the the low level interrupt is enabled, I measure a Jitter (about 1.3us) in the signal processing in the high-priority interrupt service routine.
This is done with a toggle Bit as digital output at the end of the routine. The service routine is triggered by eoc of one ADC and needs about 4 us for the signal processing (without code optimization).
The reason for this Jitter is the code in the main loop (LCD functions) :
CY_ISR(DISP_ISR_LOC)
{
Disp_Flag = 1;
}
int main(void) .....
if (Disp_Flag == 1)
{
// Doing nothing for testing!
phi_disp = (phi_LUT_int * (uint64)360000) >> 16; // für P = 2
sprintf(displayStr,"%4d %4d ",(int)voltCount_sin,(int)voltCount_cos);
LCD_Position(0,0);
LCD_PrintString(displayStr);
result = sprintf(displayStr,"%6d mGrad",(int)phi_disp);
LCD_Position(1,0);
LCD_PrintString(displayStr);
Disp_Flag = 0;
}
There is also a Jitter in the signal processing, depending on the input signal values and the adjustment of code optimization. But with constant input values (ignoring the ADC-Data) this jitter is not existing.
Could you give me some hints for solving this problem?
with regards
steve_c
Show LessHi at all,
I'm working on PSoC5LP and I'm facing with a problem; I'm trying to get an interrupt from a global signal, setted on CTW:
This is my very simple main:
==================================================
uint8_t ctw_int_flag = 0u;
int main()
{
/* Uncomment this line to enable global interrupts. */
CyGlobalIntEnable;
GSCTW_int_Start();
for(;;)
{
if(ctw_int_flag == 1u)
{
ctw_int_flag = 0;
Pin_ctwSig_Write(~Pin_ctwSig_Read());
}
else
{ }
}
}
==================================================
and in the interrupt routine:
CY_ISR(GSCTW_int_Interrupt)
{
/* Place your Interrupt code here. */
/* `#START GSCTW_int_Interrupt` */
ctw_int_flag = 1u;
/* `#END` */
}
Even if it's all very simple, the interrupt doesn't raising and I really do not know why...please, colud anyone help me ?
Regards
Show Less
I am beginner in PSOC. I am trying to program CY8CMBR3110 using Miniprog-3 by I2C protocol. In EZ-Click 2.0, when i try to select I2C target on 5v, It can't identify it. but if i select 2.5v or 1.8v, It identify device. So i do't understand what is problem. I attach circuit diagram.
Show LessHello,
in the datasheet of the PSOC5LP in chapter 6.2.1.5 Wakeup Events I found that wakeup events are configurable but I didn't found how. I use hibernate mode and want only one external interrupt as a wakeup source. How can I configure only one out of all external interrupts as a wakeup source?
Or is the solution in AN72382 with the do-while loop the only solution?
As a workaround I switched the other interrupt pins to output, so no other external interrupt can occur.
Thanks for your help.
Show LessHello,
I have tried to find dedicated forum for newely launch MBR series but could not find it. Hence I am posting this question here in this form. Accept my apology for this. We have got newely launched CY8CMBR3110 chip and we have developed custom boards using this chip. Its working like a charm. Now we want to provide audio feedback for touch. As CY8CMBR3110 has dedicated buzzer pin we are planning to use that pin only. I think to use piezo buzzer will not be the best solution as sound produce by piezo buzzzer could be annoying. So I am looking for various options which can generate very good audio feedback. What is best way to achieve this? Is there any other ICs available which can be used?
Thanks,
Niral
Show LessI have a PSoC5LP Project which has been around for years.
This week I installed the latest PSoC Creator 3.1 Update, and now my system won't fully.
It is more or less operating normally, with the exception that every malloc() fails.
It's as though the system has suddenly ran out of RAM.
It is a very large project, but there is not actually a huge amount in RAM, and anway, it was working fine before I updated to Creatpr 3.1 and re-compiled everything.
At the end of compilation I get this message:
Flash used: 110520 of 262144 bytes (42.2 %). Bootloader: 16128 bytes. Application: 94392 bytes
SRAM used: 28453 of 65536 bytes (43.4 %). Stack: 2048 bytes. Heap: 128 bytes.
Hi,
is there a simple way to detect, if an interrupt occurs during a specified time. I only need to know if something happened. Within this time there is a time critical procedure. I have to drop the results, if there was an ISR call between processing. But I can not disable global ISR within this time.
Sure, I can use flags inside each ISR. But this is something dificult to do inside the cypress modules (USB_FS e.g.).
So maybe I could check a register?
Kindly regards,
Franz
Show Less