Home > other >  The small white want to seek advice
The small white want to seek advice

Time:09-26

ORG 00 h
STRAT: JB P3.4, NEXT1
The CLR P1.0
JB P3.5, NEXT2
The CLR P1.1
JB P3.6, NEXT3
The CLR P1.2
JB P3.7, NEXT4
The CLR P1.3
SJMP STRAT
NEXT1: SETB P1.0
SJMP STRAT
NEXT2: SETB P1.1
SJMP STRAT
NEXT3: SETB P1.2
SJMP STRAT
NEXT4: SETB P1.3
SJMP STRAT
Probably just want to through buttons control the lamp, but in addition to the first will be effected according to the back

CodePudding user response:

Program is not wrong, you are run on the hardware, or the simulation run?

CodePudding user response:

reference 1st floor bsnow response:
program are not wrong, you are run on the hardware, or the simulation run?

Hardware and software debugging behind me as if he is only in line 2, 3 and next1 circulation, as if not to perform don't know why

CodePudding user response:

Don't know what you like in 2, 3 and how do you debug NEXT1 cycle, if so, you want to see if your P3.4 for high level, if is that there must be a hardware problem, do you have in this program, P3.4 when no buttons at ordinary times you must be a low level,
The following is the result of I debug
  • Related