syide
Newbie level 6
I have a problem with the simulation of max 232 in proteus.This the code for simulation.
#include <16F877a.h>
#define RS232_XMIT PIN_A1
#define RS232_RCV PIN_A0 // PIC line which receives PC transmission
#use delay(clock=4000000) // 4 MHz OSC
#use rs232(baud=9600, xmit=RS232_XMIT, rcv=RS232_RCV)
void main() {
int i;
while(1) {
i = 65; // Recall ASCII 'A' is 65
do {
putc(i);
delay_ms(1000); // send characters every 1 sec
i++;
} while (i<=122); // Recall ASCII 'z' is 122
}
} // end of main
But using when i try to simulate with proteus it did not gave proper result.Why?
#include <16F877a.h>
#define RS232_XMIT PIN_A1
#define RS232_RCV PIN_A0 // PIC line which receives PC transmission
#use delay(clock=4000000) // 4 MHz OSC
#use rs232(baud=9600, xmit=RS232_XMIT, rcv=RS232_RCV)
void main() {
int i;
while(1) {
i = 65; // Recall ASCII 'A' is 65
do {
putc(i);
delay_ms(1000); // send characters every 1 sec
i++;
} while (i<=122); // Recall ASCII 'z' is 122
}
} // end of main
But using when i try to simulate with proteus it did not gave proper result.Why?