Today 18:51
Forum: Proton Plus Compiler v3
Starter: AlbertoFS
Views: 0
Replies: 29
Go to last post By: charliecoultas
Today 14:42
Forum: Proton 24
Starter: charliecoultas
Views: 0
Replies: 5
Today 12:28
Forum: GPS
Starter: AlbertoFS
Views: 0
Replies: 8
Today 00:00
Forum: Proton Plus Compiler v3
Starter: analogdevice
Views: 0
Replies: 1
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,585
    Thumbs Up
    Received: 54
    Given: 14
    Total Downloaded
    1.52 GB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Thanks Les.
    Regards

    Joseph

  2. #12
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    The .Bitx came into play so we can adjust a few bits of an SFR at once with a single define. For example:

    Code:
    $define IPC0bits_IC1IP(pValue)    '
        IPC0bits_IC1IP0 = pValue.Bit0 '
        IPC0bits_IC1IP1 = pValue.Bit1 '
        IPC0bits_IC1IP2 = pValue.Bit2
    The alternative, and a little more complex was:

    Code:
    $define IPC0bits_IC1IP(pValue)       '
        IPC0 = IPC0 & % 1111111110001111 '
        WREG0 = pValue << 6              '
        IPC0 = IPC0 | WREG0
    With the first, and simpler, $define, passing a constant to it would have produced a floating point constant. i.e. 3.0, 3.1, and 3.2, instead of extracting bits 0, 1 and 2 and placing them into the IC1IPX bits.

    The above are for Proton24, but the same is for standard Proton.

    So the above sets the priority of an interrupt by using:

    IPC0bits_IC1IP(3)

    The asm code produced for these is extremely efficient.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  3. #13
    Junior Member xelectro's Avatar
    Join Date
    Apr 2016
    Posts
    11
    Thumbs Up
    Received: 2
    Given: 7
    Total Downloaded
    80.38 MB

    1 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Hi Les, Thanks for the free update, I formulated some polls on facebook, I hope they serve as a suggestion. Most respondents are beginners.

    gggg.JPG

    111111.JPG

    Regards
    Last edited by xelectro; 26th June 2017 at 03:20.

  4. #14
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    1 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Thanks for that xelectro. It gladdens my heart to see people are actually using the compiler.

    Also, the 2 most popular devices are the free ones, which is actually good for getting the users familiar with the compiler.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  5. #15
    Junior Member xelectro's Avatar
    Join Date
    Apr 2016
    Posts
    11
    Thumbs Up
    Received: 2
    Given: 7
    Total Downloaded
    80.38 MB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Hi Les, I have been testing the free version with 16f877, in the samples folder I found this example 3_Buttons which I have modified but the program shows me this error
    I do not understand, Delay is always necessary?

    Without dalay (error)

    3_Buttons error.jpg


    With delay (success)

    3_Buttons success.jpg


    Code:
    Declare Reminders = Off   
     Include "Proton_4.Inc"              ' Configure ports for Proton board
    
    
        Dim Buf1 As Byte                    ' Working buffer 1 for button command
        Dim Buf2 As Byte                    ' Working buffer 2 for button command
        Dim Buf3 As Byte                    ' Working buffer 3 for button command
    
    
        Symbol Sw1  = PORTB.5
        Symbol Sw2  = PORTB.6
        Symbol Sw3  = PORTB.7
        Symbol LED1 = PORTC.5
        Symbol LED2 = PORTC.6
        Symbol LED3 = PORTC.7
    
    
        Clear                               ' Clear buffers
        Low PORTC                           ' ALL LEDs off
        TRISB = 110000                   ' Set PORTB 0-3 outputs, 4-7 inputs
        Declare PortB_Pullups = On          ' Enable PORTB pull-ups
    Chk1:
       ' DelayMS 25
        Button Sw1,0,0,0,Buf1,0,Chk2       ' Check Button 1 (Skip to 2 if Not Pressed)
        Toggle LED1                         ' Toggle LED if pressed
    Chk2:
        Button Sw2,0,0,0,Buf2,0,Chk3       ' Check Button 2 (Skip to 3 if Not Pressed)
        Toggle LED2                         ' Toggle LED if pressed
    Chk3:
        Button Sw3,0,0,0,Buf3,0,Chk1       ' Check Button 3 (Skip to 1 if Not Pressed)
        Toggle LED3                         ' Toggle LED if pressed
        GoTo Chk1                           ' Do it forever
    End
      'DelayMS 25
    Regards
    Last edited by xelectro; 28th June 2017 at 05:50.

  6. #16
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    I'm not getting any errors while running the sample.

    Also remember, the End statement is not actually required anymore, and it is a remnant of PBP and BASIC Stamp compatability. Also, the infinite loop caused by the Goto Chk1, makesthe End statement useless anyway.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  7. #17
    Junior Member xelectro's Avatar
    Join Date
    Apr 2016
    Posts
    11
    Thumbs Up
    Received: 2
    Given: 7
    Total Downloaded
    80.38 MB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Hi Les, I will be waiting for that.
    Me:
    Is there the possibility of adding the 16f628A or 16F88 microcontrollers for the free version? these microcontrollers are very used by beginners.
    You:
    Quote Originally Posted by Les View Post
    OK... Will do that for the next update.
    http://www.protonbasic.co.uk/showthr...roton24-1.0.4.

    Regards.
    Last edited by xelectro; 12th August 2017 at 19:25.

  8. #18
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: Compiler installer for 8-bit Proton 3.5.9.9 and Proton24 1.0.4.3

    Version 3.6.0.0 of the compiler now comes with these devices not requiring registration:

    10F200, 10F202, 10F204, 10F206, 10F222, 12F1552, 12F1572, 12F508, 12F508A, 12F509, 12F509A, 12F675, 12F683, 12LF1552, 12LF1572
    16F1614, 16LF1614, 16F1826, 16LF1826, 16F1829, 16LF1829, 16F18323, 16LF18323, 16F1937, 16LF1937, 16F627, 16LF627, 16F627A, 16LF627A,
    16F628, 16LF628, 16F628A, 16LF628A, 16F684, 16LF684, 16F685, 16LF685, 16F687, 16LF687, 16F688, 16LF688, 16F689, 16LF689, 16F84, 16F84A,
    16F87, 16LF87, 16F88, 16LF88, 16F876, 16F876A, 16F877, 16F877A, 16F882, 16F883, 16F884, 16F886, 16F887,
    18F13K50, 18LF13K50, 18F14K50, 18LF14K50, 18F252, 18LF252, 18F2550, 18LF2550, 18F25K20, 18LF25K20, 18F25K22, 18LF25K22, 18F26K20, 18LF26K20,
    18F26K22, 18LF26K22, 18F452, 18LF452, 18F4550, 18LF4550, 18F45K20, 18LF45K20, 18F45K22, 18LF45K22, 18F46K20, 18LF46K20, 18F46K22, 18LF46K22

    I'm hoping to start selling peripheral boards on Ebay and Amazon, and I will write drivers for them for the Free devices of Proton, to encourage sales (hopefully). The items will have a link to the google drive for the drivers etc...
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: 17th June 2017, 22:03
  2. Replies: 0
    Last Post: 11th May 2017, 10:26
  3. Replies: 0
    Last Post: 26th April 2017, 18:08
  4. Replies: 0
    Last Post: 23rd April 2017, 17:53
  5. Replies: 0
    Last Post: 1st March 2017, 15:42

Members who have read this thread since 14th August 2017, 14:23 : 8

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts