PDA

View Full Version : Serin



Eyal
- 6th February 2007, 23:33
Hi


i have problem to catch the serial in
i cno't only wait to the serial in
because of the program is to busy in another things.
i test the on interrupt and i miss some in transmission

SERIN PORTC.7,N9600,1,ERROR,[$53],RE1,RE2,RE3
pic 16f876a 20mhz


I NEED HELP HOW TO SOLVE THE PROBLEM

EYAL

skimask
- 6th February 2007, 23:40
Hi


i have problem to catch the serial in
i cno't only wait to the serial in
because of the program is to busy in another things.
i test the on interrupt and i miss some in transmission

SERIN PORTC.7,N9600,1,ERROR,[$53],RE1,RE2,RE3
pic 16f876a 20mhz


I NEED HELP HOW TO SOLVE THE PROBLEM

EYAL

Hmmmm...A PIC16F876a...somehow that rings a bell...
Doesn't that PIC have a built-in UART? Seems to me I remember reading that somewhere...
Aren't those UART things referred to somewhere in that same reading...wherever that was?
Oh darnit... If I remember where I read about that UART, I'll let you know...

Archangel
- 7th February 2007, 07:40
Hi
I NEED HELP HOW TO SOLVE THE PROBLEM

EYAL
What our beloved man in the mask is telling you, is to use the HARDWARE USART built into the PIC. Do that by using the HSERIN function. If you need examples click on the search button and typr HSERIN and Many examples are to be found.
JS

mister_e
- 7th February 2007, 12:53
And while your program is doing something else, it add the USART interrupt in the basket.

skimask
- 7th February 2007, 13:10
And while your program is doing something else, it add the USART interrupt in the basket.

So, it rubs the code on the PIC, and puts the UART in the basket, and does what it's told....or it gets the hose again :)