Re: [jallib] interrupt on change 12F1840

2023-01-30 Thread hans
Hi Matt,
Please leave it so it is, i use it in older programs.
regards
Hans

Op maandag 30 januari 2023 om 23:35:12 UTC+1 schreef mattsc...@hotmail.com:

> Should we remove the interrupt on change library?
>
> This sample shows a good example of how to use interrupt on change without 
> a library:
> 18f4620_interrupt_on_change_pin_b0.jal
>
> Or does someone want to update the library?
>
> Matt.
>
> On Saturday, January 28, 2023 at 2:42:08 PM UTC-5 rob...@hotmail.com 
> wrote:
>
>> Hi Hans,
>>
>> Good to hear that. I could add it as sample file as a version that does 
>> not use a library.
>>
>> Kind regards,
>>
>> Rob
>>
>> --
>> *Van:* jal...@googlegroups.com  namens hans <
>> hanz...@zeelandnet.nl>
>> *Verzonden:* zaterdag 28 januari 2023 20:33
>>
>> *Aan:* jallib 
>> *Onderwerp:* Re: [jallib] interrupt on change 12F1840
>> Hi Rob, 
>> Works fine,, base for a sample ??
>> regards
>> Hans
>>
>> Op zaterdag 28 januari 2023 om 17:15:05 UTC+1 schreef rob...@hotmail.com:
>>
>> Hi Hans,
>>
>> It was easier to update your program than changing the library. I think 
>> with the current set-up is it not easy to change the library but maybe 
>> someone else has a brilliant idea.
>>
>> Attached your program version that compiles and not using the library. It 
>> was not tested, I leave that up to you.
>>
>> Kind regards,
>>
>> Rob
>>
>> --
>> *Van:* jal...@googlegroups.com  namens Rob CJ <
>> rob...@hotmail.com>
>> *Verzonden:* zaterdag 28 januari 2023 16:46
>>
>> *Aan:* jal...@googlegroups.com 
>> *Onderwerp:* Re: [jallib] interrupt on change 12F1840
>> Hi Hans,
>>
>> I had a look at the library but with the current set-up I cannot solve it 
>> with aliases since PICs can have multiple ports that support interrupt on 
>> change and the library only works for one port (B).
>>
>> I will give it some more thought 
>>
>> Kind regards,
>>
>> Rob
>>
>> --
>> *Van:* jal...@googlegroups.com  namens Rob CJ <
>> rob...@hotmail.com>
>> *Verzonden:* zaterdag 28 januari 2023 15:00
>> *Aan:* jal...@googlegroups.com 
>> *Onderwerp:* Re: [jallib] interrupt on change 12F1840 
>>  
>> Hi Hans,
>>
>> I saw indeed that the library supports only port b. It can be fixed with 
>> aliases to also support port a but that need some work because the library 
>> is quite large.
>>
>> I tried to see if it compiles when I add aliases for only port a and only 
>> 1 pin and that compiles. Attached your program with using only one pin and 
>> a draft update of the change. You can at least test if 1 pin works 
>>
>> *Note that this library is just a hack and far from complete!* I was 
>> thinking of making the change in a different way so that it requires less 
>> work.
>>
>> So if you are patient I can make the change.
>>
>> Kind regards,
>>
>> Rob
>>
>> --
>> *Van:* jal...@googlegroups.com  namens hans <
>> hanz...@zeelandnet.nl>
>> *Verzonden:* zaterdag 28 januari 2023 11:53
>> *Aan:* jallib 
>> *Onderwerp:* Re: [jallib] interrupt on change 12F1840 
>>  
>> Op zaterdag 28 januari 2023 om 11:49:07 UTC+1 schreef hans:
>>
>> Hi Rob, 
>> I have tried but Yes but this one has no port B
>>
>> Op zaterdag 28 januari 2023 om 10:43:37 UTC+1 schreef rob...@hotmail.com:
>>
>> Hi Hans,
>>
>> Did you check the interrupt on change sample file?
>>
>> Kind regards,
>>
>> Rob
>>
>> --
>> *Van:* jal...@googlegroups.com  namens hans <
>> hanz...@zeelandnet.nl>
>> *Verzonden:* zaterdag 28 januari 2023 10:05
>> *Aan:* jallib 
>> *Onderwerp:* [jallib] interrupt on change 12F1840 
>>  
>> Hello all, 
>> I would like to apply an interrupt on change in a 12F1840. Does anyone 
>> have an example of this?
>> retgards
>> Hans
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jallib+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jallib/65c3df4a-bc83-487b-b058-e67fa7ef3029n%40googlegroups.com
>>  
>> 
>> .
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jallib+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jallib/c8e79cd7-4a56-4c8c-80e4-c8d6afb18388n%40googlegroups.com
>>  
>> 
>> .
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> 

