![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
how to have 3 conditions in programing the PIC16F84 in asm eg. Condition 1 , Condition 2 , Condition 3 if condition 1 execute........ if condition 2 execute........ if condition 3 execute loop back | |
| |
| | #2 |
|
using GOTO's Code:
Again BTFSC A_File, A_Bit1
GOTO Condition1
Resume2 BTFSC A_File, A_Bit2
GOTO Condition2
Resume3 BTFSC A_File, A_Bit3
GOTO Condition3
GOTO Again
Condition1 ;Condition 1 code
GOTO Resume2
Condition2 ;Condition 2 code
GOTO Resume3
Condition3 ;Condition 3 code
GOTO Again
| |
| |
|
| Thread Tools | |
| Display Modes | |
| |