Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    5,284

    Re: ADXL345 Accelerometer using I2C

    Thanks for everyone's input.
    The main issue was Louie's point, the ADXL345 is a QFN part and I had a bad solder joint.
    From the ADXL345 data sheet, the read/write addresses are given as $A6 and...
  2. Replies
    4
    Views
    5,284

    ADXL345 Accelerometer using I2C

    Hi,
    I am currently very unsuccessful at communicating via I2C to an ADXL345 Accelerometer. The code and circuit appear to both very simple, but the response I get back makes no sense. Here are...
  3. Thread: How to post Code

    by Terry
    Replies
    3
    Views
    6,138

    How to post Code

    Quick question, how do I post code within the window on the forum, I have looked on the the site, but I can't find it, I am sure it is very simple to do.

    Thanks,
    Terry
  4. Replies
    772
    Views
    601,915

    Many Thanks Darrel, For your help now and for a...

    Many Thanks Darrel,
    For your help now and for a GREAT easy to use approach for interrupts using PBP.
    Terry
  5. Replies
    772
    Views
    601,915

    Darrel, In my PBP code the only assembly routine...

    Darrel,
    In my PBP code the only assembly routine would be your code for the interrupt and I have no branch routines. My interrupt routine is in PBP, not assembly, but if is was, could this then be a...
  6. Replies
    772
    Views
    601,915

    Darrel, Quick question, off topic from the most...

    Darrel,
    Quick question, off topic from the most recent posts. I am using a PIC16F876A part with the DT_INTS-14.bas and using a timer0 interrupt, everything works wonderful, many many thanks! but...
  7. Replies
    22
    Views
    15,317

    Don, I have been experimenting with both the...

    Don,
    I have been experimenting with both the prescaler (divide by 16) and skipping it. When I use an Agilent frequency generator for testing, the count only jitters by 1 count with either approach,...
  8. Replies
    22
    Views
    15,317

    Bruce, You nailed the problem with the...

    Bruce,
    You nailed the problem with the prescaler, set it and don't change it half ways through. A simple code change and it all now works great! My next step is to try your 2nd code example using...
  9. Replies
    22
    Views
    15,317

    Bruce, Thanks for the info on the 18F2431, I...

    Bruce,
    Thanks for the info on the 18F2431, I just order some today, I like the idea of having less code. My application is where I have a device that puts out two frequencies, and I need to know...
  10. Replies
    22
    Views
    15,317

    Bruce, Thanks for the link, I just found it a...

    Bruce,
    Thanks for the link, I just found it a shortly before you posted your message, I also found a few more of your posts with code for using the capture mode with Timer1, once I realized I needed...
  11. Replies
    22
    Views
    15,317

    skimask your last description is exactly what I...

    skimask your last description is exactly what I am trying to do. My code essentially does just that over a 200 cycle period but not very gracefully as written, the start and stop of Timer1 I don't...
  12. Replies
    22
    Views
    15,317

    Thanks for the suggestions, but at the moment I...

    Thanks for the suggestions, but at the moment I think I am getting quite a bit more resolution since essentially my time increment is 1/5MHz or 200nsec and then this is applied over a longer period...
  13. Replies
    22
    Views
    15,317

    Accurate Freq Measurment

    I am using a PIC to make a very accurate (sub hertz) frequency measurement of a 4 kHz signal in as little time as possible, about ~ 100msec. I am using TIMER1 to measure the period of 400 cycles of...
  14. Replies
    18
    Views
    48,698

    Paul, In one of you earlier posts on this...

    Paul,
    In one of you earlier posts on this thread, you mention that you use a 20ppm crystal, can you share your source for this crystal. All the crystals I have found have a 50ppm tolerance at 25 deg...
  15. Replies
    8
    Views
    6,243

    Wow Bruce!!! What a great explanation, can this...

    Wow Bruce!!!
    What a great explanation, can this same phenomenon also happen on other ports, or is this just more unique to port A, being the typical Analog A/D port where the input capacitances are...
  16. Replies
    8
    Views
    6,243

    Dave, I appreciate the help, I usually spend...

    Dave,
    I appreciate the help, I usually spend more time reading the PIC data sheets that I do writing the actual code, there always seems to be gotcha's if the registers are not set right.
    Terry
  17. Replies
    8
    Views
    6,243

    Thanks for the feedback. I added the line CMCON...

    Thanks for the feedback.
    I added the line
    CMCON = %00000111 to make port A digital rather than a comparator input, this made no difference. the default state according to the data sheet at POR is...
  18. Replies
    8
    Views
    6,243

    Strange PortA behavior on 18F PIC

    I have a strange problem when setting a pin high on a PIC18F2525 on the A port. Below is the code simplified to almost nothing, but demonstrates the problem. PortA.3 will not go high to 5v, it stays...
  19. Replies
    4
    Views
    2,772

    Steve, I really like using PICMuiltiCalc it is a...

    Steve,
    I really like using PICMuiltiCalc it is a real time saver from having to grab the data sheet to look things up, I routinely use it for the A/D settings and the UART, very useful piece of...
  20. Replies
    8
    Views
    4,237

    Thanks for the ideas, it seems like PBP really...

    Thanks for the ideas, it seems like PBP really needs some string capability where then the "case" statement could be used which I think would then be a natural for this type of application.
    Terry
  21. Replies
    8
    Views
    4,237

    Is there a better way...

    I have a device that is completely controlled via RS-232. The commands to make the PIC do something, like read ADC, change levels of output pins, read SPI devices, etc. is all controlled by 3 letter...
  22. Replies
    18
    Views
    48,698

    Paul, Clever code, if the crystal oscillator is...

    Paul,
    Clever code, if the crystal oscillator is running at 20 MHz instead of 4 MHz, how would the code be modified, thanks.
    Terry
  23. Thread: External UART IC

    by Terry
    Replies
    4
    Views
    6,422

    Minimum 2 bytes, since that is what I am use to...

    Minimum 2 bytes, since that is what I am use to with the PIC hardware UART, more is always better.
    Terry
  24. Thread: External UART IC

    by Terry
    Replies
    4
    Views
    6,422

    External UART IC

    I have a project where I need two UARTs operating simultaneously, so I need hardware UARTS with buffers. Since almost all the PIC chips only have one hardware UART I would like to add an external...
Results 1 to 24 of 24