Search Results - Proton BASIC community web site


Search:

Type: Posts; User: kuhrig

Search: Search took 0.00 seconds.

  1. How to invert just a bit - complement of a bit

    I would like to get some help how to invert just a bit. I'm using the complement sign, but it does not work.

    Example:

    dim btemp as byte

    btemp = 11

    btemp.1 = ~btemp.0
  2. Replies
    12
    Views
    39

    Re: clear and interrupt handler - problem?

    removed "clear" but cannot recommend it.
    All my variables contain rubbish at start.


    dim bIDX0 as byte
    dim bIDX1 as byte
    dim wARRAY [4] as word

    ...
  3. Replies
    12
    Views
    39

    Re: clear and interrupt handler - problem?

    Thanks a lot for the quick reply and explanation.
    Ok. Will remove the clear command.
    Perhaps worth to mention in the manual in the isr section.
    Until now didn't know about the different...
  4. Replies
    12
    Views
    39

    clear and interrupt handler - problem?

    PIC 24FJ128GA308
    compiler: 1.0.5.9

    When I place the first clear command immediately after the interrupt handler, the interrupt handler does not work or the whole code does not work.
    It does not...
  5. Replies
    3
    Views
    20

    Re: LookupL / lookup problem

    Les,
    Thank you for looking into it.
    I run more tests too. Took me a while to understand. I have modified it so you can spot it. Shortend your table.
    compiler 1.0.5.6


    clear bIndex
    ...
  6. Replies
    3
    Views
    20

    Re: LookupL / lookup problem

    Proton24 1.0.5.5
  7. Replies
    3
    Views
    20

    LookupL / lookup problem

    Again I have problems with lookupl and lookup.
    With index = 9 it does not read the 9th, instead it read the 10th.

    compiler: 3.7.0.6
    Device = 24FJ128GA308
    index = 9
    var = lookup index,...
  8. Replies
    1
    Views
    17

    SHOUT and PIC16F18877 - problem

    I'm using SHOUT in all of my programs to send data to an LED driver. No problem.
    Now I switched to PIC16F18877 and it does not work. Instead I am getting noise on the TX port.

    By directly filling...
  9. [SOLVED !] Re: PIC16F18877 - problem with serial out - HRSOut

    compiler: 3.7.0.6

    SOLVED now:

    Found PIR1 register for hrsout1 instead of PIR3 in ASM file. No idea where the compiler found PIR1.
    Uninstalled Proton suite completely incl. all updates. Deleted...
  10. [SOLVED !] Re: PIC16F18877 - problem with serial out - HRSOut

    Hi George,
    setting xtal = 8 according to OSFRQ setting, does not change the HRSOut problem.
    With xtal = 8, delay timing is not correct. That is another problem.
  11. [SOLVED !] PIC16F18877 - problem with serial out - HRSOut

    I'm trying to use the HRSOut command with a PIC16F18877.
    With HRSOut in the code as soon as it reaches the command it is stuck until reset by watchdog. No serial out.
    Removing the command it's...
  12. Re: ADC buffer into array or direct access as array?

    Les, thanks a lot. I love to work with your compiler but struggeling with Proton24 and problems at the moment.
    Thanks again for your support.
  13. ADC buffer into array or direct access as array?

    Hi,
    how can I access an internal 26 word ADC buffer as an array without addressing each single buffer into an array?
    Or can I somehow point an array at the specific start address?
    Hopefully I have...
  14. Replies
    3
    Views
    21

    Access violation

    Hi John,
    when I create a new project I am getting an "access violation".

    3576

    Version: 1.0.1.7
    compiler: 3.6.2.7
    Win10Pro, Built 1803
    Can you help? Do you need more information?
    Thx.
  15. Replies
    20
    Views
    48

    Re: Pic16f18877 oread

    @George: I am using the internal osc and I want to run it at 8 MHz.
  16. Replies
    20
    Views
    48

    Re: Pic16f18877 oread

    Device = 16F18877

    Declare Reminders Off
    @ CONFIG_REQ = 0 ; Override Compiler's configuration settings
    Asm-
    __Config _Config1, 0x179F ;FEXTOSC_ECH & RSTOSC_HFINTPLL &...
  17. Replies
    20
    Views
    48

    Re: Pic16f18877 oread

    I am upgrading from PIC 16F1939 to PIC 16F18877 and found that I have to declare the xtal 2x higher than the internal oscillator to get the correct timing. My xtal = 16 where is my OSCFRQ is set at 8...
  18. Replies
    6
    Views
    46

    Re: PIC16F18877 - no PWM output

    Solved!
    1. You have to set register RxyPPS. Seems like there is no default routing to the default port even it says default location at POR for CCP1 = RC2.
    2. There is a mistake in the...
  19. Replies
    6
    Views
    46

    Re: PIC16F18877 - no PWM output

    Thanks to your replies:
    @Tim: An LED flashes correctly with these settings. I had to set xtal=16 (even the osccon is set to 8) to get the right flash frequence. I also tried to remove the extensive...
  20. Replies
    6
    Views
    46

    PIC16F18877 - no PWM output

    I need your help please. There is no PWM output signal on PWM1 - RC2 - pin.
    compiler 3.6.2.3
    I can drive port RC2 high or low, no problem. Just no PWM signal.
    What is missing or wrong?

    code:
    ...
  21. Replies
    16
    Views
    37

    Re: Support for Les... a change of heart?

    Hello,
    Happy New Year.
    I am not on FB therefore cannot follow Proton on FB. I like the idea of supporting Les. Thanks Les for all your great work over the years!!
    But I cannot understand why we...
  22. very slow compiling since Update for Windows 10 Version 1607 (KB3211320)

    Since my computer updated itself to
    Windows 10 Version 1607 for x64-based Systems (KB3211320)
    compiling a bas file now takes 2 minutes. Before it was 10 - 20 seconds.
    Most of the time it is...
  23. Replies
    9
    Views
    2,174

    Re: 5V parts for Proton 24

    Any idea when the dsPIC33EVxxxx 5V devices will be added to Proton24?
    Not pushing but would like to know if its worth to wait a month or to go with a PIC18Fxxxx device instead. (only 18Fxxxxx had...
  24. Replies
    13
    Views
    1,149

    Re: If Then problem.

    Cannot see the problem at all.
    I have just written a code to simulate his problem and its not there. It all works correct or I made a mistake?
    compiler 3.5.8.6



    Device = 16F1939

    ...
  25. Replies
    8
    Views
    1,040

    Re: Exit a subroutine - clear gosub return stack?

    Mistake with 2x return in my code. Was too late already.
    With the If condition and the new address I replace the return address. Correct?



    GoTo Main ' Jump over the subroutine '...
  26. Replies
    8
    Views
    1,040

    Re: Exit a subroutine - clear gosub return stack?

    Thanks Les.
    This time it's for an 16F1939. You were spot on.
    My next project is an 16F18885 and then PIC24FV32KA304.
    So I am not deleting the return stack and use a goto command instead I replace...
  27. Replies
    8
    Views
    1,040

    Re: Exit a subroutine - clear gosub return stack?

    Thanks.
    I was thinking about same idea using a byte variable as return index and use the "on goto" instruction.
    But still more code than clearing the stack and just goto somewhere else.
    Kai
  28. Replies
    8
    Views
    1,040

    Exit a subroutine - clear gosub return stack?

    Hi all,

    I don't know if this is possible or I missed it completely.

    Is it possible to exit a subroutine and to clear the gosub/return stack?

    I have a subroutine I use quite often but at one...
  29. Thread: FineLineIDE

    by kuhrig
    Replies
    162
    Views
    33,757

    Re: FineLineIDE

    Thank you for your effort to progam this nice IDE.
    Just found a complex if while condition fault in my code which I did not spot with the orig IDE.
    Thanks again.
    Rgds
    Kai
  30. Re: delayus problem - please help / explain - PIC16F1939

    Oscon setting wrongly copied into quote.
    Xtal = 4
    OSCCON = %01101010


    It works absolutely correct at 1000ms.
    Just values below delayus 100 cause a reset.
  31. delayus problem - please help / explain - PIC16F1939

    Hi all,
    I have the following problems to understand:

    1. Why do I have to add a "clrwdt" command in this repeat..until loop otherwise it resets if I use delayus with lower values than 100.
    2. How...
  32. Replies
    0
    Views
    589

    kuhrig has just uploaded for LES!

    kuhrig has just uploaded for LES!

    as requested for anomaly test
  33. kuhrig has just uploaded 3.5.8.0 anomaly bas file!

    kuhrig has just uploaded 3.5.8.0 anomaly bas file!

    to Les - if you need the inc files too let me know pls.
  34. Replies
    1
    Views
    668

    [SOLVED !] Re: windows 10 update compiler issue

    Solved. Seems to be Win10 handles my NAS server differently.
    By saving the file locally, it compiles quick and ok.
    Sorry to have bothered you.
  35. Replies
    1
    Views
    668

    [SOLVED !] windows 10 update compiler issue

    Hi,
    updated from Win 7 ultimate 64bit to Win 10 Pro 64bit.

    Compilation now takes very long time and fails with red message "assembler errors".
    Cannot read anything else as window disappears very...
  36. Replies
    44
    Views
    5,390

    [SOLVED !] Re: EEprom Corruption with Ewrite on 18f2620

    Hi spyder0069 (anonymous - would be nice to sign with your name!!)

    1. just realized that you do not use the latest compiler version. To my knowledge its: 3.5.7.3

    2. Your PIC datasheets states...
  37. Replies
    44
    Views
    5,390

    [SOLVED !] Re: EEprom Corruption with Ewrite on 18f2620

    I remember I read an application note from Microchip where it says during EEPROM writes all interrupts need to be turned off. Cannot find it now quickly but since all my code turns off all interrupts...
  38. Replies
    7
    Views
    1,812

    Re: calculating % with integers

    Remember to use DWord variables if you use 10bit ADC values for the volume.
    It happened several times (Amnesia) that my value was > 655 and suddenly my result was wrong.


    Kai
  39. [SOLVED !] Re: PIC18FxxK and PIC18FxxJ - Extended Instruction Fuse on or off ?? supported??

    Hi Harm, hi Stephen,

    thank you for your replies. Setting XINST = 1 it adds 8 additional instructions and changes certain aspects of data memory.
    Both don't seem to be supported by PDS.

    If this...
  40. [SOLVED !] Re: PIC18FxxK and PIC18FxxJ - Extended Instruction Fuse on or off ?? supported??

    @Harm
    Thanks for the reply.
    If XINST = ON as default have I missed a note or comment from Les somewhere that XINST must be set to OFF?

    SHOUT is not working if XINST = ON.

    Rgds
    Kai
  41. [SOLVED !] Re: PIC18FxxK and PIC18FxxJ - Extended Instruction Fuse on or off ?? supported??

    @ George
    Thanks for the reply. I am not sure we are talking about the same fuse.
    The fuse I am talking about is the "Extended Instruction Set" and according to the datasheet of the PIC18F66K80...
  42. [SOLVED !] PIC18FxxK and PIC18FxxJ - Extended Instruction Fuse on or off ?? supported??

    Hi,
    by default the PIC Fuse Configurator MK2 sets the "Extended Instruction" fuse to "ON". (PIC18F46K80)
    If "ON" the SHOUT command does not work even I have not found any relation to the extended...
  43. Replies
    3
    Views
    1,676

    Re: New updates for Proton and Proton 24

    Patch 3.5.7.2 is obsolete. You use complete install of 3.5.7.1 and after installation you replace 2 files with patches (3.5.7.3).
    Easy.
  44. Replies
    3
    Views
    1,676

    Re: New updates for Proton and Proton 24

    Thank you very much Les, for this quick update.
    It helps me a lot as I don't have to write several workarounds and check many, many lines of code again.
    Kind regards
    Kai
  45. Replies
    10
    Views
    12,882

    Re: Dedicated coms pic protocal

    Hi Tim,
    great idea and very generous to make your code public. Unfortunately I am not smart enough to supply anything useful to this project.
    But looking forward as it will be very useful.
    Thank...
  46. [SOLVED !] Re: Strange effects when switching from 16F1783 to 16F1786

    Hi Mischa,

    after I read your thread I am really scared to use the PIC16F1789 in one of our project. It has nice features I would like to use... and cheap.
    How can you ensure to get the correct...
  47. Replies
    13
    Views
    3,312

    Re: I can not install the library manager

    John,
    forget my last post.
    It was down to a drive letter not connected. Now installed fine. My libraries are on a NAS server and the drive letter was not connected in win7.
    All sorted. Thanks....
  48. Replies
    13
    Views
    3,312

    Re: I can not install the library manager

    Hi Jon,
    i have the same problem. When installing the LibMan it does not install succesfully but does not tell me a reason neither.

    following files are not being installed:

    ...
  49. Re: Looking for experienced Proton Basic programmer

    CLOSED !!!
    Thanks to all. Not looking anymore.
  50. Re: Looking for experienced Proton Basic programmer

    you are right and wrong.
    the products are i.e. alternator controllers, battery chargers, monitors, remote controls, remote shunts, etc.
    we have written basic programs to check hardware and function...
  51. Looking for experienced Proton Basic programmer

    We have a few products finished in hardware, but the software has not been written.
    The products are based on Microchip controllers 16Fxxxx.
    Therefore we are looking for somebody (preferable UK...
  52. Replies
    5
    Views
    1,513

    As I understand what you wanted to know and saw...

    As I understand what you wanted to know and saw the jump between index 22 and 23, I have moved the word array to the top of the variable declaration.
    And suddenly it works fine without any problems....
  53. Replies
    5
    Views
    1,513

    Thanks Tim. I must admit that the change is...

    Thanks Tim.
    I must admit that the change is between index 22 and 23 - and NOT between 21 and 22.

    Here is the start address:

    V_VOLTS = 204
    V_VOLTSH = 205
    Variable...
  54. Replies
    5
    Views
    1,513

    word array access problem PIC18F4455

    Hi,
    hope somebody can help me or let me know what I am missing.

    PIC18F4455

    Declared following word array

    Dim IDX As Byte ' index for volts
    Dim VOLTS As Word
    Dim V_VOLTS [40]...
  55. Replies
    2
    Views
    1,781

    Hi Crownhill and all, have same problem today. I...

    Hi Crownhill and all,
    have same problem today. I click on the "online updates", the status bar shows "connecting to update server"...... and disappears. - that's it. Nothing happens.
    rgds
    Kai
  56. Thanks Rick, stupid me. Happened because I...

    Thanks Rick,
    stupid me. Happened because I copied code which I used with a 16F874 where ADCON1 configured the right justification.
    Did not think about it again.
  57. 16bit ADin result with a 10bit AD converter? 18F4320

    Hi,
    just programming a 18F4320 with a 10bit AD.
    Really confused because the result is 16bit using the
    command ADin. Cannot find any explanation in the help.

    Is this correct?
    Is it interpreted...
Results 1 to 57 of 60