PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
i have a link here that is an example of UART.
http://www.cypress.com/?docID=35078
what is the VR pin of j5? to it we are connecting the p0.1 analog input pin. why? Is it directly connected to the UART?
Show LessHi,
I am using CY8C24894 to develop a serial port comminication with IC. The communication require PSoC to send a 7 bit data only to IC. I implement it using SPIM UM, but i got a problem with the SPIM to send a 7 bits data to my IC.
My method is to use SPIM to send 1 byte data, and AND the SPIM sclk 8 pulse signals with a counter which has a duty cyle of 7/8, in the way 1 pulse will be masked and only the rest 7 sclk pulse can be sent out.
my problem is how can I make sure the counter can mask exactly the 1st pulse of sclk or the last pulse of sclk, in order to pass the desired 7 data bits? I have attached the diagram to illustrate the desired situations.
I have try the following method to solve it, but none of them works so far:
1) programming in main.c to start counter and send data by SPIM.
"while( ! (SPIM_bReadStatus() & SPIM_SPIM_TX_BUFFER_EMPTY ) );
Counter_Start();
SPIM_SendTxData(databyte);"
The starting time of counter is not constant, thus position of the masked sclk pulse is random every time.
2) use SPIM ISR to start counter. the SPIM interrupt mode is TXRegEmpty. the counter starting time is constant now, but it will delay a few cycle of sclk. Thus the first 4 sclk pulses will all be masked as showed in attached file.
Right now i am stucked here, could anyone give me some suggestion on sending only 7 bits data by SPIM?
Thanks,
CC
Show LessGood evening,
I don't understand how to supply my PsoC at 5.5 V. When I program the component i use the USB cable , that allows also to provide power to the Psoc; the problem is that the USB provides about 4V of supply, so I see this voltage in the pins VDDA,VDDD ecc... I question, there is a method to supply the PsoC with 5.5V ?
Show LessHi everyone,
I use a L6234 three phase driver motor with my PSOC. To control my motor I need to get 3 PWM which are dephased 120° as you can see on the picture attached.
What is the best solution?
Thank you
Alexis
Show LessHi,
I installed PSoC Desinger 5.4 on my laptop and on my desktop computer.
on my laptop everything seems to work fine, when i write LCD_ the software let me choose: LCD_Start(), LCD_Position()..
but on my desktop I get LCD_CheckBusy(), LCD_CLEAR(), LCD_PrintChar(), LCD_SendCommand()....
I used the same installer on both computers and I can't find a way to fix it,
so I came here for help 🙂
thanks in advance and sorry for the grammar mistakes 🙂
tomer
Show LessHi everyone,
I use a L6234 three phase driver motor with my PSOC. To control my motor I need to get 3 PWM which are dephased 120° as you can see on the picture attached.
What is the best solution?
Thank you
Alexis
Show LessGood evening, everyone,
Can someone tell me please, is the USB protocol for the various USB programmers (miniprog3, FX2LP, etc.) documented anywhere? i.e. is there a document I can use to develop my own PSoC Programmer-compatible programmers?
AN73054 describes and provides the source code to an PSoC5LP HSSP programmer for PSoC3 and PSoC5LP target devices, but this application note is not for a USB based programmer based on the PSoC5LP; it does not appear that the code provided in this application note can be used to create a programmer which is able to be used by PSoC Programmer to program PSoC3 and PSoC5LP devices.
Show LessHello,
I am using two UARTs in my system.One UART is for transmission and one UART is reception in duplex mode.
Here is a part of my Program
for(;;)
{
/* Place your application code here. */
//Wait for command
recv_byte=0;
UART_1_WriteTxData(0x0d);UART_1_WriteTxData(0x0a);
UART_1_PutString("Company Name.......");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("auoto Zero => Z");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("Measure => M");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);
UART_1_PutString("Setup => S");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display oN => N");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display oFf => F");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
UART_1_PutString("display Test=> T");
CyDelay(20);UART_1_WriteTxData(0x0d);CyDelay(20);UART_1_WriteTxData(0x0a);CyDelay(20);
CyDelay(20);
.
.
.
.
.
so on.............and I am displaying all these datas through serial port in Hyperterminal in a PC
the problem that now I am facing is,there is only one or two lines is displaying or transmitting.After that the execution of the program is in a Pause state.
Can anyone please tell what is the reason for this problem ?
Show LessHey PSOC Community!
I have started writing a driver for my first Async Flash Memory Chip, it features 2 8-bit busses, one for control signals and the other for IO.
I have not had any trouble thus far with the control signals, but I have been having some problems with using the bi-directional IO. Namely, I really am not sure how I should configure the IO port. I am not having any problems writing out over it, but when I should be expecting input from the flash chip from it's ID register, I'm getting nothing.
There seem to be a few options as far an configuring the port under the general settings, digital in/out, or I could choose bi-directional. The drive mode is the part that is giving me the most problems, there are quite a few options and I don't really know how to pick the correct one. I have tried experimenting quite a bit trying to find the right one, but at this point I feel like it would be best to really understand what is going on.
I have read through the application notes and data sheets regarding the GPIO, I think what is stumbling me now, is that I am having a hard time figuring out from the data sheet how the flash chip is supposed to be driving the PSOC's pins when the flash chip is in output mode.
Also, as an added note, I am providing my own voltage for Vddi0, the chip has a supply of 1.8v which I am also giving to Vddio, which is serving as the supply for ports 4 and 0. I am assuming that it will consider 1.8v as the max logic level on these two ports and not 3.3v in this configuration.
I really appreciate any guidance or help that you guys can provide, I have learned quite a bit from here so far!
Show LessHello I want to save data into a SD CARD but I notice that psoc 1 does not have a UM to implement SD, I read that is posible to use SPI to communicate with SD CARD but I don´t know the comand or how make the code to save data into SD CARD, I only can use PSoC 1,Can someone Help me?
Show Less