Microcontroller 18F4550 UART problem

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Microcontroller 18F4550 UART problem

Postby yeech » Mon Mar 04, 2013 12:11 am

Hi,

I would like to ask if I would like to interface microcontroller 18F4550 with SKXBEE and TC35 GSM development board. In my case, there is only 1 UART available in the microcontroller, whereas if I would like to interface SKXBEE and TC35 GSM development board in one microcontroller 18F4550 I would need two UART.
How to solve this problem?

Thank you.
yeech
Freshie
 
Posts: 7
Joined: Tue Oct 02, 2012 12:51 pm

Re: Microcontroller 18F4550 UART problem

Postby A380 » Mon Mar 04, 2013 10:26 am

I have 3 solutions in my mine:
1. Choose another PIC which has two UART feature.
2. Use 74HC126 tri-state buffers IC to multiplex the UART pins.
3. Using timer to write your own UART in your code but more challenging.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: Microcontroller 18F4550 UART problem

Postby shahrul » Mon Mar 04, 2013 11:11 am

As solution posted by A380.
1. Find PIC with more than 1 UART.
Ex I know PIC18F46K22 have 2 UART, but this PIC can't use with PICKit2, must use PICKit3.
Or you can use chipKIT MAX32 have 4 UART.

2. Use multiplexer/demultiplexer IC ex 74HC4052. I have use this to connect 2 UART for GSM and GPS. Ex GSM GPS Tracker.

3. Do software UART. This mean you do own timing to transmit and receive regarding UART timing. This method challenging because I'm still fail to do this since 2-3 years ago. That's why I'm use method 1 @ 2 above.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest

cron