Search Results - Proton BASIC community web site


Search:

Type: Posts; User: keytapper

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    381

    Re: Amicus 24 schematic?

    I think that the board should be something that most of the makers would look at. But the latest trend is IoT, so it should have a bit of WiFi in it and perhaps a small board which would go to on a...
  2. Replies
    15
    Views
    388

    Re: TX/RX with CC1101 Texas

    Sorry, Giuseppe,
    Which library are you referring to ?
    Is the Elechouse one ?
    I suppose that the only answer is to imitate closely the way the library developer has done. So it would take to use...
  3. Replies
    4
    Views
    177

    Re: Examining elements of a string

    As String is implemented, it will be also possible to use left$, mid$ and right$. But let's say a bit wasteful.
  4. Replies
    15
    Views
    410

    Re: 3.7.3.1 download will not unzip

    Latest Firefox pose to much concern on issued certificates from the connecting site. Several times it refuses to open a web page within certain circumstances, whereas few minutes later will do...
  5. Re: Changes after latest version of the compiler

    I convene that we can, at certain point, help the basic by adding some special routines in assembly. But as I could see, system variable are not guarantee to be there unless stated. So if one wants...
  6. Re: Changes after latest version of the compiler

    I think that using internal variable is not a good practice. I found it on my own too, on the way to save some variable, but it become a high risk.
  7. Replies
    10
    Views
    315

    Re: Need some help from a VB expert

    You need to clean the cooling system. Whoever will do it, will have to stop your computer. If it's made by you, then you may save time and money. In case of laptop the issue is rather laborious, many...
  8. Replies
    7
    Views
    318

    Re: test posting by admin

    Are in milliseconds :D ?
    For my case, looks like that.
    But, don't cross your comfort line, now it's fine.
    I really worry to got some malicious joker stuck on me, that uses my credentials around...
  9. Replies
    7
    Views
    318

    Re: test posting by admin

    It's a bit unusual. Other forums, which I visit doesn't behave like this.
    OK, I'll get used to tick the remember me.
  10. Replies
    7
    Views
    318

    Re: test posting by admin

    Trying today, whether the browser will kick me out, or the forum has such power.
    Last modification was to tick the remember me, which seems to have a positive effect.
  11. Replies
    7
    Views
    318

    test posting by admin

    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
  12. Replies
    19
    Views
    1,036

    Re: PPS for 8bit Microchip Micocontrollers

    May praises for your great support.
  13. Thread: Variable

    by keytapper
    Replies
    5
    Views
    1,117

    Re: Variable

    One might alias any singular bit if needed.

    Dim button as byte
    Dim menu as button.0
    Dim Up as button.1
    Dim Down as button.2

    Clear button ' clearing all flags at once ;-)
  14. Replies
    8
    Views
    468

    Re: 16f688 going to sleep issue

    Hello George,
    The methods are already cited. But it may take a couple of minutes to add it to the language. Just like to write a procedure

    proc Reset()
    asm-
    GoTo...
  15. Replies
    8
    Views
    326

    Re: 10Hz to 10KHz Frequency Generator

    Thanks you for mentioning that program. I often use this web page
  16. Replies
    8
    Views
    468

    Re: 16f688 going to sleep issue

    Well, you should not need to use a hardware reset. There's the option to go for the software one.
  17. Replies
    3
    Views
    194

    Re: Mosfet protection diode for a pump?

    It will be the best precaution to add the diode, big enough the direct current involved.
  18. Replies
    8
    Views
    468

    Re: 16f688 going to sleep issue

    If you want to reset after it wakes up you might use the MCLR pin :P
    Otherwise I wrote a discussion.
    So you might try to set a assembly command like GoTo proton#code#start. Just after the sleep...
  19. Replies
    7
    Views
    137

    Re: HD44780 positioning the cursor.

    That's my fault, I missed to check deeply.
    But, as Mr Les stated, it might fail to comply with certain products.
  20. Replies
    9
    Views
    149

    Re: Reset from the software

    Oh yeah, it even not need a transistor, Just link another pin to MRCLR an write to pull it low for a while.
  21. Replies
    7
    Views
    174

    Re: SensorTile.box

    Programming is rather in front a text editor and keyboard, no much use of graphical interface and mouse are needed. Furthermore the nerd are linux oriented :D, which is meant to be concentrated to...
  22. Replies
    7
    Views
    137

    Re: HD44780 positioning the cursor.

    I was playing today and I found that to address the third and fourth row I had to use to address the first with the column number over the real display with. The same for the fourth.
    So addressing...
  23. Replies
    9
    Views
    149

    Re: Reset from the software

    For the actual task I might write GoTo proton#code#start in assembler without a glitch. So I don't know why my first trial didn't go on the right way.
    For my perspective I have a stock of these...
  24. Replies
    9
    Views
    149

    Re: Reset from the software

    I know this option, but it is a bit trickier than the other, which has a bit more to do with the hardware configuration. So for instance to have a need of the timer0, the watchdog timing will remain...
  25. Replies
    7
    Views
    137

    HD44780 positioning the cursor.

    Hello forum,
    fiddling with a program, which is not compiling[1], I stumble on the question about the positioning the cursor on the LCD.
    I haven't tried to issue a Print AT row,column without the...
  26. Replies
    9
    Views
    149

    Reset from the software

    Hello forum,
    I came across this question, how to reset the micro from the program itself. I'm generally referring to Midrange PIC family.
    So trying to send a goto to $00 the compiler will not allow...
  27. Re: Trying a procedure, but errors I found

    From some perspective I feel I offended Mr. Les, my apologies.
    There are a lot of good in proton basic, that we enjoy every day, so I won't ask anymore for this case, I'll bear for what is good as...
  28. Replies
    19
    Views
    568

    Re: SMS Number Save

    I think there are hidden characters on your message.
    Perhaps it may take to investigate what is the exact message sent to the module including non printable characters.
  29. Re: Trying a procedure, but errors I found

    I suppose that is just a way how the line are parsed from the compiler. That normally has its rule, but other parsers allowing to put anything in between to parentheses, which are supposed to be...
  30. Trying a procedure, but errors I found

    Device = 16F876

    Config FOSC_HS, WDTE_OFF, PWRTE_OFF, CP_OFF, BOREN_ON, LVP_OFF, _
    CPD_OFF, WRT_ON, DEBUG_OFF

    Dim tlong As Dword ' variabile di calcolo di una media

    Proc...
  31. Re: MSSP module, propose for the Hshin/Hshout

    It might be a wrapper to just permute the serial command over the 74xx595 into the ordinary Print call.
    FOUND it :D
    As I imagined is a bit of hack over the Print command, which has to pass the the...
  32. Re: MSSP module, propose for the Hshin/Hshout

    I started this discussion because of my new project is dealing with a HD44780 LCD controller interfaced with a 74xx595, on a 16F628A. So, from a pythonic perspective I was thinking about to use...
  33. Re: MSSP module, propose for the Hshin/Hshout

    The greatest idea ever. In fact it may help to distribute a snippet across programs.
    I was thinking that command, for whom, like newcomer, needs to deal with command simplicity. The procedure are...
  34. MSSP module, propose for the Hshin/Hshout

    I'm hoping to find this new feature in a near future.

    This new command might imply certain declares to set up the MSSP module (for the MCU that is included), prior to run the command, as it's for...
  35. Replies
    11
    Views
    150

    Re: serious problem with 4 bytes float

    I think it's the rest of OP code that heats up all the 64 bytes of RAM.
    So it would be less expensive to go for a 12F1522 which has as much as 4 times fold of 12F675, and license free.
  36. Re: HAVING ISSUE WITH PROC USAGE project is high speed serial backpac

    I hardly believe that a procedure can call a subroutine. I suppose that procedures are compiled prior to know about the entire source. Then they'll be linked.
  37. Replies
    13
    Views
    338

    Re: SD File System revisited

    Procedure is a greater improvement, which might supersede the need of macro or some assembly black magic.
    Finally the procedure lets the user to tailor and reuse a broad set of written source. What...
  38. Replies
    11
    Views
    150

    Re: serious problem with 4 bytes float

    The solution is just prior your post. Haven't you tried out ?
  39. Replies
    19
    Views
    125

    Re: One mans meat is another mans poison

    The new post list is not there any longer, FF too.
    I'd like if the "New Posts" button becomes a drop down combo, so the header will remain tidier and more things are visible, also while browsing...
  40. Replies
    9
    Views
    80

    Re: Pic to pic connections

    I think you should review whether there are bottlenecks. Perhaps some more code optimization and polish out some of assembly for the crucial situations.
    Secondly you may need an extra pin, which the...
  41. Replies
    16
    Views
    158

    Re: The Proton manual

    I'll pose a undocumented question....
    What about to promote tutorial on youtube ?
    What will be the financial benefit?
    Anyway, might take an extra work to do video editing, prior publish them :)
  42. Thread: Hi All

    by keytapper
    Replies
    10
    Views
    86

    Re: Hi All

    These captcha might be all sort of mechanized solution that trolls are well aware. Perhaps there are humans behind the registration, just to get a new place to put their ads.
    I was rather thinking...
  43. Thread: Hi All

    by keytapper
    Replies
    10
    Views
    86

    Re: Hi All

    I think that a registration may require some graphic test, that only human can solve. Perhaps using to select a picture that should be validated by emails would put a harder time for bot to break in.
  44. Replies
    16
    Views
    158

    Re: The Proton manual

    It seems that the PDF it has copy protection enable.
  45. Replies
    8
    Views
    91

    Re: Strange compile for a 16F628A

    I understood what save and restore were doing. I didn't get the reason why these operations are necessary, until you clarified that it is involving many SFRs. The worry has come when trying to...
  46. Replies
    9
    Views
    104

    Re: Is XTAL available at compile time

    It's worth to know a little of assembler, which expand the knowledge how the compiler works, behind the scene. If it isn't the assembler itself, It might help to know its syntax and features.
  47. Replies
    8
    Views
    91

    Re: Strange compile for a 16F628A

    OK, I didn't suspect to had missing something. Therefore the files are available here. It can be noted on the assembly, that the context save will write to EEPROM
  48. Replies
    8
    Views
    91

    Strange compile for a 16F628A

    I can't understand why the context save/restore wants to save eeprom data, which causing a huge effect that the writing is not synchronized.

    This is the rough program that I started.

    ...
  49. Thread: PIC and HC05

    by keytapper
    Replies
    5
    Views
    93

    Re: PIC and HC05

    That's easily achieved by setting a serial interface to the HC-05. It will depend whether you want to use the hardware module or a software serial emulated one.
    So just to make sure you will set the...
  50. Replies
    3
    Views
    43

    Re: Cell phone charger as a power supply?

    I use them too. My family left many of these chargers because changing phones often.
    I also got those small modules Hi Link, which are space saver too....
  51. Replies
    3
    Views
    73

    Re: Unbalanced $if $endif statements

    Download Kate
    https://kate-editor.org/get-it/
    Download the syntax highlighter
    http://www.protonbasic.co.uk/showthread.php/78485-I-have-made-some-highlight-syntax-for-KATE/page2
    Which you will...
  52. Replies
    3
    Views
    73

    Re: Unbalanced $if $endif statements

    I use Kate with my highlighting syntax, which includes the code folding for such statements. Therefore I can find when there are incorrect/unbalanced code blocks.
    Anyway John's Proton Studio has the...
  53. Replies
    2
    Views
    77

    Re: Proton Studio with a Dark theme.

    Isn't it theme-able ?
    You might leave the option to the user to choose from a set of themes.
    Well I understand that is a bunch of work to parametrize all the values :)
  54. Re: Electronic roulette with PIC microcontroller

    I don't wish to hi-jack this discussion, you may follow up this one.
  55. Driving WS2812B strips with 12F1822 (40)

    Hello Forum,
    Herein I enclose a snippet to use as subroutine for driving WS2812S LEDs



    '------------------------------------------------------------------------------
    Dim candlecntr As Byte
    ...
  56. Re: Electronic roulette with PIC microcontroller

    I tried to elaborate the WS2812 with a 12F1822, with good results. But that excludes the Les library, because it's too slow :topsy_turvy:
  57. Replies
    4
    Views
    845

    Re: How to use timers in microcontroller

    As I suspect you want to solve your previous program, for the pic16F886 that you plan to use, there are three timers.
    If no where else is required to use a timer, the best attempt is to use the...
  58. Replies
    71
    Views
    3,457

    Re: Temperature Controller Problem

    Lengthy program is better to see on its tag, which is the # icon on top of the editor. Or even better to add in an attachment.



    As Top204 mention, you need to administer the time for every...
  59. Replies
    15
    Views
    388

    Re: TX/RX with CC1101 Texas

    That was mine translation that took some automated process. So I just replaced the original // with the equivalent in basic of apostrophe symbol. I was unaware that the part of a preprocessor...
  60. Re: Proton v.3.7.2.1 created file "c:\full_after.bas" after compiled. Why?

    For my taste, I'd like to have the assembler without the lengthy header, which might be have an #include on the top of the file. Over all it would improve readability.
    Who likes to see the whole...
  61. Replies
    6
    Views
    56

    Re: Happy Birthday Rick

    +1, specially after 50 years of the moon landing.
  62. Replies
    15
    Views
    388

    Re: TX/RX with CC1101 Texas

    As a normal user, reading the manual is rather the last chance. I confess that I haven't noted such existence.
    So for such case it is preferred to comment by a semicolon, which won't cause such...
  63. Replies
    9
    Views
    79

    Re: Using procedures, best practices

    From my knowledge, I think that procedures must be declared and constructed before they'll be used. This is like what happen when writing a source in C.
    Then I suppose that the proton compiler might...
  64. Replies
    3
    Views
    35

    Re: TERN accept no expression(s)

    I'd rather opt the form of python

    a=0 If <evaluate true> Else 234
    Anyway I welcome the new implementation.
  65. Re: Unable to change device using prplus.exe command-line

    I, too, invite to drop such idea.
    If you plan a development, it's a way better to use FOSS, but not to depend on Microchip software, rebuild over someone else developer.
  66. Replies
    71
    Views
    3,457

    Re: Temperature Controller Problem

    For button I'd propose to have a look to my snippet.
    But I think it will take a bit of learning curve ;) to decipher my code :D
    Anyways the simplest solution for the simplest user case would be to...
  67. Re: Unable to change device using prplus.exe command-line

    Yeah, sorry my misunderstanding.
  68. Replies
    71
    Views
    3,457

    Re: Temperature Controller Problem

    Quick and dirty, add to your source:

    Dim PP1 as Word System
    Sometimes I got these compiler oversights :D
  69. Re: Unable to change device using prplus.exe command-line

    Mine is 8.60, but it rather suffice for my purposes. Usually I work for small size programming which may fit into 2 Kwords.

    I wonder whether ProtonBasic can go into the MPXlab toolchain. I don't...
  70. Re: Unable to change device using prplus.exe command-line

    The conversion it useful for me, because I need to see the code during the simulation. Otherwise it will be skipped. The basic source still in it, so it's helpful to trace the debugging.
    Regarding...
  71. Re: Unable to change device using prplus.exe command-line

    Suppose to use the command line, as we are talking about here, what are the keywords and arguments that can be used ?
  72. Re: Unable to change device using prplus.exe command-line

    Well, that's my requirement to convert the coff into assembly form. It's easier to use with mixed assembly code. :)
  73. Re: Unable to change device using prplus.exe command-line

    I done this. I hope you'll find a clue.
  74. Re: I have made some highlight syntax for KATE

    I have also made a small batch file, because I'm used to compile in a mixed mode with assembler. Soon I'll try to add a hot key to run these bits.


    @echo off
    cd /d %~p1
    "C:\Program Files...
  75. Replies
    15
    Views
    388

    Re: TX/RX with CC1101 Texas

    Hi John,
    Giuseppe is my penpal and I'm helping him for this matter. The link you posted is already under my microscope for dissecting and I tried to translate it into Proton Basic. That's came...
  76. Re: I have made some highlight syntax for KATE

    The XML is placed according the OS one is using.
    For linux lowers it would be $HOME/.local/share/org.kde.syntax-highlighting/syntax/protonbasic.xml. Which might need to create the appropriate path...
  77. Re: I have made some highlight syntax for KATE

    Thank you for the input, I rather stick to my linux as much as I can :pride:. Only for few occasion I then switch to MS windows.
    Lately I'm very happy that the most programs I use are running also...
  78. Re: I have made some highlight syntax for KATE

    Tried Proton Studio and FineLine.
    My impression is about setting Windows colors on the way that the theme would be dark with high contrasted details. For PS the windows may be change only the...
  79. Re: I have made some highlight syntax for KATE

    Thanks for the input.
    I'll give it a try. But I confess I'm fallen in love with Kate :biggrin:.
    Besides to the color scheme, there are code folding (of which I done an adjustment, a bit). There's...
  80. Replies
    0
    Views
    70

    OneButton a snippet

    I wrote this snippet in order to have different functionality from a single button.


    Symbol ACTIVE _HIGH
    $ifndef DEBOUNCE
    $define DEBOUNCE 20
    $endif
    $ifndef PAUSETICK
    $define...
  81. I have made some highlight syntax for KATE

    Hello Forum,
    I'm new comer, and I'd like to share my fiddling with proton basic and MCU (I'm used to play with 1 Kwords MCU).
    So for my purely own tast I prefer to edit the source on a dark theme,...
Results 1 to 81 of 81