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. Re: Is it possible to make LCDOUT asynchronous?

    oops forgot to add reenterpbp into the timing , it 9 uS C to 30uS pbp , still not too shabby
  2. Re: Is it possible to make LCDOUT asynchronous?

    I just tried it in pbp using pbp dt ints , its much better than i thought it would be.
    with few tweaks its a match if not a little better
    since pbp doesn't do signed int math not sure how it will...
  3. Re: Is it possible to make LCDOUT asynchronous?

    i agree but to match this you need asm isr in pbp, dt ints would slow it bigtime
    code here steps at 40 to 3333 steps/sec with disp @10mS
    osc timebase 50uS/div
    8799


    #include...
  4. Re: Is it possible to make LCDOUT asynchronous?

    perhaps if in this thread
    http://www.picbasic.co.uk/forum/showthread.php?t=24162&p=146121&highlight=#post146121
    you explained it was for driving steppers at speed somebody would have pointed out...
  5. Re: Is it possible to make LCDOUT asynchronous?

    outlined what

    IF I // XSTEP = 0 THEN GOSUB XPULSE 'give pulse to X stepper, so it moves according to required speed
    takes ? uS



    IF I // YSTEP =0 THEN GOSUB YPULSE 'same for Y axis
    takes ?...
  6. Replies
    6
    Views
    193

    Re: Component recomendations

    you would have to ask where does the 5v come from anyway ,since its opto isolated ?
    why the 5v limit ?

    +1 for isolated gate driver
  7. Re: Is it possible to make LCDOUT asynchronous?

    using a different display may help, but your snippets tell nothing at all about timing.

    using my code and a frame buffer i can refresh an entire nokia lcd in less time than a 1602 lcd takes to...
  8. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    the wdt was for another project , you can leave it on or off unless u use
    DEFINE NO_CLRWDT 1
    where wdt must be off or else ....
  9. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    its one of the limitations of async comms that needs to be managed.
    listening at irregular times for signals that occur at random intervals can lead to all sorts of issues.
    noise or a misstimed...
  10. Replies
    8
    Views
    555

    Re: Interfacing a BME280 on a PIC18F2431

    nice to hear its a working thing ,are you using 3v vcc for bme280 ?

    i think they all self heat if permanently powered. mine is in an enclosure with a nodemcu ,all well ventilated yet the nodemcu...
  11. Replies
    56
    Views
    15,480

    Re: Stable Adc Reading Routine

    so (796+5)/10 = ?
  12. Replies
    56
    Views
    15,480

    Re: Stable Adc Reading Routine

    what would you "round" 798 to ?
  13. Replies
    56
    Views
    15,480

    Re: Stable Adc Reading Routine

    theres nothing quite like the simple elegance of
    problem solving by denial of inconvienent truth
    its becoming very popular these days


    take reading
    if reading does_no_fit_my_reality then ...
  14. Replies
    8
    Views
    555

    Re: Interfacing a BME280 on a PIC18F2431

    adc_T=adc_T >> 4 'ASSUME X16 OVERSAMPLING TO MAKE SENSE OF READINGS ?


    duh! now i get it, see 5.4.8 table 30 in ds
    adc_T result needs to shifted 4 bits right when read its not the...
  15. Replies
    8
    Views
    555

    Re: Interfacing a BME280 on a PIC18F2431

    Not having a chip at hand to play with , substituting arraywrite for i2creads and using your figures i get
    26.12 deg with my modified code , how does this hold with reality ?




    ' DEVICE...
  16. Replies
    8
    Views
    555

    Re: Interfacing a BME280 on a PIC18F2431

    a quick look at the data sheet yields :-
    temperature would be ok using longs
    humidity might be awkward since it uses unsigned longs that pbp cannot
    pressure would be a challenge since its done...
  17. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    the DEBUG output is inverted logic to suit the pickit 2 serial input, your setup might req true logic
    try
    DEFINE DEBUG_MODE 0 ' Debug mode: 0 = True, 1 = Inverted



    me too , i was...
  18. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    Since i'm playing around with the simulator i stuck dave's code in for a look. first thing i noticed is that i made the simulated bit time twice as long as it should be

    all three version "agree"...
  19. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    ps .
    its akin to manchester code like oil is to water, ie not even close. its 25% 75% [or there about] pulse width encoded with 50/50% start bit and some sort of stop bit with parity bit as ?...
  20. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    found this web https://weekly-geekly.github.io/articles/330506/index.html
    that has a pic of the data stream for val 792 [27.3 deg]
    so i was wrong the data is msb first ,high byte first
    hdl...
  21. Replies
    7
    Views
    307

    Re: Watchdog timer not working as expected

    fwit henrik is 100% correct ,keywords are not case sensitive
    myths and fables abound ,i'm sick of even trying to correct them
  22. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    you need something with timer gate control that can run @32 or 64 mhz

    eg 12f1822,12f1840,16f1825,18f25k22 ........

    i put this in the simulator and it seems to work, the data sheet is very...
  23. Replies
    22
    Views
    812

    Re: Newbie Manchester Coding question

    Looks straight forward, esp if you use a chip with gate control and can set a timer to count in 1uS increments

    what did you have in mind ?
  24. Replies
    9
    Views
    1,820

    Re: PIC12F1840 & serout2

    NAH more like

    ANSELA=0;SET PORT A DIGITAL


    and all these

    PortA.0 = 0

    are unnecessary other than the first one to set initial state
  25. Re: Glitches when changing portD seen on other ports

    its difficult to give any sensible advice with such scant details ,not knowing what you are trying to talk to on the data bus
    what actual speed you are operating at or even the code you are trying....
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4