ankit35
Newbie level 4
- Joined
- Mar 6, 2013
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,320
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;
}
}
}
}