Hello!! I have done some exercies / assignments but I dont have the correct answer for them. Can anyone please help me check if I have solved them correct? I would truly appreciate that.
Question:
implement the following pseudo code with assembly code:
My answer:
Question:
We want to send the ASCII-character 'B' with serial communication RS323 standard. The parity is odd. Draw the pattern in the following picture
http://forumbilder.se/CF6Q7/133
My answer:
ASCII 'B' = 0100 0010
http://forumbilder.se/CF6Q7/33a
or should I swap the High and low bits before I draw the pattern?
Question:
implement the following pseudo code with assembly code:
Rich (BB code):
if (var1 > 9) or (var1 < 4)
(increment PortC by 5)
else
(invert PortC)
Rich (BB code):
movlw x09
cpfslt var1
goto add_5
comf portC
movlw x04
cpfsgt var1
goto add_5
comf portC
add_5 movlw x05
addwf portC
Question:
We want to send the ASCII-character 'B' with serial communication RS323 standard. The parity is odd. Draw the pattern in the following picture
http://forumbilder.se/CF6Q7/133
My answer:
ASCII 'B' = 0100 0010
http://forumbilder.se/CF6Q7/33a
or should I swap the High and low bits before I draw the pattern?