Search:

Type: Posts; User: Les

Page 1 of 3 1 2 3

Search: Search took 0.07 seconds.

  1. Re: Modification of program code by data in external memory

    Not as easy as it sounds Geoff. But there are several mechanisms.

    1. Create a bootloader that reads from an SD card or FRAM etc, and bootloads the full program, but with different equations. This...
  2. Les has just uploaded Proton Compiler Update 3.6.1.2 - 1.0.5.0!

    Les has just uploaded Proton Compiler Update 3.6.1.2 - 1.0.5.0!

    Proton Compiler Update 3.6.1.2 - 1.0.5.0

    **Important**
    This is an update to an existing compiler setup. So do not uninstall a...
  3. Replies
    10
    Views
    11

    Re: HPWM low frquency limitation

    Here's a small program that creates interrupt driven PWM signals from any 2 pins (pin amounts can be increased or decreased). The PWM signal operates in the background,.

    It operates up to 16-bit...
  4. Replies
    1
    Views
    2

    Re: Version 3.6.1.0 SDEC modifier

    Sorry about that Selcuk. It was a simple typo in one of the functions of the compiler that caused such chaos. That's the thing with complex programs, a small issue that doesn't get noticed can cause...
  5. Les has just uploaded Proton Version 3.6.1.1 Update Patch!

    Les has just uploaded Proton Version 3.6.1.1 Update Patch!

    Here is an update patch for the 8-bit Proton compiler that corrects the DecX and SDecX modifiers with serial and LCD commands.

    It will...
  6. Replies
    26
    Views
    27

    Re: Which IDE are you all using?

    You may have seen it before, but here's a good site for Regular expressions with Delphi.

    https://www.regexbuddy.com/delphi.html
  7. Replies
    17
    Views
    18

    Re: Sub-EndSub and Gosub-Return

    The PIC24 devices are actually easier to use than the 8-bit devices because Microchip have kept SFRs and bitnames etc in order, the same for the peripherals. They operate the same on most of the...
  8. Replies
    17
    Views
    18

    Re: Sub-EndSub and Gosub-Return

    John is correct. A Sub-EndSub is the same as Label-Return.

    Adding Sub-EndSub came about because of a silly chip that is being promoted in the mags. It is an interpreted BASIC running on a PIC32!...
  9. Replies
    26
    Views
    27

    Re: Which IDE are you all using?

    John.... I use your IDE as standard now!

    It is what I said it is "it is excellent"! It is designed and built by someone who puts their heart into it, and uses the compiler it is designed for,...
  10. Replies
    26
    Views
    27

    Re: Which IDE are you all using?

    You are all in for a treat with it. It is excellent!
  11. Re: Test with Proton 3.6.1.0. The labels disappear

    Unfortunately not.

    The IDE would need an update also. However, Johngb is creating a wonderful new IDE for the compiler.
  12. Les has just uploaded Proton Version 3.6.1.0 Update with Sub-EndSub!

    Les has just uploaded Proton Version 3.6.1.0 Update with Sub-EndSub!

    [FONT=Arial][SIZE=1][FONT=Arial][SIZE=2]Here is an update patch for the 8-bit Proton compiler that adds the [B]Sub-EndSub, and...
  13. Les has just uploaded Proton Version 3.6.0.9 Update with Sub-EndSub!

    Les has just uploaded Proton Version 3.6.0.9 Update with Sub-EndSub!

    Here is an update patch for the 8-bit Proton compiler that adds the Sub-EndSub, and ExitSub directives for a more structured...
  14. Replies
    25
    Views
    26

    Re: Just to let you know

    I don't understand the question fully Gary?

    However, to the underlying program, a Sub is simply a subroutine name, so a Goto will find it, but you cannot Return from a Goto, otherwise you will get...
  15. Replies
    25
    Views
    26

    Re: Just to let you know

    For now, a Goto Main, or a Sub named Main will need to be done, but I am working on the same mechanism as used in Proton24, where a Sub is only placed in the program if it is called, then it is...
  16. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    Yes. AC is always better for water detection.
  17. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    Time well spent Henk. And I know it was enjoyable for you?
  18. Replies
    25
    Views
    26

    Just to let you know

    Just to let you know, I have added Sub-EndSub to the standard Proton compiler for the next update, so that subroutines can be wrapped, and Johngb's excellent new IDE can fold them. These are an...
  19. Replies
    5
    Views
    6

    Re: Same code different pic

    Stephen is absolutely correct. Try a simple piece of code that toggles an LED, and see if the LED flashes at the correct rate, or do an Rsout or Hrsout command and see if the Baud matches on a...
  20. Replies
    15
    Views
    16

    Re: Re. latest vweaion 3.6.0.7

    They haven't made the change yet, but they do have the name DDRB as well as TRISB etc in the inc files, so a change is bound to happen at some point.
  21. Thread: Address of SFR's

    by Les
    Replies
    2
    Views
    3

    Re: Address of SFR's

    SFR addresses differ depending on the device family. At one time, all SFRs on 18F devices were in Access RAM, so needed no bank selections, but that is not the case now. Some, in fact most, SFRs are...
  22. Replies
    15
    Views
    16

    Re: Re. latest vweaion 3.6.0.7

    All the newer devices have had to have new code written for them when a command uses a peripheral, because they have been changed significantly. That's why there are new directives in the PPI files....
  23. Replies
    15
    Views
    16

    Re: Re. latest vweaion 3.6.0.7

    Sorry about that George. I must have opened the wrong PPI file, because of tiredness. But the mechanism is the same. i.e. Give a new name but the same address. Only use a Notepad to make changes...
  24. Replies
    20
    Views
    21

    Re: Programmable RF oscillators

    That looks like a really interesting chip John. I've found the cheapest on Ebay for only 13.90, which is, apparently, AU $25.64:
    ...
  25. Replies
    15
    Views
    16

    Re: Re. latest vweaion 3.6.0.7

    The amount of changes they've made for no real reason is incredible, and very, very stupid. So there are bound to be a few things that I've missed, unfortunately. I have a sneaky feeling that they...
  26. Les has just uploaded Proton Compiler Update 3.6.0.7 - 1.0.4.9!

    Les has just uploaded Proton Compiler Update 3.6.0.7 - 1.0.4.9!

    For some reason, I can no longer upload to the Proton or Proton24 updates section of the forum's files section!!

    So here is the...
  27. Re: Proton+ generates codes for addresses that do not exist on the PIC18F47K40.

    If you're using Edata, Microchip have also moved the address of eeprom within the K40 and K42 devices, without actually making it known. Even the datasheets don't have the address clearly...
  28. Thread: 18F26K42 status

    by Les
    Replies
    4
    Views
    5

    Re: 18F26K42 status

    Yes. All 128K is available to the compiler.

    Using the Dim as Code for flash memory data storage, instead of Cdata, automatically stores the data in the lower 64K of flash, and code doesn't care...
  29. Replies
    20
    Views
    21

    Re: Problem in pulse per second meter

    Also, use a median filter to iron out some of the fluctuations. A median filter is a simple bubble sort, then choose the middle value from the sort.
  30. Replies
    7
    Views
    1,661

    Re: 16f1503 AND PWM modules

    See:

    PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library replacement routine
  31. Les has just uploaded PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library

    Les has just uploaded PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library replacement routine!

    Until the update is ready, here is an include fie that gives the compiler HPWM for the...
  32. Thread: Preprocessor woes

    by Les
    Replies
    2
    Views
    3

    Re: Preprocessor woes

    The preprocessor has the $define _uart 1, so the code below works as expected:



    Device = 16F690

    $define D_HardSerialNum 2

    $if D_HardSerialNum > _uart
    $error "Incorrect...
  33. Thread: 16f753 DAC

    by Les
    Replies
    1
    Views
    2

    Proton PIC16F753 DAC peripheral routines

    I don't have one of these devices, but the 9-bit DAC looks easy to setup and use, from reading the datasheet.

    Here's a piece of code that you can copy and create an include file named "DAC.inc"
    ...
  34. Re: Them interrupts, them interrupts, they drive me mad!

    You can also get rid of the right shift by 4 Bob, and do the comparisons on the high nibble values. I know this sound pedantic. LOL. But the quicker a piece of code operates within an interrupt, the...
  35. Thread: 18F26K42 status

    by Les
    Replies
    4
    Views
    5

    Re: 18F26K42 status

    I'm busy running the final tests on the devices that Microchip have screwed around with.

    These are the devices that have, either, been added to the compiler, or needed new code in both the...
Results 1 to 35 of 100
Page 1 of 3 1 2 3