Bracer
New Member
This is the Code in PICBasic Pro:
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT 'Use Internal Clock
Input PortA.0 'Makes Port A, Pin 0 an Input.
Routine:
If PortA.0 = 1 Then
High PortB.0
Sound PortB.7, [120,15]
endif
Goto Routine
I don't understand why it doesn't react when PortA.0 IS high
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT 'Use Internal Clock
Input PortA.0 'Makes Port A, Pin 0 an Input.
Routine:
If PortA.0 = 1 Then
High PortB.0
Sound PortB.7, [120,15]
endif
Goto Routine
I don't understand why it doesn't react when PortA.0 IS high