Author Topic: bugs in DigiCDC lib when using the ringbuffer  (Read 2586 times)

fh_

  • Newbie
  • *
  • Posts: 5
bugs in DigiCDC lib when using the ringbuffer
« 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).

« Last Edit: February 22, 2015, 12:53:51 am by fh_ »

fh_

  • Newbie
  • *
  • Posts: 5
Re: bugs in DigiCDC lib when using the ringbuffer
« Reply #1 on: February 22, 2015, 12:56:36 am »
updated files - see date of post