Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Difference between usart and eusart?

Status
Not open for further replies.

kimsan

Newbie level 5
Joined
Oct 10, 2011
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,344
i have been using PIC16f88 that have function of serial communication module that use EUSART, but do not understand how to use it with application. so can u explain me more how to use it beside host pc?
 

Hi,

The E stands for Enhanced Usart, its basically the same but with some extra features like Sleep/ Wake up on receive.

You do not need a Usart module to send out serial data, you can simply use your program to send out the data, known as a software usart or bit banging.

With Hardware Usart the incoming or outgoing byte of data is passed to / from the main program code and the Usart module takes care of all the complicated timings.

You don't say what programming language you are using ; just do a web search for Pic Usart tutorial to see many examples.
 
  • Like
Reactions: kimsan

    kimsan

    Points: 2
    Helpful Answer Positive Rating
so thank for explain about that. i use program call Mikro C Pro. if possible can you explain me about software usart and bit banging ? and can we use PIC link to PIC by using eusart? becuase i have seen some book about usart but of that say just only using usart with host pc.
thank you for your kindness
 

Hi,

I only program with Assembler so cannot help you with C - sure others can help you out there.

You can talk to any other Pic chip by using a direct connection between the two devices , preferably using the pics inbuilt hardware Usart as a software version is basically a pain to code and use, it is only really used when the micro has no hardware Usart.

If you want to communicate with a PC or between two devices over any distance then your Pic needs to connect via a Max232 chip which basically shifts the Pics 5v serial signals to a much higher voltage which makes it possible to transmit things further.

Have a good look at the Mikro site as they have many tutorials - here one Chapter 13: Examples - Book: Programming dsPIC MCU in C - mikroElektronika
 

so thank for explain about that. i use program call Mikro C Pro. if possible can you explain me about software usart and bit banging ? and can we use PIC link to PIC by using eusart? becuase i have seen some book about usart but of that say just only using usart with host pc.
thank you for your kindness
Ofcoure PIC can communicate with another PIC using same communication, like this USART. You must to know how to transmit and receive USART.
This is code using UART Module and PIC-to-PIC communication.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top