Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    3,883

    Symbolic bit references for SFR's

    I want to write:


    IF PIR1.TMR1IF = 1 THEN ; Remember that TMR1IF bit is in PIR1 SFR
    T1CON = 0 ; Stop timer
    PIR1.TMR1IF = 0
    GOSUB DoSomethingUseful
    ENDIF
  2. Replies
    3
    Views
    4,375

    Address vs Value

    Hello,

    I think the following code is not doing what you expect.

    Timerset = $292B ' 22 ms with prescale of 1:2 dec 10541
    The above line looks like it is setting the value of a variable.
    ...
  3. Thread: me again

    by khaynes
    Replies
    5
    Views
    3,644

    Timers

    Hi,
    I think you are using the same frequency, but more than that you have to use exactly the same timer.

    'DEFINE HPWM1_TIMER 1
    'DEFINE HPWM2_TIMER 2

    I think that you should use:
    'DEFINE...
  4. Thread: me again

    by khaynes
    Replies
    5
    Views
    3,644

    PWM on 2 channels

    Hi,
    The two PWM channels on the 16F877 share the same timer, which is timer 2. The two PWM channels must have the same period. They can have different duty cycles. You can check the data sheet...
  5. Replies
    2
    Views
    2,762

    Watch Dog Timer timeout ?

    If you have the watchdog timer enabled, the processor will reset and go back to main.
  6. Replies
    48
    Views
    27,903

    Hello, I looked at your code and had a couple...

    Hello,

    I looked at your code and had a couple of questions you might look into. They are marked with <--
    Hope this is helpfull.

    Keith

    if c <= 7 then begin
    if password [0] <> "1" then...
  7. Replies
    0
    Views
    2,856

    How to refer to PIR1 bits ?

    Hello,

    My code has the following line:

    TMR1IF_BIT VAR PIR1.0

    I use it to check for Timer 1 overflow. I am compiling for the 16F877 PIC.
    For this PIC, TMR1IF is PIR1.0, If I move this code...
Results 1 to 7 of 7