Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 30th May 2006, 11:27 AM   #1
Default 18f2550 programming (SW)

I have for many years used pic basic on the 16 series, but I know want to build usb connected designs instead of my usual serial controlled items.

I'm going into this blind and have not got a clue how these new pics do the comms over usb.

Has anyone got any simple hello world and turn that LED on software so I can look at whats going on?
lez is offline  
Old 30th May 2006, 01:02 PM   #2
Default

Quote:
Originally Posted by lez
I have for many years used pic basic on the 16 series, but I know want to build usb connected designs instead of my usual serial controlled items.

I'm going into this blind and have not got a clue how these new pics do the comms over usb.

Has anyone got any simple hello world and turn that LED on software so I can look at whats going on?
There are USB examples and application notes on the MicroChip site, but be aware that it's FAR more complicated than serial.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 30th May 2006, 02:57 PM   #3
Default

Quote:
Originally Posted by lez
I have for many years used pic basic on the 16 series, but I know want to build usb connected designs instead of my usual serial controlled items.

I'm going into this blind and have not got a clue how these new pics do the comms over usb.

Try reading Microchip's application note AN956 "Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software".

Quote:
Has anyone got any simple hello world and turn that LED on software so I can look at whats going on?
Code for that is not much different from 16 series. In fact aside from the PIC18 specific initializing software, I think you can simply cut and paste assembly code from the PIC16 family with very little change.

Making code for the USB is a much bigger step however. I have a PICDEM FS USB evaluation kit. It came with bootloader and sample firmware. Luckily they are also available for download from Microchip's website. Download the file MCHPFSUSB.ZIP. Unzip and install. The source codes can be found in the install directory.

http://www.microchip.com/stellent/id...cName=en021940

You may also try Jungo Windriver USB development software. They support the PIC18F2550 chip. There is a 30 day trial version on their website.

http://www.jungo.com
__________________
"Having to do with Motion Control"

Last edited by motion; 30th May 2006 at 02:59 PM.
motion is offline  
Old 6th June 2006, 12:41 PM   #4
Default

Quote:
Originally Posted by lez
I have for many years used pic basic on the 16 series, but I know want to build usb connected designs instead of my usual serial controlled items.

I'm going into this blind and have not got a clue how these new pics do the comms over usb.

Has anyone got any simple hello world and turn that LED on software so I can look at whats going on?
I've built USB based on PIC18F2550 or 4550. (USB GEN and USB CDC)
I've used HTPICC18 to built firmware on PIC, and Borland Delphi 7 to write software on PC.

You can visit:
www.microchipc.com
www.sixca.com
__________________
Kiên quyết đi theo con đường mà Đảng và Bác Hồ đă chọn.
phamthaihoa is offline  
Old 6th June 2006, 12:45 PM   #5
Default

Quote:
Originally Posted by motion

You may also try Jungo Windriver USB development software. They support the PIC18F2550 chip. There is a 30 day trial version on their website.

http://www.jungo.com
PC software generated by Windriver is very complex, it read Endpoint directly.
You should use Microchip's DLL. You can use Visual Basic or Borland Delphi to do it. It's very simple.
__________________
Kiên quyết đi theo con đường mà Đảng và Bác Hồ đă chọn.
phamthaihoa is offline  
Reply

Tags
programming

Thread Tools
Display Modes




All times are GMT. The time now is 04:08 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker