Hi,
If you did an internet search you found a lot of informations.
In my eyes it makes not much sense to repeat all this information here in this thread.
--> look for reliable and detailed descriptions, tutorials, documents, videos....
Most reliable are from semiconductor manufacturers and universities.
Don´t rely on brief descriptions from random hobbyists. (They may be good or may not be good)
For sure the "reliable" ones come with a lot of stuff you may never heared before... but that´s learning. Go through them and soon you will understand the details.
After that you are welcome here to ask more detailed questions.
* Give (links to) documents you refer to
* show us your sketch - even hand drawn
* show us your idea
* show us your code
* tell us what you expect and what is not like expected. (scope pictures...)
Klaus