Internal UART and Virtual UART

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

Internal UART and Virtual UART

Postby redips_id » Tue Apr 12, 2011 2:45 pm

Hello guys,

If I need to use 2 sets of UART in PIC16F877A, we can have 1 internal UART and add another 1 virtual UART right? However for the virtual UART, it is have interrupt? I guess no.. So if I want to use 1 set UART for Xbee, and another 1 for interfacing with VB, which one is better to use interrupt?

Thank You :)
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: Internal UART and Virtual UART

Postby shahrul » Tue Apr 12, 2011 3:11 pm

Can do interrupt using INTF(RB0) or RBIF(RB4-RB7) for UART RX.
Doing virtual UART TX is easier than virtual UART RX. At this moment, I'm just done for virtual UART TX only.

To choose XBEE or VB to use on UART module, I'm also no idea which one more important. Can choose any. :D
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Internal UART and Virtual UART

Postby redips_id » Tue Apr 12, 2011 3:48 pm

Thanks Shahrul :)

I think I need to step up another level of PIC.. using dsPIC30F4011, it has 2 sets of UART complete with receive interrupt.. If I used RB0 as Virtual Rx UART, what is the condition for RB0 before and after receive data? Low to high or high to low?
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: Internal UART and Virtual UART

Postby shahrul » Tue Apr 12, 2011 3:55 pm

redips_id WROTE:Thanks Shahrul :)

I think I need to step up another level of PIC.. using dsPIC30F4011, it has 2 sets of UART complete with receive interrupt.. If I used RB0 as Virtual Rx UART, what is the condition for RB0 before and after receive data? Low to high or high to low?

Use high-to-low interrupt, because signal UART while no data is high.
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 7 guests

cron