After I post this question here ,I retry my setup and it start functioning,I had not change anything,the unsuccessful attempt maybe due to the ripple from my power supply,I had added two filter capacitor to the setup,the earlier setup may have cause the mcu keep restarting itself.
Bookmarks