Timmymna
New Member
Hi All 
I am currently trying to create a simulator with a PIC, I have to output synchronous data via two RS485 connections, one data, one clock. I am having trouble working out if a PIC is the right option for the communication side of things.
I need to clock out the data at 1.0152MHz, as I've only used asynchronous transfers before I'm having a little trouble working out if this is possible, the data sheet refers to generating a baud rate, would I need to set this to give a baud rate of 1015.2? I've read that 9600baud=9600Hz.
This is completely wrong but should I be trying to set SPBRG to around 2.94, then using the equ baud rate for sync is Fosc/(4(X+1)) where x is spbrg 0 to 255, where it will either have to be 2 or 3, also assuming 16MHz osc
If this rate can't be obtained from the PIC can I use an external oscillator to give the correct frequency or should I look for an external chip which can implement all of the transmitter side and keep the PIC for generating the data?
Thanks
I am currently trying to create a simulator with a PIC, I have to output synchronous data via two RS485 connections, one data, one clock. I am having trouble working out if a PIC is the right option for the communication side of things.
I need to clock out the data at 1.0152MHz, as I've only used asynchronous transfers before I'm having a little trouble working out if this is possible, the data sheet refers to generating a baud rate, would I need to set this to give a baud rate of 1015.2? I've read that 9600baud=9600Hz.
This is completely wrong but should I be trying to set SPBRG to around 2.94, then using the equ baud rate for sync is Fosc/(4(X+1)) where x is spbrg 0 to 255, where it will either have to be 2 or 3, also assuming 16MHz osc
If this rate can't be obtained from the PIC can I use an external oscillator to give the correct frequency or should I look for an external chip which can implement all of the transmitter side and keep the PIC for generating the data?
Thanks