Recent

Author Topic: PicPas, Pascal compiler for Microchip PIC  (Read 115092 times)

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #75 on: June 12, 2017, 11:28:00 pm »
Maybe clean up the repository.

OK. Repository is cleaned.  Tell me if you find some strange file, maybe I need to clear my local project.  :-\

Next Update:

Updated.

BTW:
The Converter to im-/and export [edit] po-files (of cause)[/edit] is on my repo:
https://github.com/joecare99/Public/tree/master/Diverses/FPC -> Prj_PicPas2Po.*
https://github.com/joecare99/Public/tree/master/Diverses/Source/PicPas2Po *

I will check it later. I will analyze if it's better to migrate to Po files.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #76 on: June 14, 2017, 06:52:27 pm »
PicPas is updated to the version 0.6.9.  :D  https://github.com/t-edson/PicPas

Functions are implemented, at the style of Modula-2:

Code: Pascal  [Select][+][-]
  1. procedure MyFunc(par1: byte): byte;
  2. begin
  3.   exit(par1+1);
  4. end;
  5.  

The RAM banking is improved when using procedures, and new Compiler options are added to the Config dialog.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #77 on: June 14, 2017, 10:23:00 pm »
Hi and thank you for this program
.
do you make any help file for this program?

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #78 on: June 14, 2017, 11:11:27 pm »
Hi and thank you for this program
.
do you make any help file for this program?

Hi. There are a technical doc (108 pages) and a User Manual (47 pages) in the /docs folder, but they are in spanish. Maybe someone can help on translation  :-\.
 
PicPas has not some kind of CHM help Files.
« Last Edit: June 14, 2017, 11:22:58 pm by Edson »
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #79 on: June 22, 2017, 08:55:22 pm »
PicPas, the only one Open-source Pascal compiler for PIC, has been updated to the version 0.7.0.   :) https://github.com/t-edson/PicPas

New configuration options has been added to the interfaz.

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #80 on: July 01, 2017, 11:34:31 pm »
PicPas has been updated to the version 0.7.1.  :D News:

- Automatic Syntax Checking. While typing!  8-).
- Basic support for interrupts.
- Char literals in ASM blocks
- Code Tool implemented to locate variables declaration.
- Code-completion improved.
- New PIC devices supported
...

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #81 on: July 07, 2017, 08:03:00 am »
Thanks for the nice compiler. But I'm still not able to compile the sample-programs, like BlinkLed. The compiler gives error-message "BlinkLed[15,5]Error:";"expected."
If I replace the "while true do begin"-loop by "repeat / until false" it works. What do I'm wrong with the original sample-file, why this error-message?
With best regards
Erni

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #82 on: July 07, 2017, 04:41:35 pm »
But I'm still not able to compile the sample-programs, like BlinkLed. The compiler gives error-message "BlinkLed[15,5]Error:";"expected."
If I replace the "while true do begin"-loop by "repeat / until false" it works. What do I'm wrong with the original sample-file, why this error-message?

My fault.  :o I haven't updated the samples since several versions ago. The samples BlinkLed.pas and Compuerta.pas are using the old Pascal syntax for WHILE:

Code: Pascal  [Select][+][-]
  1. WHILE ... DO
  2.   BEGIN
  3.     ...
  4.   END;

But the recents versions of PicPas works with the new Modula-2 syntax:

Code: Pascal  [Select][+][-]
  1. WHILE ... DO
  2.   ...
  3. END;

PicPas requires the directive {$MODE PASCAL} to work with the old Pascal syntax.

I have updated the samples. Check the GitHub.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #83 on: July 07, 2017, 06:47:40 pm »
Thank you very much for the fast response!
Please allow me a very different question:
What do you think about a Pascal-Compiler for the STM8-Microcontroller? There are very cheap and powerful boards with the STM8S103F3P6.
Such a Pascal-Compiler for this board would be very nice!
Again, thank you for the great work for your PIC-Compiler!
Erni

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #84 on: July 07, 2017, 08:58:18 pm »
What do you think about a Pascal-Compiler for the STM8-Microcontroller? There are very cheap and powerful boards with the STM8S103F3P6.
Such a Pascal-Compiler for this board would be very nice!
I'm sure STM8 is a good Microcontroller. It's just I haven't had the necessity of this device. In my country we most use Arduino and PIC.  :-[
A STM8 compiler would be interesting, but It's a lot of work. Compilers are not simple programs.  :o
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #85 on: July 08, 2017, 08:10:05 am »
Yes, I understand. I can imagine how much time is necessary to write a compiler.
The STM8 is a very different controller-family to the PICs, and working at two compilers at the same time must be confusing.
Thanks for your great work and for sharing it to us!

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #86 on: July 08, 2017, 09:33:00 pm »
Thanks for your great work and for sharing it to us!

You're welcome.

Recently PicPas has updated to the version 0.7.2. Location of errors in source code is tuned and RAM banking is improved in conditionals.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #87 on: July 09, 2017, 10:43:50 pm »
German translation:
See pull-request ...
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

Edson

  • Hero Member
  • *****
  • Posts: 1301
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #88 on: July 10, 2017, 04:31:39 am »
German translation:
See pull-request ...

Updated  :)
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Erni

  • New Member
  • *
  • Posts: 15
Re: PicPas, Pascal compiler for Microchip PIC
« Reply #89 on: July 14, 2017, 08:17:47 pm »
Hello, here my first real PicPas application. It works!
Erni

 

TinyPortal © 2005-2018