I want to control the program execution depending on a jumper setting in the hardware.
The program Voltmeter should execute only for RB0 = 0
What is wrong here?
---------------------------------------------------------------
PORTB.0 = 1 'Simulating Jumper Pin RB0 = 1
If PORTB.0 = 1 Then
Lcdcmdout LcdClear
WaitMs 100
Lcd_Out(1,1,"Mode: PWR-Meter ")
Lcd_Out(2,1,"Set to Voltmeter")
WaitMs 2000
Else 'Pin RB0 = 0 (Mode: Voltmeter)
-----------------------------------------------------------------
The complete source code is attached.
The program Voltmeter should execute only for RB0 = 0
What is wrong here?
---------------------------------------------------------------
PORTB.0 = 1 'Simulating Jumper Pin RB0 = 1
If PORTB.0 = 1 Then
Lcdcmdout LcdClear
WaitMs 100
Lcd_Out(1,1,"Mode: PWR-Meter ")
Lcd_Out(2,1,"Set to Voltmeter")
WaitMs 2000
Else 'Pin RB0 = 0 (Mode: Voltmeter)
-----------------------------------------------------------------
The complete source code is attached.