PSoC™ 5, 3 & 1 Forum Discussions
How can i use Del_sigma ADC (differential mode)to sample and convert sine wave signal of 1Khz ? And then i have to send the conversion result through UART to PC. I tried doing so but i get some random symbols. How to overcome this? Resolotion of ADC is 8 bit and conversion rate is 8000sps. UART at 115200bps.
Thank you
Show LessHi everyone
I would need help with a straightforward code for PSoC 5 LP.
I need to send 64 bit throuhg IR link.
The code I am attached is just a sumulation to verify why it doesn't work.
The bits stream is simulated with the Bit_Array[64].
When I'm debbug step by step the code work, it mean that in the uint64 Word_Received I get the Bit_Array[64].
But may be I'm missing something when I want to speed up the process ann put a break point with some condition like Bt=40 at instruction CyDelay(3).
Here is the code
#include <project.h>
int main()
{
uint8 Bit, Bt; ;
uint64 Word_Received=0;
uint64 Logic_Value=0, MASK=0x8000000000000000;
CYBIT Bit_Array[64]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,
1,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0};
CyGlobalIntEnable; /* Enable global interrupts. */
for(;;)
{
for ( Bt=0; Bt<64; Bt++)
{
Word_Received|= Bit_Array[Bt];
if (Bt!=63)
{ Word_Received<<= 1;}
CyDelay(3);
}
}
}
Can I get some help.
Thank you in advance
Hi,
i am interested on using the I2CHW module of PSoC1 on port2.
i know it is designed to use it on port1, but there is the possibility of use it on port2 changing the .asm files of the module?
thanks
Show LessHi everyone,
For my application in need more capsenses than the number of pin available on my design. I would like to use a matrix button or touchpad but i'm confused. It is write that "When more than one row or column sensor is in the TOUCH state, then the finger location cannot be resolved, and the situation is considered an invalid condition."
My question is, is there any way to measure more capsense with the 3rd dimension?
If I use a matrix 3 by 3 for example, and I measure step by step
column1 row1
column1 row2
column1 row3
column2 row1
column2 row2
column2 row3
column3 row1
column3 row2
column3 row3
I am able to measure my 9 electrodes right?
Thank you very much
Show LessHi
I am trying to use a library called ezPSocLib. I put the compiled library in the linker path but for some reason the linker does not see this file at all.
I have attached the project.
Show LessHi,
I´m trying to power the CY8C5267-AXI-LP051 from a 5V Supply, but i have the problem, that the internal 1.8V regulator somehow does not regulate to 1.8V, when a voltage higher than 3V is applied to the VDDD-pins of the micro. If I apply 5V the internal regulator output is 3.3V or 3.4V. I looked and looked at the design of my PCB, but I was not able to find the source of the problem.
Otherwise, the chip seems to work (somehow) with the higher core voltage (at least for a few seconds), I even managed to program it.
I attached two pictures of the PCB to the post, could someone please tell me what I did wrong?
Thanks in advance
Show LessHi all,
I have attached a test code for Dual bootloader application.
SCM master and SCM slave are the two bootloadable application.
SCM master when executed will toggle single GPIO line (blink a single LED).
SCM slave when executed will toggle two GPIO line (blink a two LEDs).
If the GPIO line is read high, then the Bootloader should start the SCM master application immediately.
If the GPIO line is read low, then the Bootloader should start the SCM slave application after the wait timeout.
When I program the SCM master application (through PSoC creator), irrespective of the GPIO line status, the bootloader starts SCM master application. If the GPIO line is read high, then the Bootloader starts the SCM master application immediately.If the GPIO line is read low, then the Bootloader starts the SCM master application after the wait timeout.
Similarly when I program the SCM slave application (through PSoC creator), irrespective of the GPIO line status, the bootloader starts SCM slave application. If the GPIO line is read high, then the Bootloader starts the SCM slave application immediately. If the GPIO line is read low, then the Bootloader starts the SCM slave application after the wait timeout.
Why is the behavior not as per the expectation?
Which hex file should I program to make sure that the flash has bootloader, SCM master and SCM slave images.
I need to change the I2C speed while running my program. For example first check on low-speed which slaves are present, and if these slaves are all high-speed I would like to use high speed for the further communication.
I do this by defining 2 I2C components (I2C_Slow and I2C_Fast) and multiplexing between them as indicated in "Figure 8 : I2C Bus Sharing". This example is for slaves but it also works for masters.
For the future, I would like to use a more flexible way to change the I2C speed of the master.
I cannot find and API to change to i2c rate. Am I overlooking it ? I did find the possibility to use external clocking but this seems rather complex.
I'm using PSOC5LP and PSOC Creator 3.3SP1 with I2C Version 3.5
Thanks
Patrick
Show Less