Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,100

    2Mhz oscillator not allowed?

    Like the subject says, does PBP3 not allow for 2Mhz oscillator speeds? I found one post from 2006 claiming this. I have a 16F722A set for 2Mhz but trying to compile anything gives this error ...
  2. Replies
    21
    Views
    17,353

    Re: SMBus, SBS, I2CWrite, I2CRead

    The PIC will be a power supervisor in this application and we're going with two of these battery packs http://www.cell-con.com/pdf/D90494_DataSheet_BP.pdf.

    What voltage does the SMBus use? If its...
  3. Replies
    21
    Views
    17,353

    Re: SMBus, SBS, I2CWrite, I2CRead

    dsicon, sorry for replying to an old thread but I just wanted to get a bit of clarification. The bit of code you posted works as is when the clock runs at 2Mhz? I'm starting a project that involves...
  4. Replies
    3
    Views
    16,626

    Re: Pulse capture on 12F1822

    Louie, thanks for looking it over but I have to admit the mistake of operator error on my part :eek: I was using the sync output on the signal generator instead of the real output. Here is the...
  5. Replies
    3
    Views
    16,626

    Pulse capture on 12F1822

    Hello all, I'm having a bit of a problem using the CCP hardware to measure a pulse length on a 12F1822. I know where the program stalls but I can't figure out why. I debugged the program by lighting...
  6. Replies
    7
    Views
    5,508

    Re: Bug in my timekeeping code

    Forgive my ignorance but I can not see why during the timekeep loop that the minutes increment to 01 if they are set to 00 from the previous loop :confused:


    timekeep:
    ss = ss + 1 ...
  7. Replies
    7
    Views
    5,508

    Re: Bug in my timekeeping code

    Dave, nice looking clock as well. The boards came from a place called OSH Park. They run batches of boards so the average time is about two weeks but the quality and price is great. Purple boards...
  8. Replies
    7
    Views
    5,508

    Re: Bug in my timekeeping code

    Now it makes more sense. Change


    if mm = 60 then mm = 1

    to


    if mm = 60 then mm = 0
  9. Replies
    7
    Views
    5,508

    Bug in my timekeeping code

    Well my numitron clock project is nearly complete. My problem is in the code to set the initial time. It didn't allow for the minutes to be set at 00. I fixed that by moving the "mm = mm + 1" line to...
  10. Replies
    2
    Views
    2,469

    Re: Counter and interrupt theory

    Thank you for clearing up my confusion :) I'm actually preloading a counter now to keep time based on the power line frequency. My test setup has been running for 6 days now. Checking it against...
  11. Replies
    2
    Views
    2,469

    Counter and interrupt theory

    Just want to verify my thinking is correct about the following scenario.

    Say I use a 32.768Khz oscillator as a timebase and feed it into an 8 bit counter with a 256 prescaler. That means it should...
  12. Replies
    7
    Views
    6,240

    Re: 60Hz timebase clock

    Ok so apparently my math skills may be a bit rusty :o Doing some initial testing the timekeeping part seemed to be losing a few seconds pretty quickly. TMR0 should be 196!
  13. Replies
    7
    Views
    6,240

    Re: 60Hz timebase clock

    Amoque: Using the 60Hz power for a source will give me more accuracy than an RTC chip and be cheaper. I actually built a large clock based on the link you posted. It worked great but requires long...
  14. Replies
    7
    Views
    6,240

    Re: 60Hz timebase clock

    I don't have to measure the accuracy of my timebase, just count 60 pulses to give one second ticks. The power company makes small frequency adjustments over a 24 hour time so it always averages to...
  15. Replies
    7
    Views
    6,240

    60Hz timebase clock

    Hello all, I am in the planning stages for a simple clock that uses numitron tubes for the display. That part is pretty much worked out. I decided against using a realtime clock chip as they do need...
  16. Re: Compile problems with simple RF remote control example

    Many thanks mackrackit, it compiled cleanly after fixing that typo. Can't believe no one else has tried that sample code.
  17. Compile problems with simple RF remote control example

    Hello all, its been a while since I've done any coding and I have a project where this simple RF remote control code would work perfectly. For right now I'm trying to compile the code as-is for the...
  18. Replies
    3
    Views
    3,021

    Ok we finally got the code working. This picture...

    Ok we finally got the code working. This picture explains it much better. The yellow trace is a 1.5Khz square wave. The purple and green traces are the resulting outputs.



    @ __CONFIG _INTOSCIO...
  19. Replies
    3
    Views
    3,021

    splitting output from a counter

    Hello all, I'm trying to figure out a way to have a 12F683 take a variable frequency square wave in and generate a pulse train out from two pins. The input would never go above 3Khz and the output...
  20. Replies
    25
    Views
    20,878

    This may help you a bit. I've been playing with...

    This may help you a bit. I've been playing with the 12F683.


    @ __CONFIG _INTOSCIO & _FCMEN_OFF & _IESO_OFF & _BOD_OFF & _BOD_OFF & _CP_OFF & _MCLRE_ON & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF
    ...
  21. Replies
    9
    Views
    6,149

    Maybe try C:\...

    Maybe try C:\...
  22. Replies
    2
    Views
    3,351

    All is working as it should. Many thanks. ...

    All is working as it should. Many thanks.


    Adam
  23. Replies
    2
    Views
    3,351

    18F2620 tmr0 and interrupts

    I'm having a bit of trouble converting the EZCLOCK1 code to a 18F2620.

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


    OPTION_REG=%00000111 'weak pullups on, TMRO prescale = 256...
  24. Replies
    2
    Views
    5,603

    An ugly way that would probably work are two long...

    An ugly way that would probably work are two long select case commands for HH and MM. If HH = 1 then... if HH = 2 then... etc etc. Maybe have one go from 00 to 59 and the other in reverse order to...
  25. Replies
    2
    Views
    5,603

    Digital clock project

    I'm in the process of building a large digital clock using VFD matrix tubes found on ebay. Here is an example of 5 tubes making up one digit:

    http://www.youtube.com/watch?v=ACQd9gfyBRE

    This...
Results 1 to 25 of 41
Page 1 of 2 1 2