ankit35
Newbie level 4
I am using this Circuit to interface between Mc and motor driver Ic. But In proteus it doesnot work. can u please tell where is the problem? my Mc code :
Code:
char uart_rd;
void main() {
TRISB = 0;
PORTB=1;
UART1_Init(9600);
DELAY_MS(100);
while(1)
{
if(UART1_Data_Ready())
{
uart_rd=UART1_Read();
if(uart_rd=='w')
{
PORTB.F0=1;
}
if(uart_rd=='s')
{
PORTB.F1=1;
}
if(uart_rd=='x')
{
PORTB=0;
}
}
}
}