I connect phone with hyper... with convertitor rs 232 ttl (max 232 ) and
i set Hyper.. with 9600 8 N 1
but when i send command at+cmss=1 the phone send message very well
WY for you
I connect phone with hyper... with convertitor rs 232 ttl (max 232 ) and
i set Hyper.. with 9600 8 N 1
but when i send command at+cmss=1 the phone send message very well
WY for you
OK, but how are you connecting the phone to your PIC?
Miiiiiiiiiip this is why. you must still use the Max232 ic to invert the serial data. OR, but it bet that will not work 100%, use serin/serout in inverted mode.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
the bit 14 is the register for setting the serial comunication at inverted mode but wich is the parameter for setting 9600 baud,no parity ,inverted.
For example mode=84 is 9600,no parity,true
thank you.
where is if possible search this parameter ,because i search in the data sheet but i dont watch never
so now it imply that you use SERIN2/SEROUT2 or else. chances are that you'll never find anything in the datasheet since it's a PBP statement. You'll find the result in the APPENDIX A at the end of your PBP manual... there you'll find the right setting for SERIN2/SEROUT2 wich is.....16468
For SERIN/SEROUT you'll use 6
You can't tell to HSERIN/HSEROUT to drive inverted since it use the internal PIC hardware.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I write this code and now run but not very well . sometime run at first ring , sometime run at five ring , wy for you?
'************************************************* ******************************
@ device WDT_OFF, MCLR_OFF, HS_OSC, BOD_OFF, PWRT_ON, CPD_OFF, LVP_OFF
'************************************************* ******************************
INCLUDE "modedefs.bas"
DEFINE OSC 4
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
DEFINE DEBUGIN_MODE 1
DEFINE DEBUG_MODE 1
DEFINE DEBUGIN_REG PORTB
DEFINE DEBUGIN_BIT 4
CMCON = 7
VRCON = 0
' ************************************************** ****************************
INIT:
Pause 2000
LOOP:
Pause 500
HSerout ["AT*EIPS=1,1",13,10]
Pause 3000
Loop2
DebugIn [wait("*")]
APRI:
High PORTA.1
Pause 1000
Low PORTA.1
Pause 10000
GoTo LOOP
End
Bookmarks