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, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
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
Mathematics, 27.10.2020 17:50
question
Mathematics, 27.10.2020 17:50
question
Chemistry, 27.10.2020 17:50
question
Spanish, 27.10.2020 17:50