Skip to content
yagram edited this page Mar 6, 2023 · 4 revisions

PSoC creator

I have a problem with my version of PSoC creator / I cannot find the kit in the list / The kit is not recognized by my computer.

Check that you have correctly followed the steps in the lab statement. Check that you have installed all softwares : PSoC creator, PSoC programmer. Also check that your project is not inside a sudo folder.


Keypad

I added the files keypad.h and keypad.c in the header and sources files but PSoC creator does not recognize them.

Before includin them in PSoc creator, you need to copy the files in the correct location in your computer. That is the folder of your project i.e.where your main.c is located. It's usually something like Document/PSoC creator/project_names/project_names.cysdn. and after that you can do Header -> add -> existing item and Source -> add -> existing item in PSoC creator.


LCD

I get weird symbols of when writing to the LCD. The LCD screen works alone fine. I was able to write something to it. It is when trying to send keypad inputs to the LCD screen that things get weird.

The function keypadScan() returns a char (ASCII character), you are probably trying to display the hexadecimal equivalent of the number represented has a char. Check the link towards ASCII table provided in the hint statement of the lab.

My text is not fully shown on the LCD screen, when i write “Hello World” it only write “Hello Wo”.

The LCD screen is divided in 2 parts, that are seen in the code as 2 “lines”, if you are writing more than 8 characters to the screen, you should change the position in the LCD before writing the second half of the characters (char 8 to 15 of your string). Use LCD_Position for this.


ADC

I cannot put more than one ADC in my project, it says: “Resource limit: Maximum number of Delta-Sigma ADC exceeded (max=1,needed=2)”.

This is an hardware limitation, there is no way to instantiate more than one ADC in this kit. You have to understand that everything in the TopDesign.cysch is not purely software, it also depends on the hardware capabilities of the kit. That being said, if you need to connect multiple analog sources, you can use a multiplexer (Analog Mux) to be able to connect multiple inputs in one ADC.

My potentiometer is stuck at a value and they suddenly changes when I turn it more than half-way / I getting weird values from my ADC.

You probably have one or two of those problems:

  • your ADC is not properly configured: Check the Input Range of your ADC, and check that it is set to Vssa to Vdda so that you use the full range of value computable by the ADC;
  • you are using ADC_GetResult16(), instead of ADC_GetResult32() as stated in the datasheet when the ADC is configured with 16 bits precision.