Celtic travel to Ross County, while Rangers host Queen of the South in the last 16 of the Premier Sports Cup.
Dundee United will travel to Livingston and Hearts take on Kilmarnock in all-Scottish Premiership ties, while Championship favourites Dundee are at home to Falkirk.
The draw was made following Aberdeen’s 3-0 victory against Raith Rovers on Sunday. They are away at Annan Athletic in the next round.
Elsewhere, Motherwell host Inverness Caledonian Thistle and Partick Thistle are at home to Arbroath.
The full last-16 draw
Rangers v Queen of the South
Papers: Man Utd will only loan Ronaldo | Griezmann sale to facilitate move?
Verstappen wins French GP from Hamilton after Leclerc crashes out
‘Unacceptable mistake!’ – Leclerc takes blame for disastrous crash
Tuchel questions Chelsea ‘commitment’ in Arsenal hammering
Man Utd transfer rumours: Maguire turns down potential move to Barcelona
Arsenal transfer rumours: Edu hints at more Gunners signings
History-maker Sherrock wins inaugural Women’s World Matchplay
Hamilton hails ‘incredible’ best result of 2022 | Merc ‘on right path’
Reporter notebook: Arsenal look strong, but angry Tuchel shows Chelsea task
Partick Thistle v Arbroath
Motherwell v Inverness Caledonian Thistle
Livingston v Dundee United
Dundee v Falkirk
Annan Athletic v Aberdeen
Hearts v Kilmarnock
Ross County v Celtic
The first round of games take place on the weekend of August 30-31.
