Nice to know that not everything needs an MCU and 'AI' to work
Martin
I looked for your pin property over the past weekend but I found nothing.mnfisher wrote: ↑Mon Feb 09, 2026 7:46 pmThe pin declared in properties is for output - I'd connected this (RD1) to a logic analyser - it was easier than wiring up a UART convertor...
The zero crossing interrupts on RA0 - I think this is fixed on the 18877 - but other PICs might be able to remap to other pins.. This is set up (analog / input) in the interrupt enable block.
The output is defined in properties:
properties.png
I would recommend doing pin assignments like this (rather than using Input/Output blocks) - except for very small pieces of code. It enables the pin to be changed easily (without having to alter all the Input/Output blocks) - and the pin can be written using pin = value or read using value = pin (where value will be 0 or 1)
Use of properties allows many very useful features - click add property and take a look...
Martin
Could you have added the PIN in the Custom Interupt Properties instead?mnfisher wrote: ↑Mon Feb 09, 2026 7:46 pmThe pin declared in properties is for output - I'd connected this (RD1) to a logic analyser - it was easier than wiring up a UART convertor...
The zero crossing interrupts on RA0 - I think this is fixed on the 18877 - but other PICs might be able to remap to other pins.. This is set up (analog / input) in the interrupt enable block.
The output is defined in properties:
properties.png
I would recommend doing pin assignments like this (rather than using Input/Output blocks) - except for very small pieces of code. It enables the pin to be changed easily (without having to alter all the Input/Output blocks) - and the pin can be written using pin = value or read using value = pin (where value will be 0 or 1)
Use of properties allows many very useful features - click add property and take a look...
Martin