I assume that the fitter optimizes-out the unused (always zero) pin. Since no clock can toggle the input it will stay as during initialization.
Way out: Remove the hadware connection and set the initial drive mode to "strong" and "low".
Yes , if you have connected a Logic '0' to an output pin configured as 'Hardware Connection' should give a logic Level '0'.
Please check your pin configuration as below -
Refer the attached project.
Design02.cyprj.Archive01.zip 443.8 K
Could you double-check if there is any external pull-ups on the pin?
Which pin in which kit/chip/board were you using to test the case?
I tried with KIT-042, used P0_0.
Used logic '0' to connect the pin internally. The result of digital multimeter is 0V.
Used logic '1' to connect the pin internally. The result of digital multimeter is 5V.
It is possible that pin is fried. Set the initial state on startups to 0. If after programming it shows +5V, the pin's high-side FET is fried.
I checked my project and the pin configuration is perfectly same as your project except Pin position. I use P0_0 of CY8C4045AZI-S413.
Also I checked this on CY8CIT-145-40XX, PSoC4000S Prototyping it.
Thanks and regards,
I checked schematic again but there is no pull-up register. That pin is connected to LED through 820 ohm resister. I use CY8CIT-145-40XX and although I divided the sub board including slider touch sensor and checked P0_0 pin voltage, the P0_0 is always high, about 4.74v.
Thanks and regards,
1 of 1 people found this helpful
There are no macro cells in this device to allow this hardware connection. Creator should not have allowed. It throws error when I connect Logic 1. Creator can possibly optimize it by writing initialization code before calling main function. Initialization code for the pin in the function cyfitter_cfg() seems to be taking what is appearing in the pin customizer window and not based on what logic level, it is connected to. I have asked the software team to have a look into it.
Thanks for bringing it to our notice. As a workaround, please uncheck hardware connection in the pin customizer window and control the pin logic level in firmware.