PICDEM FS and USB


Results 1 to 10 of 10

Threaded View

  1. #8
    Gab25's Avatar
    Gab25 Guest

    Default

    I tried to use the microchip example "Run time linking" but I can't see the correct value of the potentiometer.

    Code:
    #define RD_POT	0x37			
    send_buf[0] = RD_POT;				
    send_buf[1] = 0x02;              
    SendReceivePacket(send_buf,2,receive_buf,&RecvLength,1000,1000);
    printf("\n%x %x %x\r\n",receive_buf[0],receive_buf[2],receive_buf[1]);
    If I try to read the Firmware Version it works great. Any Idea?

    Another part of the example:

    switch(dataPacket.CMD)
    {
    case READ_VERSION:
    dataPacket._byte[2] = MINOR_VERSION;
    dataPacket._byte[3] = MAJOR_VERSION;
    dataPacket._byte[4] = MINOR_VERSION;
    dataPacket._byte[5] = MAJOR_VERSION;
    counter=0x06;

    Why I can't send 6 byte or more...but only 4?

    Thanks and sorry for my english
    Last edited by Gab25; - 16th October 2006 at 18:28.

Similar Threads

  1. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 03:46
  2. General USB questions
    By BobEdge in forum USB
    Replies: 2
    Last Post: - 21st April 2009, 05:19
  3. Analyzing USB Comm
    By kirtcathey in forum USB
    Replies: 13
    Last Post: - 11th January 2009, 22:27
  4. USB power definitions
    By RYTECH in forum USB
    Replies: 5
    Last Post: - 24th June 2008, 19:40
  5. Replies: 1
    Last Post: - 7th November 2007, 21:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts