Search Results - Proton BASIC community web site


Search:

Type: Posts; User: kuhrig

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    508

    Re: Sleep and how to use it

    Tim,
    I am using a 16F1939 and use sleep and wake it up from sleep by an interrupt of change (pressing a button) and the watchdog timer.
    There are no problems and it wakes up immediately. Here are...
  2. Re: error: too many system variables: 80 available. 84 used.

    It seems like I found the problem.
    The compiler is creating a system variable for every byte or word array variable within a comparision. Before the comparison it moves the array variable into a...
  3. Re: error: too many system variables: 80 available. 84 used.

    Thank you both for your replies.

    @Tim: I have removed the complete interrupt routine. No interrupt routine any more. Same error!! Exactly the same error.

    @Towlerg: If OK I will send you the...
  4. Re: error: too many system variables: 80 available. 84 used.

    Thank you. Found that.
    I have no delared system or access variables. All system variables must been created by the compiler.

    When are system variables being created?
    Are they being used only for...
  5. Re: error: too many system variables: 80 available. 84 used.

    None of my variables have a system or access directive after them. Are they added automatically?
    What else could be the problem?

    Where can I see which system variables are being created?
    If I...
  6. Re: error: too many system variables: 80 available. 84 used.

    Thank you so much for your quick reply. It is a PIC16F18877.
    I tried to change some variable declarations, but did not have any impact so far. Still the exact same error message
  7. error: too many system variables: 80 available. 84 used.

    Hi,
    can someone explain this error for a dummy like me please?
    I have never experienced this error before.
    Where do I have to look at as my code has 4500+ lines.
    Can I increase the number of...
  8. Replies
    5
    Views
    550

    Re: odd behaviour - help please - sword

    Thank you, Les, for your quick reply.
    Does it mean I should not use any Signed arrays in my code until there is an update?
    At the moment I'm using some and have not experienced any issues.
  9. Replies
    5
    Views
    550

    Re: odd behaviour - help please - sword

    Sorry, forgot to add my workaround:

    moved signed word array into a word variable.
    wTEMP0 = aswTEMPS [iBATT_TEMP]

    Increase by +50.
    wTEMP0 = wTEMP0 + 50 (this will move all "negative" values...
  10. Replies
    5
    Views
    550

    odd behaviour - help please - sword

    Before I post it in another section I would like you to check:
    Or is there a logic error?

    compiler: 3.7.3.6
    micro: PIC16F18877

    Dim bitflash as Bit
    Dim wLED_U4...
  11. Replies
    3
    Views
    1,225

    Re: Dongle light does not work and cannot compile

    Hi Joseph,
    thank you for your quick reply. I found your post before I sent mine and I followed your instructions.
    Unfortunatley without any success.
    Thanks again. Dongle still not recognized.
  12. Replies
    3
    Views
    1,225

    Dongle light does not work and cannot compile

    Please, I need ideas.
    This week I have to work remotely and took my Dell notebook with Win10. Plugged in the dongle and it installed the driver (c:/windows/system32/driver/sparkey.sys). Acc. to...
  13. [SOLVED !] Re: problem with same variable in substraction ??

    Les, many thanks.
  14. [SOLVED !] problem with same variable in substraction ??

    Is this a problem or just not possible?

    dim wtemp0 as word
    dim wamps_zero as word

    wamps_zero = 2044

    This works correct:
    wtemp0 = 2157
    wtemp0 = wtemp0 - wamps_zero
  15. 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
  16. Replies
    12
    Views
    672

    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

    ...
  17. Replies
    12
    Views
    672

    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...
  18. Replies
    12
    Views
    672

    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...
  19. Replies
    3
    Views
    357

    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
    ...
  20. Replies
    3
    Views
    357

    Re: LookupL / lookup problem

    Proton24 1.0.5.5
  21. Replies
    3
    Views
    357

    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,...
  22. Replies
    1
    Views
    343

    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...
  23. [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...
  24. [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.
  25. [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...
  26. 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.
  27. 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...
  28. Replies
    3
    Views
    378

    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.
  29. Replies
    20
    Views
    581

    Re: Pic16f18877 oread

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

    Re: Pic16f18877 oread

    Device = 16F18877

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

    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...
  32. Replies
    6
    Views
    545

    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...
  33. Replies
    6
    Views
    545

    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...
  34. Replies
    6
    Views
    545

    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:
    ...
  35. Replies
    16
    Views
    441

    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...
  36. 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...
  37. Replies
    9
    Views
    2,424

    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...
  38. Replies
    13
    Views
    1,608

    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

    ...
  39. Replies
    8
    Views
    1,294

    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 '...
  40. Replies
    8
    Views
    1,294

    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...
  41. Replies
    8
    Views
    1,294

    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
  42. Replies
    8
    Views
    1,294

    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...
  43. Thread: FineLineIDE

    by kuhrig
    Replies
    166
    Views
    36,596

    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
  44. 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.
  45. 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...
  46. Replies
    0
    Views
    764

    kuhrig has just uploaded for LES!

    kuhrig has just uploaded for LES!

    as requested for anomaly test
  47. 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.
  48. Replies
    1
    Views
    951

    [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.
  49. Replies
    1
    Views
    951

    [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...
  50. Replies
    44
    Views
    6,019

    [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...
  51. Replies
    44
    Views
    6,019

    [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...
  52. Replies
    7
    Views
    2,051

    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
  53. [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...
  54. [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
  55. [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...
  56. [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...
  57. Replies
    3
    Views
    1,865

    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.
  58. Replies
    3
    Views
    1,865

    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
  59. Replies
    10
    Views
    13,242

    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...
  60. 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...
  61. Replies
    13
    Views
    4,078

    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....
  62. Replies
    13
    Views
    4,078

    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:

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

    CLOSED !!!
    Thanks to all. Not looking anymore.
  64. 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...
  65. 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...
  66. Replies
    5
    Views
    1,652

    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....
  67. Replies
    5
    Views
    1,652

    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...
  68. Replies
    5
    Views
    1,652

    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]...
  69. Replies
    2
    Views
    1,878

    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
  70. 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.
  71. 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 71 of 74