Search Results - Proton BASIC community web site


Search:

Type: Posts; User: top204

Page 1 of 5 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    24
    Views
    648

    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...
  2. Thread: Error

    by top204
    Replies
    5
    Views
    179

    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...
  3. Thread: Error

    by top204
    Replies
    5
    Views
    179

    Re: Error

    What error?
  4. Thread: Cheap MUX board

    by top204
    Replies
    1
    Views
    98

    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...
  5. Replies
    24
    Views
    648

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

    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...
  7. Replies
    24
    Views
    648

    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...
  8. Replies
    5
    Views
    176

    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...
  9. Replies
    6
    Views
    314

    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...
  10. Replies
    4
    Views
    229

    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....
  11. Replies
    4
    Views
    229

    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...
  12. Replies
    24
    Views
    648

    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....
  13. Replies
    24
    Views
    648

    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...
  14. Replies
    10
    Views
    1,344

    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...
  15. Replies
    27
    Views
    3,605

    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...
  16. 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...
  17. Replies
    3
    Views
    378

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

    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...
  19. 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...
  20. Thread: Hello !

    by top204
    Replies
    7
    Views
    325

    Re: Hello !

    Good to hear from you Fanie.

    Unfortunately, it's getting much like that over here in the UK as well. :-(
  21. 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...
  22. Replies
    4
    Views
    217

    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...
  23. Replies
    4
    Views
    193

    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,...
  24. Thread: HC-05 troubles

    by top204
    Replies
    5
    Views
    215

    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...
  25. 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...
  26. Replies
    11
    Views
    430

    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...
  27. 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...
  28. Replies
    1
    Views
    333

    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...
  29. 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...
  30. Replies
    2
    Views
    240

    [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...
  31. 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...
  32. Replies
    5
    Views
    598

    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...
  33. Replies
    10
    Views
    1,344

    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...
  34. Replies
    10
    Views
    1,344

    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...
  35. Replies
    2
    Views
    329

    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...
  36. Replies
    5
    Views
    598

    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...
  37. Replies
    10
    Views
    1,344

    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...
  38. Replies
    7
    Views
    624

    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"
  39. Replies
    10
    Views
    1,344

    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...
  40. 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

    ...
  41. Replies
    4
    Views
    284

    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.
  42. Replies
    1
    Views
    170

    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...
  43. 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...
  44. Replies
    13
    Views
    1,736

    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...
  45. 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...
  46. Re: forum obsolete - no more compiler updates here?

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

    Can you send it again please?
  47. Replies
    11
    Views
    977

    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...
  48. 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...
  49. 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.
    ...
  50. 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...
  51. Replies
    27
    Views
    3,605

    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...
  52. Replies
    3
    Views
    399

    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...
  53. Replies
    7
    Views
    409

    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...
  54. Replies
    3
    Views
    399

    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...
  55. Replies
    9
    Views
    1,028

    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...
  56. 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...
  57. Replies
    9
    Views
    1,028

    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...
  58. Replies
    9
    Views
    1,028

    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...
  59. Replies
    9
    Views
    1,028

    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...
  60. Replies
    3
    Views
    1,422

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

    by top204
    Replies
    170
    Views
    44,284

    Re: FineLineIDE

    Many thanks Norm.
  62. 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...
  63. Replies
    45
    Views
    23,984

    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...
  64. Replies
    9
    Views
    932

    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...
  65. Replies
    4
    Views
    599

    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.
  66. Replies
    4
    Views
    599

    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
  67. Replies
    6
    Views
    619

    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...
  68. Replies
    4
    Views
    599

    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...
  69. Replies
    6
    Views
    619

    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...
  70. 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...
  71. Replies
    14
    Views
    771

    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...
  72. 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...
  73. Replies
    14
    Views
    771

    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,...
  74. Replies
    4
    Views
    3,575

    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,...
  75. Re: johngb has just uploaded Proton Stdio 2.1.0.8!

    Many thanks John.
  76. Replies
    2
    Views
    656

    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...
  77. Replies
    4
    Views
    545

    Proton Compiler: PIC16F1825 Internal Oscillator running at 16MHz

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



    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' \/\\\ \/\\\ /\\\ /\\\
    ' ...
  78. Replies
    7
    Views
    931

    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...
  79. Replies
    4
    Views
    661

    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...
  80. Replies
    9
    Views
    691

    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...
  81. Replies
    2
    Views
    1,267

    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...
  82. Replies
    9
    Views
    691

    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...
  83. Thread: Door bell chime

    by top204
    Replies
    11
    Views
    1,427

    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...
  84. Thread: Door bell chime

    by top204
    Replies
    11
    Views
    1,427

    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...
  85. 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
    ...
  86. Replies
    3
    Views
    2,328

    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...
  87. Replies
    3
    Views
    561

    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...
  88. 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
  89. 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.
  90. Replies
    4
    Views
    1,053

    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...
  91. Replies
    4
    Views
    1,053

    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...
  92. Replies
    7
    Views
    739

    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...
  93. Replies
    7
    Views
    753

    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...
  94. Replies
    7
    Views
    753

    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...
  95. 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...
  96. 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...
  97. Replies
    8
    Views
    875

    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,...
  98. Replies
    8
    Views
    875

    Happy birthday Rick (rcurl)

    Many happy returns Rick.

    I hope you have a lovely birthday. :-)
  99. Replies
    13
    Views
    1,656

    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...
  100. 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:
    ...
  101. Replies
    13
    Views
    1,656

    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...
  102. 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...
  103. Replies
    29
    Views
    2,181

    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...
  104. Replies
    29
    Views
    2,181

    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...
  105. Replies
    14
    Views
    1,366

    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...
  106. Replies
    29
    Views
    2,181

    Proton Compiler - String To Floating Point conversion procedure

    For floating point coversion from an ASCII representaion to a variable it would be better to use a dedicated procedure to convert the String into a variable.

    I've just created this procedure that...
  107. Replies
    13
    Views
    1,656

    Re: dsPIC33 can't get USART to receive

    Remember Charlie.... It's not just the MIPS that make the difference, although they are really fast. It is the architecture of the 16-bit devices with their ability to move 8-bit or 16-bit values...
  108. Replies
    13
    Views
    1,656

    Re: dsPIC33 can't get USART to receive

    Glad it worked Charlie, and glad the board worked.

    I'll have to go through the .def files and change some of the codes that set pins to digital. Again, it seems Microchip have changed the way pins...
  109. Replies
    13
    Views
    1,656

    Re: dsPIC33 can't get USART to receive

    I don't have one of those devices to test, but there are some checks you can make for the IO pins.

    First make sure the pin used for RX is set to digital mode with something like:



    Input...
  110. Replies
    22
    Views
    3,379

    Re: SPI with 2 slaves, GLCD and MAX147

    If you are using the bootloader to program the Amicus18's microcontroller, it will always run at 64MHz using the 4xPLL because that is the fuse settings for the bootloader, so it is the settings for...
  111. Replies
    13
    Views
    1,656

    Re: dsPIC33 can't get USART to receive

    Before doing any other coding, try a simple loop that receives a byte using the Hrsin command then outputs the byte received using the Hrsout command.

    This will tell you if the USART is working...
  112. Replies
    22
    Views
    3,379

    Re: SPI with 2 slaves, GLCD and MAX147

    To alter the speed to slower with the MSSP peripheral operating as SPI, you can use Timer2 as the clock source.

    I have had to use Timer2 as the clock a few times in the past because the older PIC...
  113. Replies
    2
    Views
    686

    Re: Whats the latest version of compiler

    Here it is Charlie:

    http://www.protonbasic.co.uk/showthread.php/78861-Latest-Proton-and-Proton-Compiler-Update-for-Versions-3.7.3.9-and-1.0.7.2

    There is also a new update in the making.
  114. Replies
    14
    Views
    1,366

    Re: FFT_Tone_Decoder for LEDs

    An standard FFT alone will only work from DC to the cutoff frequency, so the array that is filled with the spectrum just needs to be examined, or displayed, from the lowest frequency required to the...
  115. Replies
    14
    Views
    1,366

    Re: FFT_Tone_Decoder for LEDs

    I've just looked up what CTCSS is and it is a very simple principle, so an FFT would be excellent at detecting that frequency and the other sounds at different frequencies could be ignored.

    It...
  116. Replies
    14
    Views
    1,366

    Proton24 DTMF decoder

    Quite a few years ago, when I was first learning the DSP capabilities of the dsPIC33 devices, I created a DTMF decoder for them. It uses the library routines installed with the compilers for the FIR...
  117. Replies
    14
    Views
    1,366

    Re: FFT_Tone_Decoder for LEDs

    I forgot to answer your original question, sorry.

    To alter the bandwidth of the FFT, change the sampling rate of the ADC. The longer the delay between samples filling the FFT buffer, the lower the...
  118. Replies
    14
    Views
    1,366

    Proton Compiler - FFT Tone Decoder for LEDs

    Take a look on my personal site here:

    https://sites.google.com/view/rosetta-tech/proton-experimenters-notebook/real-time-fft-display-and-tone-decoder

    On my google site, things are safe and will...
  119. Replies
    29
    Views
    2,181

    Re: 4 Hex values to decimal float

    It is an acronym I have, unfortunately, started using for "In My Opinion". I have always tried not to use acronyms because we are surrounded by them now, and they do actually confuse things, but...
  120. Replies
    29
    Views
    2,181

    Re: 4 Hex values to decimal float

    The compiler's Val function does all the mathematics required to convert Binary, Hex or Decimal strings into an integer value, or the Str$ function to do the reverse.

    It's always best, IMO, to...
  121. Replies
    6
    Views
    1,017

    Re: 16F1713 PPI failure

    I totally agree Gamboa. The PIC24 devices are really nice and quite easy to use. IMO, they are easier to use than 8-bit devices and certainly a whole lot more efficient, and still come in DIL...
  122. Replies
    6
    Views
    1,017

    Re: 16F1713 PPI failure

    Unfortunately, we now live in a "Cut and Paste" world, which is why I don't bother with "so called" bloggers, and most forums or internet sites. It is, mostly, the same "incorrect" crap copied and...
  123. Replies
    29
    Views
    2,181

    Re: 4 Hex values to decimal float

    If it is raw binary values being received, place the bytes into the individual bytes of a Dword variable.

    Pseudo code:

    MyDword.Byte0 = Received Byte
    MyDword.Byte1 = Received Byte...
  124. Replies
    6
    Views
    1,017

    Re: 16F1713 PPI failure

    The PPS section is missing from the PPI file.

    Sorry about that...

    I've just noticed that some of the other, more recent, enhanced 14-bit core devices are missing the PPS values as well! The PPI...
  125. Replies
    4
    Views
    859

    [SOLVED !] Re: 14 core MCU, how I set a monolithic array

    But that's like saying, the 6502 and Z80 microcprocessors of the late 1970s and 1980s opened the door to computing and had a huge volume of valuable software written for them. So we should still use...
  126. Replies
    29
    Views
    2,181

    Re: 4 Hex values to decimal float

    It looks more like a fixed point type of return, where the decimal point is placed in a particular position.

    This can be re-formatted for display with some divides once the HEX string has been...
  127. Replies
    4
    Views
    859

    [SOLVED !] Re: 14 core MCU, how I set a monolithic array

    With the standard 14-bit core devices, using the FSR and INDF registers for RAM access is very impractical because the array is broken into several fragments for the fragmented RAM of these older...
  128. Replies
    22
    Views
    3,379

    Re: SPI with 2 slaves, GLCD and MAX147

    As long as both peripherals are using the same SPI mode, they should work perfectly with a diferent CS line and the same MOSI, MISO and CLK pins. However, it may be that the LCD is pulling some SPI...
  129. Replies
    29
    Views
    2,023

    Re: Pickit compile and program

    You can add the programmer to the Programmer.ini file. For example, the PICkit3 entry would be:

    ; *********************************************************
    ; * Name : PICKit3 ...
  130. Replies
    29
    Views
    2,023

    Re: Pickit compile and program

    If you look in the "Plugins" directory of the IDE's folder "C:\Program Files (x86)\ProtonIDE\Plugin\PICkit3", you will see the command lines required for a PICkit3. As far as I remember, they are...
  131. Replies
    22
    Views
    3,379

    Re: SPI with 2 slaves, GLCD and MAX147

    For the LCD, it is important to have speed, so the MSSP peripheral operating as an SPI master is a good idea, but the for the ADC, why not use the compiler's Shin command? Or create a procedure that...
  132. Replies
    3
    Views
    1,796

    Re: Repository for useful code for xxx devices

    My personal thoughts would be an entry in Github, then the files are safer for future.

    I'm currently looking into Github for Positron instead of my google drive. Then any links from a forum can go...
  133. Replies
    8
    Views
    886

    Re: dsPic33EP SPI interface DWM1001 Module

    Crickey.... You had me looking all around for the PIC24FJ128GP502 device's support files and the microchip support files to see where the issue was Charlie, but the device does not exist. :-)

    The...
  134. Replies
    39
    Views
    4,120

    Re: Les's WS2812 code

    Within a library it cannot always check the state of INTCON for interrupts enabled/disabled, otherwise it will effect timings because when a procedure or routine starts, the INTCON SFR has to be...
  135. Replies
    85
    Views
    5,615

    Re: Proton Studio Version 2

    But that is because it is deleting the underlying CR, or CR/LF or LF/CR which are usually treated as a single character, so it does the same as backspace?

    Your ProtonStudio does that, but the...
  136. Replies
    16
    Views
    1,867

    Re: Reason of GoTo after $ifndef

    Thanks John.

    But, IMO, in the real world, dividing 0 by any value will always give 0 because there was nothing to divide in the first place, and dividing a value by zero will give the original...
  137. Replies
    85
    Views
    5,615

    Re: Proton Studio Version 2

    I've never come across the Del key deleting a whole line in any IDE I've used, and that is a lot of them. :-)

    It only ever deletes the character under the cursor, and does not move the cursor's...
  138. Replies
    39
    Views
    4,120

    Re: Les's WS2812 code

    Remember, the WS2812 and the WS2812B use slightly different pulse widths for their 1s and 0s and time widths between them, so there may be issues down the line because the code is written for the...
  139. Replies
    16
    Views
    1,867

    Re: Reason of GoTo after $ifndef

    That's a nice piece of code John. Small and efficient. It's probably going to be a lot faster than my implementation of Atan2, but then again, you are a mathematician so I take my hat off to you. :-)...
  140. Replies
    39
    Views
    4,120

    Proton Compiler WS2812B library

    The WS2812B library supports both 18F devices and enhanced 14-bit core devices from 12MHz up to 64MHz with absolutely no assembler code required in the library because of the flexability and speed of...
  141. Replies
    39
    Views
    4,120

    Re: Les's WS2812 code

    That's one of the reasons I place my code for the users on my google drive instead of the forum.

    I've just uploaded a WS2812B library to the google drive and a couple of demos. I have also created...
  142. Replies
    16
    Views
    1,867

    Proton Compiler Floating Point Atan2 Procedure

    I've just altered and tested the Atan2 procedure for the 8-bit devices, and here it is:



    '---------------------------------------------------------------
    ' Calculate an arc tangent of Y/X,...
  143. Re: Passing results with Proc(),xxx and other questions

    To return a pointer. i.e. The address of a variable, you could use someting like:

    Result = AddressOf(MyLocalVariable)

    And have the procedure's return variable a Word, Long or Dword type so it...
  144. Replies
    6
    Views
    1,006

    Re: Write to SFRs directly?

    I'll take a look at the latest datasheet and the latest files from Microchip fro the devices in question, because the .ppi and .def files are created automatically from the files available from...
  145. Replies
    16
    Views
    1,867

    Re: Reason of GoTo after $ifndef

    That is quite an old piece of code, I created it to be extremely efficient, hence the use of the AARG and BAARG compiler system variables, because these are what the compiler uses for its floating...
  146. Re: Passing results with Proc(),xxx and other questions

    The compilers now supports variables or constants as a Port.Pin value, and the compiler's internal code converts the value into an indirect address for the port, and creates a mask for the pin. It...
  147. Replies
    41
    Views
    2,629

    Re: Calibration zero span UI options

    That is beautiful code John. :-)

    It is so good and satisfying to see the compiler used for complex mathematics and the floating point used for what it was placed in the compiler to do. It makes...
  148. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    A wonderful creation Charlie. I hope when we finally move back to Norfolk, I can go to Bletchley and see your creations and all the lovely computers and vintage valve equipment etc...

    When you get...
  149. Thread: Rounding floats

    by top204
    Replies
    2
    Views
    539

    Re: Rounding floats

    There are many, many rounding techniques, but the simplest one is to add 0.5 to a positive floating point value, or -0.5 if it is negative.
  150. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    When you get your boards and chips, if you are having problems with the TQFP package, or think you will have problems, send them to me and I will solder them on for you Charlie and post them back. If...
  151. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    Unfortunately, we are now in a society where "change means money", and reliability or quality don't seem to matter any more. :-( Just look at the commercial technology around now and you'll know what...
  152. Re: I2C working unproperly when SCLK pin on PORTC.1 or PortC.2

    You will need to look in the device's datasheet for the CCP section and alter a bit in the CCP2CON SFR. This will disable the CCP2 peripheral and make the pin a digital output. However, if you are...
  153. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    This should do it Charlie:



    $define In_Fn_U1RX RPINR18bits_U1RXR
    $define In_Pin_RPI41 41
    $define Out_Pin_RP100 RPOR9bits_RP100R
    $define Out_Fn_U1TX 1

    PPS_Unlock()
  154. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    You're very welcom Charlie.

    Let me know which pin you are going to use for TX and I'll sort out the PPS.

    I'm busy adding the missing pieces to the dsPIC33EP512GP80 device's .def file and will...
  155. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    Unfortunately, RB8 is an RPI PPS pin. i.e. RPI40, which means it can only be used as an input for a peripheral.

    On the older 24-bit core devices, there were RPI and RP pins, where the RPI types...
  156. Re: I2C working unproperly when SCLK pin on PORTC.1 or PortC.2

    Pins PORTC.1 and PORTC.2 are also the pins used for HPWM, so if the HPWM commands have been used in teh program, these pins are then dedicated to the CCP peripherals and cannot be used as digital IO...
  157. Replies
    6
    Views
    1,232

    Re: 64 bit floating point proglem

    Glad you got it working Charlie.

    My inside knowledge of floating point maths is now a past memory, unfortunately, as I only learned the basics of it to create the asm routines, then after 10...
  158. Replies
    3
    Views
    893

    Re: Analogue In on Pic18F46Q10

    Glad it worked Tim

    Unfortunately, with Microchip now, you cannot trust the details of the datasheets or official files for the devices, so it is always best to reset/set SFRs in the program.
    ...
  159. Replies
    3
    Views
    893

    Re: Analogue In on Pic18F46Q10

    You've chosen one the newer devices that require quite a setup for the ADC, or ADCC as they now call it, and the setups are something that the compiler's ADin command cannot do because it would need...
  160. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    Many thanks people.

    I've looked at Kickstarter a few times in the past for some projects I have in mind that do not actually exist anywhere on the planet yet! But, IMO, you simply cannot trust...
  161. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    To get the PPS working for PWM3 on PORTA.0, use the line:

    RA0PPS = PPS_Fn_PWM3

    The PPS_Fn_xxxx $defines can be found in the device's .def file. Near the end of the file's texts.

    I'm busy...
  162. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    As long as no one was hurt John, it can, thankfully, be put down as a frightening experience in a car! :-) Especially at higher speeds. Thankfully I was only doing 30mph in teh town.

    With past...
  163. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    Send me an email Tim and I'll create some procedure code for you for the PWM and PPS etc...

    I have a PIC18F26Q10 device knocking around somewhere that I used to test the compiler's functionality...
  164. Replies
    29
    Views
    2,448

    Re: Peripheral Pin Select Module how to

    The PPS locking/unlocking is a method that is not 100% clear in the datasheets. Also the manipulation of PPS is different on different families of 8-bit PICmicros, which is not surprising with...
  165. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    Many thanks George

    I have the bootlaoder working for the PIC18F27K42 device, both the firmware (written in Proton BASIC) and the PC application, written in dreadful Microsoft C++.

    I'm having a...
  166. Replies
    45
    Views
    23,984

    Re: Proton24 SD FAT File System

    The file system I wrote for teh Proton24 compiler was something I knocked together in a few days, quite a few years ago, and I know it has a few flaws in it, but I was hoping some more of the users...
  167. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    All of the PICkit programmers are a bloody disgrace in their design concept and use, but eventually I had to get a PICkit4 and it is still dreadfully cumbersome, but it works. :-)
  168. Replies
    41
    Views
    2,629

    Re: Calibration zero span UI options

    For a valid calibration, won't you need a thermometer to be present, as well, when calibrating?

    If so, why not use something similar to the calibration used for thermistors, where the current room...
  169. Replies
    2
    Views
    725

    Re: Peripheral Pin Remapping

    The PPS pins were automatically extracted from the official Microchip files, when they used to supply them. But I know they got things very wrong a lot of the times in many of the inc files etc...
    ...
  170. Replies
    2
    Views
    719

    Re: Reserving memory for DEBUG mode

    When I created Proton24, Microchip couldn't quite make there mind up about what was required for Debug purposes, and they kept a lot of the requirements secret for some inexplicable reason, and they...
  171. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    The RAM on the EP series devies does start at address 4096, then it has the stack RAM after it.

    The compiler defaults to a 120 word stack size, so the user RAM starts at address $1078.

    You can...
  172. Replies
    2
    Views
    657

    Re: Are both these expression formats valid?

    With Edata, the name beside it is not a label's name so it does not have the colon after it. It is used as a constant value for the position of the Edata table entry after it.

    With Cdata, it is a...
  173. Re: Difference between use of I2Cout/I2Cin and Busout/Busin in I2C protocol

    The I2Cout/I2Cin commands make all the I2C protocols for the user, but some peripheral devices do not follow the exact rules of I2C, so the Bus commands allow the I2C protocols to be split.
  174. Replies
    67
    Views
    5,732

    Re: Positron and Positron16 dev boards

    There is a way within the compiler to use all of the RAM, up to 64K Charlie.

    As usual, I added mechanisms to the compiler to give back doors for RAM assignments and other systems within it, for...
  175. Replies
    5
    Views
    1,001

    Proton BASIC: Pull-Up resistor on USART RX line

    In async coms, it is always advisable to place a pull-up resistor on the RX line, otherwise it is floating and will detect transmissions when there are none. It will also screw up any timeouts that...
  176. Replies
    5
    Views
    1,001

    Proton Compiler: Pin Number Aliasing to a Variable

    There is a mechanism in the Proton and Proton24 compilers that allows a variable or constant value to hold the pin used by a command. I added it a few years ago, but have refined it for the Positron...
  177. Replies
    22
    Views
    2,232

    Re: RAM size of 24EP512GP806

    Don't get me started on the Tories Charlie, or I will also get some flaming. LOL Remember, I'm a North Eastern Lad by birth, so I know first hand what they are capable of doing when they totally...
  178. Replies
    22
    Views
    2,232

    Re: RAM size of 24EP512GP806

    Alan Turin was a very clever man and what the coppers and the government did to him was an absolute disgrace, but in my opinion, Tommy Flowers is the forgotten genius in computers. It was him that...
  179. Replies
    22
    Views
    2,232

    Re: RAM size of 24EP512GP806

    I'll get into the Proton24 compiler Charlie and alter the routines that access flash PSV memory for the larger RAM devices.

    It will make the overall code larger in size because it will need to...
  180. Replies
    8
    Views
    1,083

    Re: GLCD editing tools

    Send me an email Tim

    I have a font generator that I use for graphic LCDs and I also created a bmp to Cdata program a few years ago.

    Once I tidy them, I'll also post them on my google site.
  181. Replies
    22
    Views
    2,232

    Re: RAM size of 24EP512GP806

    I'll need to add this to the compiler's manual, but you will need to create the _FP_FLAGS variable in the BASIC code:

    Dim _FP_FLAGs as Word System

    However, most of the flags are not valid with...
  182. Replies
    22
    Views
    2,232

    Re: RAM size of 24EP512GP806

    I'll check it out Charlie, and check my notes because it is so long since I created Proton24.

    With the PIC24 and dsPIC devices, what is 'initially', in the datasheet for advertisement is not...
  183. Re: PIN used for SPI: how to define them for pic18f25k20?

    With that type of device, the dedicated pins are attached to the MSSP peripheral, once the peripheral is enabled. So if the MSSP peripheral is set for SPI, it will dedicate PORTC.3 to PORTC.5 as the...
  184. Re: Latest Proton and Proton Compiler Update for Versions 3.7.3.8 and 1.0.7.1

    In the start menu, it should be in the PDS items.

    Windows 10 has changed something that is affecting the uninstall from Control Panel, but I haven't worked out what yet and I am using a newer...
  185. Re: Latest Proton and Proton Compiler Update for Versions 3.7.3.8 and 1.0.7.1

    The new compiler update on the forum corrects this anomaly.

    The update can be found here:
    ...
  186. Re: No Bookmarks when opening the Proton Manual

    When the compiler PDF manual files are created from the word document manuals, the bookmarks are always set to enabled.

    I've just tried the PDF manuals from the latest compiler update in the free...
  187. Replies
    5
    Views
    902

    Re: Trouble getting 24F16KA301 running

    There is a config fuse to enable/disable clock switching.

    To use only the external oscillator this can be done with changing the config fuses.
  188. Replies
    5
    Views
    902

    Proton24. Set device PIC24F16KA301 running at 32MHz with its Internal Oscillator

    I don't have one of those devices, so it is an educated guess based upon the datasheet, but try:



    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' \/\\\ \/\\\ ...
  189. Latest Proton and Proton Compiler Update for Versions 3.7.3.9 and 1.0.7.2

    The updates to the Proton and Proton24 compilers can be found here:

    Proton Compiler Setup 3.7.3.9-1.0.7.2

    Corrections and Additions made in version 3.7.3.9 of Proton and version 1.0.7.2 of...
  190. Replies
    17
    Views
    1,938

    Re: Proton and MplabX Ide 5.1 and debug Pickit 3

    I couldn't agree more George.

    It is an absolutely awful IDE, written in dreadfully slow Java and it actually gets things wrong when setting up a device with the "so called" Code Configurator. I...
  191. Replies
    4
    Views
    1,240

    Re: HrsoutLn problem

    The termination values can be changed for HRSOutxLn and HSeroutxLn commands with a declare. See pages 207 and 219 of the compiler's PDF manual:

    Declare HSerial1_Terminator = CRLF or LFCR or CR...
  192. Replies
    17
    Views
    1,938

    Re: Proton and MplabX Ide 5.1 and debug Pickit 3

    As far as I can tell, with the dreadful MPLABX IDE, a COF file can be imported into it. However, you will need to update MPLABX to version 5.35 because they keep changing it every few weeks and...
  193. Replies
    6
    Views
    848

    Compiler update coming soon

    A new update to the Proton and Proton24 compilers will soon be uploaded.

    It corrects the Dig as a Fuse name in the Proton compiler.

    It also adds the Long directive to flash memory tables in...
  194. Replies
    1
    Views
    638

    Re: Code Defect AI bug finder

    Personally I think that is just another "flight of fancy" to get money for promotion and R&D

    The amount of programming languages, and the amount of platforms, and the sheer compexity of programs...
  195. Replies
    16
    Views
    1,994

    Re: How to replace another value without flicker

    The advice given is correct.

    On Hitachi LCD chipsets, the Cls command sent to the LCD must have a delay after it to give time for the LCD's chipset to reset things. So the compiler's Cls command...
  196. Replies
    20
    Views
    2,978

    Re: What does this AS ERROR tells me?

    That's en excellent video.

    What are the very large values held in the data tables used for? If they are timings, smaller values can be used then multiplied by 1000 if too large for 16-bit storage....
  197. Replies
    12
    Views
    1,592

    Re: Compiling error on Weather station code

    I used something similar many years ago to control a Galvanometer's position. I've looked and looked for the code I did but, unfortunately, can't find it.

    It was very easy to use and all it...
  198. Replies
    9
    Views
    2,876

    Re: USB Help please from the boffins

    Glad you got it working Tim.

    When Surface Mount components came in as the standard, I was working for Sky and repairing the Satellite receivers. They were scary at first, but once you've worked...
  199. Replies
    20
    Views
    2,978

    Re: What does this AS ERROR tells me?

    The 24-bit Long variables are only available with 8-bit devices.

    With the architecture of the 16-bit devices, 24-bit variable access will actually be less efficient than 32-bit variables, because...
  200. Replies
    20
    Views
    2,978

    Re: What does this AS ERROR tells me?

    The linker error is happeneing because the code is too large for the device.

    The program has a vast amount of flash memory tables and each one is set to Dword, so each constant value in each table...
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4