Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    goodo
    not the most elegant solution modifying dt ints like that, i'm sure dt would have found a way to identify that chip for a conditional compile to keep things nice
  2. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    back in an hour, just replacing my disappointing led [40w replacement fluro tubes] with some nice 24w daylight led ceiling fittings in the workshop
  3. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    try this




    DEFINE OSC 32 'Define Oscillator to 32 MHz
    OSCFRQ = %00000110 'DEFINE OSCFRQ TO 32 MHZ

    LED1 VAR PORTB.1
  4. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    i don't see any

    INT_ENABLE T1_197_INT

    Post the code, I don't have one of those chips and can't compile for it either
    still on 3.0xxx
  5. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    try adding this interrupt definition to the dt_ints-14.bas at the top of the definitions

    #define T1_197_INT PIR4,TMR1IF, PIE4,TMR1IE ;-- TMR1 - 16f19197 *


    then rename your interrupt...
  6. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    my bad , missed the ticon line


    dt ints defined timer 1 like this
    #define TMR1_INT PIR1,T1IF, PIE1,T1IE ;-- TMR1 alternate sym
    or this
    #define TMR1_INT PIR1,TMR1IF, PIE1,TMR1IE ...
  7. Replies
    14
    Views
    129

    Re: DT Interrupts not Working with PIC16F19197

    where is the code to set tmr1 on, and at what clk source .......
  8. Re: Glitches when changing portD seen on other ports

    so how does that work ?
  9. 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
  10. 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...
  11. 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...
  12. 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...
  13. 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 ?...
  14. Replies
    6
    Views
    195

    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
  15. 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...
  16. Replies
    22
    Views
    821

    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 ....
  17. Replies
    22
    Views
    821

    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...
  18. Replies
    8
    Views
    568

    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...
  19. Replies
    56
    Views
    15,491

    Re: Stable Adc Reading Routine

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

    Re: Stable Adc Reading Routine

    what would you "round" 798 to ?
  21. Replies
    56
    Views
    15,491

    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 ...
  22. Replies
    8
    Views
    568

    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...
  23. Replies
    8
    Views
    568

    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...
  24. Replies
    8
    Views
    568

    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...
  25. Replies
    22
    Views
    821

    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...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4