PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I'm testing a SSD1963 with GraphicLCDIntf and this works, but you can see the screen building up. If i test this on an ATMega32 it's looks much faster while this is done via bitbanging. Now i also tried to do this on the PSoC5LP but can get the old fasion bitbanging running. Ofcourse i can fix this by using double buffering, but i'm curious how the hell a 8bit AVR at 11Mhz is much faster then a ARM-M3 at 24Mhz and we even use UDB!
Cheers,
Alexander
Show LessHello
I'm trying to debug my project and I would just like to know if there is anyway I can detect the interrupt service that creates a response on the I2C_slave component when a master sends a read/write. According to the API in the datasheet I can't seem to find any function that would give me that kind of information.
Thank you!
Show LessHello all ,
I am trying to interface LMK03806 chip with psoc5lp ,
This chip works with special case of SPI called uWire the only difffrence is that
the ss line goes high at the end of the transmission according to the attached diagram ,
further more this chip works with 32bit data length (max psoc spi is 16bit length) ,
i have created and attached my project ,
when i measure with scope the sclk pin going out from the spi psoc component i see something
very wierd ,
at the start of the TX sclk pin start to toggle (6 mhz clk) and Never stops.
i can even write Spi_compenent_stop() and it stills toggles ,
any one has any idea how to solve this issue ??
Show Less
Hello,
I am currently working with four PSoC 5LP (CY8C5888LTI-LP097) and with a 4x20 LCD (NHD-0420D3Z). I am using the I2C (multi-master) and the I2C_LCD components in PSoC Creator 4.2 to make them communicate between each other.
I am relatively new to I2C but I managed to make the LCD switch between the different PSoC but here is my actual question:
- How can I make the PSoCs send data to the LCD all at the same time (each PSoC has a designated line of the LCD) ?
I wanted the code to be the same for every PSoC, that's why I am currently using multi-master mode, but it's becoming evident that it will not be possible. I think the answer is having a master (buffer) and 3 slaves but I don't know how to handle it using multiple PSoC and the I2C_LCD component.
I would be very grateful for some guidance,
thank you !!
Show LessHi
I have an accelerometer generating interrupts on a processor pin on a regular base. I use an SPI interface to communicate between a PSoC3 and the accelero. The routine to read the data from the accelero, using the function adxl362_ReadXYZ(), works fine under main(). But when the same function is placed in the interrupt vector, it just generates zero a output. When verifying the behaviour of the accelerometer output data with an ascilloscoop (on Miso, Mosi, SCLK and CS lines) , no differences in the signals can ben detected. Why is the configured SPI component behaving this way? Any ideas? (by the way there are no other SPI devices are on the SPI bus)
My code looks like:
CY_ISR(adxl_int)
{
static uint8 _mark = 0;
ADXL_Sync_ClearInterrupt();
ADC_DelSig_1_StartConvert();
adxl362_ReadXYZ(); // comment this line when reading the data from main()
_adxl_data_ready = 1;
}
void adxl362_ReadXYZ(void)
{
char msg[64];
uint8 ch;
int16 value;
L2C hl;
ADXL_ena_Write(0); // Assert CS
mySPI_ClearRxBuffer();
/* Send "Byte Write to Memory " instruction */
mySPI_WriteTxData(ADXL362_CMD_READ);
mySPI_WaitTxDone();
mySPI_WriteTxData(ADXL362_REG_XDATA_L);
mySPI_WaitTxDone();
// Erase all data in the Rx buffer
mySPI_ClearRxBuffer();
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
hl.c[1] = mySPI_ReadRxData();
hl.c[0] = mySPI_ReadRxData();
// axis = hl.i[0] & 0xC000;
value = ((int16)(hl.i[0] << 4)) >> 4;
// sprintf(msg,"\n[%d] x:%d ", _fifo_count, value);
// sendMsg(DEBUG, msg);
_fifo[0][_fifo_count] = value;
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
hl.c[1] = mySPI_ReadRxData();
hl.c[0] = mySPI_ReadRxData();
// axis = hl.i[0] & 0xC000;
value = ((int16)(hl.i[0] << 4)) >> 4;
// sprintf(msg,"y:%d ", value);
// sendMsg(DEBUG, msg);
_fifo[1][_fifo_count] = value;
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
mySPI_WriteTxData(0); // Dummy write
mySPI_WaitTxDone();
hl.c[1] = mySPI_ReadRxData();
hl.c[0] = mySPI_ReadRxData();
// axis = hl.i[0] & 0xC000;
value = ((int16)(hl.i[0] << 4)) >> 4;
// sprintf(msg,"z:%d ", value);
// sendMsg(DEBUG, msg);
_fifo[2][_fifo_count] = value;
ADXL_ena_Write(1);
_fifo_count++;
if (_fifo_count >= MAX_FIFO_SIZE + FIFO_HEADROOM)
_fifo_count = MAX_FIFO_SIZE + FIFO_HEADROOM -1;
}
Show Lesshello
i am using psoc 5 lp and GLCD ssd1963 its datasheet is as per https://www.buydisplay.com/download/manual/ER-TFTM050-5_Datasheet.pdf , https://www.buydisplay.com/download/ic/SSD1963.pdf
i have downloaded emwin library and follow the instruction as per http://www.cypress.com/file/131161/download
i got error "RTOS.h:no such file or directory"when i built the code
which file i have to add in build settings for that?
any suggestions?
Show LessI want to change the UART clock source (i.e. VC2, VC3, Row_0_Broadcast, etc.) in source code. Where can I find out how to do this in the documentation or better yet, how can I do this? Thanks.
Ron
Dear All,
I’m developing a PLC system based on CY8CPLC10.
I bought a couple of evaluation boards to make them communicating and everything seems to be ok.
Now I’m designing my own board for my application, following the information that I found in the Zip file “CY3273 Board Design Files (Schematic, Layout, Gerber, BOM)” download from Cypress web site.
My application is slightly different from the standard one: I use PLC on battery cables with voltages that may vary from 15Vdc to 150Vdc depending on the type of battery is installed on (anyway I tested the application with the evaluation boards and it works).
Unfortunately I have not a lot of area where to put the circuits and I need to reduce the size of critical components as much as possible. So, finally, my questions are:
- Can I substitute the 1:1 transformer with a smaller one? In the Zip file you proposed for T1 the component “Precision Components 0505-0821G”. Could you propose a smaller one or tell me the minimum requirements for this component?
- Can I substitute C9 “Panasonic ECQ-U3A154MG” with a smaller one, considering that I don’t need to connect the application to a 230Vac line but to a 150Vdc line? Is it mandatory to use a polypropylene capacitor or can I use other technologies, like ceramic or polyester or other?
I look forward to your kind reply.
Alberto.
PS: I'm not sure I'm posting the question in the proper area, but I wasn't able to find a specifica area for PLC. In case, please let me know for future questions.
Show LessI'm using an I2C Master component (tried both fixed and UDB) when I2C_1_GENERATE_START_MANUAL is executed, the SCL line goes low and stays there (i.e. there is no clock). This happens for fixed and UDB.
Execution goes through all of the functions and returns with the clock line stuck at 0,
Any ideas?
Tnx.
Jim B.
Show Less