
ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
21
5.4 USB Interface
USB is serial communication between microcontroller and computer. Previous Starter Kit
(SK40B) use RS232 Serial port for serial communication. RS232 is conventional way of
interfacing microcontroller to PC via serial port. Now USB is replace RS232 in serial
communication.
5.4.1 SK40C USB
USB data pins (pin 23, D- and pin 24, D+) were connected to a mini USB port on SK40C
board for USB development use. So far, Microchip has only 5 USB 8-bit microcontrollers in
40-pin PDIP package such as PIC18F4450, PIC18F4455, PIC18F4550, PIC18F4458 and
PIC18F4553. Microchip has USB software to support USB on 8-bit, 16-bit and 32-bit MCUs.
This software is royalty free source code which called MCHPFSUSB Framework and also
includes example projects. Download the appropriate USB stack for the target processor.
Each includes USB firmware for the microcontroller as well as a USB device driver for the
PC which allows the PC to treat the microcontroller as a USB device. Classes supported
include HID, CDC, MSD and generic.
User can download MCHPFSUSB Framework (Microchip Application Libraries) from
Cytron website under “Useful Document” of SK40C. Unzip it and install it after finish
download. “Microchip Solutions” folder will be created at your C Drive. All free framework
and example projects are inside the folder. For SK40C user, only the project with this name
“PICDEM FSUSB.mcp” is suitable for your project but you need do some modification on
“HardwareProfile – PICDEM FSUSB.h” because the SK40C’s switches and LEDs are
connected to different I/O pin if compare to the PICDEM FSUSB Demo Board. User can
download the PICDEM FSUSB Demo Board User’s Guide at Cytron website under “Useful
Document” of SK40C which has the schematic diagram for your reference.
Komentáře k této Příručce