subject

Practice compile-time debugging by fixing all of the syntax errors in the following listing. Do yourself a favor and work through all the bugs using the Arduino IDE compile output information. Turn in the source code listing of your debugged program. Clearly state all of the syntax errors that you found.

void MyDelay (unsigned long mSecondsApx ); void setup ()
{
unsigned char * portDDRB ;

portDDRB = (unsigned char *) 0x24; *portDDRB |= Ox2O;
}
void loop ()

{
unsigned char * portB ;
portB = (unsigned char *) 0x25;
*portB |= Ox2O;
MyDelay {1000}
*portB &= OxDF:
MyDelay [1000] ,
}
void MyDelay (unsigned long mSecondsApx )
{
volatile unsigned long i;
unsigned long endTime = 1000 * mSecondsApx ; for (i = 0; i < endTime ; i++);
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
You know the right answer?
Practice compile-time debugging by fixing all of the syntax errors in the following listing. Do your...
Questions
question
Computers and Technology, 14.10.2019 17:30
Questions on the website: 13722367