PSoC™ 4 Forum Discussions
Hello,
i'm a newbie with PSOC Creator (i use PSOC Creator 3.3 with the PSOC 4 Pioneer Kit) and i made the first steps with the Lessons of PSOC Creator 101.
Now, im a little bit confused about the connections of the pins.
In the lesson there was a connection (picture 1) and in my experiment the connection of the pin disappears complete when i removed the hook "HW connection".
Can somebody explain me what's going wrong?
Show LessHi there,
i want to create a measurement system using the cy8ckit-044 Pionner Kit. Therefore i need to use the SAR ADC with multiple analog inputs. I want to use 12 different analog inputs but i always get the error message "unable to fin a solution for the analog routing". When using 10 Inputs it works perfectly fine. I have used the 8 SAR ADC Pins from Port 2 + 2 Pins from a different Port. From my experience it doesnt matter which Pins i use for the last 2 but when adding another Channel to the SAR ADC I get this error. Is there a way to fix this or can i only have 10 analog Inputs? In the datasheet of the SAR ADC it says i can have up to 16 Channels. I have attached to project.
Kind Regards,
Christian Fischer
Show LessHello I am trying to execute the following code:
int main()
{
/* Initialize ADC. Conversion is not enabled yet. */
//void ADC_Start();
CyGlobalIntEnable;
ADC_Start();
ADC_IRQ_Enable();
ADC_StartConvert();
/* Start ADC conversion. */
for(;;)
{
while(row_count<2u)
{
CySysFlashWriteRow(row_count,Buffer);
}
for(k=1u;k<2u;k++)
{
*readptr = CY_FLASH_BASE + (k*CY_FLASH_SIZEOF_ROW);
for(byte_count=0u;byte_count< CY_FLASH_SIZEOF_ROW;byte_count++)
{
read_data[byte_count] = (*(uint8 *)(readptr + byte_count));
//byte_count++;
}
// k++;
}
}
}
However, after writing and entering the for(k=1u;k<2u;k++) loop it enters into this while loop which I found from debugging:
#ifdef CY_BOOT_INT_DEFAULT_HANDLER_EXCEPTION_ENTRY_CALLBACK
CyBoot_IntDefaultHandler_Exception_EntryCallback();
#endif /* CY_BOOT_INT_DEFAULT_HANDLER_EXCEPTION_ENTRY_CALLBACK */
while(1)
{
}
Any ideas as to what the problem might be?
Show LessDear All,
Im trying to write and read Flash. But it looks only reading works.
I have
/* Flash constants */
#define FLASH_ROW_SIZE_BYTES CY_FLASH_SIZEOF_ROW
#define FLASH_ALIGNED __attribute__ ((aligned (FLASH_ROW_SIZE_BYTES)))
static const uint8 FLASH_ALIGNED flashRowDataFLASH[FLASH_ROW_SIZE_BYTES]= {2}
/* Flash data write constants */
#define FLASH_DATA_BASE_ADDRESS_BYTE (uint32) (&flashRowDataFLASH)
#define FLASH_DATA_BASE_ADDRESS_ROW FLASH_DATA_BASE_ADDRESS_BYTE / FLASH_ROW_SIZE_BYTES
Read as:
a = flashRowDataFLASH[0]; and get the value 2
For write:
uint8 eepromArray[CY_FLASH_SIZEOF_ROW];
eepromArray[0] = 5;
uint8 flashWriteResult;
flashWriteResult = CySysFlashWriteRow(FLASH_DATA_BASE_ADDRESS_ROW, eepromArray);
But after a power off-on and read the value 2 is read again not 5 as expected.
Could someone tell me please what Im doing wrong ?
Thanks
Zoltan
Show LessI crated a custom PCB to house CY8C4247LQI-BL483 chip with some custom components. The design around the chip is based on its datasheet (http://www.cypress.com/file/137466/download). The first board works without any problem. I can program it and see its advertising packets. However, on the second board, I can program it without any problem using the same program as in the first board but I cannot receive any advertising packets.
The problem may occur during soldering process. I used solder paste and heat gun method. Visual inspection sees no solder bridge or anything usual.
Is there any poor man's solution to check what went wrong? I do not have any expensive equipment to check other than a cheap digital volt meter and an old 15MHz oscilloscope. Is there a guideline to troubleshoot in this situation?
Thanks so much in advance. I really appreciate for your help.
Show LessHello,
I am new to cypress products, and i have the cyc8kit-042-ble. I'm an electronic student and i have been requested to make a system that have 4 MEMS microphones (3 digitals,1 analog) to record sound, store it to an sdcard (maybe 64gb), send it over bluetooth on user request.
(The stored files would be analysed later to count words but it is not my part.)
See first block diagram (look at picture).
1) Is this all system is possible on the kit i have ? how would it be complicated for a student like me ?
2) How to connect an sd card to the kit, is there any module/shield compatible ? i didn't find any component in the list (top design) neither some library. What kind of communication ?
3) What components for the top design would i have to use ? (mic = mems ? , buffers , mux ,etc)
4) Is there some code to cancel noise, and for wav format ?
Thank you.
Gabriel.
ps: sorry if there are some english mistakes, it is not my native language.
Hello,
I have problem with interrupt on SPI SCB module. I set External interrupt for TX and RX FIFO, but interrupt not triggered.
Other interruptions to run well.Only SPI SCB interrupt was not triggered.
You do not know what it could be?
Show LessThis seems extremely trivial but I'm trying to convert a float
to the char []
so I can print it out in UART. Here is how I'm trying to achieve this:
char buff[10];
float test = 2.32
sprintf(buff, "%f", test);
UART_UartPutString(buff);
However doing this nothing is printing out...The above is what i've seen on all the examples :,( why isn't this working for me.
Show LessHi everyone,
I'm using a CY8C4247LQI-BL483 and for our application the use of the bluetooth is not necessary, I'm wondering if I can remove from my design the two crystal 32Khz(WCO) and 24Mhz (ECO). If I'm right I will be able to choose ILO and IMO as define in the datasheet's schematic:
Show Less