PIC USART testing - it's not transmitting the required data

Status
Not open for further replies.

semp22

Newbie level 1
Joined
May 12, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
usart_write($ff); usart_write($00);

dear guyz..

i spent my whole day testing the USART bus in my PIC, but it's not transmitting the required data!.. instead all it's transmitting is logic 1... i'm using PIC16F877, 4MHZ crystal... configured the related registers including the baud rate register.. nothing seems to work.. i even tried a 20MHZ crystal and reconfigured the registers.. still nothing.. i used the following simple code

Usart_init(9600)
Usart_Write($00)
Usart_Write($FF)

regards...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…