I'm using zoc terminal with a pic with no issues.It might be easier to write a terminal software yourself.
So you can have more control.
I'm using zoc terminal with a pic with no issues.It might be easier to write a terminal software yourself.
So you can have more control.
I did a quick look up for that one, on ebay listings are about $200.The microchip lib does work for most pics but I am guessing the complier could be an issue. Are you certain they don't have their own lib?
You should try to at least afford a logic analyzer. I have a Zeroplus Logic Cube. While not the most serious LA on the market, it suits my needs and it is very affordable. It was worth it's weight in gold when I had similar serial port issues.
I did a quick look up for that one, on ebay listings are about $200.
Would you recommend a LA or for bit more saving up for a scope ?
Latest update :
I just installed the hi-tech-picc compiler, read somewhere they have samples, and indeed they do. In the samples folder used the code and programmed the pic. And well, guess what .. It doesn't work.
Also I have 4 USB2UART bridges, tried them all, and also plugged them in 2 at a time and interconnected the TX/RX RX/TX and they all work. So eliminated possible malfunction there.
Now I am wondering. What are the odds that that pin on the mcu is somehow malfunctioning ? Is there a way to test that ?
Tomorrow I'm gonna buy a new pic and try it. I've run out of things to try, going desperate. Don't understand how I managed to overcomplicate a simple thing.
You rustled my jimmies for a second. I misread Saturday as Sunday .. I'm "lucky" to live 5 minutes from an electronics shop. They sell active/passive components and all sort of stuff.Both are good tools but for mcus, if I had to choose I would go with a LA.
Where can you just go out and buy a pic? And on a Saturday??
I hate you.YI'm "lucky" to live 5 minutes from an electronics shop. They sell active/passive components and all sort of stuff.
Bosnia, Banja LukaI hate you.
Where do you live?
Nearest one to me is in Steubenville,OH about 30 mile from here but they have next to nothing and are open at odd hours. I am not even sure if they are open anymore.
#pragma config FOSC = INTRCIO
//PORTB RX - Input RB5
TRISB = 0x02;
SPBRG = 0x19;//Page 165 / BaudRate 9600 @ 4MHz
BRGH = 1;
SYNC = 0; //Asynchronous
SPEN = 1; //enable serial port pins
CREN=1; //enable reception
SREN = 0; //No effect
TXIE=0; //disable tx interrupts
RCIE=0; //disable rx interrupts
TX9 = 0; //8-bit transmission
RX9 = 0; //8-bit reception
TXEN=0; //reset transmitter
TXEN=1; //enable the transmitter
...
//Receive
while(!RCIF);
tmp_rcreg = RCREG;
...
//Transmit
while(!TXIF);
TXREG = tmp_rcreg;
Also on the RX / TX Pin I had to strap on some 10k / and .3 M ohm resistors.14.2.6 INTERNAL 4 MHZ OSCILLATOR
The internal RC oscillator provides a fixed 4 MHz
(nominal) system clock at VDD = 5V and 25°C, see
“Electrical Specifications” section for information
If only it were a typo. More like a senior moment. Of course you are correct, reading RCREG clears RCIF.. Apologies to the OP for any confusion and thanks for the correction.Just wondering if this was a typo', John? I'm not aware of any way to clear the RCIF flag manually. I thought it could only be cleared by reading RCREG...
No problem, it was the least of my worries.If only it were a typo. More like a senior moment. Of course you are correct, reading RCREG clears RCIF.. Apologies to the OP for any confusion and thanks for the correction.
Congratulations!Bosnia, Banja Luka
I bought PIC 16F628, and UART WORKS !!!!!!!!!!!!!!!
Bosnia, Banja Luka
Pfft man, don't complain. You can order anything and I mean anything and it will arrive like in 2 days to max 1 week.Bosnia? Why is it that all of these little countries have electronics stores on every block and here in the high tech US, where we are always have the latest and the greatest gadgets, you can't find them anywhere?
Pfft man, don't complain. You can order anything and I mean anything and it will arrive like in 2 days to max 1 week.
I had to wait usb2uart and other stuff for a month
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
UART vs 422 vs 485 ..#2 | General Electronics Chat | 1 | ||
D | Help needed: UART to SPI mirror? | Digital Design | 1 | |
D | UART max cable length | General Electronics Chat | 19 | |
A | Troubleshooting UART Communication | Microcontrollers | 3 | |
F | UART Troubleshooting / Help - PIC16F689 + CP2102 fix | Microcontrollers | 1 |