PSoC™ 5, 3 & 1 Forum Discussions
Dear All,
I am having problem with a resistive touch and the EmWin Library. I am using CY8CKIT050 kit and a GLCD bought to Mikroelectronika, called PSOC TFT Expansion Board, which is a color display 320x240px Touchpanel. This module use ILI9441 driver. Please find attached the documentation of this GLCD.
I have installed the EmWin library and able to build and program all the sample codes coming with the library except the two samples regarding touch panel (TOUCH_Calibrate.c and TOUCH_Sample.c). Even I am able to run these two programs in the emWIN Simulator downloaded from Segger.
I have tested the display with the code supported by Mikroelectonika so the dsplay and the hardware setup ( pins assigments) works perfect so I think is not a hardware problem.
I am using PSOC Creator 4.0.
I leave my project so you can have a look. Any comment would be appreciated.
Thanks in advance,
Joaquin.
Show LessI have been using PSoC5 for a series of scientific instruments, and I have noticed something strange- when I assign my I2C pins to ports0[0]-0[7], they don't work. I have them pulled up. Strangely, when I move them to pins 2.3 and 2.4 with absolutely no other changes in the code, the communication works properly. I noticed something similar with SPI as well. Creator doesn't seem to indicate that I shouldn't be using those pins for communications. Can anyone tell me why this is happening. It doesn't seem to be happening with a PSOC4M.
Thanks!
Show LessHi,every body!
I am new here.This is my first question.
I want to search some topic about CY8CKIT-033A PSoC 3 MFi Lightning Digital Audio Development Kit.
When I enter MFi or other keywords to the search box, and tap the Enter, then I got nothing.
Show LessHi
I am trying to build a simple SPI module with verilog. I simply created a verilog module for this. I designed a block with clock input, clock output and data output.
My verilog codes are as follows.
`include "cypress.v"
module ParalelToSerial (
output CLKOUT,
output DOUT,
input CLKIN
);
//`#start body` -- edit after this line, do not edit this line
reg clk_count;
reg dout;
reg clkout;
reg [7:0] status;
reg [7:0] control_reg_out;
cy_psoc3_control #(.cy_init_value (8'b00000000), .cy_force_order(`TRUE)) //Default mode
MyTxReg(.control(control_reg_out));
cy_psoc3_control #(.cy_init_value (8'b00000000), .cy_force_order(`TRUE)) //Default mode
MyStatus(.control(status));
always @ (posedge CLKIN)
beginif(status==1'b1)
begin
clkout = 0;
dout=control_reg_out[clk_count];
clkout = 1;
clk_count = clk_count + 1;
if(clk_count == 😎
begin
status = 0;
clk_count=0;
end
end
else
begin
clk_count=0;
dout=0;
clkout=0;
end
end
assign DOUT = dout;
assign CLKOUT = clkout;
//`#end` -- edit above this line, do not edit this line
endmodule
//`#start footer` -- edit after this line, do not edit this line
//`#end` -- edit above this line, do not edit this lin
This codes not working. I must be making a mistake.
In main.c I send data to verilog with CY_SET_REG8 command.
exactly as below
CY_SET_REG8(ParalelToSerial_1_MyTxReg__CONTROL_REG,0x81);
CY_SET_REG8(ParalelToSerial_1_MyStatus__CONTROL_REG,0x01);
What I would like to do is, if the status variable is 0x01, I want to send the 8 bit data in My TxReg as serial. It is very important for me to do this if I can do this I will increase the number of channels.
How can I solve this problem? Where do I make mistakes
Show LessHi All,
I would like to control GPIO pins on CY8CKIT-042 which used CY8C5868LTI-LP039 as its controller.
I used C# software and SWD protocal could program PSOC4.
Is there any dll or library that I could use my software to control GPIO(P5LP3_6/P5LP3_7)?
Many thanks for your help.
Ben
Show Lesshi,
i want to implement two task on same pin like 8 pin which are use for a,b,c,d,e,f,g,dp of seven segment and also use for digital input of 8 pushbutton.
how can i implement it in psoc-1???
Show LessHi,
I am now designing a product base on CY8CKIT-033A platform.
The example project "Music Creation" have the function of VOLUME CONTROL.
I use an APP named iRig Recorder in iPhone for recording, it support input gain control of the microphone build-in iPhone. When I plug CY8CKIT-033A to iPhone with the Lightning interface,the app iRig Recorder hid the input gain control block and didn't support gain control any more.(See the attachments.)
My question is, How to make CY8CKIT-033A support input gain control?
Thanks!
sd.
Show LessHi,
Currently, on a PSoC5LP, it takes about 10ms to write a row of FLASH. This means that my 1kHz control loop has to pause while this happens.
When I write to EEPROM, this process is interrupt driven, and so my control loop can keep going, while the write happens in the background.
Is there a similar interrupt driven FLASH write library? This would be very helpful.
Thanks - Hugo
Show LessHi, I'm new here.
I'm trying to establish I2C communication between my PSOC 5LP (as master) and one attiny85 (as slave) that is sending one float. I programmed attiny with arduino (library TinyWireS.h) and I want to know if it is possible to read the value via PSOC.
Master code:
#include <project.h>
#define SLAVE_ADDR 0x26
union v{
float val;
char8 data[5];
} temp;
volatile uint8 status;
uint8 i;
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
LCD_Start();
LCD_Position(0,1);
LCD_PrintString("Temp: ");
I2C_1_Start();
status = I2C_1_MasterSendStart(SLAVE_ADDR, I2C_1_READ_XFER_MODE);
if (status == I2C_1_MSTR_NO_ERROR){
CyDelay(1);
for (i=0; i<5; i++){
if(i < 4) {
temp.data = I2C_1_MasterReadByte(I2C_1_ACK_DATA);
}
else temp.data = I2C_1_MasterReadByte(I2C_1_NAK_DATA);
}
LCD_Position(1,1);
LCD_PrintNumber(temp.val);
}
I2C_1_MasterSendStop();
I2C_1_MasterClearReadBuf();
}
slave code:
#include <TinyWireS.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define SLAVE_ADDR 0x26
#define ONE_WIRE_BUS 4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup()
{
sensors.begin();
TinyWireS.begin(SLAVE_ADDR);
TinyWireS.onRequest(requestEvent);
}
union v{
float val;
unsigned char data[4];
} t1, t2;
void loop()
{
}
void requestEvent()
{
//sensors.requestTemperatures();
t1.val = 123.45;
TinyWireS.send (t1.data[reg_position]);
}
Hi,
I tried using I2C master in a new project using cy8cplc20 microcontroller but unable to generate clock.I am attaching my code and designer project.
Regards
shafi
Show Less