Book by Derek Molloy would be great start
https://www.amazon.com/Exploring-Raspberry-Pi-Interfacing-Embedded/dp/1119188687