[jallib] [jallib build] buildbot success in jallib on jallib-standard

2023-01-30 Thread build
Hi guys,

This is buildbot speaking. I have finished a build of jallib-standard on jallib.
Buildslave for this Build: sebbot

Build Reason: 
Build Source Stamp: HEAD
Blamelist: rob.hamerling

Build succeeded!
Logs are attached.

sincerely,
 -The Buildbot

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/E1pMhKH-0002dc-4S%40casadeyork.com.
Updating '.':

UU   compiler/jalv2-osx

Updated to revision 3890.

2792 samples to validate...

1173 libraries to validate...

All files validated :)

Environment config

JALLIB_ROOT=/home/mattschinkel/jallib/slave/standard/build

JALLIB_REPOS=/home/mattschinkel/jallib/slave/standard/build/include

JALLIB_SAMPLEDIR=/home/mattschinkel/jallib/slave/standard/build/sample

JALLIB_JALV2=/home/mattschinkel/bin/jalv2

JALLIB_PYTHON=python2.7



Time duration: 247 secs

jal jalv25r7 (compiled Jan 29 2023)

Required parameter to hex is missing!

no source file, use /home/mattschinkel/bin/jalv2 --help for help

Error while compiling file (status=1).

See previous message.

2792 samples to compile...

All samples compile :)

Environment config

JALLIB_ROOT=/home/mattschinkel/jallib/slave/standard/build

JALLIB_REPOS=/home/mattschinkel/jallib/slave/standard/build/include

JALLIB_SAMPLEDIR=/home/mattschinkel/jallib/slave/standard/build/sample

JALLIB_JALV2=/home/mattschinkel/bin/jalv2

JALLIB_PYTHON=python2.7



Time duration: 1933 secs



Re: [jallib] ChatGPT does not know JAL :-(

2023-01-30 Thread Matthew Schinkel
Works for me but it needs work

Google's LaMDA seems like a better AI from its conversation posted on 
youtube.


I asked ChatGPT to write a PID program in JALv2 (asking for JAL also works).

' PID program in JALv2
' Variables for PID control
dim setpoint as word
dim process_value as word
dim error as word
dim previous_error as word
dim integral as word
dim derivative as word
dim control_output as word

' Constants for PID control
const Kp as word = 50
const Ki as word = 10
const Kd as word = 5

' Setpoint, process value, and initial conditions
setpoint = 1000
process_value = 0
previous_error = 0
integral = 0

' Main loop for PID control
do
  ' Calculate error
  error = setpoint - process_value
  
  ' Update integral
  integral = integral + error
  
  ' Calculate derivative
  derivative = error - previous_error
  
  ' Calculate control output
  control_output = Kp * error + Ki * integral + Kd * derivative
  
  ' Apply control output to process
  ' Code to control the process goes here
  
  ' Update previous error
  previous_error = error
  
  ' Wait for next iteration
  wait 1
loop

On Monday, January 30, 2023 at 12:35:02 AM UTC-5 vasile wrote:

> Beware Rob.
> I suggest you see a movie prior to teaching AI anything. It's called 
> "Somebody", Korea 2022.
> Unless you want uncontrollable modifications to your jal pack...
>
> On Sun, Jan 29, 2023 at 7:22 PM rob...@hotmail.com  
> wrote:
>
>> Hi all,
>>
>> I see people using ChatGPT to make programs for Arduino. I thought to 
>> give it a try and asked ChatGPT if it could write a JAL program for a PIC 
>> microcontroller.
>>
>> The response was as folows:
>>
>> "I apologize, but as JAL is not a programming language that I am aware 
>> of, I am unable to provide a sample program for it. If you provide more 
>> information about JAL such as specifications, syntax, and libraries, I 
>> would be happy to help you create a program. Also, PIC microcontroller are 
>> programmable with a variety of languages such as C, Basic, and Assembler. 
>> It would be helpful to know which type of PIC Microcontroller you have, and 
>> what would you like to achieve with the program."
>>
>> We need to learn this AI some JAL :-)
>>
>> Kind regards,
>>
>> Rob
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jallib+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jallib/6bd003aa-9606-4ab5-9d5a-2a58e2cdf1c2n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/7295bb7b-5453-47c1-870c-934fabb92fabn%40googlegroups.com.


Re: [jallib] interrupt on change 12F1840

2023-01-30 Thread Matthew Schinkel
Should we remove the interrupt on change library?

This sample shows a good example of how to use interrupt on change without 
a library:
18f4620_interrupt_on_change_pin_b0.jal

Or does someone want to update the library?

Matt.

On Saturday, January 28, 2023 at 2:42:08 PM UTC-5 rob...@hotmail.com wrote:

