adding control for rst and pwdn pins