Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Re: HSERIN issue with a 18F452 and IF THEN statements or Case statements

    It was an ASCII 2.
    I tried $32 and that worked. Thank you.
  2. HSERIN issue with a 18F452 and IF THEN statements or Case statements

    I am using PB3 and programming a 18F452. The code I am using waits for a "%" from HSERIN then grabs the next 4 characters and processes them. A "!" is sent and then a numeric value. Then a "?" is...
  3. DT_INTS-14 , Elasped_INT, and 16F87 code not working

    This code is written to choose between two time durations of 5 minutes and 30 seconds. A hardware switch is wired to RB4 which is pulled high. In one position the switch is open and the port is high....
  4. Replies
    3
    Views
    2,760

    Re: How to Correctly define Shiftout bits

    I'm shifting out 24 bits. The device I writing to is a I/O portexpander MCP23S17 from microchip. I've tried the other methods and the portexpander does not respond to them. The only way to get it to...
  5. Replies
    3
    Views
    2,760

    How to Correctly define Shiftout bits

    This works for me
    Shiftout SDO,SCK,Msbfirst,[WR_OPCODE_BYTE,IODIRA,$00\24]

    but from what I'm seeing in the manual it is not correct. Also from looking on this forum it is not correct from what I...
  6. Re: DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    Thanks,
    Turns out it was the PC clock was updated by the time server during the period I was monitoring the timer. Found that the timer code/circuit keeps very accurate time for my needs.

    Bryan
  7. Re: DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    I'll try that. I don't have a manual way to sync the PC's clock to a time server as it is locked out and is updated by a local server. So, I don't know exactly when it's clock is updated to a time...
  8. DT_Elapsed timer, how to compensate for inaccuracy over long periods ?

    Using Darrel Taylor's Elapsed_INT-18.bas and running it over a period of 62 hours and 33 minutes the timer appears to be running fast by Approximately 5 minutes.
    Could it be my 20 mhz clock is off...
  9. Replies
    4
    Views
    2,833

    Try this works great for me. Handles string to...

    Try this works great for me. Handles string to float conversions and can be connected to other microcontrollers. Also supports Picbasic Pro with examples.
    ...
  10. Looks like a good solution. I tried it but it...

    Looks like a good solution. I tried it but it give an incorrect result on the third highest byte.
    here a portion of the code.


    rd_addr2 var long

    rd_addr2 = $01FE

    Readout_Strings:
    gosub...
  11. How to create a 21 bit address and separate into three bytes for Atmel serial eeprom?

    I am using a atmel AT45DB161D serial eeprom and need to do a continious memory read.
    I am programming a pic 18f4620.

    This is the code the format of the 21 bits I need to send.
    I would need to...
  12. Replies
    9
    Views
    4,226

    It is used in C:\PBP\PBPPI18L.LIB but does not...

    It is used in C:\PBP\PBPPI18L.LIB but does not seem to be declared as a var in that file.
  13. Replies
    9
    Views
    4,226

    My chip is a 18f4620. This is basically the...

    My chip is a 18f4620.

    This is basically the code (Below) I am trying to use. It did work just a few days ago but now is compiling with the error I had listed.
    Really I am only posting the part...
  14. Replies
    9
    Views
    4,226

    Embedded strings in code mpasm error

    I'm using the code below. I am keep receiving these errors and can't figure out why. It did work before for me but now doesn't. Any help would be greatly appreciated. I'm using the latest version of...
Results 1 to 14 of 14