Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

L. The following questions to reading data from this device with SPI2 on a PIC24FJ64GA002. Assume SPI2 operates in 8-bit mode with a 5 MHz

image text in transcribed

L. The following questions to reading data from this device with SPI2 on a PIC24FJ64GA002. Assume SPI2 operates in 8-bit mode with a 5 MHz clock. (a) For SPI there are 8 phasing modes which are controlled by the CKP, CKE, and SMP bits in the SPI2CON1 control register. What values should we use for these bits to read the 25LC256? (b) The 8-bit data is written to and read from the 8-bit buffer SPI2BUF. The Receive Buffer Full status bit, SPIRBF, is located in the SPI2STAT register. The active low chip select, CS, for the 25LC256 is connected to pin RB14 which is configured as a digital output. Code a C function to read a 4-byte word from the 25L.C256. Use the prototype: int readEEPROM(int address) (c) With a 5 MHz clock how long does it take to read the 4-byte word from the EEPROM? L. The following questions to reading data from this device with SPI2 on a PIC24FJ64GA002. Assume SPI2 operates in 8-bit mode with a 5 MHz clock. (a) For SPI there are 8 phasing modes which are controlled by the CKP, CKE, and SMP bits in the SPI2CON1 control register. What values should we use for these bits to read the 25LC256? (b) The 8-bit data is written to and read from the 8-bit buffer SPI2BUF. The Receive Buffer Full status bit, SPIRBF, is located in the SPI2STAT register. The active low chip select, CS, for the 25LC256 is connected to pin RB14 which is configured as a digital output. Code a C function to read a 4-byte word from the 25L.C256. Use the prototype: int readEEPROM(int address) (c) With a 5 MHz clock how long does it take to read the 4-byte word from the EEPROM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago