I'm an student from Denmark with a lot of experience with microcontrollers, microprocessors and FPGAs.
Currently I'm making a project in school where we have to use the PIC16F684, and I have to connect it to the Parallax RFID Reader.
As the PIC16F684 doesn't have any hardware UART, I have to use the software UART library in mikroC.
I've changed the device in the Soft UART Example to 16F684 and programmed the chip. In the terminal on my computer I can see the letters from small z to capital A (as supposed). Then the error LED turns on: error=1, but unfortunately when I write something to the chip, I isn't returned, as it should.
Any idea why it can send (TX) but doesn't recieve (RX)?
I'm using the internal 8MHz oscillator, and this is my configuration:
Code: Select all
OSCCON = 0b01110101; // 16F684
TRISC = 0;
error = Soft_UART_Init(&PORTC, 4, 5, 2400, 0); // Initialize Soft UART at 2400 bps
Thomas Jespersen