Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Re: Have I exceeded the capability or limitations of the compiler or MPLAB?

    I believe you are correct in your assumption.
    Here is the LST file info:
    All other memory blocks unused.
    Program Memory Bytes Used: 16376
    Program Memory Bytes Free: 8

    Errors : 2
    Warnings : 0...
  2. Re: Have I exceeded the capability or limitations of the compiler or MPLAB?

    How can I determine the actual size of the code?
    The last working version that I have is a 35K Hex file but I don't know the actual binary code size.
  3. Replies
    5
    Views
    3,695

    Re: Lookup tables for Altitude determination

    Thanks Charles that will certainly help me to get started.
    As far as A/D readings are concerned, to get a relationship to altitude should I work backwards from the formula:

    P = 0.0039 * ADval +...
  4. Have I exceeded the capability or limitations of the compiler or MPLAB?

    Everything was going great until I got the following error using MPLAB V8.80 free version, PBP 2.60c, Long version of compiler.

    ERROR: Unable to execute mpasmwin.Error[126] C:\PBP\PBPPI18L.LIB 733...
  5. Replies
    5
    Views
    3,695

    Lookup tables for Altitude determination

    I am trying to understand from examples using Lookup2 on this forum how to construct a lookup table to determine altitude from my MPX6115 pressure sensor.
    Here iwhat I have so far:

    1. I am...
  6. Re: Triggering the First UART TX Interrupt..How To?

    Thanks for all the advice.
    I have successfully got it all to work even with a circulating TX buffer that was a pain to get working correctly but I finally got it.
  7. Re: Triggering the First UART TX Interrupt..How To?

    OK, after using DT Interrupts to implement TX_INT, I can see that immediately upon enabling the interrupt, I get an interrupt due to TXIF being set (TXREG is empty).
    This would indicate to me that...
  8. Triggering the First UART TX Interrupt..How To?

    Yesterday I successfully implemented UART RX interrupts using DT Interrupts.

    As far as TX interrupts go, my plan is to use ArrayWrite within my main program to write string messages and A/D...
  9. Re: Trouble Interfacing and Using SPI Flash Chips

    Problem solved.
    74LVC126A was a bad part.
    Replaced it and still couldn't write the Flash.
    Turned out the Flash is write protected by default upon bootup.
  10. Trouble Interfacing and Using SPI Flash Chips

    I have designed and had a circuit board built that interfaces an 18F2420 running at 5V to a 25VF032 SPI Flash.

    To allow the 2 voltages to mingle I am using a 74LVC126A in between as a level...
  11. Replies
    4
    Views
    3,705

    Re: PIC to PIC Serial Communications?

    I'm not sure about the distance but am guessing about a foot apart.
  12. Replies
    4
    Views
    3,705

    PIC to PIC Serial Communications?

    I am working on a joint project with another programmer in another area to communicate some data between our PIC processors.

    We have chosen serial comm to do this. Can we simply connect the TTL...
  13. Replies
    11
    Views
    5,397

    Yeah, what a dumb mistake on my part. I had...

    Yeah, what a dumb mistake on my part. I had forgotten about the sign bit being lost resulting in only 31 bits. Thanks.
  14. Replies
    11
    Views
    5,397

    What is wrong with this division?

    I am compiling this with the long version of PBP and using an 18F2420.

    Why do I get the result of the division as shown below?
    I expected it to be 0xC455A


    P var Long
    current_voltage var Word
  15. I made a mistake in my description above. From...

    I made a mistake in my description above. From the datasheet:

    "In either case, when the conversion is completed, the GO/DONE bit is cleared, the ADIF flag is set and the A/D begins sampling the...
  16. Acquisition time in DT_Analog when oversampling?

    I am using the 18F2420 and a variation of the DT_Analog routines where I am writing the registers directly to perform oversampled A/D on multiple channels in succession.

    From the datasheet, when...
  17. OK, after a lot of trial and error and finally...

    OK, after a lot of trial and error and finally getting a scope to look at some signals I determined what was going on. In the code below I found that I have to put a small delay (Pauseus 25) after...
  18. Replies
    1
    Views
    2,274

    I havent used the SHIFTOUT/SHIFTIN commands but...

    I havent used the SHIFTOUT/SHIFTIN commands but do you need to specify the MODE in your EEREAD routine?

    SHIFTOUT SO, SCK, , [$03, BLOCK1,ADDR.byte1,addr.byte0]

    It is specified as MSBFIRST...
  19. Can't read sequential addresses in external EEPROM

    I am using a PIC18F2420 with a Microchip 25LC1024 128k x 8 EEPROM.
    To get my technique down on using the MSSP I wrote the test code below to write data to the first 2 locations in the EEPROM then to...
Results 1 to 19 of 19