[PIC] How implement Uart2 pic18f26j50

Status
Not open for further replies.

TiagoRibeiro

Full Member level 2
Joined
Oct 29, 2013
Messages
130
Helped
18
Reputation
36
Reaction score
17
Trophy points
28
Location
São Paulo/Brazil
Activity points
765
Anyone know the UART2 implement pic18F26J50 using MikroC 4.6?
'm using UART_Remappable_init (4800) but it is giving error.
Can anyone help me?
Best reguards.
 

I do not have the option of using USART2, just UART_Remappable

- - - Updated - - -

i am getting the error demo limit..how to do work this?
 

I found the solution Jayanth..i will post here to share =D
I was needing of baud 4800 ... so I took the assembler code by setting the UART1 baud 4800 and placed as follows:
Code:
asm {
MOVLW 155
MOVWF SPBRG2
BSF TXSTA2, 2, 0
}
UART_Remappable_Init ();
done!
thanks again
 
Last edited by a moderator:

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…