Hi
First Happy New Year.
I have been using the GC to create serial RS232 at 9,600 with the 2Mhz internal clock to drive an RF Module for about a year now using the Hardware ports on the 16F1828. Its been temperature tested from -15 To +80 Deg
and stability tested over two weeks and works well.
I now need to have a second RS232 Port and was thinking of using the GC software to generate this my questions
are
1) Has anyone done this suessfully ?
2) How do you determine the priority between the two ports should both be receiving at the same time ?
3) I intend to use an 8MHz crtstal will this be sufficent ?
4) What is the max data rate achievable with an 8Mhz Crystal Target whould be 9600 ?
5) Are there any things to watch out for ?
Thanks
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Software Serial has it's usefulness when you don't have a hardware serial port , when you need to talk inverted, or need to handle parity. It handles seven standard baud rates. Check out : http://gcbasic.sourceforge.net/help/ under RS232 (Software).
Hardware serial has just been updated for the PIC's to handle two hardware serial ports(USARTs). This would be the least code intensive for you.
Either solution, you of course, as the programmer, determine "who's talking" by your program. Are you sending and receiving on both serial ports? Does the data come and go in packets? Constantly or only when asked?
I think it is possible to do both.
I know I haven't answered all your questions but i must go away for the day and have to get ready. I will check back late. Maybe some otheres on the forum have some insight?
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have incldued in the demo file examples of hardware and software serial, and, hardware to software serial.
The implementation challenge do need to resovle 'who's talking' and I would think a chip with two hardware modules would be the best route. However, I have not completed a project of this nature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
First Happy New Year.
I have been using the GC to create serial RS232 at 9,600 with the 2Mhz internal clock to drive an RF Module for about a year now using the Hardware ports on the 16F1828. Its been temperature tested from -15 To +80 Deg
and stability tested over two weeks and works well.
I now need to have a second RS232 Port and was thinking of using the GC software to generate this my questions
are
1) Has anyone done this suessfully ?
2) How do you determine the priority between the two ports should both be receiving at the same time ?
3) I intend to use an 8MHz crtstal will this be sufficent ?
4) What is the max data rate achievable with an 8Mhz Crystal Target whould be 9600 ?
5) Are there any things to watch out for ?
Thanks
Steve
Stephen,
Happy New Year!
Software Serial has it's usefulness when you don't have a hardware serial port , when you need to talk inverted, or need to handle parity. It handles seven standard baud rates. Check out : http://gcbasic.sourceforge.net/help/ under RS232 (Software).
Hardware serial has just been updated for the PIC's to handle two hardware serial ports(USARTs). This would be the least code intensive for you.
Either solution, you of course, as the programmer, determine "who's talking" by your program. Are you sending and receiving on both serial ports? Does the data come and go in packets? Constantly or only when asked?
I think it is possible to do both.
I know I haven't answered all your questions but i must go away for the day and have to get ready. I will check back late. Maybe some otheres on the forum have some insight?
Mike
We have incldued in the demo file examples of hardware and software serial, and, hardware to software serial.
The implementation challenge do need to resovle 'who's talking' and I would think a chip with two hardware modules would be the best route. However, I have not completed a project of this nature.