| ??? 07/19/03 11:51 Read: times |
#50992 - RE: First Step....Mr. Fedia Responding to: ???'s previous message |
Dear Fedia,
Thanks once again for the valuable help you have rendered to me to continue with my project. I started learning Assembly language couple of days ago, learned little bit about the MACRO. It may sound stupid question for you but I have to ask it. Where does this macro fits in this program? When I tried to compile the program with Pinnacle 52 it gave errors, I eleminated _RD Start to test the program. ;with macros: in asm: _RD Start mov C,Start _OR K1 orl C,K1 _ANDNOT Stop anl C,/Stop _ANDNOT OVL anl C,/OVL _WRT K1 mov K1,C Plz note that No NPN Transistor is used yet.Only experimenting board is being used to simulate the ON/OFF switches etc.LED is used as a Output.After compiling the undermentioned program following are the observations: - MOV K1,C .....> It is moving contents of carry bit 22h location of bit addressable RAM ie. 3rd bit of 24th Byte of internal RAM location. -MOV P2,K1......> Moving contents of 22h of internal RAM to port2 hence, no output is generated. I think it is a problem between Bit and Byte and I failed to rectify this prob. Plz note that I need NO and NC contacts of K1 for simulating the alram. plz write your e-mail address, if you don't mind. My e mail address is rasu_patial@rediffmail.com Regards Rashu |



