use pull-up for port write