How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Scott Your Own Question
Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

I need to convert the following basic stamp code to c++ and

Customer Question

I need to convert the following basic stamp code to c++ and can't seem to do it it in a seamless way. Anyone have a suggestion on the c++ code?

r1:
INPUT IO
INPUT CLK
LOW IO
DO : LOOP UNTIL(CLK=1)
temp = %10100000
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF (I2CAck=NAck) THEN r1

r2:
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF (I2CAck=NAck) THEN r2

r3:
INPUT IO
INPUT CLK
LOW IO
DO : LOOP UNTIL(CLK=1)
temp = %10100001
SHIFTOUT IO, CLK, MSBFIRST, [Temp\8]
SHIFTIN IO, CLK, MSBPRE, [I2CAck\1]
IF(I2CAck=NAck)THEN r3

I2CAck = NAck
SHIFTIN IO, CLK, MSBPRE, [Temp\8]
SHIFTOUT IO, CLK, MSBFIRST, [I2CAck\1]
LOW IO
Submitted: 3 years ago.
Category: Homework
Expert:  Josie-Mod replied 3 years ago.

Hello,

I'm Josie and I'm a moderator for this topic.

We have been working with our professionals to try to help you with your question. Sometimes it may take a bit of time to find the right fit.

I was checking to see if you had already found your answer or if you still need assistance from one of our professionals.

Please let me know if you wish to continue waiting or if you would like for us to close your question?

Also remember that JustAnswer has a multitude of categories to help you with all your needs from Pet to Legal.

Thank you,

Josie~Moderator

Customer: replied 3 years ago.

Josie,


 


Thank you for the response. I will wait a bit longer for a response.


 


Carl

Expert:  Josie-Mod replied 3 years ago.

Hello

Thank you, XXXXX XXXXX continue to look for a professional to assist you. Please let me know if I can be of any further assistance while you wait.

Best,

Josie~Moderator

Customer: replied 3 years ago.

Josie,


 


Please close my request.


 


Thank you.


 


Carl

Expert:  Seanna replied 3 years ago.
Hello, my name is Seanna.
The moderator let me know that you might be needing assistance but I see that it might be past your deadline.
I am sorry that we were unable to help on this prompt. Many experts have reviewed your question so far, but no one at this time has felt comfortable trying to help. The question may be just to difficult or not informative enough or priced to low.
If you still need an answer, fell free to reply back and let me know.. You are a valued customer and I hope you will consider us for your future needs.

Related Homework Questions