Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds; generated 52 minute(s) ago.

  1. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    Henrik, I am using a rather old pic (18F2620), I still have a couple of hundreds of them. But timing apart your and mine are very similar in the setting of the TAD value and the acquisition time. ...
  2. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    No much to say, just keep your convintions if you are happy with them.

    Al.
  3. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    You cannot use the full function because it is foundamentally a logaritmic function. For the ADC convertion you need a linear function. Once time, resistence and capacity are fixed than the charging...
  4. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    From the charging function of a capacitor!

    Al.
  5. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    40 us is the value the author arbitrarely gives as acquisition time "sampleus parameter".

    Remember:

    A too high acquisition time will give issues when the analog input approch the V(ref+)

    A...
  6. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    The 11 TADs is the time taken by the MCU for the 10 bits convertion! Please do not confuse acquisition with convertion. The setting suggested is the time you will give to the sample & hold capacitor...
  7. Replies
    7
    Views
    4,199

    Re: ADC with independant GND and Vref

    It is a galvanic isolator. It is also a DC-DC converter but this is just semantic. You need primarely a galvanic isolation.

    Alain suggestion to use a voltage to frequency converter, is an...
  8. Replies
    7
    Views
    4,199

    Re: ADC with independant GND and Vref

    No! Something like the Texas component slyt211. But there are several others doing the same job.

    Cheers

    Al.
  9. Replies
    7
    Views
    4,199

    Re: ADC with independant GND and Vref

    Is doable using a galvanic isolator.

    Cheers

    Al.
  10. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    The sampleus parameter is the time given for the acquisition ( changing the sample & hold capacitor). This timing is critical since you must charge the capacitor no more than 1T..(up to 1T the...
  11. Replies
    29
    Views
    17,387

    Re: A/D Conversion Clock Select bits confussion ..

    32 MHz is a too high frequency to obtain a good ADC reading. The minimum TAD is 1.6 us and If you set fosc/64 you will get a TAD of 2 us and you are barely inside the correct timing. Since you will...
  12. Replies
    2
    Views
    2,486

    Re: How many AND / OR are accepted ?

    I think that the number of Logic are limited by the two line space!

    But you can do the and Logic with nested if/then like this:

    If a>B then
    If c>d then
    If e>F then
    .
    .
    If x>z then
  13. Replies
    4
    Views
    18,708

    Re: PIC 18F device suggestion.

    Why not using a frequency to voltage converter and than use an ADC channel to read the car RPM.

    Cheers

    Al.
  14. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    Thank you Tabsoft for the deep search!

    I think that this finding should call for an update of the manual (at least)

    Cheers

    Al.
  15. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    MyPin = Bell
    MyPin = !Mypin 'This will force the logical Not at the bit variable level
    Report = MyPin + 48


    Thank you Tabsoft for the above snippet. Tested and it works. I have already replaced...
  16. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    Dave, the tris register is set correctly and the pic18f2620 just do what it should do when the inputs change Logic state. I need to invert the Logic state of the display (it is much more simple to...
  17. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    Alain, the result of your example : Report = (~ Bell ) + 48 gives 46 when input is high and 47 when the input is low.

    Cheers

    Al.
  18. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    Bell var portB.6
    Report var byte
    main:
    Report = ~~(Bell + 48)
    debug report
    pause 500

    goto main
  19. Replies
    19
    Views
    36,145

    Re: Wierd result when inverting an input

    Thank you Dave for the suggestion, but no luck it doesn't work either. With "~" I get ascii 46 when portB.0 is false and the same ascii 47 when the portB.0 is True.

    Looking into the manual the...
  20. Replies
    19
    Views
    36,145

    Wierd result when inverting an input

    Bell var portB.0
    Report var byte

    (PortB.0 is pulled up)

    Report = !Bell + 48 or Report = (!Bell) + 48

    The value of variable Report = "0" (ascii 48) when portB.0 = True
    The value of variable...
  21. Replies
    32
    Views
    44,837

    Re: Version 3.0.8 released.

    Eureka! I found the text file with all the registration keys. It was burried into an archive of an old computer that is a couple of years that I don't use it anymore. I was planning to take it to the...
  22. Replies
    32
    Views
    44,837

    Re: Version 3.0.8 released.

    Since I have lost my registration number and can not find any trace of the purchasing documents (all I remember is that I purchased the gold edition on line via Melab site)

    Any suggestion on how...
  23. Replies
    10
    Views
    15,780

    Re: Disable/Enable DT interrupt

    Matthews I never used the Darrel I2C interrupt so I cannot help you. I did something with I2C few years ago, and I posted a working snippet in this thread...
  24. Replies
    10
    Views
    15,780

    Re: Disable/Enable DT interrupt

    You can tray at this link:

    http://www.picbasic.co.uk/forum/showthread.php?t=19638

    Cheers

    Al.
  25. Replies
    2
    Views
    7,009

    View Post

    Great! Longing to see your code.

    Cheers

    Al.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4