The output of porta,4 is open collector, so you will have to use an external pull-up resistor to put it working!