Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: HSEROUT using STR modifier - length parameter as variable not working

    it fails of course for more than 255 chrs

    9025




    BalBuffer VAR BYTE[300]
    BalCount VAR word
    latb.7=1
  2. Re: HSEROUT using STR modifier - length parameter as variable not working

    or even

    9024



    BalCount = 40HSEROUT [STR BalBuffer\BalCount,13,10]
    debug STR BalBuffer\BalCount,13,10
    debug "full load",13,10
    debug STR BalBuffer,13,10
  3. Re: HSEROUT using STR modifier - length parameter as variable not working

    it works for me

    9023


    ;pic18f26k22 tx demo
    #CONFIG
    CONFIG FOSC = INTIO67
    CONFIG PLLCFG = OFF
    CONFIG PRICLKEN = OFF
  4. Replies
    7
    Views
    271

    Re: AT+CMGS hangs if command is misissued

    in the old dialup days +++ used to be a modem escape sequence, worth a try
  5. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    not sure , for the 16f1788 the microchip ipe with pk4 warns , 5.00 v recommended (not sure where the ldo comes into play)



    as i don't , i have never seen or heard of a pic having an adverse...
  6. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    your not trying to run chip at less than 5v ? decouple caps etc [i'm using none]
    reset is pulled high ?
    enc and sw pins are pulled high with suitable r

    i cannot get mine to fail no matter hard i...
  7. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    would seem that way , although his dt_ints may be altered.
    only changes i made

    latc.6 = 1 ' reversed polarity tty
    serout2 PORTC.6,84,[13,10,"I'm Alive",13,10,10]
  8. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    not to mention that mine ,same code same chip does not reboot
  9. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    the reason i ask is that if your programmer is still connected and the programmer is used to power your proto board .
    some leave the icspclk pin on the programmer as a high output , if your RE...
  10. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    one thing you can eliminate is a code problem [assuming code as posted] mine is has run for 24 hours+ without resetting

    describe your setup including whether you leave the programmer attached...
  11. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    mine has been running for 4 hours now , nill resets
  12. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    i breadboarded a 1788 and using the code as posted in reply 8 with one slight change in that serout2 is set to T9600 it
    1. fails to count properly as predicted
    2. shows no signs of resets...
  13. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    if you look at the expected b5,b6 pin values at each interrupt
    for neg edge trigger only

    ints occur on orange lines
    9010
    under ideal conditions you get for say cw rotation...
  14. Replies
    32
    Views
    1,606

    Re: Rotary encoder with DT interrupts

    all you have to do is post the code for your attempt and i will have a look


    hints

    serout2 PORTC.6,16468,[13,10,"RE_val ",dec5 RotEnc1_val] once in an isr is bad twice is just asking for...
  15. Replies
    4
    Views
    389

    Re: HEF EE OK with WRITE ?

    see here

    http://support.melabs.com/forum/picbasic-pro-compiler-3-0-and-later/asm-assembly-language-in-picbasic-pro/6753-accessing-hef#post6758
  16. Re: understanding I2CWrite optional address parameter?

    there is no apparently. its what should and does happen.


    more interesting is that your analyser does not even come close to reflecting what your "snippet" should reproduce.

    either your...
  17. Replies
    7
    Views
    660

    Re: divide a 10 Mhz signal by 1000 ...

    i tested my code while i had the sim running, seems i cant count well

    this is better

    #CONFIGcfg = _HS_OSC ; HS oscillator: High speed crystal/resonator on GP4/OSC2/CLKOUT and...
  18. Re: understanding I2CWrite optional address parameter?

    thats not a complete program ,its a pointlless snippet

    this is a program



    ;pic16f1825
    DEFINE I2C_SLOW 1

    #CONFIG
  19. Replies
    25
    Views
    1,747

    Re: DEFINE RESET_ORG and DEC modifier issue

    a message database of null terminated strings


    @ ORG 4000h
    messages:
    @ dw 0x08 ;message 0 offset
    @ dw 0x12 ;message 1 offset
    @ dw 0x22 ;message 2 offset
    @ dw 0x2e ;message 3...
  20. Replies
    25
    Views
    1,747

    Re: DEFINE RESET_ORG and DEC modifier issue

    i think you misunderstand neither method is efficient
    two hunted bytes to store a message 32 or so bytes long , not good
  21. Replies
    25
    Views
    1,747

    Re: DEFINE RESET_ORG and DEC modifier issue

    arraywrite to a buffer then hserout str buffer
  22. Replies
    25
    Views
    1,747

    Re: DEFINE RESET_ORG and DEC modifier issue

    do you realise that hserout messages of a constant str type are the least efficient way to store and retrieve text ?
    ditto for arraywrite
  23. Re: understanding I2CWrite optional address parameter?

    PCF8547p/t/a is an unusual situation having only one register to read or write from, the chip cares not how many reads or writes you squeeze into one transaction.
    the final result is the last byte...
  24. Replies
    7
    Views
    660

    Re: divide a 10 Mhz signal by 1000 ...

    its not one division its three with a 90 deg phase shift on one of them.

    one div would be like this



    ;In simple terms toggle a pin on every 125th cycle
    ;start:;set gpio pin high
    ;delay...
  25. Replies
    25
    Views
    1,747

    Re: DEFINE RESET_ORG and DEC modifier issue

    i have never written a program that big with pbp , in fact if my code {excluding data fonts etc} got bigger than 16k would seriously think that a
    8 bit pic with pbp is the wrong platform.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4