In a food processor, finely chop the almonds and pistachios. Set aside in a bowl. Chop the walnuts separately because they are softer and change rapidly into an oily paste if they are over processed. Transfer to the bowl with the almonds and pistachios. Add the sugar and cinnamon. Stir to combine. Set aside.