PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
Is there any built in time functions?
I need a function that returns the number of microseconds since the PSoC5 began running the current program...
Thanks,
Michael H.
Show LessI want to transfer a file form PC to Psoc board using USB communication... can this be done.... can anyone help by providing code related to this.....
Two Applications Engineers at Cypress - Dave Van Ess and Robert Murphy will be talking about driving a brushless DC motors. I thought this video was pretty cool. May be you guys should check it out, http://www.cypress.com/?rID=61487
Show LessI have a very slow time period that I will be measuring using the timer component ranging from 900mS to 20mS. This time interval i will be multiplying by ten to give me 90mS to 2mS. I have to use this new time to drive a digital differential output (cross soupled gates). My question is how can I use this new time interval to drive my differential output.?
Show LessHello. Is SRAM memory deleted if software or watchdog reset occurs? I know that RAM memory is volatyle, and i am using PSoC5.
Here is the code i would use for testing if SRAM is deleted or not if reset occurs. I am wondering if it is ok.
#include <device.h>
void main()
{
unsigned char *P = (unsigned char*)0x20000000;
unsigned char cnt = 0;
if(*P != 0xAA)
{
*P = 0xAA;
Pin1_Write(1); //led1 is on if SRAM is erased
Pin2_Write(0);
}
else
{
Pin1_Write(0);
Pin2_Write(1); //led2 is on if SRAM is not erased
}
for(;;)
{
cnt++;
CyDelay(1000);
if(cnt == 16)
CY_SET_REG8(RESET_CR2, 1); //software reset
}
}
Show LessHello,
I've been reading the documentation, and it seems that the USBFS components can be used both as a UART emulator (USBUART component), or can be configured as a bootloader to place new binaries into the chip.
Can both configurations be used at once? E.G: Can I use the USBUART to commuincate via a virtual comport to a PC, while still using it as a bootloader when needed by the user?
thank you,
bk
Show LessDid you know that in addition to supporting 4 - 25 MHz crystals, PSoC 3 and 5's MHz ECOs also support ceramic resonators? Although they tend to have more frequency error, resonators are cheaper, come in smaller packages, start up faster, and are more mechanically robust than crystals. They also often have their load capacitors built-in to the resonator package. And, because they have no maximum drive level rating, they can be used without the need for an automatic gain control circuit.
To configure the PSoC 3 and 5 ECO for use with a ceramic resonator, simply use the PSoC Creator Design Wide Resources interface to configure the oscillator as you normally would, then add the following lines in your main.c initialization code:
/* Configure MHz XTAL */
/* Turn automatic gain control off (AGC not necessary for resonators */
CY_SET_REG8(CYREG_FASTCLK_XMHZ_CSR, 0x05);
/* Set the XTAL feedback and watchdog voltages to a reasonable value */
CY_SET_REG8(CYREG_FASTCLK_XMHZ_CFG1, 0x55)
Also, be sure to check out AN54439 - PSoC® 3 and PSoC 5 External Oscillator to learn more about using PSoC 3 and 5's powerful ECO circuit.
If I wanted to clock 8-bit parallel data into the PSoC5 and store it in RAM, what's the theoretical maximum rate I could do that?
Could I clock in bytes at 67MHz?
Many thanks
Hugo Elias
Show Less