Usb to serial communication

Thread Starter

Omais Ahmed

Joined Oct 4, 2015
35
Hello everyone,
I'm using laptop...and need to watch some variables in serial monitor. Com port is not showing in serial monitor because laptop does not has serial port. I'm using mikroc? Pls help me
Thanks in advance
 

OBW0549

Joined Mar 2, 2015
3,566
Google "USB serial adapter." These are available from many manufacturers and will give you an RS-232 communication port on any computer with USB.

There are also adapters which will give you a communication port with TTL-level (3.3 volts or 5.0 volts) serial I/O, such as this one, as just one example.
 

OBW0549

Joined Mar 2, 2015
3,566
Thanks OBW0549. I'm woking on pic18f4550...now i need serial adapter?
Well, you need something to give your laptop a serial port, and that's what these serial adapters are designed to do.

Is your PIC18F4550 circuit going to include a complete RS-232 interface? If so, you'll need an RS-232 USB-to-serial adapter. On the other hand, if you intend to just connect to the PIC's UART (or USART) I/O pins, use a USB-to-TTL-serial cable instead.
 

Thread Starter

Omais Ahmed

Joined Oct 4, 2015
35
Well, you need something to give your laptop a serial port, and that's what these serial adapters are designed to do.

Is your PIC18F4550 circuit going to include a complete RS-232 interface? If so, you'll need an RS-232 USB-to-serial adapter. On the other hand, if you intend to just connect to the PIC's UART (or USART) I/O pins, use a USB-to-TTL-serial cable instead.
Thanks for your response OBW0549.
No my circuit does not has RS-232 interface...i under stood what are you saying...i need FTDI serial usb cable...thanks for your help and time.
 

MrChips

Joined Oct 2, 2009
34,812
I would not choose a FTDI serial cable because it interfaces to RS-232 port.
I would choose a Silicon Labs CP2102 USB to TTL bridge.
 

Reloadron

Joined Jan 15, 2015
7,889
I use a Keyspan P/N USA-19 HS which works fine for my applications. I originally used it for programming PICAXE micro-controllers before getting a USB interface. Units like this are plentiful and inexpensive.
I'm using laptop...and need to watch some variables in serial monitor. Com port is not showing in serial monitor because laptop does not has serial port. I'm using mikroc? Pls help me
Which serial variables did you want to or need to watch?

Ron
 

ErnieM

Joined Apr 24, 2011
8,415
Thanks OBW0549. I'm woking on pic18f4550...now i need serial adapter?
How are you programming this device? Are you using a PICkit?

A PICkit has a built in debugger if you leave it connected to the programming pins. That is my preferred way to do in circuit debugging. This works with your device, and actually most PIC devices too.

It works quite well inside MPLAB, I am unsure of how Micro studio uses it, but you can use the code from Mikro C inside MPLAB to do the debugging.
 
Top