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.

GSM interface using PSoC

Status
Not open for further replies.

maheshkumar0459

Newbie level 2
Newbie level 2
Joined
Sep 26, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
27
I am interfacing GSM with PSoC 1 using UART.
My code working properly but didn't get proper output.. Here is my code and help any thing to be done..
If switch pressed message to be send.. Baudrate set 9600.


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
void delay(void);
void delay(void)
{
int i;
for(i=0;i<10000;i++);
}
void main(void)
{
UART_1_Start(UART_1_PARITY_NONE);
 PRT0DR=0X00; //MAKING LED OFF
 while(1)
 {
 
if(PRT0DR=0X01)
{
 
delay();
UART_1_CPutString("a");
delay();
UART_1_CPutString("t");
delay();
UART_1_PutChar(13);
delay();
UART_1_CPutString("a");
delay();
UART_1_CPutString("t");
delay();
UART_1_CPutString("+");
delay();
UART_1_CPutString("c");
delay();
UART_1_CPutString("m");
delay();
UART_1_CPutString("g");
delay();
UART_1_CPutString("f");
delay();
UART_1_CPutString("=");
delay();
UART_1_CPutString("1");
delay();
UART_1_PutChar(13);
delay();
UART_1_CPutString("a");
delay();
UART_1_CPutString("t");
delay();
UART_1_CPutString("+");
delay();
UART_1_CPutString("c");
delay();
UART_1_CPutString("m");
delay();
UART_1_CPutString("g");
delay();
UART_1_CPutString("s");
delay();
UART_1_CPutString("=");
delay();
UART_1_PutChar(34);
delay();
UART_1_CPutString("9");
delay();
UART_1_CPutString("5");
delay();
UART_1_CPutString("3");
delay();
UART_1_CPutString("9");
delay();
UART_1_CPutString("2");
delay();
UART_1_CPutString("1");
delay();
UART_1_CPutString("8");
delay();
UART_1_CPutString("2");
delay();
UART_1_CPutString("2");
delay();
UART_1_CPutString("8");
delay();
delay();
UART_1_PutChar(34);
delay();
UART_1_PutChar(13);
delay();
UART_1_CPutString("Send a message");
delay();
UART_1_PutChar(26);
}
 delay();
 }
 
}

 
Last edited by a moderator:

I am interfacing GSM with PSoC 1 using UART.
My code working properly but didn't get proper output.. Here is my code and help any thing to be done..
If switch pressed message to be send.. Baudrate set 9600.
Instead of not getting the required output,could you give a little more details on what exactly is happening?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top