The results of our write-a-byte and read-a-byte
operations can be seen in the MPLAB IDE debug memory
and Watch views shown in Screenshot 1.

Tossing Big Chunks of Data with the
uDrive-uSD-G1

Throwing around single bytes of data can be useful,
depending on the application. However, there will be times
when you’ll need to move large amounts of data. So, let’s
write two more API functions to do just that.

The command set contains a pair of commands that
allow the user to read and write 512-byte sectors in a
single operation. We’ll use these commands (Read Sector
Block Data and Write Sector Block Data) to build our
sector-read and sector-write API functions. Let’s put some
data on the drive and see if we can read it back. Here’s