Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

Anonymous
Not applicable

Hi All,

   

I am a newbie for this system. I have questions about digital GPIO write and read.

   

1. When I tried to copy code examples to  my new project, it shows CY8C5888 and  S6E1C3 not compatible and couldn't change to new chip

   

2. I tried to use port_name+write or port_name+read, but when I build the system it shows that "LCD_CS_write" is undefined.

   

   LCD_CS is a gpio port name, while LCD_CS_write is a output command.

   

 

   

   I hope to know how to define a GPIO output macro or function associated to a special PORT or BIT.

   

I use CY8CKIT-059 Prototyping Kits

   

 

   

Thank you in advance.

   

Jim

0 Likes
1 Solution
Anonymous
Not applicable

Yes, LCD_CS_Write is correct.

   

Thanks

   

Jim

View solution in original post

0 Likes
7 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Please post your code so we can check it.  Click on file and then Create workspace bundle.  Then attach the file created to a new comment by clicking add attachments.

0 Likes
Anonymous
Not applicable

Thanks very much for your response.  Please review attached main program code. It is not finished.

   

Thanks again and Best regards

   

Jim

0 Likes
Anonymous
Not applicable

I listed associated pins below

   

Pin name and connections:

   

LCD_CLK ------->P2.5  LCD clock.

   

 LCD_CS---------->P2.3  LCD chip selection

   

LCD_SEL---------->P2.4 LCD instruction and data selection

   

LCD_SI------------->P2.6  LCD data

   

Pin0_0--------------->P0.0 :   waveDAC 1 outtput

   

Pin0_1--------------->P0.1 :   waveDAC 2 output

   

Pin3_6--------------->P3.6 :   waveDAC 3 output

   

 

   

Thanks again.

   

Jim

0 Likes
Anonymous
Not applicable

Jim, may I suggest you read again bobgoar post ?.  

   

Tony

0 Likes
Anonymous
Not applicable

Hi Tony,

   

Thanks very much. Sorry, I solved problem.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

How did you solve your Problem? Using  "LCD_CS_Write" instead of "LCD_CS_write" ??

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Yes, LCD_CS_Write is correct.

   

Thanks

   

Jim

0 Likes