used another pin with 490hz instead of port 6 with 980hz. Fixed bug with reading commands.