Digistump Forums
The Digispark => Digispark Libraries => Topic started by: fh_ on February 21, 2015, 08:12:33 pm
-
Hi,
experimenting with DigiCDC using the ringbuffers inside I found some bugs in this lib.
In the DigiCDC lib the ringbuffer is implemented but not really used when sending chars because after each character a delay of 5ms is done and so the bug is not active but the transfer speed is limited to about 175 char/sec.
In my modification the the transfer speed for bigger data blocks (>8byte) is increased to about 1000 char/sec. using the ringbuffer and transfering up to 8 byte per block.
In addition I added some optimisations so that in my application the FLASH use is reduced by 238 byte and the global SRAM use is reduced by 40 byte.
I attached my files which have to copied to DigistumpIDE1.5.8C\hardware\digistump\avr\libraries\DigisparkCDC in the next post.
Some other remark:
usbser.sys must exist under /win/system32/drivers or you get an yellow question mark in the dervice manager
(What is not the case on a fresh windows 7).
-
updated files - see date of post