Question

1- Explain the function of the ‘trisb’ Special Function Register(SFR). Where is it located in the...

1- Explain the function of the ‘trisb’ Special Function Register(SFR). Where is it located in the PIC. Say what effect the following statement has:-
trisb = 0x03;

2- In a C program for a microcontroller, portb has been setup as all outputs and is assigned the hexadecimal value 0xD3. Determine the voltage levels on the pins of portb.


3- In the context of explaining the difference between the logical NOT operator(!) and the bitwise NOT operator(~) say what value portb will end up with in each of the following cases:-
a) portb = ~ (0x55);
b) portb = !(0x55);

4- Determine the value on the portb pins after the following C code statement is executed, if portb had an initial value of 0x40:-
portb = portb >> 2;































0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
1- Explain the function of the ‘trisb’ Special Function Register(SFR). Where is it located in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In a C program for a microcontroller, portb has been setup as all outputs and is...

    In a C program for a microcontroller, portb has been setup as all outputs and is assigned the hexadecimal value 0xC6. Determine the voltage levels on the pins of portb. In the context of explaining the difference between the logical NOT operator(!) and the bitwise NOT operator(~) say what value portb will end up with in each of the following cases:- portb = ~ (0x45); portb = !(0x45); Determine the value on the portb pins after the following C code...

  • Question 3: In class we showed how to simply light up an LED on our Teensy...

    Question 3: In class we showed how to simply light up an LED on our Teensy microcontroller. In fact, the procedure is similar for all processors including a simpler 8-bit ATmega 328P (a.k.a Arduino Uno) For purposes of this exercise, let's say that the ATmega328 has 4 regular GPIO ports; A, B, C, and D, each with 8 pins. Every GPIO port has three registers (outlined in table below) PORTX: used to write output on a pin on port X...

  • QUESTION 1 Which statement results in the value false? The value of count is 0; limit...

    QUESTION 1 Which statement results in the value false? The value of count is 0; limit is 10. (count != 0)&&(limit < 20) (count == 0)&&(limit < 20) (count != 0)||(limit < 20) (count == 0)&&(limit < 20) 10 points    QUESTION 2 If this code fragment were executed in an otherwise correct and complete program, what would the output be? int a = 3, b = 2, c = 5 if (a > b) a = 4; if (...

  • These are my answere to the following questions: are they right? 1. B 2. T 3....

    These are my answere to the following questions: are they right? 1. B 2. T 3. T 4. T 5. F 6. T 7. A 8. D 9. E 10. B 11. B 12. A 13. A 14. D 15. C 16. D 17. T 18. C 19. T 20. T 21. T 22. A 23. T 24. D 25. B 26. A 27. A 28. A 29. T 30. C 31. D 32. A 33. T 34. F 35....

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT