the official syntax is to use a port but pin is accepted too.
the problem is when you enable rs232 (using $baud, print etc) the tx and rx pins are enabled for rs232.
so when you do not need RX you need to disable it in the uart control register : UCSR0B.7=0 'register name depends on the chip
most chips have an alias named UCR so use : UCR.7=0 to deactivate TX : UCR.6=0
↧