Continue to Site

Welcome to EDAboard.com

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.

[51] 8051 Based - Assembly Code Wont work for SIM300 Module????

Status
Not open for further replies.

asifrizvi

Newbie
Joined
Mar 27, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Karachi
Activity points
1,293
Hi,

I've completed my Vehicle tracker working with 89c51 + 89c52, where 51 controlled GPS data and its ping 10 keeps sending data to 52's MCU pin 2 and 52 MCU is serving main program including serial communication with siemens s-46 model.

Now I've connected the SIM300DZ and SIM300D none of the working as per my code used for previously siemens s-46 module.

I've done lots of practices with direct TTL connection as well as MAX232 but no luck it wont going to connect at all.

FYI, I'm going to attached my pcb and the part of code where serial communication has occur but if somebody willing to help me out I'll send privately to him personally as well.

Looking for forward for comments and feedback.

Pcb Final.JPG

Code:
;@@@@@@@@@@@@@@@  SECTION1 INITIALIZATION @@@@@@@@@@@@@@@@@@@@@@@


	ORG     00H;
	LJMP    MAIN;
	
	ORG     000BH;
	RETI;
	
	ORG     0023H;           SERIAL PORT INTERRRUPT
	JB	TI,TRF;
	JB      RI,SREC;
TRF:	CLR	TI;
	RETI;
SREC:   LCALL    SRCOM;
	RETI;




	ORG     0030H;		OLD VALUE 003H
MAIN:   MOV     TMOD,#22H;    INITIALIZE DUAL TIMER MODE FOR 8 BIT FOR TIMER 1  ---- 22H
	MOV     A,PCON;
	SETB    ACC.7;        CONVERTING THIS BIT WILL EFFECT THE FREQUENCY AS 1/64 
	MOV     PCON,A;
	CPL	LED1;	
	
	MOV     IE,#90H;    SET INTRUPT ENABLE  SERIAL INTERRUPT  -  90h
	MOV     SCON,#52H;  SET SEIAL PORT - 52h
	MOV     TCON,#00H;    SET ALL TIMER FLAGS TO 0   ----- #00H
	CLR     TI;
	CLR     RI;
	MOV     TH1,#-3;
	MOV     TL1,#-3;
	MOV     TH0,#62H; 	62H
	MOV     TL0,#62H;	62H
	MOV	20H,#FFH;
	MOV	21H,#FFH;	FLAGS FOR CLIP(CALLER id) COMMAND SET
	MOV	22H,#FFH;	FLAG FOR PH: NUMBER ID
	SETB    TR1;
RSTM:	LCALL	DBDEL;
	CLR	LED2;
	LCALL	DBDEL;
	CLR	MPSWT;		turn mobil on press poer on
	LCALL	NDELA;
	LCALL	NDELB;
	SETB	MPSWT;		release power on
	SETB	LED2;
	LCALL	NDELB;
	
	CLR	RLY1;
	LCALL	NDELB;
	SETB	RLY1;
 	LCALL	NDELA;
	LCALL	REFER;
	LCALL	DBDEL;
	LCALL	NDELB;
	LCALL	NDELA;
	LCALL	NDELA;
	LCALL	LOPF;
	LCALL	NGCR;
	LCALL	DBDEL;
	MOV	R1,#2FH;
KHK1:	INC	R1;
	CJNE	R1,#3FH,KHK3;
	SJMP	MON;	

	
KHK3:	CJNE	@R1,#'"',KHK1;
	INC	R1;

	MOV	A,@R1;
	CJNE	A,#'1',MON;
	CLR	NGCLR;

MON:	LCALL	LOPF;
	MOV	76H,#10H;
	LCALL	LOPF;
	SETB	RESETM;		THIS PIN DEMAND FOR A RESET FROM GPS IC 	
	LJMP	TEST;
 

What i understand about your problem, that is your circuit is not establishing serial communication.
if it is ur problem then u can shear with me.
my email is (mfarooq01@dmail.com)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top