U1 consists of 6 Schmitt trigger inverters (only 2 are used here, the inputs of the others would need to be grounded). When IN goes high, U1a output goes low and C1 discharges, so U1b output goes high. When IN goes low, U1a output goes high but can't recharge C1 because of D1. C1 then recharges...