subject

1. Translate the logic to find the position of the first high in an 8 bit data item into program (Assembly or C language). The data must be read using interrupt driven SPI protocol. The data should be scanned from D7 to DO. Give the results for XX where XX is your Roll No. Register SPSR SPCR Bit-7 SPIF SPIE Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 WCOL SPE DORD MSTR CPOL CPHA SPR1 Table.1 SPI Registers and their bit allocation Bit-o SPI2X SPRO The vector address for SPI ISR is at 0018 Hex address of ROM Location whereas its Vector Name in WinAVR is SPI_STC_vect. 2. Illustrate with a packet format for a master to write first three prime numbers to a slave address 1011111 using 12C protocol. 3. Develop an AVR code (Assembly or C language) to ask the student his/her attendance percentage through 12C protocol from a slave with address 1101110 with 50KHz frequency. The student should be allowed to sit in an exam if his/her attendance is greater than or equal to 75%, condoned if greater than 65% or equal, but less than 75% and not eligible if less than 65%. The decision letter should be displayed on PORT A. S. No Eligibility Letter to display 1 Eligible E 2 Condoned с 3 Not eligible N Table.2 Decision letter to be displayed Register TWSR TWCR Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 TWS7 TWS6 TWS5 TWS4 TWINT TWEA TWSTA TWSTO TWWC TWEN Bit-1 Bit-o TWPS1 TWPSO TWIE Table 3 TWI/12C Registers and their bit allocation

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
You know the right answer?
1. Translate the logic to find the position of the first high in an 8 bit data item into program (As...
Questions
question
Engineering, 13.11.2021 05:50
question
English, 13.11.2021 05:50
Questions on the website: 13722363