Trace amounts of a residue, formed during patterning of the TiW film by etching in H 2 O 2 , cause a significant improvement in the long-term stability of polysilicon integrated circuit resistors. The stabilization is the result of a reduction in the amount of hydrogen reaching the grain boundary dangling bonds during processing. This appears to be due to a retardation in the diffusion of hydrogen caused by an ability of the TiW residue on the borophosphosilicate glass surface to change the relative amounts of atomic and molecular hydrogen. The amounts of hydrogen involved in the resistivity changes have been evaluated. Typically, for 500 nm thick 5 ϫ 10 14 cm Ϫ2 boron-implanted chemical vapor deposited polysilicon films with a grain size of 150 nm, the concentration of grain boundary traps was 3.8 ϫ 10 12 cm Ϫ2 . The amount of hydrogen passivating dangling bonds after hydrogen annealing and plasmaenhanced chemical vapor deposition nitride passivation was 5.9 ϫ 10 11 cm Ϫ2 . After a 1000 h electrical and thermal stress at 150ЊC saturated the resistance drift, the amount of hydrogen that left the dangling bonds was 4.5 ϫ 10 10 cm Ϫ2 . The presence of TiW residue reduced the amount of hydrogen reaching the dangling bond by 1.3 ϫ 10 11 cm Ϫ2 and that leaving after stressing by 1.8 ϫ 10 10 cm Ϫ2 .