A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hi, anyone have any ideas why I can't get the 16F870 USART to work? The baudrate is not critical as the USART is only going to be used during debugging to read out variables and verify the workings of the ADC. Fosc=100Khz, baudrate 1200, or actually 1234 @ 100Khz....but this is well within 10% so it should be ok. Have set it up to continuously transmit h41, but the terminal program (which is working ok) shows 7D7D7D7D7D..........should be 41414141...... This indicates to me that the baudrate is seriously wrong. What USART parameter values should I use? -- ******************************************* VISIT MY HOME PAGE: <http://home.online.no/~eikarlse/index.htm> LAST UPDATED: 23/08/2003 ******************************************* Best Regards Eirik Karlsen |
|
|
|
> Have set it up to continuously transmit h41, dunnoi about other problems, but don't send continuously, put a delay of for instance 1 character time between successive characters. When transmitted back-to-back there are (lots of) data streams that have more than one interpretation: if the sync was not good to start with, it will never reach a correct sync. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products |
|
Yes maybe that is it,
I did notice that resetting the PIC somtimes resulted in F5F5F5F5... instad of 7D7D... I'll check it out! Wouter van Ooijen wrote: > Have set it up to continuously transmit h41,-- ******************************************* VISIT MY HOME PAGE: <http://home.online.no/~eikarlse/index.htm> LAST UPDATED: 23/08/2003 ******************************************* Best Regards Eirik Karlsen |