Search Results - Proton BASIC community web site


Search:

Type: Posts; User: top204

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: SEROUT baudrate not correct in combination with 22.1184 MHz?

    Using an exact frequency that will divide for Baud rates with the software serial commands serves very little purpose. The software commands use integer calculations and variables for their timings,...
  2. Replies
    7
    Views
    320

    Re: Empty if..endif bug

    At compile time, the compiler has no idea whether a comparison is true or false if there is a variable, or variables, involded! That can only be acheived at run time. Think about it?

    For example:...
  3. Replies
    18
    Views
    426

    Proton 16x2 LCD with a PIC18F2550 and a PIC18F4550 device

    I've just ran some tests using the Isis simulator and both PIC18F2550 and PIC18F4550 devices, and the 16x2 LCD works on both, and without any warning messages given. I have tried the LCD on several...
  4. Replies
    18
    Views
    426

    Re: error in lcd 16x2

    Never trust simulation software 100%. It depends on which model they based their Hitachi chipset for the LCDs, and the timings used for it. An example of this type of issue is the Isis model of the...
  5. Replies
    7
    Views
    320

    Re: Empty if..endif bug

    Tests in the current version of the compiler, which is 3.7.3.6, shows it works as expected.

    Please.... If a user is going to report a "possible" anomaly, make sure it is the latest compiler...
  6. Proton Compiler 24-bit Long Integer Variables to be added soon!

    Just to let you know the addition of the 24-bit Integer Variables into the Proton compiler is going well.

    I have all the variable and array and expression routines written and I am now writing the...
  7. Re: Rsout does not work on Tx pin of the 18F25k22 but Hrsout does?

    It is only "some" of the recent devices that have allowed inverted or non-inverted output from a USART. I dare not add a directive for this because it will simply confuse users when the compiler...
  8. Re: New PIC18FxxQ43 Family Moves Software Tasks to Hardware

    Unfortunately, that is essentially what the PIC microcontrollers already have. They are now calling on-board peripherals something with more buzz. i.e. exaggerations of the truth.

    This is the...
  9. Replies
    9
    Views
    276

    Re: RF modules recomendations?

    You can try the nRF2401+ tranceivers. They operate at quite long ranges and are extremely inexpensive.

    I created a library for them a few years back for a project I was doing for someone, and I've...
  10. Re: How to read TTL input of a displacement transducer

    But the one good thing about that Joseph is that we have a lot of good friends on this forum, and for that I will always be glad.
  11. Re: How to read TTL input of a displacement transducer

    Thanks Joseph, but the UltraSonic Receiver code I wrote many years ago counts the time between the transmit and receive pulses. i.e TOF (Time Of Flight)

    I did a quick search and the thread with my...
  12. Re: How to read TTL input of a displacement transducer

    TTL is standard 5 Volts, with a threshold of approximately 2.5 Volts or over for a 1, and under approximately 2.5 Volts for a 0.

    Any standard 5 Volt operating microcontroller will read TTL on an...
  13. Thread: CWrite and ISR

    by top204
    Replies
    2
    Views
    257

    Re: CWrite and ISR

    The Cwrite and CErase library routines can automatically disable/re-enable the ISR when one is intiated with the On_Hardware_Interrupt directive. Just as I did with the Ewrite and ERead command...
  14. Re: (would this be great for Proton?) code editor

    I use the Visual Studio IDE with its plugin for the ESP modules. It is an excellent IDE, but unfortunately, I do not have the skills enough to create a plugin for Proton within it. :-(
  15. Thread: Dma pwm

    by top204
    Replies
    2
    Views
    264

    Re: Dma pwm

    DMA wasn't fully available with PIC24 devices when I first wrote Proton24, so I only added it to dsPIC33 devies, however, open the "P24HJ128GP502.ppi" file from: "C:\Program Files...
  16. Replies
    41
    Views
    1,388

    Re: Something screwy about 16F88 OSCCON register

    Here's a small program I've just tested and it worked fine. I always use serial data to test oscillator speeds because if the speed is incorrect, so will be Baud rate for the text that is...
  17. Replies
    16
    Views
    1,363

    Re: NEC Protocol IR remote control decoder

    That's what happens when friends start talking. :-) A lovely thought John, and it would be excellent to meet you and your wife, but I never did like Cricket. LOL
  18. Replies
    8
    Views
    663

    Re: Expand the Proton compiler

    It's not Arduino!!!

    All that is, is an IDE that interfaces with the open source GCC C++ compiler! It does nothing creative and never has.

    It is also a dreadful IDE!!!!!!

    The best IDE for the...
  19. Replies
    8
    Views
    663

    Re: Expand the Proton compiler

    Proton32 for the ARM core devices is something I am looking into, which include the ESP devices. However, Proton is not promoted or advertised in any way, so the year's continuous work to add them...
  20. Replies
    16
    Views
    1,363

    Re: NEC Protocol IR remote control decoder

    Many thanks for your lovely words Charlie.

    When we move back down to North Norfolk, hopefully within the year, it would be great to meet up with you and some of the other forum friends down in...
  21. Replies
    5
    Views
    1,035

    Re: PORTA.6 and PORTA.7 16F628A

    To see the fuses for a device, open its .ppi file found here: C:\Program Files (x86)\ProtonIDE\PDS\Includes\PPI

    The fuses available are at the bottom of the .ppi file, and the compiler's default...
  22. Replies
    5
    Views
    1,035

    Proton BASIC Compiler - PIC16F628A with pins PORTA.6 and PORTA.7 as I/O lines

    I've just ran some tests and the small demo program below flashes the LEDs connected to pins PORTA.6 and PORTA.7 using the internal 4MHz oscillator:



    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' ...
  23. Replies
    13
    Views
    953

    Re: New dual core dsPIC33CH PIC

    I'm busy adding support for the dsPIC33CK and dsPIC33CH devices, but it is a lengthy process. I'm using one of the 28-pin SSOP dsPIC33CK devices on my Positron16 platform board because they are so...
  24. Replies
    16
    Views
    1,363

    Re: NEC Protocol IR remote control decoder

    A beautiful piece of code AngryGorilla that makes me proud to have created the compilers. :-)
  25. Replies
    10
    Views
    672

    Re: Problem receiving string

    I've just checked the code on an 18F device and it is working as expected. However, the 1ms timeout in the Hserin command is a bit tight and will probaly miss characters and timeout far too early.
    ...
  26. Replies
    4
    Views
    386

    Re: Too much of a coincidence?

    An unlikely scenario, but I would put "nothing" past Micro$oft these days. If it doesn't make money for them, why do much testing on the last few updates?

    I stop updates on all operating systems I...
  27. Replies
    10
    Views
    672

    Re: Problem receiving string

    What device are you using Bob?

    Each device family (18F, standard 14-bit, enhanced 14-bit, PIC24, dsPIC33) has different asm routines for array and string handling, and also diffferent compiler...
  28. Replies
    3
    Views
    366

    Re: Eink serial displays

    Those E-Ink displays look quite good but they are still quite expensive for what they are and how long they have been with us, which is actually from the late 1980s!
  29. Re: Bzigo tracks and highlights wily mosquitoes

    Yet another pointless gimmick that will not work in the "real" world. :-)

    If the walls are not plain, bright colours, then there is no way a small object can be tracked, or if it is a bright room...
  30. Thread: Ea dogm204w-a

    by top204
    Replies
    5
    Views
    432

    Proton PIC BASIC - Hitachi LCD Cursor procedure

    Here's a procedure that I have just knocked up to move the cursor on a standard Hitachi HD44780 alphanumeric LCD. It is the same mechanism that the compiler's library Cursor and Print At use:


    ...
  31. Thread: Ea dogm204w-a

    by top204
    Replies
    5
    Views
    432

    Re: Ea dogm204w-a

    The problem with some of the Hitachi clones is that they have not followed the internal RAM layout the same. A lot of them did this type of twist to get under the copyright rules, so it is "nearly"...
  32. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    That is because of some of the changes I've made to the compiler's low-level directives since that code was written Charlie.

    In the ILI9325.inc file, go to the end of it and replace the #ifmacro...
  33. Replies
    16
    Views
    1,363

    Re: NEC Protocol IR remote control decoder

    Nice firmware keytapper.

    You are asking something quite time consuming AngryGorilla because of two things:

    1. The Arduino code is far too complex and simply does not need to be. IMO, that is...
  34. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    Charlie.... The 125KHz seems to be the internal ADC sampling rate. The SPI clock timings are in NanoSeconds. The rate at which the valid samples can be taken from the chip does need a delay between...
  35. Replies
    136
    Views
    2,743

    Proton BASIC Compiler - Software SPI interface to an ADS7846 touchscreen controller

    The addition of the procedures in Proton has made a world of difference to the compiler. It is now possible to make true libraries. It took quite a lot of work to add them to a flat compiler, but I...
  36. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    You're very welcome John

    Remember, it is just my opinion on the naming conventions. $define and Symbol both produce constant values, but $define creates text, while Symbol creates constant values...
  37. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    I mainly use the $define because the text gets highlighted in the code listing, so you can see more clearly that it is a constant. I also, generally, use the character lowercase c in front of a...
  38. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    You can use the compiler's Shin and Shout commands for the SPI interface because it is a standard mode 0:0 SPI interface to the chip. This will make the code transportable across devices. That has...
  39. Replies
    136
    Views
    2,743

    Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    Each procedure sends the commands that are required for the type of operation that is needed.

    The only thing the user needs to do is measure the resistance of the four edges of the GLCD, then...
  40. Replies
    136
    Views
    2,743

    Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    I've altered the ADS7846 touch screen controller firmware to act as an independent library using procedures, but I cannot test it because I no longer have the Amicus18 GLCD board.

    I've uploaded...
  41. Replies
    9
    Views
    589

    Re: Transistor curve tracer with a PIC

    Here's a simple program to create 2 sawtooth waveforms from the CCP peripherals operating as 10-bit PWMs.

    Because the PWM resolution is fixed at 10-bits, the value sent as the duty cycle is also...
  42. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    That's the main problem with all the Arduino boards and the PCBs that attach to it. They are running with technologies more than 10 years out of date, which were 5 Volts. i.e. TTL

    We now live in a...
  43. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.6 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.6 - Proton24 1.0.6.7!

    Correction made in version 3.7.3.6 of Proton

    Proton Correction
    Corrected the LoadBit command for...
  44. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    Robbing etc, was only the war class of the Vikings, just like most other cultures in their time, who invaded other countries as often as they could. See Anglo-Saxons. After the Roman Empire crumbled...
  45. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    HaHa..... I must stop posting after having a few whiskies LOL
  46. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    No... Windows 10 is mostly Windows 7, but it is the subtle changes and removals that I have had to change, and the compiler's code now has comparisons to see what OS it is running on and changes the...
  47. Replies
    3
    Views
    221

    Re: Problem with LOADBIT

    Crickey.... I've just been going through my code history for the compiler versions, and that anomaly has been in the compiler for quite a while now.

    It has to do with the code that seperates the...
  48. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    See page 160 of the compiler's manual:



    For higher oscillators use a word variable for the result and you sould be OK. Try a lower frequency on the microcontroller to make sure it is not...
  49. Replies
    15
    Views
    705

    Re: Can't get SR04 ultrasonic to work

    Here's a piece of code I wrote many years ago for the article I wrote that showed how to make an ultrasonic TOF circuit and interface to the SRF04 and SRF08 modules. As far as I know, the Chinese...
  50. Replies
    11
    Views
    392

    Re: Merry Christmas everyone

    To all the good people on this forum, I hope you all have a lovely Christmas.

    With my very best regards
    Les
  51. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.5 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.5 - Proton24 1.0.6.7!

    Correction and Additions made in version 3.7.3.5 of Proton and version 1.0.6.7 of Proton24

    Proton...
  52. [SOLVED !] Re: problem with same variable in substraction ??

    I'll take a look at it this afternoon. Thanks for spotting a possible anomaly.
  53. Replies
    9
    Views
    709

    Re: SERIN/SEROUT how low can you go?

    The calculation for the Baud value for Serin and Serout is on page 240 of the compiler's manual.

    The calculation can be made into a pre-processor $define for easy access:



    '
    ' Calculate the...
  54. Replies
    9
    Views
    564

    Re: file missing from Proton 3.7.3.3 update??

    I'll place the files on both drives, so there are no problems in future.
  55. Replies
    9
    Views
    564

    Re: file missing from Proton 3.7.3.3 update??

    You are right, the file is not being opened when the link is clicked, it is just moves the user to the forum thread, yet it was created as it always is. I can not go and alter it to see what is wrong...
  56. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.3 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.3 - Proton24 1.0.6.6!

    Corrections and Additions made in version 3.7.3.3 of Proton and version 1.0.6.6 of Proton24

    Proton...
  57. Replies
    16
    Views
    1,095

    Re: It's Christmas, how about a bit of giving?

    I cannot thank you all enough. Words don't cover how I feel for my friends here on the forum.

    Since my injury, life has changed beyond my worst expectations, but it's times like this that give me...
  58. Replies
    5
    Views
    515

    Re: TFT for dsPIC33FJ256GP710A

    Unfortunately, I am now unable to afford to give my time away, but my daily rate is very good and if you want, I will get that board up and running in a couple of days for you, with libraries and...
  59. Replies
    14
    Views
    787

    Re: Amicus 24 schematic?

    Because of the size of the PCB, the device is a tiny SSOP type. I was going to use the UQFN type package, and I created the original design for that type, but Microchip have made the heatsink pad on...
  60. Re: Symbol not previously defined - Another assemble error

    You are using a compiler version that is quite old. Try the latest version.
  61. Replies
    5
    Views
    515

    Re: TFT for dsPIC33FJ256GP710A

    The TFT appears to be a standard ILI9341 type with a resistive touch membrane.

    Looking at the circuit, the resistive membrane is going to the dsPIC's ADC channels for the X/Y touch position.
    ...
  62. Replies
    14
    Views
    787

    Re: Amicus 24 schematic?

    You cannot buy the microcontroller for 2

    The Chinese have ripped off the Atmel devices for many, many years so with Microchip now running the ship of Atmel devices, they may put a stop to it,...
  63. Replies
    14
    Views
    787

    Re: Amicus 24 schematic?

    I never released the Amicus24 board. The circuit is from a prototype that I had 2 boards made for testing.

    There were some issues with the circuit that I was going to change for the final Amicus24...
  64. Replies
    15
    Views
    704

    Re: 3.7.3.1 download will not unzip

    The compiler is written on a Windows 10 64-bit machine and it is fully operational on Windows XP, Windows 7, the dreadful Windows 8, and, the not so bad, Windows 10. 32-bit and 64 bit platforms.
    ...
  65. Replies
    14
    Views
    1,067

    18F26K40 and 18F27K40 Config Fuse settings for internal and external oscillator

    For the fuses, take a lookin teh device's PPI file. They are at the end of it, and all the available fuese are also listed.

    The fuse setting can depend on how the device is being used, for...
  66. Re: Changes after latest version of the compiler

    I agree that the compiler's internal stack variables PBS_xxx should not be used too much, but as John said, when you are working low level, they are a must to save otherwise they can be overwritten,...
  67. Re: Changes after latest version of the compiler

    The PBP_xxx compiler system variables have had a name change to PBS_xxx since version 3.7.x.x
  68. Replies
    10
    Views
    576

    Re: 18F25K20 osc / clock odd frequency

    Unfortunately that is my fault. :-( I enabled PLL by default for the 18F25K20 because it was the microcontroller used in the Amicus18 and I wanted to make it much easier for the Amicus18 user, but...
  69. Replies
    14
    Views
    1,067

    Re: DS3231 Alarm settings anybody

    The new 18FxxK40 devices are actually quite nice, and because they are new, they are quite a lot cheaper at the moment.

    The 18FxxK40 devices have PPS, and INT0, INT1 and INT2 need their chosen...
  70. Thread: FN-M16P wow's

    by top204
    Replies
    2
    Views
    498

    Re: FN-M16P wow's

    Nice one Dave!

    The problem with virtually all of the boards from China, and most other places, is that they all use the manufacturer's design firmware and do no investigations or write code...
  71. [SOLVED !] Proton MCP3422 ADC reader. For V+ and V- Voltage readings

    To display the Voltage from the MCP3422 ADC, the changes in the Main routine are shown below:



    Main:
    Symbol cQuanta = 2.5 / 131072.0 ' Create the quantasisation value...
  72. [SOLVED !] Proton MCP3422 ADC reader. For V+ and V- readings

    As usual, Microchip have also screwed this ADC a bit as well. It is signed 18-bit, which actually means it has a resolution of 17-bits and its output value is not 2's complement. It just means bit-17...
  73. Replies
    3
    Views
    982

    Re: Proton compiler 3.7.3.1 file IDP.ALEXA.51

    All the compiler's executables are scanned with 2 seperate virus scanners before they are made into an installer and then I upload it to my google drive and it performs scans on it before it allows...
  74. Replies
    14
    Views
    1,067

    Re: DS3231 Alarm settings anybody

    If I had a bit of time, or a DS devies I would take a look at the library for it.

    But be very careful with the Arduno crap out there. :-) I looked at one article from a user and they actually had...
  75. Re: Question about Hbusin / Hbusout on PIC16F15313

    General updates and anomaly corrections to the compiler are free, and the compiler rightfully stated in an error message that that device was not supported with the Hbus commands for the reason it...
  76. Replies
    14
    Views
    1,067

    Re: DS3231 Alarm settings anybody

    Once you have it operating you can change your subroutines for manipulating BCD to procedures using these:



    '---------------------------------------------------------------
    ' Decimal to BCD...
  77. Replies
    10
    Views
    540

    Re: Need some help from a VB expert

    It's not the fan or the cooling system on the PC, it is the CPU starting to die, or the motherboard has a problem and is causing the CPU to overheat. The OS is also crashing intermittently because...
  78. Thread: Rc-522

    by top204
    Replies
    2
    Views
    309

    Re: Rc-522

    Looking at the datasheet, pin 1 of the MFRC522 chip selects an I2C interface, but it is not brought to the outside world on the PCB. USART and SPI are on seperate pins, but the USART is not brought...
  79. Replies
    10
    Views
    540

    Re: Need some help from a VB expert

    Sorry for the delay in replying John, but my PC is now only lasting a few hours before overheating and dying on me, so I'm busy saving up for one.

    The 8-bit Proton compiler sets the PPS...
  80. Replies
    3
    Views
    596

    Re: PIC24FJ64GA306 Anomaly in USART 4

    I've examined the library code for USART4 with the PIC24FJ128GA306 and it is followiing the correct rules and using the correct SFRs etc... Matching the asm code on USART3 to USART4, they do exactly...
  81. Replies
    10
    Views
    540

    Re: Need some help from a VB expert

    I could'nt find the source for that tool John. Where did you find it?

    Visual BASIC is, IMO, a dreadful language because it is so bloated and they extended it so much it became virtually unreadable...
  82. Replies
    7
    Views
    2,220

    Re: Support for 18LF26K22 and 18LF45K22

    As has been mentioned, use the F device if the LF device is not in the compiler's PPI files.

    There is no difference in the device mechanisms, except the LF types have a different power rating....
  83. Replies
    19
    Views
    1,565

    Re: PPS for 8bit Microchip Micocontrollers

    It would be an excellent tool for the Proton compiler Evan, and I thank you for your detailed info concerning it.

    The code produced would be great inside a Proc-EndProc and the hex values using...
  84. Re: Question about Hbusin / Hbusout on PIC16F15313

    Microchip are notorious for changing the way peripherals work and teh SFRs used, so the compiler's hardware I2C routines only work with a specific pattern to the peripherals.

    When I originally...
  85. Replies
    7
    Views
    1,105

    Re: 1 Wire write - bit mode , no reset

    Many thanks for your detailed analysis of the problem RSteve.

    I'm inside the compiler now and looking for the section that has altered so I can correct it for the next update.

    I've also...
  86. Replies
    49
    Views
    1,979

    Proton PC PWM library for devices 18F1230, 18F1330, 18F2331, 18F2431, 18F4331, 18F443

    I've created a library for some of the 18F devices that have the Power Control PWM peripheral:

    Power Control PWM Peripheral Library

    The devices supported are: 18F1230, 18F1330, 18F2331,...
  87. Re: Phase offseting PWM to prevent noise on fans

    If it is the phase of the PWM waves that need altering, there are some devices with motor control PWM peripherals that should do the trick. Also some devies that allow diferent timers for the...
  88. Replies
    3
    Views
    679

    Re: Purchase and support

    The ebay sale was dropped last year, so it should not be on there now.

    I was desperately trying to get some form of return from the work I do on the compiler. The Proton compilers are actually...
  89. Re: Phase offseting PWM to prevent noise on fans

    What frequency are the motors being used at from the PWM Tim?

    If it is low enough, a very simple interrupt can create the PWM signal and as each pin is toggled in sequence within the interrupt, it...
  90. Replies
    25
    Views
    6,170

    Re: 18F14K50 Very simple input problem

    The 18F14K50 devices are actually nice units and I've never had any problems with them over the years.

    The compiler now sets pins to digital before the user's program starts so the All_Digital...
  91. Replies
    12
    Views
    1,821

    Re: PPL setting for 18f27k42

    PLL Geoerge, not PPS. :-)

    I've looked at that program and it has a few flaws in it. One of the major flaws is that it uses Microchip XML files and they sometimes change them when they do an update...
  92. Replies
    12
    Views
    1,821

    Re: Setting PLL on a PIC18F27K42 device with internal oscillator using Proton

    And you are right Charlie.... The Microchip website is absolutely dreadful, which is now typical of the internet unfortunately. :-(
  93. Replies
    12
    Views
    1,821

    Setting PLL on a PIC18F27K42 device with internal oscillator using Proton

    If using an external crystal just switch on PLL within the config fuses. For the internal oscillator, a few SFRs need to be manipulated, but when they are operating, the newer 18FxxK devices are...
  94. Thread: Bits and pieces

    by top204
    Replies
    2
    Views
    909

    Re: Bits and pieces

    I've always taken pride in the tightness and efficiency of the compiler's assemby it creates, and it is really good to see someone appreciate it. :-)

    The $define's code written in Proton BASIC...
  95. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.1 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.3.1 - Proton24 1.0.6.4!

    Corrections and Alteration made in version 3.7.3.1 of Proton

    Proton Corrections
    Corrected the...
  96. Thread: SensorTile.box

    by top204
    Replies
    7
    Views
    371

    Re: SensorTile.box

    That statement for the ESP with an AT interface is obviously written by a very biased nerd!

    The price of the ESP boards is extremely low, but for someone not quite up to scratch with C++ they can...
  97. Replies
    7
    Views
    288

    Re: HD44780 positioning the cursor.

    Not all alphanumeric LCDs follow the same protocols, especially the Chinese rip-off versions of the Hitachi chipset. Also, some look just like an Hitachi chipset but have as slightly different RAM...
  98. Replies
    6
    Views
    328

    Re: Determining VAR lenths

    Take a look at the SizeOf function in the manual.

    Len is for String type variables or character strings or a byte array that terminates with a null because it creates a routine to count the...
  99. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    Charlie.

    See this little piece of text I wrote on the forum's Wiki for overclocking the 18FxxKxx devices.

    Overclocking the Amicus18 Board to 100MHz

    I remember I had the 18FxxKxx devices...
  100. Thread: SensorTile.box

    by top204
    Replies
    7
    Views
    371

    Re: SensorTile.box

    The ESP devices do come with either an AT interface, or the code can be written on the Arm 32-bit processor on-board. As is usually the case, the C++ coding of the library files for the Wi-Fi on...
  101. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    The touch chip is the ADS7846. I remember using this type because it was inexpensive and whole lot better than the dreadful Microchip types.

    Here's a screenshot of the touch part of the circuit...
  102. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    Here's something I created quite a few years ago that used the ILI9325 graphic LCD board. See my stubby little fingers? LOL


    https://www.youtube.com/watch?v=J4ghfgeZYF8

    I created it because...
  103. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    What I've found with the ILI type of graphic LCDs is that the only real change to make in teh code is the initialisation mechanism for them. The code I wrote uses the start-up commands and values in...
  104. Replies
    9
    Views
    330

    Re: Reset from the software

    I'll add a Reset command in teh compiler to do the same as the Reset mnemonic, but on standard 14-bit core devies as well. HOwever, all it will do is the same as the Reset mnemonic and jump to...
  105. Thread: SensorTile.box

    by top204
    Replies
    7
    Views
    371

    Re: SensorTile.box

    In my opinion, the better IOT device is the ESP8266 or the ESP32. They are extremely inexpensive, have on-board Wi-Fi, and can be wrieen using the free GCC compiler. They also have a dedicated IDE,...
  106. Replies
    9
    Views
    330

    Re: Reset from the software

    If you are using an 18F device or an enhanced 14-bit core device, you can use the Reset mnemonic direct from the BASIC listing.

    See the device's datasheet for its explanation, but it essentially...
  107. Replies
    49
    Views
    1,979

    Re: PIC 18F1330 HPWM problem

    Please remember, the device's PPI file is what the compiler supports, not what the device actually contains. The SFRs and other info contained in the PPI file are so that the compiler can enable the...
  108. Replies
    3
    Views
    264

    Re: Wishes for Procedures

    You are very welcome Alberto.

    The directives are Asm directives, so the BASIC program has no knowledge of them. They are all constant values, so they could be copy and pasted into a BASIC program...
  109. Replies
    20
    Views
    1,143

    Re: Playing with Procedures

    The big problem with Arduino is that 99% of the users want everything for nothing, and with the Chinese imports, that is nearly the way of things. I was working on an AVR version of Proton, but...
  110. Replies
    3
    Views
    264

    Re: Wishes for Procedures

    Hello Alberto

    A lot of that information is in teh device's .def file and the $defines in there can be used in a BASIC program. For example, a PIC18F26K40 has:


    ' Device Information
    $define...
  111. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.9 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.9 - Proton24 1.0.6.4!

    Correction and Addition made in version 3.7.2.9 of Proton

    Proton Correction
    Corrected a variable...
  112. Replies
    20
    Views
    1,143

    Re: Playing with Procedures

    You are correct Tim, Dave's compilers are very good. I actually wrote the backend code generator for Swordfish for him, but the later Raptor compiler uses Microchip C compilers as the backend code...
  113. Replies
    20
    Views
    1,143

    Re: Playing with Procedures

    I was just looking at your excellent PRTOS for the 8-bit devices the other day and wondering if I can find the time to make it procedural.

    Also John, can you add the word "Global" to the Studio...
  114. Replies
    20
    Views
    1,143

    Re: Playing with Procedures

    As usual Alberto, excellent code and a creative mind.

    The problem with using local variables that are created globally outside of a procedure is that if 2, or more, procedures are using the...
  115. Replies
    34
    Views
    1,060

    Re: New Prusa mini 3D printer

    Never fully trust the reviews on the internet!

    They are paid for by the companies and can be extremely biased. Because people believe in reviews, it is good practice now to manipulate them and,...
  116. Replies
    11
    Views
    443

    Re: Serin baud rate / clock dependency?

    With such a low Baud rate, the internal oscillator is fine.

    The internal oscillator on the newer devices are excellent, and as long as the microcontroller is not going into weather or temperature...
  117. Replies
    9
    Views
    335

    [SOLVED !] Re: Problem with 3.7.2.8 and 18F25K50

    I've just ran some tests on the procedure and it returns 49 when the VDD is 5 Volts, because it is actually 49.933333333333333

    Which is a tenth of the voltage, not 4 or 5. I ran the code in...
  118. Thread: SMS Number Save

    by top204
    Replies
    19
    Views
    1,325

    Re: SMS Number Save

    Without seeing the variable types used for the code snippets I can give no real answers.

    However, if you are using String variables, there is no need for the Str or StrN functions. These were...
  119. Replies
    8
    Views
    294

    Re: %00110011

    The issue happens when the thread is edited.

    If the binary is placed and the thread is saved, then it generally does not happen, but as soon as an edit happens, the % and the 2 digits following it...
  120. Replies
    6
    Views
    227

    Re: Trying a procedure, but errors I found

    On a side note... You also have to remember that I added procedures to the Proton compiler only 2 years after having a brain haemorrhage and I did it to try to reassure myself that I still had it in...
  121. Replies
    9
    Views
    335

    [SOLVED !] Re: Problem with 3.7.2.8 and 18F25K50

    Can you write the code again in the thread, but change the binary values to hex values please George. The forum has had a problem with the binary notation for many years.

    Can you write a small...
  122. Replies
    6
    Views
    227

    Re: Trying a procedure, but errors I found

    As I said... The creation of the procedures in the already flat language took a mechansim that is not in any books. That is because the procedures are an option and not mandatory as with other...
  123. Replies
    6
    Views
    227

    Re: Trying a procedure, but errors I found

    In the latest version of the compiler, procedures cannot be continued on a second line because of teh way they have had to be implemented in a flat language, but it is something I'm looking into.
    ...
  124. Replies
    11
    Views
    443

    Re: Serin baud rate / clock dependency?

    The compiler now calculates the Baud rate for you wth the USART commands if you just add the Declare Hserialx_Baud. If you open the Asm window, you can also see the Baud used and the percentage of...
  125. Thread: ch376

    by top204
    Replies
    14
    Views
    1,172

    Re: ch376

    I'm ever so sorry Dompie. I totally forgot about the CH376. I can't even remember if it arrived. Since my injury I have some problems with memory, so I write things down now on PostIts, and my desk...
  126. Re: Bug in Proton compiler 3.7.8.2 Not working for pic18f2550

    With such low level operations such as Low and High etc, the compiler can never be at fault because it creates a few mnemonics that alter SFRs.

    I've just tried the code:



    Device =...
  127. Replies
    8
    Views
    249

    Re: MSSP module, propose for the Hshin/Hshout

    The procedure mechanism of the compiler is extremely easy to operate and understand?
    It means users can create libraries of commands that can be used by other users and will be very specific for a...
  128. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.8 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.8 - Proton24 1.0.6.4!

    Corrections and Alteration made in version 3.7.2.8 of Proton

    Proton Corrections
    Made further...
  129. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.8 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.8 - Proton24 1.0.6.4!

    Corrections and Alteration made in version 3.7.2.8 of Proton

    Proton Corrections
    Made further...
  130. Replies
    8
    Views
    249

    Re: MSSP module, propose for the Hshin/Hshout

    The addition of Procedures has removed any requirement for new commands, especially commands that use a microcontroller's peripheral. All that is required is a library to be created for a particular...
  131. Replies
    8
    Views
    417

    Re: Pic18f25k20 + module i2c (pcf8574)

    One of our excellent code creators Alberto wrote a library for the PCF8574 on the Wiki a few years ago:

    Port expansion using the PCF8574A

    This should help.

    I also noticed you are setting up...
  132. Replies
    11
    Views
    318

    Re: serious problem with 4 bytes float

    All the info required is within the Procedure code, but here's a piec of code that will do the same inline an no extra RAM used:



    Dim MyFloat As Float = 1234

    Swap MyFloat.Byte3,...
  133. Re: Assember Error 113 when compiling Scroll_demo.bas ILI9320

    Open file "ILI9320.inc" and go down to Line 1386.

    You will see the line of code: #ifdef Print#Req

    Replace this with: #IfSym __SysCom_GLCD_Print_Req_

    Then move down to line 1451 and replace...
  134. Replies
    11
    Views
    318

    Re: serious problem with 4 bytes float

    As George stated, simply use the Rol and Ror commands on teh variable itself to move it into the correct format for IEEE. However, with a standard 14-bit core device, you should not be using floating...
  135. Replies
    1
    Views
    145

    Re: TFT Display 4D VERY Neat !!

    Not for approx 20.00. 4D systems have always been far too expensive, and they drop units they sell without warnings, so they cannot be used reliably in commercial products.

    The TFT used on it is...
  136. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.7 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.7 - Proton24 1.0.6.4!

    Corrections made in version 3.7.2.7 of Proton

    Proton Corrections
    Corrected passing a character...
  137. Re: HAVING ISSUE WITH PROC USAGE project is high speed serial backpac

    A colon is not supported after a Case. That is C syntax.

    The code used if the Case is true is held on the next lines.

    I'll add this to the compiler's manual.
  138. Re: HAVING ISSUE WITH PROC USAGE project is high speed serial backpac

    I've located an issue with enhanced 14-bit core devices when a parameter is a string and the item passed to it is a character string.

    However, it was not an anomaly with my code, but an anomaly...
  139. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    Here's a program I wrote quite a few years ago to convert a BMP file to RGB565 in a Cdata table.

    BMP to RGB565 Converter

    Hopefully, you will find it useful.
  140. top204 has just uploaded BMP to RGB565 Converter for use with the Proton Compiler!

    top204 has just uploaded BMP to RGB565 Converter for use with the Proton Compiler!

    Here's a BMP to RGB565 Converter for use with the Proton Compiler.
  141. Replies
    11
    Views
    318

    Re: serious problem with 4 bytes float

    As George stated, page 21 of the compiler's manual shows how to convert from the Microchip format to the IEEE754 format using a few rotates.

    However, it can be done with a procedure to do the...
  142. Replies
    4
    Views
    571

    Re: PWM Timer Source

    I've just downloaded the PIC16F15313 datasheet, and it does state that it can use different timers for PWM or CCP, however it cannot! So the datasheet is wrong, which does not surprise me with...
  143. Replies
    6
    Views
    180

    Re: Relational Operators

    There have been no comparison changes in recent compiler versions since signed variables were introduced a few years ago.

    Without a code snippet showing an issue an answer cannot be given. Code...
  144. Replies
    16
    Views
    439

    Re: The Proton manual

    The BetaMax system was a better quality recorder, however, their lacing mechanism was an utter nightmare, which I think was also one of the reasons it did not become as popular as the VHS. I remember...
  145. Replies
    16
    Views
    439

    Re: The Proton manual

    The problem I have always had is not actually acknowledging the creativity and knowledge I have. I know it sounds like blowing my own trumpet LOL, but it is something that friends have told me since...
  146. Replies
    5
    Views
    2,056

    Re: Newbie to the forum!

    As John stated, welcome back Ivan.

    The compiler has had a full overhaul in recent versions and procedures are a big and very helpful addition the compiler. I'm currently looking at the new...
  147. Replies
    13
    Views
    1,188

    Re: SD File System revisited

    Many thanks for your code Alberto.

    I've gotten back into a FAT16 and FAT32 file system on the 8-bit devices the same as the ones I wrote for the PIC24 devices a few years ago. I have the reads...
  148. Replies
    16
    Views
    439

    Re: The Proton manual

    Many thanks George

    Words such as yours give me new incentives to add and improve the compilers. But I do wish they brought some money in. :-( Maybe I can use them indirectly with some products?...
  149. Replies
    16
    Views
    439

    Re: The Proton manual

    Sorry people, it is not intentional. I started using the Open Office PDF creator instead of the stupidly priced Adobe PDF creator, and I must have missed something in it.

    The next manual will have...
  150. Replies
    7
    Views
    176

    Re: HSerial_ChangeBaud question

    Examining the code produced by Hserial_ChangeBaud for a PIC16F648A running at 20MHz, everything looks fine. For example:

    The command; Hserial_ChangeBaud 2400, produces the asm code:

    movlw 8...
  151. Replies
    8
    Views
    251

    Re: Strange compile for a 16F628A

    I've always prided myself on being a man of my word, so download the version 3.7.2.6 of Proton and it does not save/restore the EECON SFRs with standard 14-bit core devices if Cread, Lread or Cread X...
  152. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.6 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.6 - Proton24 1.0.6.4!

    Corrections made in version 3.7.2.6 of Proton.

    Proton Corrections
    Corrected USART4 routine in the...
  153. Replies
    8
    Views
    251

    Re: Strange compile for a 16F628A

    Actually looking at the code more thoroughly, the compiler is saving and restoring some SFRs that it does not need too with standard 14-bit core devies, so I'll make the changes in the compiler and...
  154. Replies
    2
    Views
    154

    Re: Nesting Select / Case

    The compiler does not use a stack for any of its loops or comparisons etc, so nesting can be a deep as the microcontroller itself will allow. i.e. RAM size and code size etc... This makes looping and...
  155. Replies
    8
    Views
    251

    Re: Strange compile for a 16F628A

    The context Save and Restore are saving the SFRs used in reading flash memory.

    The interrupt handler is using the Lread command which reads flash memory and uses several SFRs to do so, therefore...
  156. Replies
    8
    Views
    251

    Re: Strange compile for a 16F628A

    Context Save and Restore will not save or restore internal eeprom data itself, however, if any of the eeprom commands are used within the interrupt, it will save the relevant SFRs used for reading...
  157. Wow!!!! 1991 guests at the moment on the forum

    I've just looked, and at this current time, there are 1991 guests on the forum according to the bottom of the forum's counter value, and it is increasing!

    This has to be either a mistake, or an...
  158. Re: johngb has just uploaded Proton Studio Update 1.0.2.10!

    Your IDE just gets better and better. Many thanks John.
  159. Re: johngb has just uploaded Proton Studio Update 1.0.2.10!

    Oooops. Sorry John.

    I didn't realise what Tools was for in the toolbar. I though it might have been your plugins etc...

    Again, an excellent IDE and many thanks.
  160. Re: johngb has just uploaded Proton Studio Update 1.0.2.10!

    Many thanks John.

    The Find and replace windows are now excellent. This was one of the things that stopped me using the previous versions fully.

    Can you add a dektop shortcut in your installer...
  161. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    John.. The best way to get a graphic LCD is to buy one already placed on a PCB. OK, most are for the dreadful Arduino shape, but sometimes they are more universal. i.e. For real world applications....
  162. Replies
    136
    Views
    2,743

    Re: Les's ILI9325 Wiki code

    The SPI interfaces to LCDs are OK, and work fine. But they are a lot slower, especially with colour graphic LCDs.

    Each pixel on a colour LCD needs 16-bits assigned to it (RGB565), and with SPI...
  163. Replies
    21
    Views
    5,145

    Re: 3x4 alpha numeric keypad

    That is exactly what the Inkey command does. It reads a 3x4 or a 4x4 matrix keypad.

    See the manual's Inkey page and look in the Samples folder for the "Inkey.bas" demo program: C:\Users\user...
  164. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.5 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.5 - Proton24 1.0.6.4!

    Corrections made in version 3.7.2.5 of Proton

    Proton Corrections
    Corrected USART3 and USART4...
  165. Replies
    4
    Views
    199

    Re: Print CLS stopped USB from working

    The Cls command adds a 30mS delay after sending the command to the LCD. This is mandatory for Hitachi LCDs, and each LCD command has to have a small delay after it so the LCD chipset can perform the...
  166. Replies
    11
    Views
    2,353

    Re: UART and USB Issues with PIC18F97J94

    Thanks for the info Tumbleweed, exactly what I needed. :-)

    I'll get into the compiler's library routines later this afternoon and have an update ASAP to alter the RAM switching for the SFRs that...
  167. Replies
    11
    Views
    2,353

    Re: UART and USB Issues with PIC18F97J94

    I do not have one of those devies so I cannot do any tests. They are older devices, and I create the PPI files semi-automatically from Microchip device files, however, these are quite often full of...
  168. Re: ASSEMBLER ERRORS. Symbol not previously defined (PP_EEPGD)

    Hello Gamboa

    Update yor compiler to version 3.7.2.4 here:

    Proton Compilers Full Installer - Proton 3.7.2.4 - Proton24 1.0.6.4

    Some of the changes I made in the latest version of Proton are...
  169. Replies
    2
    Views
    121

    Re: Include a include file only once

    Take a look at all the compiler's include file libraries in the user includes directory "C:\Users\User Name\PDS\Includes" and you will see headers in them that stop an include file being used more...
  170. Replies
    11
    Views
    443

    Re: Dspic33Fj128MC706A UART pic18F25K80

    Oops. Sorry Tumbleweed. Having both sets of code in the question confused me. :-(

    Then yes, Tumbleweed is correct! The Str modifier will not send nulls (0). It will terminate at one because it is...
  171. Replies
    11
    Views
    443

    Re: Dspic33Fj128MC706A UART pic18F25K80

    That code is for an 18F device only. The PIC24 and dsPIC devices have an entirely different mnemonic set. :-) The code for the 14-bit core devices is also different to the 18F, and so is the enhanced...
  172. Replies
    11
    Views
    443

    Re: Dspic33Fj128MC706A UART pic18F25K80

    Sorry for the delay in replying, I'm currently working on 2 projects so my mind is constantly at work. :-)

    I see no reason why a 0 would not be accessed, the Str modifier on PIC24 devices does not...
  173. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.4 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.4 - Proton24 1.0.6.4!

    Corrections made in version 3.7.2.4 of Proton

    Corrected Signed Byte to Constant compare that...
  174. Replies
    4
    Views
    122

    Re: Stupid things I dun today

    George. I've killed quite a few multi-meter fuses with first testing current, then not changing the leads over into the voltage/resistance socket and testing Voltage. Pop!!!! and the fuse goes in the...
  175. Replies
    4
    Views
    122

    Re: Stupid things I dun today

    That has just reminded me John.

    I still remember when I first started driving, way back when, I took my very old Renault 14 car to a mechanic friend to get a new set of points fitted and get the...
  176. Replies
    11
    Views
    443

    Re: Dspic33Fj128MC706A UART pic18F25K80

    Comment out the error checking part of the Isr, just to make sure you are not receiving errors all the time and the array will not be filled.

    Also, if the Hrsin2 or Hrsout2 commands are not used...
  177. Replies
    4
    Views
    2,025

    Re: How to use timers in microcontroller

    Nice one Keytapper.
  178. Replies
    13
    Views
    2,498

    Re: Electronic roulette with PIC microcontroller

    Thanks Charlie.

    They are incredible to watch flashing around at different colours and patterns all from a single pin. :-) Their timings are a bit tight and the WS2812 has slightly different...
  179. Replies
    13
    Views
    2,498

    Re: Electronic roulette with PIC microcontroller

    I'd be interested in seeing your timing code. For a device operating at 32MHz or over, no problems are encountered, but with slower devices, the timings are a bit too tight.

    I was looking into...
  180. Replies
    5
    Views
    136

    Re: 18f4331 LCD Woes

    The compiler's alphanumeric LED Print routines do nothing with the R/W line, so the pin it is connected too must be pulled to ground with a Low command at the setup of the main program.

    If you...
  181. Replies
    13
    Views
    2,498

    Re: Electronic roulette with PIC microcontroller

    With the WS2812B chips, and the other RGB addressable chips, a single LED can be illuminated and all the rest extinguished. Then move the illuminated LED around the strip which is made into a a...
  182. Replies
    13
    Views
    2,498

    Re: Electronic roulette with PIC microcontroller

    I agree the APA102 chips are a lot better to control, and a lot easier and faster to operate because they are SPI. But, at this moment in time, they are also a lot more expensive than WS2812B chips....
  183. Replies
    13
    Views
    2,498

    Re: Electronic roulette with PIC microcontroller

    Personally, I think the most economic and simplest way to produce a roulette with that many LEDs is to use a string of WS2812B RGB LEDs in a circle and create a true random number. Both of these are...
  184. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.3 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.3 - Proton24 1.0.6.4!

    Corrections made in version 3.7.2.3 of Proton and version 1.0.6.4 of Proton24

    Proton Corrections...
  185. Replies
    5
    Views
    136

    Proton PIC18F4331 display on a 4x20 Alphanumeric LCD

    I've just ran a test with a 18F4331 in the simulator and the code below works:



    '
    ' /\\\\\\\\\
    ' /\\\///////\\\
    ' \/\\\ \/\\\ /\\\ ...
  186. Replies
    4
    Views
    261

    Re: Amicus18 CW Win Keyer

    A lovely project Alberto. Many thanks.

    I see by your excellent code, you are a true master of the preprocessor and macros. :-) My hat is off to you.

    When you master procedures, which I know...
  187. Replies
    71
    Views
    8,431

    Re: Temperature Controller Problem

    You cannot drive a multiplexed 7 segment display from the main program because any other commands that have a delay in them will stop the multiplexing and cause blanks etc..

    To multiplex the...
  188. Re: Proton v.3.7.2.1 created file "c:\full_after.bas" after compiled. Why?

    I thought that also John, so I'll add an option to have it created in the BASIC program's directory. For the general compiler user it is of no real use, but it is interesting to see and can be useful...
  189. Re: Proton v.3.7.2.1 created file "c:\full_after.bas" after compiled. Why?

    Whoops.... I forgot to take it out of the final compilation. Sorry.

    It does not harm, it is simply the full BASIC program once include files are added and preprocessor conditions are met and when...
  190. top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.1 - Proton24

    top204 has just uploaded Proton Compilers Full Installer - Proton 3.7.2.1 - Proton24 1.0.6.3!

    Additions and Corrections made in version 3.7.2.1 of Proton and version 1.0.6.3 of Proton24

    Proton...
  191. Replies
    6
    Views
    153

    Re: Happy Birthday Rick

    If I remember correctly, the moon landing happened during the night here in the UK, but when I went to juniors the next day, we watched it on the TV with the teacher. :-)
  192. Replies
    6
    Views
    153

    Happy Birthday Rick

    Many happy returns Rick (rcurl).

    I hope you have a wonderful day. :-)
  193. Re: How to invert just a bit - complement of a bit

    You are correct kuhrig, the complement of a bit that is different to the assignment bit is not working as it should. I have now corrected it and will produce an update to teh compilers.

    It was...
  194. Replies
    17
    Views
    834

    Re: TX/RX with CC1101 Texas

    Comments are allowed on the line of a standard $define, however, a comment apostrophe on its own with no text after it makes the $define add the next line to the definition. See the preprocessor...
  195. Re: How to invert just a bit - complement of a bit

    I'm ever so sorry. I forgot to look that this question was about the Proton24 compiler!

    I'll do some tests and get back to you.
  196. Replies
    3
    Views
    113

    Re: TERN accept no expression(s)

    Unfortunately, this is a Typo in the compiler manuals. :-( For speed, I used a section of text from another command's parameters section and forgot to remove the "Expression" part.

    I'll see what I...
  197. Replies
    9
    Views
    203

    Re: Using procedures, best practices

    A procedure call without parameters is, essentially, a Gosub command underneath. i.e. An asm Call mnemonic. Nothing more, nothing less.

    With parameters, it is still a Gosub command, but variables...
  198. Replies
    71
    Views
    8,431

    Proton Compiler Button Toggle Procedure

    For that type of toggling a similar type of mechanism is used, but it has to have state changes. Here's a demo that illuminates the LED when the button is pressed and released, then extingushes it...
  199. Replies
    71
    Views
    8,431

    Proton Compiler Button Debounce Procedure

    The Button command has an autorepeat mechanism, so it never stays in the same state.

    A much simpler way to check and debounce a button is to take a reading of teh pin, wait a few ms, then check...
  200. Replies
    71
    Views
    8,431

    Proton Compiler Button Command Demo program

    Amod. Please open a new thread for a new question in the future, otherwise questions get missed because they have a header text that people have already read.

    For example, the header for this...
Results 1 to 200 of 997
Page 1 of 5 1 2 3 4