Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Try the following inside your Interrupt routine:
if (INTCONbits.INT0IF && INTCONbits.INT0IE) instead of if (INTCONbits.INT0IF)
Reason: the interrupt flag will always be set even if you disallow INT0IE and get into the interrupt routine via your timer interrupt (TMR0IF).
I hope this will help...
Try the following:
printf("AT+CMGS=28\n\r");// this is working
Most modems check this number (should be your resulting message lenght in octects).
You do not need to care for the OA in your message as this is an ASCII code and not a control code.
I hope this solves your problem.
best regards
siemens serial cable voltage
The phones operate at 3 volts. What level converters did you use?
You can not directly connect to 5 volts driven lines. Could try using series connectors 22k in each line connected to the phone (except GND).
hope this helps and best regards
uln2003 example
Yes this is OK ULN2003 is open collector driver.
Do not forget to use pullup resistors (for example 4K7 to +5V) as 8051 can not source enough current to switch ULN2003 when fully loaded.
best regards
Re: 40 bit Variable
gravi
i do not understand your problem
If you add 2 24 bit numbers it can never overflow a 32 bit value.
Example:
binary 111111111111111111111111 = hex FFFFFF
adding 111111111111111111111111 = hex FFFFFF gives hex 1FFFFFFE
But this only takes 25 bits of the 32 bit...
Re: pic ram memory .....
volatile because it is changed from an interrupt function and persistant because i do not need the array initialized to 0 by the startupcode this saves a bit of codespace.
You could leave out static but i do not want the buffer to be visible to another program module...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.