rohan1234
Newbie level 4
i am trying to program 89s52 atmel microcontroller..
my problem statement is...
i hv 2 design a wagon...which has 8 compartments..
which are initially empty...
so we give in the input(8 bits)..and the processor keeps cheking the inputs everytime we run the program...
and we compare the 8 bits with 11111111(hex ff)..(which means the all the compartments are full)
only if its hex (ff)...the program should give me an output...(the wagon can move wen all the compartments are full)
how do i write a c program for this?...
my problem statement is...
i hv 2 design a wagon...which has 8 compartments..
which are initially empty...
so we give in the input(8 bits)..and the processor keeps cheking the inputs everytime we run the program...
and we compare the 8 bits with 11111111(hex ff)..(which means the all the compartments are full)
only if its hex (ff)...the program should give me an output...(the wagon can move wen all the compartments are full)
how do i write a c program for this?...