Uganda's government spokesman accused the United States on Tuesday of trying to subvert last week's presidential elections after the US ambassador attempted to visit an opposition leader being held under house arrest.