Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    4,502

    Re: sending data - numbers between PICs

    Thanks for your tips.

    I think the problem may have been in the computer terminal program. I tried a different baud rate - 2400 - and it all worked. I went back to the original 1200 baud and it...
  2. Replies
    3
    Views
    4,502

    sending data - numbers between PICs

    I must not be thinking about this right. I need to send an "R", either a "2" or "4", and then a 4 digit decimal number from one PIC to another using hserin and hserouthserin and serout2. Ideally I...
  3. Replies
    6
    Views
    12,658

    Re: How to communicate with MLX90614 IR sensor

    I said in my previous post there is probably a more elegant way to write this code. I used a combination of shiftin and shiftout along with some bit setting and reduced the number of lines of code...
  4. Replies
    6
    Views
    12,658

    Re: How to communicate with MLX90614 IR sensor

    For my previous post I suggest replacing all the "pauseus 15" with:

    call wate

    And then add the subroutine;
    wate:
    pauseus 15
    return

    This should use less compiled code than having to...
  5. Replies
    6
    Views
    12,658

    Re: How to communicate with MLX90614 IR sensor

    After way too much time I got code that works with the MLX90614 temperature sensor. It may not be the most elegant but given the timing required by the SMBus this works.

    I wish this sensor would...
  6. shiftin with \bits - What order do they come?

    I need to shiftin 16 bits of data from an A/D. I think the command should be:
    shiftin datapin, clkpin, mode, [data\16]

    I need the data to be read MSB first. Some code examples show using MSBPRE...
  7. Replies
    0
    Views
    3,789

    DHT11 humidity sensor

    Below is code that will work to communicate with a DHT11 humidity sensor. The code is only for the humidity integer value. I don't measure the temperature or checksum, but this can easily be...
  8. Replies
    14
    Views
    14,435

    Re: Dht11 - 16f877a

    Below is code that will work to communicate with a DHT11 humidity sensor. The code is only for the humidity integer value. I don't measure the temperature or checksum, but this can easily be done...
  9. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    While driving home it finally dawned on me that this might be the problem, from the data sheet:

    "Fail-Safe Clock Monitor (FSCM) designed to detect a failure of the external clock source and switch...
  10. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    Thanks for everyone's suggestions. In the end nothing works. It might very well be that the configuration setting s are correct but unless OSCCON selects the external crystal as its source it...
  11. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    I don't have any "device.reference" subdirectory associated with pbp3. Maybe I need to uninstall and reinstall the software.

    When I read the device after programming it doesn't list the config...
  12. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    Thanks for your reply.

    1. Changing to portb =128 doesn't have an impact on anything.

    2. I don't seem to have the file "Device Reference". I'm running version 5.0.0.5 compiler version...
  13. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    Thanks for this. I'm using pbp3 so I copied and pasted and it compiled. The program still doesn't seem to time correctly tho, which I describe below.
    -- How did you know this was the correct...
  14. Replies
    26
    Views
    17,473

    Re: how to use external crystal?

    I've tried

    #config
    __config1 _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _WRT_OFF
    #endconfig

    at the top the basic...
  15. Replies
    26
    Views
    17,473

    how to use external crystal?

    I am trying to use a 20 MHz crystal with a PIC16F886. When I select the external HS crystal in various ways it does not work rather the PIC runs at 4 MHZ, even tho the define is for OSC 20. This is...
  16. Replies
    6
    Views
    12,658

    How to communicate with MLX90614 IR sensor

    The MLX90614 IR sensor communicates using SMBus which requires the Start bit be repeated without a stop bit in between. I saw one posting that looked like PBP that showed the I2CREAD as as working...
  17. Replies
    3
    Views
    6,193

    identifying text commands

    I need to have my microcontroller act upon different commands sent. For example if "GC" is sent it turns on a motor. If "GQ" is sent it sends back data.

    I would expect it to be something like...
Results 1 to 17 of 17