Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Re: How to do bitwise shift across several variables/array members?

    here you will find what you need http://www.picbasic.co.uk/forum/showthread.php?t=544&highlight=Bits%2C+Bytes+Words+and+Arrays
  2. Replies
    18
    Views
    9,404

    Re: VS1838B remote

    Once upon a time , there was a brilliant and very helpfull gentleman named Bruce Reynold.
    He posted some Infra Red routines for PIC's in PICBASIC at his site Rentron.com which now is lost.
    The...
  3. Replies
    6
    Views
    41,978

    Re: 3 digit 7-Seg serial Display

    I think you forget to put minutes in the minutes LED although you do remember it for the rest digits .So try this..
    ........
    ........
    poke PortC,%10000000 ' DP on first LED
    Poke PortC,B0 ' Send...
  4. Re: Working out hours and minutes from a word variable

    Hi
    My mistake
    the line lightsetHR1=lightsetHR1/60 ' you get the integer part your example =14
    should be lightsetHR1=CH1_on_time/60 ' you get the integer part your example =14
    then it...
  5. Re: Working out hours and minutes from a word variable

    Hi Scampy
    Perhaps

    CH1_on_Time = (lightsetHR1*60)+lightsetMN1

    lightsetHR1=lightsetHR1/60 ' you get the integer part your example =14
    lightsetMN1=CH1_on_Time - lightsetHR1 ' what remains is...
  6. Replies
    3
    Views
    3,091

    Joe S your suggestion will be given a trial...

    Joe S your suggestion will be given a trial because it started annoying me also having only capitals but sometimes habits are difficult to change.
    The reason for reinventing the wheel ,as you put...
  7. Replies
    3
    Views
    3,091

    Debounce routine comments?

    I needed to have some short of debouncing of an input in order to accept it in my program.
    In my program I am looking if the input has a High(+5V) or Low(0V).
    The input is driven by the contacts of...
  8. Replies
    27
    Views
    57,147

    Ingvar Thanks for the clever suggestion.Did you...

    Ingvar
    Thanks for the clever suggestion.Did you use it and with what results/observations?
    I suppose that a 2,5V stable voltage ref is the obvious need BUT maybe a volage divider would be better...
  9. Replies
    98
    Views
    52,137

    Perhaps Portb.1 is damaged(from 9V??? through the...

    Perhaps Portb.1 is damaged(from 9V??? through the servo???) if only LED2 works as expected.
    Test by replacing LED1 with LED2 and vice versa in your program.
    Or try to move LED1 to another pin e.g....
  10. Replies
    27
    Views
    57,147

    Ingvar I did test what you suggested and it was...

    Ingvar I did test what you suggested and it was RIGHT.
    In other words it does exactly the same as FP routines do and at lesser code space cost.
    Ofcourse it doesnt solve my problem but it can be...
  11. Replies
    98
    Views
    52,137

    Maybe this can work better in case it is only...

    Maybe this can work better in case it is only code problem
    Loop:
    If IRLED1 =1 then
    for a=1 to 100 'allow several pulses for the servo to reach the requested position
    Pulsout 0,140...
  12. Replies
    27
    Views
    57,147

    Ingvar I think you are absolutely RIGHT and I...

    Ingvar I think you are absolutely RIGHT and I will test it as soon as I can.
    Since the ** multiplication places the result in the upper 16 bits it is I believe the same with divide by 65536 as you...
  13. Replies
    27
    Views
    57,147

    Melanie you are right that I already use this...

    Melanie you are right that I already use this "fake 16 bit" method which in turn made me use the FP routines in order to have math results.The reason is that although I display 2 decimals I calculate...
  14. Replies
    27
    Views
    57,147

    Dear All I replaced my own routine for ADC...

    Dear All
    I replaced my own routine for ADC readings with Melanie's just to see if there would be any difference in displayed voltages.
    I found out that there was always an increase in steps of...
  15. Replies
    27
    Views
    57,147

    Thank you for responding I will try to describe...

    Thank you for responding
    I will try to describe the problem I face better in order to justify why I think that something like the stable ADC mentioned in my first post might solve it.
    A 12f675 chip...
  16. Replies
    27
    Views
    57,147

    Stable Adc Reading Routine

    Dear friends

    Recently I came across an AVR application note about an intelligent charger
    design based on their controller line.
    There was a so called STABLE ADC READING FUNCTION
    (not...
  17. Replies
    16
    Views
    9,500

    Epic Problem With 16f628 SOLVED

    Dear Anand Dhuru
    I did what you suggested and it worked .
    Thank you for your suggestion.
    I believe MicroEnginnering should quote on this as it can be a problem with many others.
    Note that I did...
  18. Replies
    16
    Views
    9,500

    Epic Problem With 16f628

    I have the same problem also.
    I will try to define it better.
    I use PICBASICPRO(2.46) to compile a program that programs (EPIC2.46beta) and runs OK on a PIC 16F84 or16F84A .

    The same...
Results 1 to 18 of 18