the_merovingian
Member level 1
![Member level 1](/styles/images/ranks/dlevel1.gif)
spbrg
I'm trying to interface a PIC16F627A MCU to a PC (running Linux) via an RS-232 serial interface.
I've chosen to use the 16F627A as it has on-board USART. Presumably the easiest method for comms is for me to use this in asynchronous mode?
I'm a little confused by the values of SPBRG given in the table within the Microchip PDFs (https://ww1.microchip.com/downloads/en/DeviceDoc/31018a.pdf). I intend to run the chip from its internal oscillator (~4MHz) and I want my baud rate to be 9.6k. In table 18-4 and 18-5 (i.e. for when BRGH is 0 and 1 respectively); if Fosc = 4MHz and baud rate = 9.6k, the values for SPBRG are shown as 'NA' (which I'm taking to be not available or not applicable).
Does this mean that I can't run at 9600 baud using the internal oscillator?
Thanks in advance.
I'm trying to interface a PIC16F627A MCU to a PC (running Linux) via an RS-232 serial interface.
I've chosen to use the 16F627A as it has on-board USART. Presumably the easiest method for comms is for me to use this in asynchronous mode?
I'm a little confused by the values of SPBRG given in the table within the Microchip PDFs (https://ww1.microchip.com/downloads/en/DeviceDoc/31018a.pdf). I intend to run the chip from its internal oscillator (~4MHz) and I want my baud rate to be 9.6k. In table 18-4 and 18-5 (i.e. for when BRGH is 0 and 1 respectively); if Fosc = 4MHz and baud rate = 9.6k, the values for SPBRG are shown as 'NA' (which I'm taking to be not available or not applicable).
Does this mean that I can't run at 9600 baud using the internal oscillator?
Thanks in advance.