CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC18F and MIDI

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
alex



Joined: 27 Nov 2011
Posts: 7

View user's profile Send private message

PIC18F and MIDI
PostPosted: Sat Dec 10, 2011 12:10 am     Reply with quote

Well I managed to make my PIC18F4550 run and even get detected by USB.

I'm trying to send MIDI messages with no luck, have someone ever managed to do that? I searched on forums and copied nakarman's example but I still cant send it to my endpoint (i guess he didnt also).

heres what im trying

Code:

 while (TRUE) {
      usb_task();
      if(usb_enumerated()) { 
         buf[0] = (3 << 4) | 0x09;
         buf[1] = 0x93;
         buf[2] = 12;
         buf[3] = 64;
         usb_put_packet(1, buf, sizeof(buf), USB_DTS_TOGGLE);
         delay_ms(200);
     }
}
temtronic



Joined: 01 Jul 2010
Posts: 9170
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Dec 10, 2011 1:40 pm     Reply with quote

Have you got the CCS supplied ex_usb_hid.c example 'up and running' ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group