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. Thread: Serial Sharing

    by richard
    Replies
    3
    Views
    72

    Re: Serial Sharing

    a bit further down in the mode description is says
  2. Replies
    5
    Views
    200

    Re: 8-bit Bootloader from Microchip

    you do nothing different other than put #define loader 1 [or whatever the syntax is ]

    only if you want to use and keep the b-loader , if you use another programmer the b-loader will be erased
    ...
  3. Replies
    3
    Views
    181

    Re: Neopixel (WS2812B) Question/s

    the reset is implicit , as soon as input data has ceased for 50us the chips reset and lightup with the currently loaded data
    they remain like that untill the data is changed and another reset...
  4. Replies
    5
    Views
    200

    Re: 8-bit Bootloader from Microchip

    yes
    not really , your hex code file data is sent by the bootloader program in a serial format to your pic using its hardware UART


    yes

    see q2 , it does not make any code


    the pic receiver...
  5. Replies
    19
    Views
    570

    Re: Unable to execute MPASMX

    you don't want to leave it too late. i would not be surprised to see things heading towards c++ eventually, thats a far bigger hurdle to jump than basic to C. the way microchip are leading us with...
  6. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    the mind boggles
  7. Re: Help with adcin and serout, using a 16F688 Chip

    you need to read the chapter on adcin, the input channel is not a pin number or pin alias its the analogue channel desired
  8. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    its a quick easy test to check, it works on all chips that i tried just make sure the compiler dosn't compress the subtract into a decrement
    i var can be byte or word



    j=8
    i=6
    while j ...
  9. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    anyone familiar with assembly programming will be well aware of the status reg and its use. what surprised me is that
    the value of the status reg was/is preserved even after the completion of the...
  10. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    With a few proviso's mikes way beats it hands down




    IF Z<100 THEN I=I-5
    asm
    BTFSS STATUS,C
    CLRF _I
    ENDASM
  11. Re: Testing a GSM module via Mecanique's Serial Communicator - "terminator" issue?

    "AT+CMGS="+4179xxxxxxx",#10,"Hello Roger",#26


    or

    "AT+CMGS="+4179xxxxxxx",$A,"Hello Roger",$1A

    8888
  12. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    a look at the lst file yields the reasons .
    the status reg is not useful when you add or subtract a const 1
    if you use a number greater than 1 or another var then the code does a proper...
  13. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    your assertion is





    if your assertion was correct it would not matter but its a12f1840

    i repeat
    mike would you like to provide some pbp code that demonstrates use of status register...
  14. Replies
    27
    Views
    802

    Re: How to prevent variable going below zero?

    mike would you like to provide some pbp code that demonstrates use of status register following pbp addition or subtraction


    the status reg here is not in any way influenced by the subtraction...
  15. Re: "Variable already an alias" - is there a way to avoid this?

    nonsense, you can map it to any configuration
  16. Re: "Variable already an alias" - is there a way to avoid this?

    if it does not work post code and schematic of your attempt, its a simple test
  17. Re: "Variable already an alias" - is there a way to avoid this?

    do you think that looks even close ?




    FOR A=0 to 20
    PORTA.0[A]=1
    NEXT

    assuming the 18 [chip dependent] pins in that range are set as digital output
  18. Re: "Variable already an alias" - is there a way to avoid this?

    you can lead a horse to water but ....

    any pin can be addressed with PORTA.0[offset]
  19. Replies
    6
    Views
    379

    Re: SERIN2 WAIT problem

    yes , you did not indicate the uart was already in use




    as ionis says a better chip with 2 eusarts
    or
    check pin status before using serin
    or
    write your own serin routine that can...
  20. Re: "Variable already an alias" - is there a way to avoid this?

    the ability to alter a defined constant at runtime would be make a total mockery of sound programming fundamentals .
    changing a constants definition is not a thing .
    runtime allocation of...
  21. Replies
    6
    Views
    379

    Re: SERIN2 WAIT problem

    two thoughts
    1 investigate why rx line is being held low and stop it from happening
    2 change strategy and use the usart
  22. Replies
    3
    Views
    339

    Re: How to count the time while reading ADC ?

    its almost like deja vu again
    same answer as here
  23. Replies
    46
    Views
    2,241

    Re: Can PBP read optical encoder damn fast? :)

    did you and dt make this ? , i use it if req

    ;32 bit multiply result


    A32bitVar var word[2]
    Dummy var word


    ASM
  24. Replies
    46
    Views
    2,241

    Re: Can PBP read optical encoder damn fast? :)

    encoder=0

    :o
  25. Replies
    46
    Views
    2,241

    Re: Can PBP read optical encoder damn fast? :)

    silly me i had the dir var as byte, it now works with this added change

    ' Encoder.0 = Ch_A
    ' Encoder.1 = Ch_B
    encoder =(porta&48)>>4

    reading the pins individually wont work for me...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4