I am interested in developing the option of PC communications with either 18F4520 or 18F4620. I have not worked with communications previously so appreciate any suggestion on where to start.
I would like to offer a simple PC software and be able to view data via USB. It would also be nice to send values to the PICs to make changes to the process.
PIC to PC Communications
Moderators: David Barker, Jerry Messina
-
- Registered User
- Posts: 30
- Joined: Mon Nov 22, 2010 3:08 am
EASYHID
I'm not finding much in the way of EASYHID and 18F4620. Maybe I'll try USART and a 232 to USB convertor to get started. Any other suggestions?
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
-
- Registered User
- Posts: 30
- Joined: Mon Nov 22, 2010 3:08 am
USART, Ethernet - 18F4620
Jerry,
Thanks for the response. I now see how they identify these as USB microcontrollers.
If I wanted to work up a relatively simple method to communicate with an 18F4620 with a PC, do you have any suggestion? I am now looking at Ethernet and USART. The Swordfish USART only works with Swordfish installed. It would also be nice to be able to configure a basic page on the PC.
The 18F4620 has; "Enhanced Addressable USART module". I don't know what this means yet, but am wondering if I should begin here as this might be the quickest means to an end.
Thanks
Paul
Thanks for the response. I now see how they identify these as USB microcontrollers.
If I wanted to work up a relatively simple method to communicate with an 18F4620 with a PC, do you have any suggestion? I am now looking at Ethernet and USART. The Swordfish USART only works with Swordfish installed. It would also be nice to be able to configure a basic page on the PC.
The 18F4620 has; "Enhanced Addressable USART module". I don't know what this means yet, but am wondering if I should begin here as this might be the quickest means to an end.
Thanks
Paul
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Paul,
If you're new to this, then I'd definitely suggest starting with a serial usart. Ethernet and USB both have a lot of software and protocols that go along with them, so they have a pretty steep learning curve. The uart is relatively simple, and there's plenty of examples on how to use it.
RS232 is a very common serial interface. It works with the uart, and about all you need is an interface chip (MAX232) to convert the TTL levels from the PIC to +/- signals. If you get a "serial-to-TTL" style serial converter for the PC side, you can even skip the MAX232.
If you're new to this, then I'd definitely suggest starting with a serial usart. Ethernet and USB both have a lot of software and protocols that go along with them, so they have a pretty steep learning curve. The uart is relatively simple, and there's plenty of examples on how to use it.
RS232 is a very common serial interface. It works with the uart, and about all you need is an interface chip (MAX232) to convert the TTL levels from the PIC to +/- signals. If you get a "serial-to-TTL" style serial converter for the PC side, you can even skip the MAX232.
Maybe you're misinterpreting things, but the USART code will work fine with just about anything. Perhaps you're referring to the Serial Communicator tool in the IDE. If so, there are a lot of other options available (they're called terminal emulators) and there's plenty of free/open-source ones out there. Many versions of Windows include one (Hyperterm).The Swordfish USART only works with Swordfish installed
-
- Registered User
- Posts: 30
- Joined: Mon Nov 22, 2010 3:08 am
USART
Jerry,
That's exactly what I needed. Thank you very much. USART it is.
Paul
That's exactly what I needed. Thank you very much. USART it is.
Paul