Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Cyborg; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    12,464

    I will test the software on my development board...

    I will test the software on my development board and see if I get a sine wave of 50Hz or not. Maybe Proteus is not simulating the program at the right clock speed.

    Thanks
  2. There is no frequency in mind. I just want to...

    There is no frequency in mind. I just want to learn more about TMR0 interrupt and the generation of sine wave using PWM technique. The only thing I didnt mention in my first post is that once TMR0...
  3. Replies
    10
    Views
    12,464

    My ADC value is 200 (50 Hz) and my new table has...

    My ADC value is 200 (50 Hz) and my new table has 72 entries from 0 to 350 in steps of 5.
  4. Replies
    10
    Views
    12,464

    I get 37.5 Hz

    I get 37.5 Hz
  5. Replies
    10
    Views
    12,464

    Hi again, I changed my sine entries to 72...

    Hi again,

    I changed my sine entries to 72 samples from 0 to 350 in steps of 5. According to calculations above, TMR0 interrupt is generated every 141us (88*1.6us) so for 142 samples the frequency...
  6. To Generate Sine Wave Using PCPWM of PIC18F4331 (Issue)

    Hi everyone,
    I am trying to generate one sine wave using PCPWM of PIC18F4331. I have set the frequency of PWM to 20KHz (PTPER 249) and I am using 20MHz crystal. I have calculated the resolution...
  7. Replies
    10
    Views
    12,464

    All right. Thank you very much.

    All right. Thank you very much.
  8. Replies
    10
    Views
    12,464

    Timer0 Reload based on ADC result

    Hi,

    I have been trying to figure out how the following equation works, i.e.

    timer0 reload value = FFFFh - (Fosc/4)/ (2*(sine table entries - 1)(timer0 prescaler value/4)*frequency)

    This...
  9. Replies
    27
    Views
    52,673

    You are right. So for 10 bits, thats 2 LSBs of...

    You are right. So for 10 bits, thats 2 LSBs of PDCxH and 8 bits of PDCxL. Thanks.
  10. Replies
    27
    Views
    52,673

    Hi Bruce, you mentioned above that the...

    Hi Bruce,

    you mentioned above that the equation used to calculate the PWM resolution is

    log(20MHz/19.455kHz) 3.01
    Resolution = ------------------ = ----------- = 10 bits...
Results 1 to 10 of 10