salamat...sa blog ko din ipopost yung mga projects at mga reviews ng mga tools na meron ako...i-tatarget ko one post per week...
eto nga pala yung version ko... pero pareho ding schematic. mine is a PIC18F4450
It is recommended to use the PIC USB software framework. You only have to modify a few files to suit your application.
astig na board! ganada point to you sis agree madali lang talaga if using the framework, assuming you know what to modify. Kaya suggest ko lang to read also the usb appnote sa microchip
void Exercise_03(void){ /* * Write code in this function that reads data from USB and * toggles LED D4 when the data read equals ASCII character '1' (0x31) * * Useful functions: * byte getsUSBUSART(char *buffer, byte len) See cdc.c for details * mLED_4_Toggle(); * * Use input_buffer[] to store data read from USB. */}
C:\MCHPFSUSB\fw\Cdc\user\solutions
I am actually confused of the required files from PIC USB framework... nakakalito po...basta ang naiintindihan ko lang, yung user.c and user.h lamang daw ang babaguhin ko.
sis marce, ganito gawin mo to test your first sample codes like "blinker" and usb communication.1. download the usb framework sample code2. open the CDC demo (and compile/build to check if ok ba ang project settings like compiler, etc.) 3. Open user.c and check the code to familiarize before modifying4. There are blank functions to serve as sample exercises in user.c, like Code: [Select]void Exercise_03(void){ /* * Write code in this function that reads data from USB and * toggles LED D4 when the data read equals ASCII character '1' (0x31) * * Useful functions: * byte getsUSBUSART(char *buffer, byte len) See cdc.c for details * mLED_4_Toggle(); * * Use input_buffer[] to store data read from USB. */}Modify the code completing the exercises code. There are about 5 sample exercises. If you don't know the answer, no worries check the folderfor the answer. If you already know C, madali na lang yan. 5. Download to your board to test code, or simply use proteus 6. Enjoy!
alam ko na... tama ka kuya!lahat ng mga tutorials sa net, ay iba pa ang structure ng mga folders...I am using MCHPFSUSB v2.2... eto na ang folder structure nya..sige... pagtuunanko na muna ng pansin to...KUYA, try ko yan mamaya kapag di ko to nakuha. heheh