Im doing an assembly routine to send out 'AT' to my GSM handphone, in which i will get the reply 'OK'. When this happens Port B connected to an LED will light up.
I have written the following code and have tested it out in simulation using a Simulated USART Hardware Interface..
However, my code is implemented to only allow the PIC to receive one character only...Hence, if im expecting an incoming string with more than one character , how should I implement the routine to receive more than one character?
the following code is only able to accept the first incoming O. ive tried repeating the SerialRcv routine to capture the K but it doesnt work..
sorry i have to upload my code in a txt file because the columns dont seem to align when i type it here..
thanks
I have written the following code and have tested it out in simulation using a Simulated USART Hardware Interface..
However, my code is implemented to only allow the PIC to receive one character only...Hence, if im expecting an incoming string with more than one character , how should I implement the routine to receive more than one character?
the following code is only able to accept the first incoming O. ive tried repeating the SerialRcv routine to capture the K but it doesnt work..
sorry i have to upload my code in a txt file because the columns dont seem to align when i type it here..
thanks