Point guard Brandon Jennings scored 28 points to lead Detroit (2-4). Center Andre Drummond (16 points, 16 rebounds) and power forward Greg Monroe (19 points, eight rebounds) also had big games for the Pistons.
Williams sank a pair of free throws with one second left in the third quarter to take PORTLAND into the final period ahead 83-78. Forward Dorell Wright and Lillard buried back-to-back treys to extend the margin to 89-80 with 10:27 to play. Another Wright 3-pointer made it 98-88 with 6:50 remaining.
When Lopez dunked off a nice feed from Batum for a 104-92 advantage with 4:29 to play, the Pistons were in big trouble. They battled back, though, drawing to within 107-103 on a Jennings drive with 1:30 to go.
Neither team scored again until Lillard sank a pair at the line with 12.8 seconds remaining to ice the win.
Williams came off the bench to shoot 7-for-7 and score 15 points, helping PORTLAND to a 55-52 halftime lead. Lillard chipped in 14 points, sinking 4 of 4 from 3-point range, while Aldridge had 10 points and five rebounds in the half. The Blazers shot .548 from the field and .571 (8-for-14) on 3-point tries.
Detroit had four players in double figures by the half -- Monroe, forward Josh Smith and guard Rodney Stuckey with 11 points and Jennings with 10. Monroe added eight rebounds and Drummond contributed six points and seven boards for the Pistons by the break.
PORTLAND jumped to an 11-2 lead in the game's first three minutes. Detroit stormed back to seize a 21-20 lead but the Blazers settled in, taking a 34-30 advantage into the second quarter. The teams battled through a tight second period, the Blazers maintaining a small lead most of the way to intermission.
NOTES: Detroit F Greg Monroe drew the assignment of defending PORTLAND F LaMarcus Aldridge, who scored 20 or more points in each of the first six games this season, the first Trail Blazer to do that since Clyde Drexler in 1988-89. ... For the first time this season, the Pistons had the services of 6-foot-11 F Charlie Villaneuva, who missed the first five games due to a shoulder injury. ... PORTLAND G Damian Lillard was coming off the second-worst shooting performance of his career, a 1-for-15 showing in Saturday's 96-85 win over the Kings at Sacramento. ... Detroit coach Maurice Cheeks was PORTLAND's coach from 2001-05. "I always enjoy coming back," he said. "It's a good place. It's not the Rose Garden anymore (it's the Moda Center), but it's always nice to come back and see folks you haven't seen for a while."