Search found 155 matches

by alanwms
Fri Jul 31, 2026 9:58 pm
Forum: General
Topic: Question regarding the switch function, and a thought
Replies: 4
Views: 383

Re: Question regarding the switch function, and a thought

The attached helped but - - I can get the if block to work but my switch simply falls through
Untitled.jpg
Untitled.jpg (55.53 KiB) Viewed 197 times
by alanwms
Wed Jul 29, 2026 3:54 pm
Forum: General
Topic: Question regarding the switch function, and a thought
Replies: 4
Views: 383

Question regarding the switch function, and a thought

Is it possible to use a string for the switch function?

Thought:
Such a simple idea, but it would be nice to incorporate either automatic or manual file backups.
by alanwms
Thu Jul 09, 2026 6:09 pm
Forum: General
Topic: PWM Woes
Replies: 19
Views: 14568

Re: PWM Woes

Did we resolve this?
by alanwms
Mon Feb 16, 2026 1:48 pm
Forum: General
Topic: 16f18877 internal Zero Cross Detector
Replies: 24
Views: 10732

Re: 16f18877 internal Zero Cross Detector

Maybe an easier method would be to simply connect a dual optical isolator via resistor directly to the micro controller transformer on the secondary ac side. Your open collector outputs will switch at every zero crossing.
That signal is connected to the hardware interrupt which services the routine ...
by alanwms
Mon Feb 16, 2026 1:46 pm
Forum: General
Topic: 16f18877 internal Zero Cross Detector
Replies: 24
Views: 10732

Re: 16f18877 internal Zero Cross Detector

See below
by alanwms
Mon Feb 16, 2026 1:33 pm
Forum: General
Topic: PWM Woes
Replies: 19
Views: 14568

Re: PWM Woes

Did this get sorted?
by alanwms
Fri Jan 16, 2026 3:48 pm
Forum: General
Topic: Interrupts
Replies: 2
Views: 2947

Re: Interrupts

Martin! Thank you... Happy New Year.
by alanwms
Wed Dec 03, 2025 9:20 pm
Forum: General
Topic: Interrupts
Replies: 2
Views: 2947

Interrupts

Using PIC18f27q10. FC11
I have two interrupts. One is a hardware input interrupt. The other is a timer0 interrupt. I believe that priorities are settable but requires a few c code register adjustments such as (maybe):
IPR0bits.INT0IP = 1; // High priority
IPR0bits.TMR0IP = 0; // Low priority
I don't ...
by alanwms
Thu Sep 11, 2025 7:16 pm
Forum: General
Topic: PIC12f1840 speed selection
Replies: 5
Views: 4838

Re: PIC12f1840 speed selection

Thank you. I think I have selected the correct register number for the osc? Maybe not? I have attached my file
by alanwms
Wed Sep 10, 2025 3:01 pm
Forum: General
Topic: PIC12f1840 speed selection
Replies: 5
Views: 4838

Re: PIC12f1840 speed selection

If the system timing is correct at 20mhz, would that not indicate internal oscillator to be correct?