10 years, 10 months ago.

Register handling

I've come from Arduino background.Hence I am absolutely new to register handling, embedded C and all other stuff. I want do generate a sinusoidal pulse of variable frequency and variable voltage. this can be achieved by pwm (we all know this !). I even know what is to be done namely 1.Generate the carrier wave 2.Generate a look up table consisting of sine values for one cycle. 3.compare the two at every point of time and generate the 1 or 0 at the appropriate instant.

Now ,here come the questions 1. How can we generate the carrier signal by using registers? 2. How can we track these registers in the data sheet and actually implement them in the C program?

Be the first to answer this question.