7 Jul 2010 20:22
Slightly different question ...
H Martin Reekie <H.M.Reekie <at> ed.ac.uk>
2010-07-07 18:22:34 GMT
2010-07-07 18:22:34 GMT
Folks, I am in a hurry to get 256 bytes of data from a PC to a PIC, and 128 bytes back again. Also I want priority of the bus, as it's busy. I thought I would therefore set up 6 endpoints on the PIC, 4 OUT and 2 IN, and would give a series of commands like: ret = usb_interrupt_write(dev, EP3_OUT, EP3_data, 0x40, 200); ret = usb_interrupt_write(dev, EP4_OUT, EP4_data, 0x40, 200); ret = usb_interrupt_write(dev, EP5_OUT, EP5_data, 0x40, 200); ret = usb_interrupt_write(dev, EP6_OUT, EP6_data, 0x40, 200); ret = usb_interrupt_read(dev, EP3_IN, EP3_indata, 0x40, 200); hoping they would all go into one, 1ms, USB frame. I am coming to the conclusion that this does not work and they *seem* to go one per frame. Am I being over-ambitious?! Martin -- -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
RSS Feed