modify library

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 hi good morning hope you are well ...

   

I found this library for use with a pic microcontroller and want to use for psoc but I have not had much luck someone could guide me how you could do better encuanto.

   

thank you very much for your help.

0 Likes
7 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

What are you trying to do, interface a specific LCD to PSOC ? If so

   

what is LCD part number.

   

 

   

The library you have could be ported to PSOC, but not without some effort.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 what I could not do well is the part of defining the pin is the first thing that is in the file header podrrias guide me on that.

   

and if it is to handle a GLCD.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

You mean you are trying to assign pins from PIC for LCD to

   

GLCD component in PSOC ? If so post schematic of PIC design

   

and we should be able to translate to PSOC pin assignments and

   

help you.

   

 

   

LCD datasheet as well or a link to it.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 I want to do is to implement this library that is made for pic 32 in psoc but I've had poblemas to output data to pin any of the psoc. my question is:

   

as I assign the data to a pin with code in c?

   

thank you for your help.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This ap note shows how to do I/O in C to pins.

   

 

   

    

   

         

   

http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

   

 

   

Also in Creator documents, system reference, there is a section on GPIO.

   

 

   

 

   

Regards, Dana.

0 Likes
WaMa_286156
Level 5
Level 5
First comment on blog 100 replies posted 50 replies posted

  If you put a pin on your schematic, you can right click on it, and select "datasheet"

   

  It gives you the C routines to write to it.  CyPins_SetPin(Pin_Calibrating_0); to set a pin named Pin_Calibrating, and CyPins_ClearPin(Pin_Calibrating_0); for clearing.

   

   I like to put down a Control Register to do this, and connect the pins to it. It provides the ability to group the pins together in a Byte, making it easier to read and write several pins at one time.

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

Here is the data sheet.  for the device http://www.crystalfontz.com/controllers/ST7920.pdf. I would talk to this with SPI it would be the easiest way.

0 Likes