Hello,
Looking at J9 at SCHEM1 seems to represent J9 on SCHEM2 which seems to suggest that depending on the jumper of J9, the PSoC 4 and PSoC 5LP chips will be powered by either the USB's 5VDC or the 3.3VDC via the LDO power supply system. The jumper chosen on J9 will represent the VDD volatge throughout the parts connections. (Please confirm if I am assuming this correctly!)
In SCHEM3, we have VCCD??? Where does this come from???
Thank you
All help appreciated
r
Show LessHello, I am new to PSOC, and is currently working in CY8C4245AXI-483
I am trying to make a simple project to read and write the data in external eeprom using i2c, untill now i have aquired the result but the data i stored is in "HEX" whereas the data i received on my serial is in ascii
EX: I am sending (0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49)
and receiving "B C D E F G H I
Why do i not get HEX in output and how to get it ???
My code is given below
#include <project.h>
void main()
{
uint16 read_val[8]; //Array to read data from EEprom
uint8 array[8] = {0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49}; //Array to write data to EEPROM
uint8 i;
uint32 status; //variable to read error/status of I2C
I2C_Start();
UART_Start();
for(;;)
{
status = I2C_I2CMasterSendStart(0x50, I2C_I2C_WRITE_XFER_MODE); //Send start with slaveID 80u & write/read transfer mode
if(I2C_I2C_MSTR_NO_ERROR == status) //Check status
{
status = I2C_I2CMasterWriteByte(0x00); //address of eeprom on which data needs to be written
if(I2C_I2C_MSTR_NO_ERROR == status) //Check status
{ //if valid write data to external eeprom
for(i=0; i<8; i++)
{
status = I2C_I2CMasterWriteByte(array[i]);
if(I2C_I2C_MSTR_NO_ERROR != status) //Check status
{ //if success come out of loop
break;
}
}
}
else
{
UART_PutString("error"); //else print error
}
}
I2C_I2CMasterSendStop(); //Send stop
/***************Read that same data from external EEPROM**************************/
CyDelay(500u);
status = I2C_I2CMasterSendStart(80u, I2C_I2C_WRITE_XFER_MODE); //Again send start
if(I2C_I2C_MSTR_NO_ERROR == status) //Check status
{
status = I2C_I2CMasterWriteByte(0x00); //address of eeprom to read data on it
if(I2C_I2C_MSTR_NO_ERROR == status) //Check status
{
CyDelay(50u);
status = I2C_I2CMasterSendRestart(80u, I2C_I2C_READ_XFER_MODE); //Send restart
if(I2C_I2C_MSTR_NO_ERROR == status) //Check status if no error
{
for(i=0; i<8; i++)
{
if(i<7u)
{
read_val[i] = I2C_I2CMasterReadByte(I2C_I2C_ACK_DATA); //receive data bytes with ack
}
else
{
read_val[i] = I2C_I2CMasterReadByte(I2C_I2C_NAK_DATA); //receive last byte with nack
}
}
}
}
}
I2C_I2CMasterSendStop(); //Send stop
for(i=0; i<8; i++)
{
UART_PutChar(read_val[i],); //display data on uart
UART_PutString(" ");
CyDelay(500u);
}
CyDelay(3000u);
}
}
/* [] END OF FILE */
Show LessHi all,
We are facing one issue of hanging touch panel.
When capsense is not working, other ISR is working.
How can I detect a fault in cap sense ?
How to get an error code in this situation?
How to solve this issue ?
Show LessHi, I am starting out from scratch and I am trying to figure out what I need to get started.
I have been proposed the:
CY8CKIT-046 PSoC 4 L Series development board.
I don't really know how to get started with this? Where do I download the compiler software "Psoc Creator"??? Is there any simple examples like blink a led to get me started????
Also I am reading the "Infineon Lit Prog" user guide". On page 8 of the guide (please view image below), they show an image with what seems to be a PCB board plugged into a strange socket on a PC.
And yet they describe this as "Connect USB cable to J6 (Prototyping kits)"???? Why do they call it a cable when its a PCB???? and where is J6???
Thank you for all help
r
Hello,
I want to use the AN89056 Ram test in my project. I have copied all the required files from the AN89056_Ram test in my custom project. I have also compared the build settings of Project AN89056 Ram-test and make them equal but it is giving an error.
--undefined reference to MArch_Test_init
--undefined reference to MArch_Test_SRAM
this function is in "CyLib.h" and in assembly but the project does not find a reference. Could you please help me regarding????
Show Less
Should I use the api "CapSense_Stop()" before "CySysPmDeepSleep();" and after WDT wakeup use "CapSense_Start()"?
If I don't use these two api , CapSense_NOT_BUSY == CapSense_IsBusy() can't pass. When I use the api "CapSense_Start()" ,the current increase 200 ua.
Show LessHello, further to a question I asked (https://community.cypress.com/t5/PSoC-4-MCU/Reversing-proxmity-sensing/m-p/270896#M39101). After weeks of testing, I found that the CapSense values are very sensitive to the voltage of the power supply. At 3.8v the raw value could be 8000, while 3.7v could be 1000 and even lower when approaching 3.6v.
Since my system runs off a 3.8v battery as the power supply (connected to VDD of CY8C4245 directly). Is there any way to get a stable value from CapSense even the supply voltage drop a little? Like an internal regulator or something?
Thank you!
Show LessHello,
I am trying to use the psoc 4 mcu as a timer that switches a GPIO between high (20 minutes) and low (10 minutes) states. I want the mcu to be in deepsleep most of the time and just toggle the GPIO every 20 / 10 minutes.
How can I do this and is there some sample code to refer to?
Thanks
Show Less
老师您好,我使用MiniProg4仿真器调试Cy8c4247芯片,可以下载程序到芯片上,但鼠标点击DEBUG按钮待代码下载完成后就会出现错误“Debugger exited unexpectedly during run. Encountered error (Target disconnected See output window for more information.)”,请问是什么原因导致? 谢谢!
Show LessExpert II
Esteemed Contributor
Employee
Honored Contributor II
Employee
Employee
Honored Contributor II
Employee