??? 10/26/08 07:11 Read: times |
#159362 - CODE Responding to: ???'s previous message |
the o/p of moc7811 is fed to 89c52 on p3.4
also four 7-seg displays are interfaced to port 0 and port 2 of 89c52 through four bcd to 7-seg decoder ic7447. pls have a look at the program and suggest any modifications if required org 0000H LJMP main org 0200H main: MOV TMOD,#15H ;SET TIMER0 AS COUNTER,TIMER1 TIMER SETB P3.4 MOV TL0,#00H MOV TH0,#00H MOV R0,#28 ; TO SET THE TIMER ON FOR 1 SECOND again: MOV TL1,#00H MOV TH1,#00H SETB TR0 SETB TR1 back: JNB TF1,back CLR TF1 CLR TR1 DJNZ R0,again MOV A,TL0 MOV B,3CH ;SINCE ABOVE PROGRAM WILL COUNT NO MUL AB ;OF REV IN 1SEC ADD A,#00H ;TO CALCULATE REV PER MINUTE DA A ;MULTIPLY WITH 60SEC THAT IS 3CH MOV P0,A MOV A,#00H ADDC A,B DA A MOV P2,A LJMP main end ...replace this with your code... ...replace this with your code... |
Topic | Author | Date |
tachometer | 01/01/70 00:00 | |
schematic, please | 01/01/70 00:00 | |
Datasheet? | 01/01/70 00:00 | |
reply to tachometer | 01/01/70 00:00 | |
Resistor to processor too. | 01/01/70 00:00 | |
the schematic is | 01/01/70 00:00 | |
Limitation of base current to 2N2222? | 01/01/70 00:00 | |
in effect | 01/01/70 00:00 | |
another option | 01/01/70 00:00 | |
What is your part in this assignment? | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
Don't panic | 01/01/70 00:00 | |
RE: dont have enough knowledge on microcontrollers | 01/01/70 00:00 | |
CODE | 01/01/70 00:00 | |
expecting a reply now | 01/01/70 00:00 | |
Not BCD! | 01/01/70 00:00 | |
how to solve? | 01/01/70 00:00 | |
your task | 01/01/70 00:00 | |
trying!! | 01/01/70 00:00 | |
not found !!!! | 01/01/70 00:00 | |
Trivial solution: compare/subtract | 01/01/70 00:00 | |
thanks a lot!!! | 01/01/70 00:00 | |
google or paper and pen | 01/01/70 00:00 | |
something weird | 01/01/70 00:00 | |
treading dangerous waters | 01/01/70 00:00 | |
Nothing weird![]() | 01/01/70 00:00 |