IN THE KNOW
Go to bottomPage: 12
TOPIC:
#53
any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 0
hi everyone. i'm a newbie here at zilog forum. i'm from philippines and fond or hardware programming. i am now using the particular zilog model that what i have listed on the subject. i just want to interface zilog with SIMCOM GSM modem and i have no idea how. please can anyone give me a sample codes in capturing the message comming from the GSM modem going through the MCU and make it as an array?
asimo (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Philippines Birthday: 03/02
The administrator has disabled public write access.
 
#58
Re:any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 1
can you give more details on the SIMCOM GSM modem?
batmannemesis (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#59
Re:any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 1
any sample codes using UART of zilog Z8F082A sir?
/***************************/
#include <eZ8.h>
#include <sio.h>
#include <stdio.h>

void main(void)
{
OSCCTL = 0xE7; // Unlock sequence for OSCTL write
OSCCTL = 0x18; //
OSCCTL =0x80;
init_uart(_UART0, _DEFFREQ, _DEFBAUD);
select_port(_UART0);
printf("hello world");


}
batmannemesis (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#60
Re:any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 1
or you can use ZSL APIs to simplify your coding....
it's easier to use because you're using the standard printf() and scanf() for data I/O.

cheers!
angelica mae (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#68
Re:any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 0
angelica mae wrote:
or you can use ZSL APIs to simplify your coding....
it's easier to use because you're using the standard printf() and scanf() for data I/O.

cheers!


ZSL seems good to use for beginner, however as your code become larger it also consumes large amount of memory.
x (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#77
Re:any sample codes using UART of zilog Z8F082A sir? 3 Years, 2 Months ago Karma: 0
thank you for all the codes sir... i already have a code and it seems not working... we have our thesis and that cover home automation sir... you do not need to go home if you thing you forget to turn off your lights... you just simply text your light and it will turned off by itself... our problem sir is to capture the received message coming from the GSM modem and make it as an array. that particular array will be compared to a constant array so that if they are equal, therefore the sent message is correct, and the light will turned off. have i explained it well sir?
and, can we use PDU mode instead of SMS mode sir?
asimo (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Philippines Birthday: 03/02
The administrator has disabled public write access.
 
Go to topPage: 12