jean12
Advanced Member level 2
- Joined
- Aug 27, 2013
- Messages
- 529
- Helped
- 5
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 18
- Activity points
- 5,497
Hello there,I am trying to generate an SPWM signla which must be used for controlling an H-bridge but I am not succeeding;I used Tahmid blogs but I am not getting the point on calculation of the following values:
SET_FREQ=
PR2=
TBL_POINTER_SHIFT = TBL_POINTER_NEW >> 13;
Wan you please help me to think about that issue?
I am using a quartz of 12MHZ and want to generate a signal at 10KHZ what I am getting is PR2=74 with a prescaler of 4, SET_FREQ=683 with the shifting of 13bits,consider the attachment the proteus simulation circuit is in the same folder with the codes;please help.
Thank you!!
SET_FREQ=
PR2=
TBL_POINTER_SHIFT = TBL_POINTER_NEW >> 13;
Wan you please help me to think about that issue?
I am using a quartz of 12MHZ and want to generate a signal at 10KHZ what I am getting is PR2=74 with a prescaler of 4, SET_FREQ=683 with the shifting of 13bits,consider the attachment the proteus simulation circuit is in the same folder with the codes;please help.
Thank you!!