Burst programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Burst programming

1,304 Views
BobMac
Contributor I

Hi guys;

I would like a bit of help concerning the burst programming flow chart in

the 'S08AC60 manual, page-54 Fig.4-3.

 After writing the burst program command to FCMD and clearing FCBEF to start it up,

how/ where do I "que" the new burst command as required in the write-up?

All polite suggestions are welcome.

Bob

Labels (1)
0 Kudos
4 Replies

496 Views
peg
Senior Contributor IV

Hello BobMac,

 

Take a look at the AC128 manual I think it is the same in this regard and the explanation is better.

Basically you are writing to the same registers before the command is finished as they are buffered to allow this.

 

0 Kudos

496 Views
bigmac
Specialist III

Hello BobMac,

 

The main difference between burst programming and programming byte-by-byte is that, for burst programming the next byte is continued with when the FCBEF flag becomes set.  For byte-by-byte programming, the next byte is not commenced until the FCCF flag is set.  Of course, for the last byte of the burst programming sequence will also need to wait for FCCF set.  Otherwise the two processes are quite similar.

 

Since flash is not accessible for reading until FCCF is set, the RAM based code required will be significantly larger for the burst programming method, and additional RAM will be required to store the burst data.

 

Unless you are storing a large amount of data in flash, the speed benefit over the byte-by-byte method will not be particularly significant, maybe not enough to justify the additional complication.

 

Regards,

Mac

 

0 Kudos

496 Views
BobMac
Contributor I

Hey BigMac glad to see you;

 I have about 46 bytes to store and thought that burst mode would be fun to try. Yes, I know the overhead would be burdensome but, Wow! There is a whole 2K of ram to play with, less the stack of course.

 Looking at the flow chart in the AC64 book, I was a bit puzzled as to where I could slip in the next Burst command

to "queue" it as suggested in the write-up accompanying.

 Why the heck doesn't FS make things a bit easier to implement the code required to use all the jewels contained in these hunks of silicon. No reply necessary, just venting. Happy Monday ;o)

 Thanks also to Peg for helpful suggestion. Much better, I think. maybe...

Best regards, Bob

0 Kudos

496 Views
bigmac
Specialist III

Hello BobMac,

 

You simply write the next burst command at the point "Write command to FCMD", after latching the next address and data values.  The FCBEF flag indicates when the command buffer is empty, and may receive the next command.

 

Regards,

Mac

 

0 Kudos