shawn
- 13th May 2006, 22:26
Hi Everyone,
I need help please. What I am trying to figure out is how to use the Usart hardware on the pic 18F452. I need to comunicate between two or more Pics. I've used the serout and serin commands to do this but it is not efficent enough. The two pics will be doing whatever it is they need to do and from time to time they will need to send info back and forth.
If I am not mistaking using the hardware usart they should be able to just send the info and whether the recieving pic is ready or not it will be written in the rx register. Also if I am not mistaking the pics should be able to interupt and retrieve this data once it is received.
I Have no Idea where to start. I read Data sheets for the pic 18f452 and I skimmed threw threads and posts for hours and only got frustrated. Someone please point me in the right direction.
By setting the correct registers one should not have to use the HSerin commands right or am I wrong. It appeared that by writing to the TX register that this would automaticly transmit my info as long as all the usart registers are config. properly.
And while i Am at it can more than 2 pics be connected together using usart? I am sorry for asking questions that have already been asked, but answer are spread out all over the place and I have not figured out how to put the puzzle together.
Thanks Shawn
I need help please. What I am trying to figure out is how to use the Usart hardware on the pic 18F452. I need to comunicate between two or more Pics. I've used the serout and serin commands to do this but it is not efficent enough. The two pics will be doing whatever it is they need to do and from time to time they will need to send info back and forth.
If I am not mistaking using the hardware usart they should be able to just send the info and whether the recieving pic is ready or not it will be written in the rx register. Also if I am not mistaking the pics should be able to interupt and retrieve this data once it is received.
I Have no Idea where to start. I read Data sheets for the pic 18f452 and I skimmed threw threads and posts for hours and only got frustrated. Someone please point me in the right direction.
By setting the correct registers one should not have to use the HSerin commands right or am I wrong. It appeared that by writing to the TX register that this would automaticly transmit my info as long as all the usart registers are config. properly.
And while i Am at it can more than 2 pics be connected together using usart? I am sorry for asking questions that have already been asked, but answer are spread out all over the place and I have not figured out how to put the puzzle together.
Thanks Shawn