ON 20080801@8:39:26 AM at page: http://www.piclist.com/techref/microchip/rs232.htm#39661.3607175926 Mark Torrens[MT-CL-J77] Says I've developed a simple and free RS232 program that runs on a PIC16F690 which will echo characters written in Hyperterminal. The software is intended to work with a standard MAX232 device. The software can be found here. http://www.choclab.eu/mtorrens/Files/rs232.asm ON 20080801@9:29:08 AM at page: http://www.piclist.com/microchip/spi.htm#39660.9535300926 James Newton[JMN-EFP-786] removed post 39660.9535300926 |Delete 'athar_abid@hotmail.com asks:
hollo
i m using PIC16F877A controller.. i want to interface two SPI ports of controllers in master slave manner using wireless USB,s
can u send me code for this??
Regards
Hi,
I am working on PIC24F series micro controller. I have wrote all the interrupt handlers in a seperate file named interrupts.c. If i try use a variable which is defined ina any other file say uart.h it is throwing me an error saying that it is an undefined variable.
I have made all the registers and baud rate setting required for the UART communication. I have used UART2 for the same
illustration of the above expalined issue
interrupt.c file
--------------------
#include "uart.h"
void __attribute__((__interrupt__, auto_psv)) _U2RXInterrupt(void)
{
IFS1bits.U2RXIF = 0;
l_test_var_U8 = U2RXREG;
}
uart.c file
-------------
char l_test_var_U8;
uart.h file
--------------
extern char l_test_var_U8;
If i declare this variable in the interrupt.c file and use it then it is compling and working for me
Could you please let me know what the issue could. Hope my question is undersatndable ::))
Thanks and Regards
Manju Bhargavi
void OutPORT(unsigned char data) { unsigned char bits; for (bits=0x80; bits!=0; bits >>= 1) { if ((bits & data) == bits) // send Data SRDAT = 1; else DRDAT = 0; SRCLK = 1; // Clock the data SRCLK = 0; } SRLAT = 1; // Latch the data SRLAT = 0; }