Click here to Skip to main content
15,891,033 members
Home / Discussions / Mobile
   

Mobile

 
GeneralUgly fonts in Compact Framework's Datagrid Pin
bojanm714-Mar-05 3:09
bojanm714-Mar-05 3:09 
GeneralKIOSK mode in Pocket PC Pin
redman_888812-Mar-05 21:30
redman_888812-Mar-05 21:30 
GeneralRe: KIOSK mode in Pocket PC Pin
Zero_divide_119-Mar-05 14:40
Zero_divide_119-Mar-05 14:40 
GeneralRe: KIOSK mode in Pocket PC Pin
Yongki C. A. Jong22-Mar-05 12:52
Yongki C. A. Jong22-Mar-05 12:52 
GeneralDispose for the Main Form Pin
J. Diamond11-Mar-05 14:29
J. Diamond11-Mar-05 14:29 
GeneralPocket PC Contact Retrieval Pin
Testies Of Doom9-Mar-05 23:08
Testies Of Doom9-Mar-05 23:08 
GeneralRe: Pocket PC Contact Retrieval Pin
João Paulo Figueira10-Mar-05 7:23
professionalJoão Paulo Figueira10-Mar-05 7:23 
GeneralNeed help Pin
Cool Ju9-Mar-05 1:00
Cool Ju9-Mar-05 1:00 
Hi,

I doing a project using Atmel 89c51 and Keil for programming. In this, one module is to display a 4-digit number using seven segment display and a BCD decoder. I split the number in to separate digits using modulo and division operation. The first digit gets displayed correctly but the other digits are not displayed correctly. For eg: if my no is 0634 it gets displayed as 2704. This is the pseudo code

int MilliSeconds=0;
unsigned int Digit;
unsigned int d1;
int count=0;
int choice=0;

void InitStartTimer(void)
{
TCON=TCON & 0xCF; //clear timer0 flags
TMOD=TMOD & 0xF9; //enable timer0 without changing timer1 setup
TL0=0xC2; //Load the delay msb
TH0=0xFB; //Load the delay lsb
TR0=1; //start timer
}




void TimerIntr(void) interrupt 1 using 3
{
TR0=0;
if(count>=1)
{
P3_7=1;
MilliSeconds+=1;
}
else
count++;

if(MilliSeconds==20)
{
switch(choice)
{
case 0:
ch1=P1;
ch2=P2&0x0F;
Digit=(P2*256)+P1;
d1=Digit % 10;
Digit=Digit/10;
d1=d1|0x10;
P0=d1;
choice++;
break;
case 1:
d1=Digit%10;
Digit=Digit/10; d1=d1|0x20;
P0=d1;
choice++;
break;
case 2:
d1=Digit%10;
Digit=Digit/10;
d1=0;
d1=d1|0x40;
P0=d1;
choice++;
break;
case 3:
d1=Digit%10;
Digit=Digit/10;
d1=0;
d1=d1|0x80;
P0=d1;
choice++;
break;
case 4:
choice=0;
break;
}
MilliSeconds=0;
}
InitStartTimer();
}
The first digit gets displayed but after the division operation things get messy. Does divsion doesnot work in keil.I am a beginer. Expect ur help

Thanks
Cool Ju



GeneralNeed help with using Directshow in WinCE Magneto Pin
kimcha4-Mar-05 17:49
kimcha4-Mar-05 17:49 
Generalmap objects Pin
y2peny4-Mar-05 8:14
y2peny4-Mar-05 8:14 
GeneralCE MAPI problems Pin
ppp0013-Mar-05 23:45
ppp0013-Mar-05 23:45 
GeneralAbout WinCE Pin
bobi_zcl3-Mar-05 13:20
bobi_zcl3-Mar-05 13:20 
GeneralRe: About WinCE Pin
João Paulo Figueira3-Mar-05 23:37
professionalJoão Paulo Figueira3-Mar-05 23:37 
GeneralRe: About WinCE Pin
Yongki C. A. Jong19-Mar-05 3:53
Yongki C. A. Jong19-Mar-05 3:53 
Generalp Invoke memory release Pin
ting6683-Mar-05 0:35
ting6683-Mar-05 0:35 
GeneralRe: p Invoke memory release Pin
João Paulo Figueira3-Mar-05 4:18
professionalJoão Paulo Figueira3-Mar-05 4:18 
GeneralHelp with eVC++ and debugging Pin
nord_lead2-Mar-05 18:06
nord_lead2-Mar-05 18:06 
GeneralPocket PC email client Pin
ppp00128-Feb-05 17:03
ppp00128-Feb-05 17:03 
GeneralWindows CE Pin
Member 76131227-Feb-05 3:24
Member 76131227-Feb-05 3:24 
GeneralPocket PC disable toolbar Start Pin
Bedevian26-Feb-05 6:47
Bedevian26-Feb-05 6:47 
GeneralAudio mute Pin
sneffe123-Feb-05 2:00
sneffe123-Feb-05 2:00 
Generali get strange words/codings instead of words when saving as .txt Pin
sheep_8022-Feb-05 16:46
sheep_8022-Feb-05 16:46 
GeneralRe: i get strange words/codings instead of words when saving as .txt Pin
hterry6122-Feb-05 18:04
hterry6122-Feb-05 18:04 
GeneralRe: i get strange words/codings instead of words when saving as .txt Pin
sheep_8022-Feb-05 18:35
sheep_8022-Feb-05 18:35 
GeneralRe: i get strange words/codings instead of words when saving as .txt Pin
sheep_8024-Feb-05 19:15
sheep_8024-Feb-05 19:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.