• AVR Freaks

Helpful ReplyHot!USB Interface to windows 10 serial software

Author
HighTechPower
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2021/01/27 01:35:43
  • Status: offline
2021/02/28 13:05:39 (permalink)
0

USB Interface to windows 10 serial software

Hi. I want to interface PIC18F4550/2550 based circuit with some windows 10 serial software like maybe, hyperterminal or realterm using it's USB connection. Any idea and links on how to begin with. I have to use XC8 compiler.

Second option is to use USB to serial converter again it should be compatible with windows 10, is there any easily available module for that? In this case I can use any PIC microcontroller to interface.

Third option is to use Arduino UNO. Can I directly connect it with windows 10 serial softwares ( I know that UNO can be programmed directly through USB cable and vice versa may also be true to use it's USB to communicate with windows serial software?).

Please reply for all three options.
#1
crosland
Super Member
  • Total Posts : 2202
  • Reward points : 0
  • Joined: 2005/05/10 10:55:05
  • Location: Warks, UK
  • Status: offline
Re: USB Interface to windows 10 serial software 2021/02/28 13:38:41 (permalink)
+2 (2)
The host operating system is irrelevant.
 
To user terminal software you need to implement CDC (Communications Device Class) on you PIC. Everything to do this is avalailable fro free form Microchip. I suggest you take the time to look at the Microchip website.
#2
ric
Super Member
  • Total Posts : 30223
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: USB Interface to windows 10 serial software 2021/02/28 14:42:29 (permalink) ☄ Helpfulby HighTechPower 2021/03/01 04:46:06
+2 (2)
HighTechPower
Hi. I want to interface PIC18F4550/2550 based circuit with some windows 10 serial software like maybe, hyperterminal or realterm using it's USB connection. Any idea and links on how to begin with. I have to use XC8 compiler.

Yes, the PIC18F4550 contains USB hardware, but that requires a LOT of very complex firmware running on the PIC to make it work. Not a taks for a beginner!
 

Second option is to use USB to serial converter again it should be compatible with windows 10, is there any easily available module for that? In this case I can use any PIC microcontroller to interface.

This is the easiest option.
Just get a TTL USB to serial adaptor. Windows 10 will install it automatically and give you a COM port with TTL levels, siutable to connect directly to a PIC without an RS232 buffer (e.g. MAX232) in between.
Something like these:
https://www.ebay.com/itm/...ace-Ft232/284022352349
https://www.ebay.com/itm/...Mini-Port/203273647202
https://www.ebay.com/itm/...er-Module/302577500261
 

Third option is to use Arduino UNO. Can I directly connect it with windows 10 serial softwares ( I know that UNO can be programmed directly through USB cable and vice versa may also be true to use it's USB to communicate with windows serial software?).

No idea, never used one.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#3
Mysil
Super Member
  • Total Posts : 4130
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: offline
Re: USB Interface to windows 10 serial software 2021/02/28 17:23:01 (permalink) ☄ Helpfulby HighTechPower 2021/03/01 04:46:17
+2 (2)
Hi,
Arduino do not do USB in the Atmel microcontroller on the Arduino board,
It use a FTDI  USB to Asynchronous Serial UART converter on the Arduino board,
for communication with the micro.
 
Microchip also make USB to UART protocol converters:
https://www.microchip.com/wwwproducts/en/MCP2200
https://www.microchip.com/wwwproducts/en/MCP2221A
that are actually a PIC microcontroller that is preprogrammed.
 
Microchip MLA have examples for USB, but not for PIC18 in latest version.
 
There is a USB Framework in MCC
https://www.microchip.com/mplab/mplab-code-configurator
Release Notes are separate documents in the same Download webpage.
Read the Release Notes first, be aware that the Device Library do Not support obsolete devices like PIC18F4550/2550.
 
    Mysil
 
 
#4
HighTechPower
Starting Member
  • Total Posts : 46
  • Reward points : 0
  • Joined: 2021/01/27 01:35:43
  • Status: offline
Re: USB Interface to windows 10 serial software 2021/03/27 07:31:45 (permalink)
0
ric
Just get a TTL USB to serial adaptor. Windows 10 will install it automatically and give you a COM port with TTL levels, siutable to connect directly to a PIC without an RS232 buffer (e.g. MAX232) in between.
Something like these:
 
https://www.ebay.com/itm/...er-Module/302577500261
 
 



Do I have to install pull-up resistors on RX & TX line externally.
#5
NorthGuy
Super Member
  • Total Posts : 6587
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: USB Interface to windows 10 serial software 2021/03/27 08:36:14 (permalink)
0
MCP2200 is most likely PIC18 with USB firmware on it.
#6
ric
Super Member
  • Total Posts : 30223
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: USB Interface to windows 10 serial software 2021/03/27 12:39:37 (permalink)
0
HighTechPower


Do I have to install pull-up resistors on RX & TX line externally.

No

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#7
stenakew
Starting Member
  • Total Posts : 35
  • Reward points : 0
  • Joined: 2013/09/04 10:54:16
  • Location: 0
  • Status: offline
Re: USB Interface to windows 10 serial software 2021/03/27 23:02:48 (permalink)
0
Hi.
(On using Arduino UNO as an interface between the PIC and PC)
If you have one, it is simple.
 
You can find more info at http://sten-ake.com/?p=68.
(and of course the ground (0V) connection must be done.)
 
Sten-Åke
 
#8
Jump to:
© 2021 APG vNext Commercial Version 4.5