• AVR Freaks

how to send 0 and 1 data on otg and how to access otg data of pic32mx530f128h

Author
Rameshwar
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2019/08/19 06:05:45
  • Location: 0
  • Status: offline
2019/08/19 21:47:29 (permalink)
0

how to send 0 and 1 data on otg and how to access otg data of pic32mx530f128h

Hi,
 Im new for pic32 programming i want to gpio pin data send on to otg of pic32.  
#1

1 Reply Related Threads

    LostInSpace
    Super Member
    • Total Posts : 263
    • Reward points : 0
    • Joined: 2016/03/11 22:47:59
    • Location: 0
    • Status: offline
    Re: how to send 0 and 1 data on otg and how to access otg data of pic32mx530f128h 2019/08/22 18:13:52 (permalink)
    0
    Is a PC the master and the PIC32 the connected device?
    If yes, then use the USB as a COM port and talk back and forth via a serial connection.
    This is very simple.
     
    Microchip provides a number of sample projects with Harmony, I suggest that you get this one running,
    cdc_com_port_single
     
    This example allows you to open a terminal window on a PC and to send a character back and forth from the PC to the PIC and back again. After you get this running you will be able to modify it to send a '1' or a '0' from the PIC to the PC.
     
    I also recommend starting with Harmony 2.x at this time as version 3 is still being worked out.
     
    Hope this helps.
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5