![]() ![]() This will create a folder which we then have to rename by right clicking it and selecting Rename. The folder is created by right clicking on Source Files, and selecting New Logical Folder. ![]() I have put these in a New Logical Folder called USB, located in the Source Files folder. We now need to add some files from the Microchip’s USB library. The dot directory “.” will ensure that the microchip source files can find our local files. Ĭ:/microchip_solutions_v/Microchip/IncludeĬ:/microchip_solutions_v/Microchip/Include/USB In the right hand window click the “…” button on inlude directories. In the left hand window left click XC8 Compiler. We do this by right clicking the project and selecting properties. I have given it the rather unimaginative name USB_Blink3. This is the same as before – create a standalone project, based on the 16F1455 using the PICkit3 and XC8. I am going to create a new project, and then add USB support to it. I am using Windows 7, so I downloaded the Windows installer version. My advice is to install it to the default location, which for me was C:/microchip_solutions_v. If you like, you can try some of their examples, but they are all targeted at their development boards, so you will either need one of those, or you will need to modify the code a bit. The code we need is the Microchip Libraries for Applications. ![]() In order to communicate via the PICs USB interface we need to get some code from Microchip. This is a very cheap way to make a USB interface – I reckon all the parts (retail) would cost about £1.50 (~US $2). I am going to use the serial class, so the PIC will appear as a serial port. This will allow us to connect the PIC up to a PC (or any USB host) and communicate using a suitable device driver. This time I am going to make a simple circuit using the PIC16F1455 and a mini USB connection. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |