I Im trying to receive data from one PIC to another through the hardware UART and have used a the code in the first example and Im having a small problem first off im using a PIC16F887 not the 877 but I checked both data sheets and the registers are the same The problem Im having is that it seem like the flag bit is set and all the data is received the program stops. I display the received data on a lcd to show me what has been received but its really suppose to output it to a port expander and it does. The only way to change the received data is to reset the pic Any ideas as to where the program is stopping?

You have unfortunately not learned much from your previous UART experience if that is all the code you have. Here it seems like you have used a couple of libraries (i.e header files) which has implemented all the 'tricky' stuff for you. I would suggest that you take a look in your code and open up the UART1_Init() function.

This is most likely included as uart.c and uart. Schwinn Excelsior Serial Numbers. h, where the.c-file is the actual implementation. Here you will find how UART actually works, and when you have learned this you can move on to other controllers. As a matter of fact, look in to all of your uart-functions and study them, finding out what every line means. This is the most common way to learn code: To study code, understanding it and write your own. If you really want to learn the UART, take a look at my canned UART code for PIC and dsPIC.
This should be included in the PIC Development Tools release. Look for files with 'uart' in their names in the SOURCE >PIC and SOURCE >DSPIC directories within the software installation directory. For example, source/pic/uart.ins.aspic implements a highly configurable low level interface to most 8 bit PIC UARTs.
Interrupts are unexpected events. It reads from the interrupt vector table which part of the programme should be executed. Example 8 – Operating UART. Oct 11, 2010 Hardware UART with PIC16F688 and MikroC. I tried the example code provided by mikroC. Communication Between dsPIC33EP and PIC32MX without Interrupt.
You can specify whether it uses interrupts or polling, input and output FIFOs, etc. The dsPIC counterpart will be source/dspic/uart.ins.aspic. One nice thing about the dsPIC architecture is that each interrupt is individually vectored, so it is possible write a self-contained UART module that handles interrupts and all in the same file. Opengl32 Dll Mohaa Downloads.