AUBURN HILLS, Mich. -- Brandon Knight converted a layup with 7.8 seconds left to lead the Detroit Pistons to a 91-90 victory over the Toronto Raptors on Friday night.

Greg Monroe had 19 points and 11 rebounds for the Pistons, who won their second straight at home. Knight and Tayshaun Prince each had 16 points.

Andrea Bargnani scored a season-best 34 points and Kyle Lowry added 19 for the Raptors, who have dropped three in a row.

The Pistons led 47-43 at halftime and increased their advantage to as many as 13 points after a 16-5 run early in the third quarter.

Kyle Lowry scored eight points during a 10-0 spurt that helped the Raptors close to 72-68 by the end of the period, and Toronto moved in front in the fourth by scoring eight consecutive points during one stretch.

Detroit made just two of its first 14 field-goal tries in the final period but never fell behind by more than five. It trailed 90-87 with less than a minute left but Prince made a hook shot to cut the deficit to a point and set the stage for Knight's big play.

Notes: Toronto C Jonas Valanciunas appeared to turn his left ankle midway through the third quarter but returned a few minutes later. ... Members of Divine Providence Lithuanian Catholic parish in suburban Southfield reserved two sections of seats and turned out in the colours of the nation's flag to root on countrymen Valanciunas and Linas Kleiza of the Raptors.