No!
Ioannis
Thankyou Ioannis, Now the only choice is to change pic but i will have to just to simulate it bse i had only pic16f84, but wen i changed to pic16f877 and tried to simulate, nothing appeared on virtual terminal and proteus gave me this message ''can't perform real time simulation due CPU overlaod, what should i do?
regards
dumato
I never use simulators of any kind. And Never ever write the whole program at once. I am not Darrel or Melanie...
What I do is:
1. Whenever I change PIC, I start by a led and a button. Just 3 lines of code to read the button and light the LED.
2. Then I add a serial port to see on a terminal what is happening to the PIC.
3. Then an LCD and see if it works.
4. Then...
Ioannis
Last edited by Ioannis; - 9th April 2010 at 11:05.
Thankyou Ioannis, am going to do that
regards
dumato
I have practiced simulation, now i was trying to simulate my project above but Virtual terminal is showing AT,AT, AT contineously after pressing ON the push button. What could be the problem?
regards
Hullo Ioannis, probably u needed details,my code is below,am using pic16f877,
code:
DEFINE OSC 8
DEFINE HSER_TXSTA 20h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
PushButton var PORTB.0
Main:
IF PushButton = 0 THEN SMS
goto main
SMS:
HSEROUT ["AT" ,13,10]
HSERIN 5000, SMS, [WAIT("OK")]
HSEROUT ["AT+CMGF=1" ,13,10]
HSERIN 5000, SMS, [WAIT("OK")]
HSEROUT ["AT+CMGS=+256782277658"]
HSEROUT [13,10]
HSERIN 5000, SMS, [WAIT(">")]
HSEROUT ["BUTTON HAS BEEN PRESSED!"]
HSEROUT [26]
HSERIN 15000, SMS, [WAIT("+CMG")]
HSEROUT [10]
end
Bookmarks