??? 03/18/09 09:56 Modified: 03/18/09 09:58 Read: times |
#163563 - "FND Display " |
Dear Sirs,
I am a beginner to 8051. I wanted to display three characters on p3.5 (FND common point) one by one after 1 sec delay..say 'A' 'B' & 'C'. This my code but it is giving wrong display. I don't knw how to use DB command properly Please guide.. $mod51 org 2000h start: clr p3.5 ;for FND common point mov dptr,#lookup x1a: clr a movc a,@a+dptr x2a: mov p1,a call delay500ms call delay500ms inc dptr jmp x1a ;----------------------------------- delay500ms: call delay100ms call delay100ms call delay100ms call delay100ms call delay100ms ret delay100ms: mov r7,#100 x4: call delay1ms djnz r7,x4 ret delay1s: mov r6,#10 x5: call delay100ms djnz r6,x5 ret delay1ms: mov r2,#10 x3: mov r1,#49 x2: djnz r1,x2 djnz r2,x3 ret ;---------------------------------------------------------------- ;COMMON ANODE TYPE LOOKUP TABLE lookup: ;org 2500h db "A" "B" "C" end |
Topic | Author | Date |
"FND Display " | 01/01/70 00:00 | |
formatted code | 01/01/70 00:00 | |
What is FND display? | 01/01/70 00:00 | |
FND picture | 01/01/70 00:00 | |
where did you get that name from? | 01/01/70 00:00 | |
It's a Fairchild prefix | 01/01/70 00:00 | |
Thanks...![]() | 01/01/70 00:00 | |
7-Segment Lookup Table - Example | 01/01/70 00:00 | |
pattern not ASCII | 01/01/70 00:00 | |
Plz ... | 01/01/70 00:00 | |
A bit of summing up for you to do | 01/01/70 00:00 | |
Also check for CA/CC | 01/01/70 00:00 | |
source/sink | 01/01/70 00:00 | |
Clarification: Segments and Bits | 01/01/70 00:00 | |
Vijay, | 01/01/70 00:00 | |
If you want characters, then use characters! | 01/01/70 00:00 | |
Hardware? | 01/01/70 00:00 |