Welcome in the forum.
Usually we do:
Use a digital input pin component with 2 pins. Set the pins to Digital input resistive pull up initially drive high and input double sync.
The switch has to connect the pin to gnd when active.
Read the pin using ~PinName_Read() & 0x03. This will result in the correct switch position 0 to 3.
Debouncing can be done in software by waiting a few ms using CyDelay() and re-read the pins until the result is stable.
Alternatively you may use a debouncer component.
In the Component Catalog, under System you will find a Clock component which you may set to your desired frequency.
When you get stuck, just 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.
I just finished to build the input signal circuit; thus, I want to check up how my two outputs are working.
Since my two outputs are time frequencies, I want to display a time diagram, which looks like a square wave form to use only PSoC creator.
Is it possible to display a time diagram of my two outputs in order to only use PSoC creator??
I attached my project.
You could try using the LCD with special characters for rising edge, high level falling edge and low level to display your signals. The LCD is comparably slow, update frequency should not be larger than 10Hz (100ms).
I am sorry that I could not understand how to display my two outputs by using LCD.
At first, I tried to connect one of output with Graphic LCD 16-bit parallel interface macro after removing a pin of "OUT_SUB"
Then, I clicked a button of "build design" then successfully finished.
Then, I thought that I could see my result of one of outputs frequency on some window screen. but I could not see anything.
Can you more explain about using LCD to show the time diagram of my two outputs results on my window screen??
1 of 1 people found this helpful
I see no chance to display your data on the windows screen. Use a logic analyzer.