Hi EEV'ers.
So I have been programming some different 8bit PICs for a while now, and since the datasheet tells you most of what you need to know, setting the different registers is pretty straight forward.
What has been bothering me, is that setting the individual bits isn't always common sense.
Example:
PWMxCON first bit is EN. To just enable to PWM module, you simply write to the first bit by typing PWMxEN. This is pretty simple.
Now the problem occurs when other registers aren't as logical in their approach.
Currently I'm sitting with the PWM reload register, PWMxLDCON, where I only need to write to the first LDA bit, but can't seem to find any short way of writing to this. PWMxLDA, LDAx, PWMxLDLDA so on, nothing seems to work.
I know, I know, I can just write to the entire register, but just wanted to know if there was any simple way of knowing what the individual bits are refered to as?