The Philippine Electronics and Technology Forum
February 10, 2012, 12:16:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: Ano po kayang mali sa program ko?  (Read 650 times)
xueyuanlu
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 10


« on: December 30, 2009, 09:43:11 AM »

Code:

#include<ez8.h>
#include<sio.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

void main(void) {
unsigned int x;
PCDD = 0x00;
PCAF = 0x00;
PCOC = 0x00;
PCHDE |= 0xFF;

init_uart(_UART0, _DEFFREQ, _DEFBAUD);
select_port(_UART0);
printf("AT+CMGF=1\n");
for(x=0;x<0xFFFF;x++);
printf("AT+CMGS=\"+639157135321\"\n");
for(x=0;x<0xFFFF;x++);
printf("Hello Philippines and Hello World!");
putch(0x1a);

while(1)
{
  PCOUT = 0xFF;
  for(x=0;x<0xFFFF;x++);
  PCOUT = 0x00;
  for(x=0;x<0xFFFF;x++);
}

}


Nagcocompile naman po siya and ininclude ko po yung may PCOUT na code para matest if the program really works. and yeah nagbliblink yung LED pero yung sa may AT Commands part ayaw. Logic Problem po kaya or Code problem? thanks po
Logged
The Philippine Electronics and Technology Forum
« on: December 30, 2009, 09:43:11 AM »

 Logged
necoleis
Size AA Battery
****

Pogi/Ganda Points: 0
Offline Offline

Posts: 112


« Reply #1 on: January 14, 2010, 09:52:24 AM »

tol naman tingnan mo nga ung code mo kung pano magwork yan cguro mali nga ung code mo. pero cgurdo ako na magbiblink yan gamitin mo naman utak mo
Logged

Ang ulo ay hindi lang pinapagupitan kundi ginagamit din hehehe

by: uncle jr
mochini77
Size AA Battery
****

Pogi/Ganda Points: 5
Offline Offline

Gender: Male
Posts: 136


The only thing that is permanent is change.


WWW
« Reply #2 on: February 03, 2010, 03:32:42 PM »

relax...
Logged

ElektroniC8
Size AA Battery
****

Pogi/Ganda Points: 1
Offline Offline

Posts: 111


« Reply #3 on: February 03, 2010, 03:52:56 PM »

yung loop condition mo kasi hexa, dapat decimal para madaling mabasa ng compiler mo
Logged
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #4 on: February 03, 2010, 03:57:31 PM »

tol naman tingnan mo nga ung code mo kung pano magwork yan cguro mali nga ung code mo. pero cgurdo ako na magbiblink yan gamitin mo naman utak mo
opps wrong entry.. me utak pala kelangan dito  Grin Grin Grin
Logged

Simpler designs are usually better.
ElektroniC8
Size AA Battery
****

Pogi/Ganda Points: 1
Offline Offline

Posts: 111


« Reply #5 on: February 03, 2010, 04:02:28 PM »

hehe relax lang
Logged
-=charLhei=-
CR2032 Battery
**

Pogi/Ganda Points: 3
Offline Offline

Posts: 19


..my girl.... ^_^


« Reply #6 on: February 03, 2010, 04:09:27 PM »

tol naman tingnan mo nga ung code mo kung pano magwork yan cguro mali nga ung code mo. pero cgurdo ako na magbiblink yan gamitin mo naman utak mo

magbigay na lang po sana ng advice..
try to check your coding..
di ko gamay ang programming eh..hehe.
pero kaya mo yan..
Grin Grin Grin
Logged

"People may be unkind, just be kind. They may cheat, just be honest. They may forget your good deeds, just do good. In the end, it's between you and God, not you and them."
ElektroniC8
Size AA Battery
****

Pogi/Ganda Points: 1
Offline Offline

Posts: 111


« Reply #7 on: February 03, 2010, 04:13:36 PM »

may utak rin siya, kaya nga nakagawa ng thread dito Smiley
Logged
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
anu kayang problema?
Computer Repair (Computer Technicians Forum)
Decoder 4 698 Last post July 19, 2009, 02:30:04 PM
by oldskul
walang mali sa iyong ginawa, nagiging mali ito kapag pinagsisihan mo
Chit Chat
Siramiko 5 748 Last post January 23, 2010, 11:02:00 PM
by ElektroniC8
hanapin ang mali
General Digital Design
terroroid 9 536 Last post October 07, 2010, 12:27:54 PM
by terroroid
thermoelectric generator... meron po kayang maliit?
Industrial Electronics and Industrial Engineering
BABIness 0 191 Last post December 13, 2010, 08:57:43 PM
by BABIness
Pagtaas ng pamasahe?tama ba o mali? « 1 2 3 »
Culture and Lifestyle
weemallasiatel 47 1071 Last post February 05, 2011, 03:01:41 PM
by Kasamiko
Tama O Mali? « 1 2 3 4 »
Chit Chat
. 67 1058 Last post March 01, 2011, 11:24:21 PM
by .
ano po bang mali d2? servo code using c t_t
PIC Microcontrollers
zuicidalady 3 107 Last post December 27, 2011, 01:04:54 PM
by RaffT
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!