I have an 8051 uC using a CompactFlash. Using LBA I know how to open in read or write mode in a specific sector. I'm needing to find out if its possible to access a specific byte without re-writing data. If so, how? Thanks, Sean

Byte wandering in CompactFlash
Started by ●April 24, 2004
Reply by ●April 24, 20042004-04-24
Hi, I do not understand: Sean W wrote:> I have an 8051 uC using a CompactFlash. Using LBA I know how to open in > read or write mode in a specific sector. I'm needing to find out if its > possible to access a specific byte without re-writing data. If so, how?^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ means. Are you trying to write one byte in a sector ?? There are no byte commands in the IDE command set. If you want to modify a byte anywhere, you need to: 1) read the sector into memory 2) modify the byte in momory 3) write the sector to the CF. hamilton> > Thanks, > > Sean > >
Reply by ●April 24, 20042004-04-24
I was afraid someone would say that. That pretty much goes with my suspicions. I was hoping, though, there might be a better way. Thanks for the reply. Sean "hamilton" <hamilton@deminsional.com> wrote in message news:408a8094$1_4@omega.dimensional.com...> Hi, > > I do not understand: > > Sean W wrote: > > I have an 8051 uC using a CompactFlash. Using LBA I know how to open in > > read or write mode in a specific sector. I'm needing to find out if its > > possible to access a specific byte without re-writing data. If so, how? > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > means. > > Are you trying to write one byte in a sector ?? > > There are no byte commands in the IDE command set. > If you want to modify a byte anywhere, you need to: > > 1) read the sector into memory > > 2) modify the byte in momory > > 3) write the sector to the CF. > > hamilton > > > > > Thanks, > > > > Sean > > > > >
