That's great but, at 9600 baud it will be in this routine for 26.5 milliseconds. That's OK if you can afford it...
That's great but, at 9600 baud it will be in this routine for 26.5 milliseconds. That's OK if you can afford it...
Dave Purola,
N8NTA
EN82fn
At 115K it takes ~22ms to send 256 bytes assuming back to back transfers. At 9600 it's over 10x longer than that....trying to offload up to 256 MB of data from a flash chip to VB on laptop over 115.2k BAUD connection.
You could use background serial transfers while you do something to read that flash chip, but you're going to have to know what you're doing to get all that working.
you could...... forget hserout, then you can make your data buffer bigger, use longs if your pic can do it.... 18f's, then write data to ram or program mem location that can store more than 256 bytes, then access data knowing starting location and loop through data with TX routine number of chars to send. I have sent 10K bytes at a time serially at 115K over 8266esp
I would dig up some code if interested in that technique.
Bookmarks