Search Results - Proton BASIC community web site


Search:

Type: Posts; User: top204

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: 2 pwm signals different frequency and duty in same time together run.. pic16f1527

    A lot of the newer devices offer the ability to use more than one timer for the CCP peripherals, and some also have the independent PWM peripherals on them.

    Here's a template setup I've just...
  2. Re: 2 pwm signals different frequency and duty in same time together run.. pic16f1527

    Here's something I have just knocked together to show the new devices that will be added to the compiler soon, as its upgrade, operating PWM with two independent timers.

    The PIC18FxxQ43 devices...
  3. Re: inline Hex to dword conversion (sMyString = Hex2 wMyWord)

    Take a look at the compiler's Str$ function (page 364 of the manual). This may do what you require.

    It will load byte arrays or strings (which are byte arrays with a built-in null terminator).
  4. Replies
    30
    Views
    1,301

    Re: PID using integer math.

    I posted a thread on this post with an integer PID routine code a few hours ago, but it seems to have disapeared!

    I'll place it on my google site and facebook. It was something I wrote many years...
  5. Replies
    30
    Views
    1,301

    Re: PID using integer math.

    You get well soon KeyTapper.

    You really need to move up to the newer devices. Even the enhanced 14-bit core devices are better than the standard 14-bit core devices, and there are a lot of package...
  6. Replies
    3
    Views
    192

    Re: Procedure, initializing variables.

    That type of mechanism is called "Static" in C and C++ and is something that the compilers do not implement yet.

    To implement something similar, the procedure's local variable can be accessed...
  7. Replies
    4
    Views
    156

    Re: Resetting a LCD 16x2

    The Hitachi chipset cannot be fully reset with a command, but the compiler can be forced to re-initialise it.

    Create a system variable in your BASIC program named BPF:

    Dim BPF as Byte System
    ...
  8. Replies
    30
    Views
    1,301

    Re: PID using integer math.

    With most controls, the full PID is not required, and can be slow to respond.

    I have, generally, used a PI method, where the error is stored and then the output is altered until the error is 0, or...
  9. Re: GLCD 128x64 controller compatibility with Proton commands

    No thank you George.

    Many thanks George, Charlie and Tim. I am trying my damnest to advertise the compilers and show people how good they are, but it will take time, so hopefully I can keep my...
  10. Replies
    5
    Views
    398

    Re: Cannot Initialise SD card

    With SD cards, it is very important to have a mechanism to power them off then on again. This is because they, foolishly, do not have a reset pin and when they do not understand a command, either...
  11. Replies
    6
    Views
    432

    Re: Nextion + proton basic

    It depends on the size required Frizie.

    For standard 320x240 LCDs, there are a multitude of them, and the same chipsets also operate larger displays. For standard 320x240 displays, an 18F device...
  12. Replies
    15
    Views
    588

    Re: Can't enable secondary oscillator

    Good point Chrlie.

    But to make the unlock sequence also time restricted is rather silly. OK, have a simple sequence of values into an SFR, but, also, within a certain amount of time as well?
  13. Re: GLCD 128x64 controller compatibility with Proton commands

    How do you like my google site?

    When time, and health, permits, I am adding more and more code snippets and libraries to it for both Proton and Proton24.
  14. Replies
    15
    Views
    588

    Re: Can't enable secondary oscillator

    If you want to write your own meta-macro or procedure, simply use the mnemonics that are provided in the device's .def file.

    It is the timing between the menonics that are important to the, very...
  15. Replies
    15
    Views
    588

    Re: Can't enable secondary oscillator

    The difference is the timings in-between the unlock OSCCON SFRs being loaded. That's why the code needs to use indirect loading, so all the SFRs can be loaded with the constant values immediately...
  16. Replies
    15
    Views
    588

    Re: Can't enable secondary oscillator

    The timing of the unlock sequence is critical and that is why it needs to be always perfromed in Asm mnemonics, and why the Microchip C compilers have a built_in function that drops to Asm within it...
  17. Replies
    15
    Views
    588

    Re: Can't enable secondary oscillator

    I thought I had added the PIC24 RTCC demo program in the samples24 folder, but I hadn't.

    The compiler installs an RTCC library in the Includes folder (C:\Users\User Name\PDS\Includes) for PIC24...
  18. Replies
    2
    Views
    269

    Re: __builtin_brain_damage

    Unfortunately, Microchip are now obsessed with the C compilers they sell, so underlying technical things are starting to be missed because they want people to buy the $1000 compilers from them as...
  19. Replies
    7
    Views
    346

    Re: Missing samples folder

    The compiler's PDS folder is always installed in the same place and installed so that it can be altered without needing admin rights etc...

    For WindowsXP it is at:

    C:\Documents and...
  20. Proton Compiler. Anomaly correcting update to 3.7.5.5.

    There is a new update on my google site to make Proton, version 3.7.5.5

    This corrects a, very subtle, anomaly spotted by joseph that has crept in.
    ...
  21. Replies
    2
    Views
    209

    Proton. Map equivalent library for re-scaling values.

    The preprocessor is text based, so whatever variable is placed in the parameter is the one that will get used by the code within the meta-macro.

    I have already created a simple set of Map type...
  22. Replies
    6
    Views
    432

    Re: Nextion + proton basic

    The Nextion displays are an interesting idea, but I got one sent to create a library for and I found them very poor in quality and innovation, and they are quite expensive for what they are. :-(

    I...
  23. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    https://sites.google.com/view/rosetta-tech/home
  24. Replies
    7
    Views
    413

    Re: CE testing (is it worth it)

    We used a CE certified PSU to power a unit and the PSU made the unit fail because it was too, RF, noisy for the tests! Also a CE certified laptop with a "badged" USB cable interfacing with the unit...
  25. Replies
    4
    Views
    385

    Re: Advice for parallel serial conversion

    If you look in the samples folder, there is a serial LCD demo in there. It is named SR_LCD.bas

    It is extremely simple, but works.

    Here is another serial LCD routine I wrote many, many years...
  26. Replies
    7
    Views
    413

    Re: CE testing (is it worth it)

    From experience, I know that CE is actually absolute nonesense! It is red tape to make things look good but serves very little purpose. They will look for some RF noise in silly frequencies that have...
  27. Replies
    18
    Views
    1,019

    Re: Compiler problem

    The TOP20x series of devices were used in the Switched Mode PSU section of Pace satellite receivers back in the mid, to late, 1990s. They were the power MOSFET with some internal controls and were in...
  28. Replies
    3
    Views
    358

    Re: I assumed a wrong factor.

    In all programs, you should make it a "must" to pre-load all variables with default values, or leave variables that may be used after a reset alone.

    The clearing of RAM was carried out with some...
  29. Replies
    18
    Views
    1,019

    Re: Compiler problem

    Yes.... That is the name changes within the compiler's library subroutines that had to be altered many months ago for the new assembler required for the new devices.

    In the error messages, it...
  30. Replies
    7
    Views
    551

    Re: Strange issue with a proceedure

    With some serial modules I have interfaced with in the past, that do not quite do their job correctly, or wake when a signal is sent to them, I have sent an Ack to them, which is sometimes the value...
  31. Proton24 Compiler. Anomaly correcting update.

    There is a new update on my google site to make Proton24, version 1.0.8.0

    This corrects a couple of anomalies that have crept in.

    https://sites.google.com/view/rosetta-tech/home
  32. Replies
    7
    Views
    551

    Re: Strange issue with a proceedure

    I don't know what display you are interfacing with or its protocols, but judging by your other pieces of code, are you sure:

    TempByte = (128 + LinePos + ColumnPos) '128 (Change position...
  33. Replies
    18
    Views
    1,019

    Re: Compiler problem

    I now think the issue wil be the name changing within the compiler's library subroutines that I had to do many months ago.

    Post a list of the error messages and that should be sufficient....
  34. Replies
    7
    Views
    551

    Efficient use of a procedure

    The Rep function will do just as you are doing with the procedures, as KeyTapper stated.

    Also remember Bob, the parameters are seperate variables in their own right, so they can be used within the...
  35. Replies
    3
    Views
    358

    Re: I assumed a wrong factor.

    The problem, sometimes, with clearing variables at reset is when the program needs to maintain what it had if a watchdog times out or the device resets for some reason. With a reset, the RAM stays as...
  36. Replies
    13
    Views
    706

    Re: CCP PWM errors at higher frequency

    The MC3340 is an excellent little device, and is still available.

    The likes of Farnell and RS etc will drop devices if they are not selling in there thousands, but that does not make them legacy....
  37. Replies
    18
    Views
    1,019

    Re: Compiler problem

    A link to the files in question would be good, so I could check them out based upon the error messages!
  38. Replies
    18
    Views
    1,019

    Re: Compiler problem

    You can have assembler mnemonics within the BASIC code, just as before. The thing that has changed are the SFR (Special Function Register) bit names within the final assembler listing.

    For...
  39. Replies
    7
    Views
    620

    Re: DS1307_Time_Logger sample does not compile

    I have the App24.exe file to upload, so I will upload it to my google drive tomorrow and place a post on here.
  40. Replies
    18
    Views
    1,019

    Re: Compiler problem

    The changes to the compiler's Asm code is very recent, because it needs to use a newer assembler program for newer devices.

    Try adding:

    Declare Show_All_BitNames = On

    To your program.
    ...
  41. Replies
    30
    Views
    1,762

    Re: Lost my dongle after 16 years!!

    Anomaly correcting "updates" will always be free and a Patch installer will be released to correct any new versions of the compilers. However, "upgrades" will always add new devices and commands and...
  42. Replies
    18
    Views
    1,019

    Re: Compiler problem

    I've had to make some changes to the assembler code produced by the compiler, so this may be what is causing the assembler errors in older programs that use assember code in the BASIC listing.

    In...
  43. Replies
    30
    Views
    1,762

    Re: Lost my dongle after 16 years!!

    I mentioned on the forum last week. Future versions of the compiler will not recognise the USB dongle as registration. The new versions will be software registered.

    At this moment in time.... I...
  44. Replies
    7
    Views
    620

    Re: DS1307_Time_Logger sample does not compile

    Unfortunately, that was my fault being un-observant.

    I was adding aliases to the stanard 8-bit procedures and examining the code I did in Proton24 for aliases, and while I was doing the testing in...
  45. Replies
    6
    Views
    412

    Re: Tunnel Diodes Yeyyyy!!!!

    They are incredible devices where quantum tunneling takes place until a threshold is reached, then the tunnel closes. I like the name "Esaki" better than "Tunnel", and it is the name of the man who...
  46. Replies
    5
    Views
    481

    Re: I hate 24 bit PIC's

    Change the line:

    While 1

    to

    While, on its own, for an infinite loop. But it is better, to look at, to use a Do...Loop for an infinite loop. They perform the same task and produce the same...
  47. Re: Proton and Proton24 Compilers. Anomaly correcting update.

    Unfortunately, we have had incompetent governments in the UK for the past 40 to 50 years!

    Mostly governed by very rich politicians who do not live in the real world. Just look at what we currently...
  48. Re: Proton and Proton24 Compilers. Anomaly correcting update.

    I was thinking 25.00 (UK pounds)
  49. Replies
    6
    Views
    412

    Tunnel Diodes Yeyyyy!!!!

    I know this sounds really geeky, but I know my lovely wife has bought me a few tunnel diodes for Christmas and I can't wait to build a few circuits with them. :-)

    I looked at Tunnel diodes as a...
  50. Replies
    10
    Views
    789

    Re: Memory occupancy report

    Many thanks Fulvio.

    Your link is sent as an Ebay message and via an email to you.
  51. Re: Proton and Proton24 Compilers. Anomaly correcting update.

    Updates to the compilers that correct anomalies will "always" be free of charge!

    Upgrades to the compilers will add new commands, items and devices, and I am now having to, unfortunately, ask a...
  52. Re: Proton and Proton24 Compilers. Anomaly correcting update.

    Hello Bob. Many thanks.

    It will be per person, so the compilers can be installed on any machine that the person owns! The personalised software registration mechanism makes the compilers...
  53. Thread: Pic 16f18425

    by top204
    Replies
    4
    Views
    453

    Re: Pic 16f18425

    Many thanks Johan.

    I try my hardest to make the compilers better and better, and it takes a lot of time, concentration, dedication and money for new devices, not to mention heating and electricity...
  54. Proton and Proton24 Compilers. Anomaly correcting update.

    A new update to the compilers is on my site here:

    https://sites.google.com/view/rosetta-tech/home

    The update corrects a few anomalies that have crept into the compilers.

    The next "upgrade"...
  55. Thread: Pic 16f18425

    by top204
    Replies
    4
    Views
    453

    Re: Pic 16f18425

    The 16F18424, 16F18425, 16F18444, 16F18445, 16F18455, and 16F18456 devices will be in the next "upgrade" of the compiler coming at, or just after, Christmas, along with the new 18FxxQ43 devices, and...
  56. Replies
    2
    Views
    309

    Re: Assembler labels

    Yes. The labels to jump too can be a value and if the label within the mnemonic has a lower-case "f" after it, it will jump forward, and a lower-case "b" will jump bakwards. Also, the labels are...
  57. Re: ASM Error 113 A.S 1340 symbol not previously defned PP_RCIF 3.7.4.7

    Unfortunately, my illness will not get better, it will remain the same for the rest of my existence. :-( But I try my damnest to get on with things. :-)
  58. Replies
    4
    Views
    454

    Re: Error HBStart in proton 3.7.4.7

    The HBus commands will give reminders that they are legacy, but they will not be removed from the compiler for the older devices. However, now that the 8-bit Proton has procedures, I'm hoping users...
  59. Re: ASM Error 113 A.S 1340 symbol not previously defned PP_RCIF 3.7.4.7

    I corrected this a while ago, but have been rather poorly, health wise, so I have not been able to build the installer for the next update.

    For now, simply add the following line to your program:...
  60. Replies
    5
    Views
    434

    Re: Glitch caused by Low command

    You do not need to alter the TRIS SFRs, just make the relevant pin an output with the Output command.
  61. Replies
    11
    Views
    969

    Re: Using a QMC5883L 3 axis compass sensor

    There is an anomaly in Proton24 for this comparison. The compiler is producing the negative constant value as 32-bit within its source, so it does not see the values correctly when negative.
    ...
  62. Replies
    11
    Views
    969

    Re: Using a QMC5883L 3 axis compass sensor

    This is in the Proton ver 3 section of the forum, so I automatically assumed it was a possible anomaly with an 8-bit device!

    I'll check out Proton24 now.
  63. Replies
    7
    Views
    951

    Re: EEPROM corruption in 18F24K22

    Whenever I am writing to eeprom, I always create a routine that first reads the memory, and if it is the same value that is going to be written to it, do not overwrite it because this writes to the...
  64. Replies
    10
    Views
    789

    Re: Memory occupancy report

    The compiler takes the last flash memory address used, from the .lst file, and this is how many words the program has taken up.

    Any gaps in-between the code are still counted as used.

    So if a...
  65. Replies
    7
    Views
    484

    Re: Ram reading via address

    The short names of the old interpreted BASICS were because the name characters themselves took up RAM in the computer, so shorter names meant that less memory was taken up by the program itself.
    ...
  66. Replies
    4
    Views
    454

    Re: Error HBStart in proton 3.7.4.7

    Whoops..... I had returns after the reminders of Legacy in the compiler's source on these commands, by mistake, so it was exiting before it performed the call. :-)

    I must stop working too late at...
  67. Replies
    4
    Views
    454

    Re: Error HBStart in proton 3.7.4.7

    Very strange why it is missing the HBStart and HBRestart and HBStop and HBBusAck calls in the Asm.... I'll check it out ASAP.
  68. Replies
    11
    Views
    969

    Re: Using a QMC5883L 3 axis compass sensor

    I've just ran a test on an 18F device and an enhanced 14-bit core device and the comparison is working as expected. With this code snippet:



    Dim wHeading As SWord

    wHeading = -100
    ...
  69. Replies
    5
    Views
    434

    Re: Glitch caused by Low command

    On all 18F devices, the compiler uses the LAT SFRs when a Pin is used in Low, High, Set, Clear, PinSet, PinClear etc... However, with the early enhanced 14-bit core devices, the LAT SFRs were in a...
  70. Replies
    7
    Views
    484

    Re: Ram reading via address

    VarPtr and AddressOf are the same function, but I am in the process of making the name change more familiar in the manual because AddressOf is more in-keeping of what it does. I originally chose...
  71. Re: Select/Case/Endselect nested into a If/else/then

    The code below should work as well, because if tActive is true or false, a value of 3 in bOption will create a 300ms delay in your code:



    Dim bOption As Byte
    Dim tActive As Bit

    ...
  72. Re: Variable '_USB_RAM' not found in USB keyboard demo

    I meant the J53 device LOL.

    The _USB_RAM constant holds the start of the dual port RAM. I'm not sure why the PIC18F2455 has lost it in its .def file, because it use to be there!

    It can be...
  73. Re: Select/Case/Endselect nested into a If/else/then

    That's the standard mechanism of a Select-EndSelect structure or switch in C and C++.

    All extra conditions are held within the Case sections of it.

    It could be re-written as:


    Dim...
  74. Re: Select/Case/Endselect nested into a If/else/then

    This type of syntax will not work because If-Then and Select-EndSelect are compile time directives and will not alter at Run-Time.

    I forgot to create any error trapping for this scenario, as I had...
  75. Replies
    12
    Views
    3,244

    [SOLVED !] Proton. Sequential access to any I/O pin on a device, with any pin pattern

    With the more recent compiler updates, new commands have been added to access any pin as a value, either held in a variable or as a constant. This means a sequence of LEDs connected to any I/O pin...
  76. Replies
    13
    Views
    706

    Re: CCP PWM errors at higher frequency

    For an ADSR, or envelope generator, I've used the MC3340 chip a few times and they are excellent and still available after all of these years!

    So a single 8-pin device attenuates the signal with a...
  77. Replies
    13
    Views
    706

    Re: CCP PWM errors at higher frequency

    A nice simple circuit David.

    In the past, when I've been designing AM transmitters with a microcontroller's PWM as their oscillator, I've used an inexpensive double, high frequency, Op-Amp chip....
  78. Replies
    13
    Views
    706

    Proton PIC12F1840 ECCP peripheral PWM running at 200KHz with 7-bit resolution

    With timer based PWM, the resolution of the PWM waveform reduces as the frequency increases. There is an equation in the datasheet to calculate the resolution for a given PWM frequency. Here's a demo...
  79. Re: Variable '_USB_RAM' not found in USB keyboard demo

    The more recent 18F devices with a USB peripheral do not have a fixed part of RAM for the USB. All the SRAM is dual conversion, so the section within the .gld file that gets read for the PPI files is...
  80. Re: USB HID Keyboard Demo has compile errors in 3.7.4.7

    There are some files missing from the codes you uploaded. For example; "USB_Defs.inc". And some things seems to be changed in the code.
  81. Re: USB HID Keyboard Demo has compile errors in 3.7.4.7

    I based the USB code on the, dreadful, Microchip code many years ago, so there are similarities.

    The USB peripherals used in the PIC and PIC24 devices are an absulute shambles, in my opinion, and...
  82. Re: USB HID Keyboard Demo has compile errors in 3.7.4.7

    The USB samples are something I forgot to update, and they clash with some differences I had to make within the compiler. Alter the ISR_Service code, within the "USB_UserHID.inc" file to:



    ...
  83. Re: FONT PRINTING ON EA DOG DISPLAY (ST7565R) WITH a PIC24?

    If you only have a font creator that produces Y axis font data, rotate the window that is needed before the font is sent to the display and the pixels will move in the Y direction within it for every...
  84. Replies
    30
    Views
    5,301

    Proton: PIC12F675 On-Board EEPROM Read and Write Procedures

    When things don't go quite to plan, I have always found it better to create my own routines to perform a task, then they can be manipulated to meet requirements. For example, below are a few...
  85. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    Yes I have just looked.

    Unfortunately I can only accept Paypal, as I am not set up for any other payment method.
  86. Proton: MCP3208 advice

    For those of you who are using the MCP3208, 12-bit version of the MCP3008, the library below can easily be adapted for them as well to read single ended, by changing the line in the MCP3008_Read...
  87. Replies
    8
    Views
    493

    Re: Pulling power from a RS232 port

    You will need a form of integrator circuit. i.e. What is used to smooth out PWM pulses.

    It, essentially, keeps a capacitor charged with the pulses coming from the TX line. Maybe a low pass filter...
  88. Proton MCP3008 multi-channel ADC library

    Here's a Proton library that I have just created to read from an MCP3008 multi-channel ADC:



    $ifndef _MCP3008_INC_
    $define _MCP3008_INC_
    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' \/\\\ ...
  89. Replies
    11
    Views
    969

    Re: Using a QMC5883L 3 axis compass sensor

    I've just noticed your code is:



    Proc ReadHeading(),WordDim x As SWord


    I know this is a forum thread issue that has removed a carriage return from the line, so I'll just alter it for other...
  90. Replies
    11
    Views
    969

    Re: Using a QMC5883L 3 axis compass sensor

    Excellent code! Proton makes it look so easy, even though it is not. :-)

    Make sure you are converting degrees to radians for the compiler's trig procedures, and back again for viewing etc...
    ...
  91. Replies
    6
    Views
    707

    Re: Anybody using ESP8266 with mobile phone

    If only the Proton BASIC site had looked like that site. :-(
  92. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    Did you get a USB key with the compiler?

    The USB key in the image does not look like a Proton USB key!

    You will need to get in touch with Dizzy and explain what is happening with the compiler...
  93. Replies
    2
    Views
    505

    Re: Memory reserve for bootloader Pic18F46J50

    Over the years I have created declares to help me develop the compiler that have come in useful, and here is another one:

    Declare Proton_Start_Address = $2000

    The above Declare will move the...
  94. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    If the software registered version of the compiler is being used, re-install the purchased compiler version, then install the updates over it. Do not uninstall the registered version, otherwise, the...
  95. Re: Double variable (64bit float) How to access bytes 4-7?

    What version of the compiler are you using?

    I added .Byte4 to .Byte7 and .Word2 and .Word3 for Double variables quite a few updates ago. For example:


    Dim MyArray[10] As Byte
    Dim...
  96. Replies
    24
    Views
    1,746

    Re: 3d printers any recommendations?

    Unfortunately, I had to sell my 3D printer a few months ago, so I'm currently getting some things made by my good friend, when he can fit them in. Crickey.... 40 years of friendship! Where has the...
  97. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    The free "trial" compilers offer a few devices so they can be used and seen if they are liked. For a compiler version that does not need a USB key, because it uses a software registration, and can be...
  98. Thread: Error

    by top204
    Replies
    17
    Views
    1,092

    Re: Error

    What error?
  99. Thread: Cheap MUX board

    by top204
    Replies
    1
    Views
    299

    Re: Cheap MUX board

    Crickey.... I used them back the 1980s for a few audio synth projects I did. Back when they were still named CD4067. :-)

    The bi-lateral CMOS switches were quite new then, so they were a marvel to...
  100. Replies
    24
    Views
    1,746

    Re: 3d printers any recommendations?

    For PLAs, you can use Ethyl Acetate or Tetrahydrofuran, but only in open air because they can be a bit dodgy, but not as dodgy as some of the chemicals used for cleaning kitchens and toilets and...
  101. Replies
    6
    Views
    1,134

    Re: Problem with ISIS distribute with Proton

    Proteus is still, very much, a DOS program from the 1990s. It has had some changes made over the years but nothing that brings it into the 21st century.

    The GUI is a shambles and the...
  102. Replies
    24
    Views
    1,746

    Re: 3d printers any recommendations?

    To smooth the lines from the model, get some acetone and sit the model in the acetone's fumes for a while. If you have used the standard plastic string, it will smooth it so it does not look like it...
  103. Replies
    5
    Views
    621

    Re: software PWM woes

    For continuous, background, PWM on a device that does not contain a CCP peripheral, the PWM pulses need to be implemented using an interrupt.

    There are a few demo programs showing the mechanism of...
  104. Replies
    6
    Views
    1,134

    Re: Problem with ISIS distribute with Proton

    The problem came up quite a few years ago, because Labcentre changed the way the Isis was called from a third party program, but the IDE was never updated to change it.

    If possible, I will be...
  105. Replies
    4
    Views
    536

    Re: Flash Memory tables in Proton and Proton24

    The Flash, Flash8, Flash16, Flash24, Flash32 and FlashF are the same directives as the Code, Code8, Code16, Code24, Code32 and CodeF directives, but with a more clear name for what they do. i.e....
  106. Replies
    4
    Views
    536

    Flash Memory tables in Proton and Proton24

    The next "upgrade" to the compilers is coming soon, which adds new devices and a new, unique, variable type to them.

    It also adds a new, optional, syntax for flash memory data tables that extends...
  107. Replies
    24
    Views
    1,746

    Re: 3d printers any recommendations?

    You are correct Tim, the resin uses the lower UV band for curing, and will cure in sunlight. However, if the time is extended over a monitor with good LED backlights, the resin still cures....
  108. Replies
    24
    Views
    1,746

    Re: 3d printers any recommendations?

    I know someone who has bought a Resin 3D printer and the casing he made with it was "perfect". No lines on it and it looked like a commercial unit.

    It is a single Z axis machine that lowers a...
  109. Replies
    10
    Views
    1,874

    Re: ASM ERORs with v3.7.4.4

    I have made the compiler as backwardly compatible as is possible, and 99.99% of programs written back in 2003 will still compile and work as expected with the compiler. See the sample programs that...
  110. Replies
    30
    Views
    5,301

    Re: Using the EWrite command

    On a device's MCLR pin, it is always wise to add a 100nF capacitor to Gnd as well. This allows the microcontroller to have a better reset when powered up, because the capacitor will pull the pin down...
  111. Re: Proton and Proton24 Compilers update to versions 3.7.4.7 and 1.0.7.7

    What device?

    Each device has its own PPI file for SFR names and bit names etc, and Microchip constantly alter names in there "official" data files for devices, even of the same family, so the PPI...
  112. Replies
    3
    Views
    657

    Re: ASM ERRORS HEX file not created

    Unfortunately, the Mpasm assembler has a limit of characters per line in its Asm and Lst file, and the compiler uses these files for its internal structures and optimisers etc, so if a path to a file...
  113. Replies
    7
    Views
    1,102

    Re: 18F452 frequency counter source code

    Because you mentioned that the Proton user passed away that wrote the code (RIP), I thought I would take a quick look at it and see what I could do.

    TMR0H is not always directly readable unless...
  114. Proton and Proton24 Compilers update to versions 3.7.4.7 and 1.0.7.7

    A compilers update is available from the site below.

    It corrects some anomalies that have been observed and posted on the forum, and many thanks to the users that have laid out the anomalies...
  115. Thread: Hello !

    by top204
    Replies
    7
    Views
    685

    Re: Hello !

    Good to hear from you Fanie.

    Unfortunately, it's getting much like that over here in the UK as well. :-(
  116. Re: Arduino code to Proton (BLE Beacon via a NRF24L01+)

    I've just ordered a pair of BLE 4.0 tranceivers for a project I am doing, because the receiver needs to be very low current when waiting. They look straightforward enough and use standard AT...
  117. Replies
    4
    Views
    462

    Re: 4 Byte floats to 2 byte floats

    Converting a floating point format size to another size is not that straightforward, and will require several procedures to do the conversion, both ways. It will also lose precision because there are...
  118. Replies
    4
    Views
    433

    Re: Internal labels Proton

    Unfortunately, I had to make the changes to some library subroutine names because the newer assemblers do not like the '@' character in a label or variable name or symbol name, and it will,...
  119. Thread: HC-05 troubles

    by top204
    Replies
    5
    Views
    517

    Re: HC-05 troubles

    Glad you got that strange thing working.

    I've never come accross a serial peripheral constantly streaming OK responses when it did not get correct termination Flosi! That seems like a very strange...
  120. Re: Driver for INA219 current shunt and power monitor

    A nice piece of code Flosi. I created a library for one of these boards a few months ago, but I needed to measure very low currents. This was done by changing the on-board resistor to a 1 Ohm type...
  121. Replies
    11
    Views
    862

    Re: Dealing with load cell drift

    The only real way to remove as much drift as possible on an ADC is a steady temperature on the device. No algorithm is going to fully compensate for silicon problems. You can use algorithms to make...
  122. Re: how to use I2C and 2nd I2C built in peripherals?

    Most users do not realise the massive differences that Microchip are making to different families of devices, and most of the differences are unnecessary! For many years, the peripherals worked with...
  123. Replies
    1
    Views
    632

    Re: Tips on LCD mapping?

    To make it easier to map values to digit elements, I would create a flash memory table that corresponds to full digits, much like 7-segment displays.

    Then take the parameter and convert it to an...
  124. Re: High speed and sleep vers slow and steady Current consumption

    Depending on the device used, there are several ways to go to sleep more efficiently. For example, I have just done a project that operates on batteries and it has a host of peripheral devices...
  125. Replies
    2
    Views
    508

    [SOLVED !] Re: $Define problem?

    I've just tried to recreate the error message, but it compiles fine with this code using the 2 defines as listed:



    Device = 18F25K20
    Declare Xtal = 16

    $define...
  126. Re: how to use I2C and 2nd I2C built in peripherals?

    Because of the "massive", and unnecessary changes Microchip keep making to the MSSP peripherals on each device family, the HBus commands are now "legacy", and will not be supported with future...
  127. Replies
    5
    Views
    1,438

    Re: 12F1840 and 16F18877 internal oscillator

    The starting texts from the Proton manual's Procedures section:

    Procedures
    A procedure is essentially a subroutine in a wrapper that can be optionally passed parameter variables and optionally...
  128. Replies
    10
    Views
    1,874

    Re: ASM ERORs with v3.7.4.4

    I've made some changes to the "third party" Pprint asm routines and they can be downloaded from here:

    https://drive.google.com/file/d/1OPxLqupilESlnOT-lp6S1LXB_u9-7cLX/view?usp=sharing

    Unzip...
  129. Replies
    10
    Views
    1,874

    Re: ASM ERORs with v3.7.4.4

    The "third party" Pprint routine will need some changes made to it for the latest compiler versions.

    Because of the assembler program having some differences in its requirement, and the...
  130. Replies
    2
    Views
    581

    Re: How can I2C command without data?

    The process of starts and stops with slave address and registers address' is what the I2Cin command does when it reads from I2C, and is standard I2C protocol. Remember.... The compiler has commands...
  131. Replies
    5
    Views
    1,438

    Proton Compile: PIC16F18877 internal oscillator setups

    Section 6 of the PIC16F18877 datasheet has the required information to setup the internal oscillators, but it is a little vague, as are all datasheets now from Microchip. Mainly because they do not...
  132. Replies
    10
    Views
    1,874

    Re: ASM ERORs with v3.7.4.4

    CVREF is a bitname for PORTF on some 18F devices and the PPI has it in the PORTF section.

    It adds the bitnames with an equals character so they are not fixed constants in Asm, so the assembler...
  133. Replies
    7
    Views
    1,392

    Re: Program not moving to next function

    You will find an example program for USART serial buffering on an 18F device in the compiler's "Samples" directory:

    "C:\Users\User Name\PDS\Samples\New Samples\Buffered_Hrsin"
  134. Replies
    10
    Views
    1,874

    Re: ASM ERORs with v3.7.4.4

    The compiler self created the locations for the IDLOC addresses from what "standard" adresses used to be, but Microchip seem to be changing the address for things like that on the newer devices, so I...
  135. Re: forum obsolete - no more compiler updates here?

    I've just performed some tests and the expressions that contain arrays are working as expected. For example:



    Dim MyArray[10] As Word = 1,2,3,4,5,6,7,8,9,10
    Dim MyVar As Word

    ...
  136. Replies
    4
    Views
    500

    Re: Anybody used SSH1106 OLED display?

    I've just done some digging around and the LCDs are very similar, but there are differences in their internal RAM and the initailisation commands required, and, I think, the SPI command sequence.
  137. Replies
    1
    Views
    376

    Re: HrsIn with variable length strings

    When parsing serial data coming in. It is better not to use the modifiers because they are too simplistic, and are a throwback to the original BASIC syntax which was based, loosely, on the BASIC...
  138. Re: forum obsolete - no more compiler updates here?

    I received the email. However, the code is qyute large and I have no way of going through it all and trying to locate a "possible" anomaly without a very specific area to look at. i.e. A variable is...
  139. Replies
    13
    Views
    2,246

    Re: Problem in storing values to eeprom

    Just to make sure in my own mind that the compiler is working as expected, I created a small code snippet to test reading and writing.

    This is the type of program that should be written by users...
  140. Re: Has SELECT CASE command syntax changed in ver 1.0.7.5?

    You are very welcome.

    The issue occured because I was changing the code to suit the Pin variable types, and a section of the code that has nothing, really, to do with the Select-EndSelect...
  141. Re: forum obsolete - no more compiler updates here?

    amateurtje, I didn't receive an email from you.

    Can you send it again please?
  142. Replies
    11
    Views
    1,444

    Re: high low priority interrupt.

    You will need to use Context Save and Context Restore in the High Priority interrupt handler as well, because you have some expressions within it that will alter the device's SFRs, and create...
  143. Re: forum obsolete - no more compiler updates here?

    Many thanks friends.

    The next "upgrade" will support the new 18FxxQ43 devices and the new dsPIC33CK devices that operate up to 200MHz. I was hoping the new 18FxxQ84 devices would be available from...
  144. Compilers Update to version 3.7.4.4 and version 1.0.7.6

    The latest update for version 3.7.4.4 of Proton and version 1.0.7.6 of Proton24 are below. It corrects the Select-EndSelect anomaly in the Proton24 compiler.
    ...
  145. Re: Has SELECT CASE command syntax changed in ver 1.0.7.5?

    This anomaly was reported to me on Monday and I have corrected it for a patch.

    The current compiler's Select command has a problem with Byte variables. I found the issue, but it was a bugger to...
  146. Replies
    30
    Views
    5,301

    Re: Using the EWrite command

    Unfortunately, the standard 14-bit core devices had a lot missing when it came to their internal oscillators.

    You would be better using one of the 8-pin enhanced 14-bit core devices, because they...
  147. Replies
    3
    Views
    650

    Re: Number of compile Errors listed in the IDE

    I tried the version of the PRTOS24 I have, which is now quite old and is named "P24RTOSVars.bas", and it compiled correctly with the latest Proton24 version.

    I've sent you an email John for any...
  148. Replies
    7
    Views
    662

    Re: Strange behavior with Procedure

    An expression with in a high level command will always transmit a 16-bit value, or 32-bit if the expression contains Dword variables, or a Float if the expression contains Float variables.

    This is...
  149. Replies
    3
    Views
    650

    Re: Number of compile Errors listed in the IDE

    I have made some changes to error mechanism of the compiler, so that a huge list off errors is not created by a single error. This is something I did not need to do when teh compiler was a lot...
  150. Replies
    9
    Views
    1,530

    Re: I2C serial display

    I've just tested the I2C.inc file with the Isis simulator and looked at the I2C data being transferred too and from the I2C slave device, which is an eeprom, and everything is working fine.

    Here's...
  151. Re: forum obsolete - no more compiler updates here?

    To check if there is an update, simply visit my site. Please note.... The days of free updates with new devices and new commands and directives etc is coming to an end. Anomaly correcting patches...
  152. Replies
    9
    Views
    1,530

    Re: I2C serial display

    Make sure you also altered the Declare Xtal setting in the program for the oscillator frequency used. The compiler has no way of knowing what oscillator is being implemented or its frequency, so the...
  153. Replies
    9
    Views
    1,530

    Re: I2C serial display

    The Atmel 328P is a dreadfully slow and inefficient device, so the I2C slave will be rather slow. Especially if it has been written in GCC because it produces absolutely horrific bulky code. But that...
  154. Replies
    9
    Views
    1,530

    Re: I2C serial display

    The I2C may be operating too fast for the receiving peripheral because they are, sometimes, preprogrammed microcontrollers operating as an I2C slave, or the older I2C to parallel devices that are...
  155. Replies
    3
    Views
    2,110

    Re: Reading string HRSin

    If the module is using an AT style interface, as most do, it will be receiving and returning ASCII characters.

    If this is the case, receiving a single 16-bit value will not produce the correct...
  156. Thread: FineLineIDE

    by top204
    Replies
    170
    Views
    47,939

    Re: FineLineIDE

    Many thanks Norm.
  157. Re: In windows 10 ver.2004 uninstalling the program "Proton" is not possible!

    Use the Start menu, and within the PDS section you will find the Uninstall. I haven't worked out why the installer is not allowing the Control Panel to uninstall, but installers now have to do so...
  158. Replies
    51
    Views
    25,693

    Re: Proton24 SD FAT File System

    You would be better off looking at the CH376 chip Jim, so that a USB disk can be used, as well as an SD card. They have gone up in price since this Covid pandemic, but that is, unfortunately, the way...
  159. Replies
    9
    Views
    1,290

    Re: Amicus24 board component

    I used the variable LDO because the protecting Schottky diodes reduce the voltage slightly, so a standard 5V type was not suitable. The Schottky diodes are there so that voltage will not flow back to...
  160. Replies
    4
    Views
    840

    Re: Error in version 3.7.4.1

    I've just tried the code snippet you posted in the new compiler update and it works fine.
  161. Replies
    4
    Views
    840

    Proton Update to versions 3.7.4.2 and 1.0.7.5

    And updated compiler that corrects the Cdata anomaly can be downloaded from here:

    https://sites.google.com/view/rosetta-tech/home
  162. Replies
    6
    Views
    896

    Re: 16F15354 error 126

    The PPS only comes into play when using certain peripherals, and on most 8-bit devices, the I2C pins are fixed so do not need PPS.

    The Bus commands do not use PPS because they are software I2C...
  163. Replies
    4
    Views
    840

    Re: Error in version 3.7.4.1

    You noticed the anomaly before I could get the next update loaded and hide it. :-)

    I noticed it a few days ago and have corrected it. It was due to the data tables being created after pass 1 of...
  164. Replies
    6
    Views
    896

    Re: 16F15354 error 126

    The compiler's .ppi and .def files are showing that there are 4096 words of flash memory on the devices, so the compiler is creating correct code.

    I've just created and compiled a program for the...
  165. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    The storypainter email name is a project I have in mind, and hopefully, will be able to afford to develop it some day. I know it will become popular because it stimulates the "ego maniacs" that are...
  166. Replies
    14
    Views
    1,257

    Re: How do you drive an inkjet printer via USB?

    Why not take a look on Ebay and see if you can get one of the lovely Dot-Matrix printers from the 80s and 90s.

    I remember creating a program for the Atari 800 and Commodore 64 in the 80s that...
  167. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    The latest compilers will look for, and use, the USB key. However, they are also now able to be software registered, meaning they will no longer require the USB key plugged in if using the software...
  168. Replies
    14
    Views
    1,257

    Re: How do you drive an inkjet printer via USB?

    You will require a USB host chip or board Charlie.

    There are many around for a few , but they will also need to be able to interface with the USB receiver on the printer, which is not that easy,...
  169. Replies
    4
    Views
    3,841

    Proton Compiler: MCP4921 12-bit DAC Library and Demo code

    There are a vast amount of details for the MCP49xx devices if a search is carried out on the net, and the device's datasheet is, unusual for Microchip, quite clear to read and understand. However,...
  170. Re: johngb has just uploaded Proton Stdio 2.1.0.8!

    Many thanks John.
  171. Replies
    2
    Views
    833

    Proton Compiler: Alter the Baud rate and PPS for USART1 on a PIC16F15323

    The new versions of Proton automatically setup the PPS when the declares are used for the USARTs. For example:



    Device = 16F15323
    Declare Xtal = 8
    '
    ' Setup USART1 (Also...
  172. Replies
    4
    Views
    788

    Proton Compiler: PIC16F1825 Internal Oscillator running at 16MHz

    Try this code. I've tested it and it works as expected:



    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' \/\\\ \/\\\ /\\\ /\\\
    ' ...
  173. Replies
    7
    Views
    1,202

    Re: SSPBUF popping before SPI transmission

    That code was written quite a long time ago, and before I created "true" procedures for the Proton 8-bit compiler. At the time the routines were written I created a mechanism to pass variables from...
  174. Replies
    4
    Views
    847

    Re: Procedures with string input

    Take a look at ByRef and BycRef for the parameters. AddressOf is "not" required because the 2 directives automatically pass the address of the flash memory or RAM. I have covered this a few times on...
  175. Replies
    9
    Views
    897

    Re: Using Tina and Tina Cloud with PIC devices

    The page has lots of sources for the older Microchip open source projects. I remember a few years back altering the PICkit2 firmware and windows program to add a few new devices I had, and to give it...
  176. Replies
    2
    Views
    1,472

    Re: version of the proton

    The latest compiler update is available from here:

    https://sites.google.com/view/rosetta-tech/home

    It is version 3.7.4.1 for Proton and version 1.0.7.4 for Proton24.

    It has taken a while to...
  177. Replies
    9
    Views
    897

    Re: Using Tina and Tina Cloud with PIC devices

    An interesting program, but what a fart on to download it! :-)

    Anything that knocks the rip-off Proteus from the platform is a good thing IMO, because they are simply now one of the sheep...
  178. Thread: Door bell chime

    by top204
    Replies
    11
    Views
    1,791

    Re: Door bell chime

    Or for a simple, but not as fun, solution, you can use the old, but wonderful, SAB0600 chip. It was designed for door chimes and has a 3 tone chime. You can get them from Ebay for a couple of pounds...
  179. Thread: Door bell chime

    by top204
    Replies
    11
    Views
    1,791

    Re: Door bell chime

    I did create an article on making chimes and music with 3 channels many, many years ago and placed it on the forum one Christmas, but, as with many other things on this forum, it has now gone and...
  180. Re: johngb has just uploaded Proton Studio 2.0.1.5 Update!

    Many thanks John. I didn't know you were using the .mcd file dynamically, I thought the highlighting was hard coded.

    Although it is still not picking up the texts:

    #ifnSym
    #ifSym
    #endIfSym
    ...
  181. Replies
    3
    Views
    2,871

    Re: 2D Byte Array Command

    A 2 dimensional array still takes the same amount of RAM as 2 arrays.

    The compiler allows an array to be as large as the RAM on the device will carry.

    I am working on adding multi-dimensional...
  182. Replies
    3
    Views
    775

    Re: selecting weak pull up pins on 18F25k22

    I have added a PinMode command to the compiler that will set pins output or input, and enable individual pull-ups on devices that use the WPUx SFRs and if the compiler sees an RBPU bit in the...
  183. Re: johngb has just uploaded Proton Studio 2.0.1.5 Update!

    John.... Your IDE is just getting better and better, and many thanks for it.

    Requests:

    Can you add these texts to the highlighter please:

    #ifnSym
    #ifSym
    #endIfSym
  184. Poll: Re: About deleting accounts due to inactivity beyond three months.

    Please remember, the forum is out of my control and I have nothing to do with it, and gain nothing from it.
  185. Replies
    4
    Views
    1,334

    Proton24 Compiler - Parameterising 'Dim abc As code ='

    Sorry Charlie.... I've just noticed and I just remembered that you are now using the lovely PIC24 and dsPIC devices, which have a much nicer internal mechanism for Flash and RAM access. The compiler...
  186. Replies
    4
    Views
    1,334

    Re: Parameterising dim abc as code =

    The Cread commands are for flash memory access Charlie, but you have a RAM String variable as the parameter.

    You need to use the BycRef directive as the parameter, then the address of the Flash...
  187. Replies
    7
    Views
    899

    Re: Device PIC18F47Q84

    The Q84 devices are not available yet, as they are future products.

    However, I am working on the newer Q types, and their architecture is quite different, internally, to the standard PIC 18F...
  188. Replies
    7
    Views
    975

    Re: Grief breading serial data from AHT20

    Glad you got it working Bob.

    See how simple it can be when done with reading the datasheet first, instead of "copy and pasting" code from an over-active nerd who thinks "over complex" code makes...
  189. Replies
    7
    Views
    975

    Re: Grief breading serial data from AHT20

    I've just viewed the AdaFruit library code for this device and the code is an abomination! C++ is a messy language anyway, but the way they have implemented it is even more dreadful and bulky and...
  190. Proton Compiler LED Linearisation using an AntiLog algorithm

    John is right. LEDs are not linear in operation, so a linear voltage to them will not create a linear brightness level, as it does with an incandescent light bulb.

    I remember coming across this...
  191. Proton Compiler Median Filter Library Demo

    The Proton compiler has had the Gosub command from day one!

    A language without a call-return mechanism is not an option because they are paramount to all programs and even the early computer...
  192. Replies
    8
    Views
    1,079

    Re: Happy birthday Rick (rcurl)

    I personally dislike birthdays now. :-)

    When I reached 40 years old, quite a few years ago, I then realised I was not immortal, and time has passed by so quickly since then. When I was younger,...
  193. Replies
    8
    Views
    1,079

    Happy birthday Rick (rcurl)

    Many happy returns Rick.

    I hope you have a lovely birthday. :-)
  194. Replies
    13
    Views
    2,166

    Re: dsPIC33 can't get USART to receive

    I totally agree with John... The Silicon Chip magazine would be excellent for an article on the vintage computers, and maybe, the UK EPE will copy it over to their magazine. I know it would be a damn...
  195. Re: Font convertor for ea dog graphic display & pic24

    Try a search on the forum!

    It has lots of hits for "Font Converter", and I have uploaded a Font converter or two over the years. Such as this one that came out with a search:
    ...
  196. Replies
    13
    Views
    2,166

    Proton24 Compiler. Flash memory Data Tables reading

    I'll check it out Charlie. I'm so glad you got your emulator working. I would love to read an article about it somewhere if you have the time because it shows that our users are clever people and it...
  197. Re: Using HEF / SAF / NVM / ROM / FLASH to simulate EEPROM

    Using the Org directive in the BASIC listing is not recommended because it will move all the program up to the Org address and it will cause a program to go over the Flash memory limit.

    If writing...
  198. Replies
    29
    Views
    2,761

    Re: 4 Hex values to decimal float

    Sorry John.... "Teaching a granny to suck eggs". LOL

    Pointers are very useful sometimes, but some languages make far too much use of them and they simply confuse code and can make it run slower...
  199. Replies
    29
    Views
    2,761

    Re: 4 Hex values to decimal float

    The ByRef means that a RAM string's address is passed to the procedure. However, it can actually take a fraction more time when operating with too many "pointers" on a microcontroller, but because it...
  200. Replies
    14
    Views
    1,809

    Re: FFT_Tone_Decoder for LEDs

    Many thanks for uploading your code Gabi. However, I have noticed an anomaly within it that will cause problems.

    The interrupt handler is not using Context Save or Context Restore, so all the...
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4