read and download for free here http://edigibooks.xyz/?book=1608454983Read Introduction to Embedded Systems: Using ANSI C and the Arduino Development Environment