electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

help requested for PIC18Fxx2 programming in ASM language


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> help requested for PIC18Fxx2 programming in ASM language
Author Message
f117e



Joined: 23 May 2009
Posts: 1


Post29 Oct 2009 12:45   

Can giup ve PIC18Fxx2


Toi chi moi hoc ve PIC18FXX2 nen chua co kinh nghiem nhieu ve hop ngu. Xin vui long giup toi doan code nay, vi toi dang can gap:

Viet PIC18 cho doan ma sau.
i = 1
j = 0
k = -1
while (i > j) {
i = i + a – 2 * j;
if (j >= k) {
i = i + 2;
k = k – b + 2 * j;
}
j++;
}

Su dung gia tri a va b 0x08 , 0x0f.Tim gia tri cuoi cung cua i, j, va k cho nhung cap a va b co quan he a > b, a < b, va a = b.

Xin cam on truoc!
Back to top
erio



Joined: 26 Feb 2008
Posts: 40
Location: Indonesia


Post29 Oct 2009 23:57   

Re: Can giup ve PIC18Fxx2


i think if you should translate your language to english..
Back to top
Google
AdSense
Google Adsense




Post29 Oct 2009 23:57   

Ads




Back to top
meishun



Joined: 30 Jul 2007
Posts: 9


Post30 Oct 2009 14:13   

Can giup ve PIC18Fxx2


Very glad to see Vietnamese language here ^^
But f117e should use English in this forum.
I would like to translate his message:
"I have just learned about the PIC18Fxx2. So that, I have no much experience in ASM programming. Please help me this code, I need the good result at once"
"Write the ASM code for this program
i = 1
j = 0
k = -1
while (i > j) {
i = i + a – 2 * j;
if (j >= k) {
i = i + 2;
k = k – b + 2 * j;
}
j++;
}

with a = 0x08, b = 0x0f. find out the last value of i,j,k and a,b that sastify a>b, a<b, a=b respectively.

Thank you = Xin cam on

meishun: My English is not good = Tieng Anh cua toi khong gioi. Very Happy
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> help requested for PIC18Fxx2 programming in ASM language
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Need help understanding PIC asm language (5)
software to convert BASIC language to ASM language (9)
need - Programming TMS320c542 in asm (manuals - help files) (1)
Help in programming servo in C language (2)
how to use delay in ASM language (3)
C Language for Programming PIC (4)
Programming language for engineers (10)
Which Programming Language do i need for... (18)
Best programming language for Microcontrollers (4)
Best Language / Programming suite for Atmel micros (6)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS