-
1. Re: PSoC 5LP Reading Pins
user_242978793 Nov 16, 2016 4:53 PM (in response to avethoplays_2007616)Here is a PDF on how to use pins . It is written for the PSOC 4 but applies to your device as well. Also don't forget to check the schematic for your kit to insure that there is not a capacitor or other device on your chosen pins that may interfere with the design.
-
2. Re: PSoC 5LP Reading Pins
user_242978793 Nov 16, 2016 5:00 PM (in response to avethoplays_2007616)You can do it all in hardware with out any code. Check out this example. I am running PSOC 4.0
-
3. Re: PSoC 5LP Reading Pins
avethoplays_2007616 Nov 17, 2016 5:34 PM (in response to user_242978793)My goal is to do it in code so I can learn C though. I want to be able to make an LCD have a menu that I can go through with buttons for a signal generator, but for now, the LED is all, the basics.
Edit: Sorry if I sounded harsh, but I was a bit peeved after trying at the LCD with example code. Thanks for the input :)
-
4. Re: PSoC 5LP Reading Pins
user_1377889 Nov 17, 2016 10:30 AM (in response to avethoplays_2007616)Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.Bob
-
5. Re: PSoC 5LP Reading Pins
avethoplays_2007616 Nov 17, 2016 12:10 PM (in response to avethoplays_2007616)Here you go Bob, by request, the Workspace Bundle.
-
6. Re: PSoC 5LP Reading Pins
avethoplays_2007616 Nov 17, 2016 3:54 PM (in response to avethoplays_2007616)You guys may be glad to know I got the LCD working, I had the first two pins on the port, pins 4 and 5 on the 44780 display swapped. But the problem with pin reading still stands ;(
-
7. Re: PSoC 5LP Reading Pins
user_1377889 Nov 18, 2016 12:55 AM (in response to avethoplays_2007616)Yoy may use Pin_2_Read() which is independent from changing the underlying real pin. When the pin is connected to a switch that connects the pin to GND (which is the usual/preferred case) the pin should be configured as resistive pull up, initial drive high.
Bob
-
8. Re: PSoC 5LP Reading Pins
avethoplays_2007616 Nov 19, 2016 8:48 AM (in response to user_1377889)Thanks so much Bob! :D
I was in Toronto all yesterday so I couldn't reach the web. Now I got to decide what to make my PSoC do :)