PIC18F14K50 SDK

From ElectroDragon Wiki
Revision as of 16:34, 11 March 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Device – CDC – Basic Demo

  • Once the device is successfully installed, open up a terminal program, such as hyperterminal. Select the appropriate COM port. On most machines this will be COM5 or higher.
  • Once connected to the device, there are two ways to run this example project. Typing a key in the terminal window will result in the device echoing that key plus one. So if the user presses “a”, the device will echo “b”. If the pushbutton is pressed the device will echo “ – Button Pressed – “ to the terminal window.

Device – CDC – Serial Emulator

  • Once the device is successfully installed, open up a terminal program, such as hyperterminal. Select the appropriate COM port for the USB virtual COM port. On most machines this will be COM5 or higher. On the computer where the RS232 cable it attached, open a second terminal program. Select the hardware COM port associated with that computer. Please insure that the baud rate for both terminal windows is the same.
  • Once everything is configured correctly, typing a key in one terminal window will result in the same data to show up in the second terminal window.

Device – HID - Keyboard

  • This demo uses the selected hardware platform as a USB keyboard. Before pressing the button, select a window in which it is safe to type text freely. Pressing the button will cause the device to print a character on the screen.

Device – Mass Storage – Internal Flash

  • This demo uses the selected hardware platform as an drive on the computer using the internal flash of the device as the drive storage media. Connect the hardware platform to a computer through a USB cable.
  • The device should appear as a new drive on the computer named “Drive Name”. The volume label or file information can be changed in the Files.c file located in the project directory.