Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    104

    Re: Supress "MSG" in compile

    mpasm has three errorlevels 0,1,2 numbered error messages can be supressed -306 -302 etc
    the user messages seem difficult to suppress and the (num) is line number so of no use in suppression
    ...
  2. Replies
    6
    Views
    104

    Re: Supress "MSG" in compile

    -486 and -487 ?

    or edit
    \DEVICES\PIC16F18324.PBPINC
    and comment out the messages
  3. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    seems possible , the fact that the bmp ver is less "hot" tallies with its lower power use [hum sensor nearly doubles the consumption]

    my esp code uses forced mode letting it sleep between...
  4. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    did that , even though i have had the boards for 2 months or more , got a full refund within a couple of hours.
    quite surprised in a good way
  5. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    henrik
    i made a little change

    used this style
    IF P2.15 = 1 THEN
    p2.highWORD = 65535
    ENDIF

    for all the casts to long , it saves a worthwhile bit of code space
  6. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    excellent work henrik, way better than my fp attempt [nearly 10k in size] to get a result.
    i confirm it gets same results temp and pressure wise as arduino calcs for same input data
    not tried hum...
  7. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    nah, pbp needs a signed shift right command too. too hard me thinks. pic chip in bin, esp wins
  8. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    sorry no, i never actually used pbp for these sensors after discovering the real potential of esp chips


    if the upper word was set appropriately here maybe that would help , adc_t might need...
  9. Replies
    10
    Views
    899

    Re: Erroneous mathematical processing?

    Thanks tumbleweed

    Troy try this




    '/*******************************************************************************
    ' TRIG.inc for ALL PIC18's with or without longs...
  10. Replies
    10
    Views
    899

    Re: Erroneous mathematical processing?

    maybe a config issue , there is not much i can see that would not work in the asm stuff unless the 8x8 mult works differently


    you could try this , clutching at straws
    the code just assumes...
  11. Replies
    4
    Views
    492

    Re: Power Saving on 16f628

    wake on serial input example, you would need to add code to eliminate floating inputs and disable unused "modules" to get the
    absolute minimum power use.


    this wakes on any serial input and...
  12. Replies
    10
    Views
    899

    Re: Erroneous mathematical processing?

    i don't have one of those chips or the ability to sim it either but for a start

    rather than trying to cram those extra vars into bank0 {unnecessarily} i would modify the include this way
    for...
  13. Replies
    10
    Views
    899

    Re: Erroneous mathematical processing?

    if thats not just a comment then start here
  14. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    henrik here is a json dump from my nodemcu/bme280 regs from 0x80 to 0xff
    ...
  15. Replies
    15
    Views
    1,244

    Re: Hersin quick question

    its not in the code you have posted
    this code as suggested by henrik works as expected



    #CONFIG
    __config _HS_OSC & _WDT_ON & _PWRTE_OFF & _MCLRE_ON & _BODEN_ON & _LVP_OFF & DATA_CP_OFF &...
  16. Replies
    3
    Views
    346

    Re: CCP and timers to capture frequency

    my old proteus can't sim that chip but a 16f1825 is ok

    done like this the "remainder" is time between pulses in uS provided overflow is < 2
  17. Re: HSEROUT of array of data with termination on a null

    or setup printing as a background task and dump your buffer into the queue when its empty


    '*****************************************************************
    '* Name :...
  18. Thread: BME280 sensor.

    by richard
    Replies
    19
    Views
    1,540

    Re: BME280 sensor.

    i posted this some time ago and the topic seems to have disappeared , i can't remember who's post it was and the context
    but the calcs work but for the ones that need 64bit vars


    ' DEVICE...
  19. Re: 2 didit up down counter using 16F628A program errors

    well spotted tumbleweed, i failed to notice that
  20. Replies
    14
    Views
    925

    Re: PPS understanding on 16F15313

    not sure your ioc solution will work
    the ioc interrupt flag pir0.4 is not being cleared . you only clear the ioc pin flag, its not enough.
  21. Replies
    14
    Views
    925

    Re: PPS understanding on 16F15313

    i agree, its not very clear which "mods" apply to which dt-ints version
    a simple example adding 1 extra or modified dt-int to each version would be clearer
    adding a swag of int sources you will...
  22. Replies
    14
    Views
    925

    Re: PPS understanding on 16F15313

    other than

    asm
    INT_LIST macro
    INT_Handler CCP1_15313_INT, _myisr, PBP, yes

    endm
    INT_CREATE
  23. Replies
    14
    Views
    925

    Re: PPS understanding on 16F15313

    looking at PBP3_PPS_NOTES for ccp i see no mention of seting ccp inputs at all, its outputs

    reassigning ccpx inputs will be a manual effort

    the dt_ints-14 will not work in standard form , ...
  24. Replies
    14
    Views
    925

    Re: PPS understanding on 16F15313

    bo
    i'm not a 3.1 user but from all i have seen those defines only refer to the hpwm command

    i don't have access to the PBP3_PPS_notes.txt notes file either, so does it reference to ccp capture...
  25. Re: 2 didit up down counter using 16F628A program errors

    if none of your programmers can find the chip and its connected and powered correctly then that issue needs to be resolved before you can continue.
    there is no way forward with a dud setup or chip....
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4