Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,945

    Code for WWVB time base

    I'm looking to add wireless time setting/correction to my clocks using the WWVB time signal generated from Ft. Collins, CO without having to reinvent the wheel. Amplitude-modulated protocol is here:...
  2. Re: 16F688 wake with comparators and internal Vref

    Found it. Neglected to set PIE1.C2IE to enable.
  3. 16F688 wake with comparators and internal Vref

    I have a piezo disc w 1Meg in parallel to RC0 of 16F866. Working fine to detect vibration when configured as analog, using ADCIN.
    Now I want to wake the PIC from sleep when vibration is detected,...
  4. Replies
    6
    Views
    3,916

    Re: Wake on piezo vibration detection A/D?

    Lowest comparator voltage seems to be 0.2v, which may work. Fixed Vref is 0.6v. Thanks for the suggestions.
    George - definitely should be able to detect that. You may need to glue the disk to the...
  5. Replies
    6
    Views
    3,916

    Wake on piezo vibration detection A/D?

    I'm using a piezo disc with 1Meg resistor in parallel to detect vibration, using an analog channel on 16F690. (And planning migration to 8pin PIC, eg. 16F683.)

    A/D works great to detect the very...
  6. Replies
    10
    Views
    12,539

    Alain, Interesting idea. Do you mean using...

    Alain,

    Interesting idea. Do you mean using another pin to sink the filtered output after reaching the maximum voltage? I'll have to try that to see how it sharpens the drop.

    Timmers,

    Because...
  7. Replies
    10
    Views
    12,539

    Generate sawtooth wave with PIC -- software solution.

    Great suggestions by some of the most knowledgable contributors to the list.

    I elected to go with a simple software approach using PWM, without lookup tables. Most of the code is to provide DT's...
  8. Replies
    10
    Views
    12,539

    Generate sawtooth with PIC?

    I'd like to generate a sawtooth wave, 0 to +1.5v at several hundred Hz up to 1 kHz on a 16F690 or similar, to generate a time base for CRT.

    Suggestions for an efficient way to do this on a PIC?
    ...
  9. Replies
    40
    Views
    26,746

    For one thing, I would take the SEROUT out of...

    For one thing, I would take the SEROUT out of your loop: SEROUT takes a fair amount of time, and you will lose any IR pulses after the first while servicing the SEROUT.Save pulses to an array as you...
  10. Replies
    40
    Views
    26,746

    Confused: That code is specific to the...

    Confused:

    That code is specific to the 18F2431, with features not found in the 16F683.

    Take a look at the code here http://www.rentron.com/PicBasic/IR_Chips.htm by the same author for a better...
  11. Replies
    39
    Views
    49,035

    Anybody else working with capacitive sensing? Any...

    Anybody else working with capacitive sensing? Any updates?
  12. Replies
    2
    Views
    3,503

    Yup, that works fine. But: T1CON.0=0 ........

    Yup, that works fine.

    But:

    T1CON.0=0
    .....
    Your serial routines here
    ......
    T1CON.0=1
  13. Replies
    2
    Views
    3,503

    Temporarily disable MIBAM

    What's the best way to temporarily disable MIBAM? I need to allow SEROUT to a serial LCD, then re-enable. I'll tolerate the flicker, unless there's another option...
  14. Replies
    2
    Views
    2,695

    conditional defines in PBP

    Try this:

    DEFINE foobar 1
    .
    .
    .
    @ ifdef foobar
    put stuff here
    @ else
    other stuff
  15. Replies
    14
    Views
    11,744

    file path?

    I vaguely recall the same problem as a result of file paths that were too long. Try moving the target to another folder, or to c:
  16. capture IR remote

    I've had some luck using the capture function of the CCP module.

    Set up an interrupt (or just poll the CCP1 flag) and alternate between setting CCP1CON=$04 and CCP1CON=$05 to capture TMR1 to...
  17. I would make sure the unused input pins are tied...

    I would make sure the unused input pins are tied high or low.
  18. Replies
    18
    Views
    48,511

    Never mind; now I see you're dividing by $10.

    Never mind; now I see you're dividing by $10.
  19. Replies
    18
    Views
    48,511

    Shouldn't it HzTimer be initialized to $7A120...

    Shouldn't it HzTimer be initialized to $7A120 (dec500000), rather than to $7A12 (dec31250)? And incremented by the same $7A120 for 1/2 second.
  20. Replies
    150
    Views
    222,526

    Ioannis: You might want to remap the LED's...

    Ioannis:

    You might want to remap the LED's brightness curve to compensate for the non-linearity in perceived brightness.

    This are the values I use


    data @$0,...
  21. If the MCLR pin is brought low a reset will...

    If the MCLR pin is brought low a reset will occur, waking the PIC from sleep and starting your code from the beginning. No interrupts needed, although you code may want to distinguish between an...
  22. Replies
    150
    Views
    222,526

    I played with a very simple form of BAM a while...

    I played with a very simple form of BAM a while back, with at least 24 LEDs on a 20MHz 16F877A. This is the main loop:


    BAM: 'each pass is one cycle, equiv to one PWM...
Results 1 to 22 of 22