PSoC™ 5, 3 & 1 Forum Discussions
hi,
I would like to make a header file that invokes a UART and sets up Printf(). I have the printf working (I think), but I could not find how to invoke and set up a UART in C Code. maybe I'm googling the wrong things. if you guys can point me in the right direction, that would be great
Thanks
Show Lesshey,
I wanted to use printf() in my project, so I looked up how to make it work. I included stdio.h, increased the heap size to 0x200, and added the following to the beginning of my code:
int _write(int file, char *ptr, int len)
{
int i;
file = file;
for (i = 0; i < len; i++)
{
UART_PutChar(*ptr++);
}
return len;
}
this makes it so I can use printf, but when I printed printf("uart test") it output "uart tes", missing the last character. I tried printing twice; "test1" and "test2" and the first string came out correctly ("test1") but the second printf was missing the last character again, giving "test". I can sprintf after with no issues, just the last printf() loses the last character
what is going on there? what do I need to adjust?
I'm using the CY8CKIT-059 and a FTDI cable (which has been working fine)
Show LessHow Can i Generate 7Mhz Clock Frequncy to the timer or pwm in a psoc 5LP?
i Was taking the direct clock to the output pin but in a oscilloscope the output are not perfect or good ?
How Can i resolve this problem?
Show LessI would like to use counter in PSOC5 with clock frequency of 80MHz in order to measure event accuratlly.
At the same time I would like to operate the CPU (and all the other peripherials) with 10 or 20MHz clock in order to save power.
Is it possible?
thanks
Show LessWe are trying to readout the fabrication year of the PSoC from the FLSHID_CUST_TABLES_FAB_YR register. As explained on page 1724 the year is found in the upper 4 bits of the register and contains values from 0 to 9.
What is the significance of those numbers? How do we get the actual year in which the PSoC was produced?
Best regards,
David
Show LessUnderstand when using a Bootloadable component we cannot do debug (tabs grayed out). Simple fix is disable component.
Is there a way to include a boolean operator in the Built-In>Settings>Disable tab to do this on build settings? Such as if we are in Debug mode disable the bootloadable, and in Release mode enable? Just worried when we go to deploy we will forget to include the bootloader. Thanks - CB
Show LessIf you use RTOS (toppers asp), USB-UART configuration will not be finished.
Specifically,
while (! USBUART - 1 _ GetConfiguration ());
does not satisfy the termination condition
Has anyone implemented CDC with USB-UART with toppers asp?
asp_cy8ckit050_gcc_20140204.zip(SJIS版)
https://www.toppers.jp/asp-e-download.html
Show LessCypress is little bit confusing. Like other microcontrollers here I dont find easy selector tool for choosing micro controller. I need to design universal temprature logger i.e thermocouple and rtds as well as current loops 0-20ma , 0-4ma.
How to start with cypress? I am finding difficulty here
Show LessIn Datasheet it says,
Four programmable analog blocks, to create:
• Programmable gain amplifier (PGA)
• Transimpedance amplifier (TIA)
• Mixer
• Sample and hold circuit
Does it mean, all components can be used for one instance in a design? Or can 4 Numbers of same component (example Mixers) be used in a single design?
Show Less