> Hi Hans,
>
> Good to hear that. I could add it as sample file as a version that does 
> not use a library.
>
> Kind regards,
>
> Rob
>
> --
> *Van:* jal...@googlegroups.com  namens hans <
> hanz...@zeelandnet.nl>
> *Verzonden:* zaterdag 28 januari 2023 20:33
>
> *Aan:* jallib 
> *Onderwerp:* Re: [jallib] interrupt on change 12F1840
> Hi Rob, 
> Works fine,, base for a sample ??
> regards
> Hans
>
> Op zaterdag 28 januari 2023 om 17:15:05 UTC+1 schreef rob...@hotmail.com:
>
> Hi Hans,
>
> It was easier to update your program than changing the library. I think 
> with the current set-up is it not easy to change the library but maybe 
> someone else has a brilliant idea.
>
> Attached your program version that compiles and not using the library. It 
> was not tested, I leave that up to you.
>
> Kind regards,
>
> Rob
>
> --
> *Van:* jal...@googlegroups.com  namens Rob CJ <
> rob...@hotmail.com>
> *Verzonden:* zaterdag 28 januari 2023 16:46
>
> *Aan:* jal...@googlegroups.com 
> *Onderwerp:* Re: [jallib] interrupt on change 12F1840
> Hi Hans,
>
> I had a look at the library but with the current set-up I cannot solve it 
> with aliases since PICs can have multiple ports that support interrupt on 
> change and the library only works for one port (B).
>
> I will give it some more thought 
>
> Kind regards,
>
> Rob
>
> --
> *Van:* jal...@googlegroups.com  namens Rob CJ <
> rob...@hotmail.com>
> *Verzonden:* zaterdag 28 januari 2023 15:00
> *Aan:* jal...@googlegroups.com 
> *Onderwerp:* Re: [jallib] interrupt on change 12F1840 
>  
> Hi Hans,
>
> I saw indeed that the library supports only port b. It can be fixed with 
> aliases to also support port a but that need some work because the library 
> is quite large.
>
> I tried to see if it compiles when I add aliases for only port a and only 
> 1 pin and that compiles. Attached your program with using only one pin and 
> a draft update of the change. You can at least test if 1 pin works 
>
> *Note that this library is just a hack and far from complete!* I was 
> thinking of making the change in a different way so that it requires less 
> work.
>
> So if you are patient I can make the change.
>
> Kind regards,
>
> Rob
>
> --
> *Van:* jal...@googlegroups.com  namens hans <
> hanz...@zeelandnet.nl>
> *Verzonden:* zaterdag 28 januari 2023 11:53
> *Aan:* jallib 
> *Onderwerp:* Re: [jallib] interrupt on change 12F1840 
>  
> Op zaterdag 28 januari 2023 om 11:49:07 UTC+1 schreef hans:
>
> Hi Rob, 
> I have tried but Yes but this one has no port B
>
> Op zaterdag 28 januari 2023 om 10:43:37 UTC+1 schreef rob...@hotmail.com:
>
> Hi Hans,
>
> Did you check the interrupt on change sample file?
>
> Kind regards,
>
> Rob
>
> --
> *Van:* jal...@googlegroups.com  namens hans <
> hanz...@zeelandnet.nl>
> *Verzonden:* zaterdag 28 januari 2023 10:05
> *Aan:* jallib 
> *Onderwerp:* [jallib] interrupt on change 12F1840 
>  
> Hello all, 
> I would like to apply an interrupt on change in a 12F1840. Does anyone 
> have an example of this?
> retgards
> Hans
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jallib+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/65c3df4a-bc83-487b-b058-e67fa7ef3029n%40googlegroups.com
>  
> 
> .
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jallib+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/c8e79cd7-4a56-4c8c-80e4-c8d6afb18388n%40googlegroups.com
>  
> 
> .
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jallib+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/GVXP195MB16371BC45D3D327F9AF3DDB0E6CD9%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM
>  
> 

[jallib] [jallib/jallib] 0dd17e: Compiler version 2.5R7 for OSX (x86-64)

2023-01-30 Thread 'Rob Hamerling' via jallib
  Branch: refs/heads/master
  Home:   https://github.com/jallib/jallib
  Commit: 0dd17ef806c14924c6639899d7a7b57840eef22e
  
https://github.com/jallib/jallib/commit/0dd17ef806c14924c6639899d7a7b57840eef22e
  Author: Rob Hamerling 
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
M compiler/jalv2-osx

  Log Message:
  ---
  Compiler version 2.5R7 for OSX (x86-64)

Replaced OSX version of compiler version 2.5R7


-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jallib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/jallib/jallib/push/refs/heads/master/dd571d-0dd17e%40github.com.