??? 02/27/07 13:46 Read: times Msg Score: -1 -1 Answer is Wrong |
#133805 - some answers Responding to: ???'s previous message |
Sairam Ramakrishnan said:
I am doing a project using the 8051. The guide has told us to implement the following..
An external clock of 1 kHz is fed ti the INT0 pin. Whenever this goes low a bit of data must be received serially into the 8051. Did your professor specify which port pin is to accept the serial data? because your code cannot be completed until this is known. Once 8 bits are received similarly the byte must be stored in the external memory.. There are three possible instructions that can do this for you. It is up to you to discover one of them. I am not able to get how to sync the serial and external interrupts. Don't bother with the serial interrupt. The 1Khz clock is the thing that is providing the synchronization. How do i transfer a bit of data as soon as the INT0 pin goes low ???? There are two ways. Either enable interupt INT0 and put the bit transfer routine in it, or use "jb" and "jnb" instructions to check the state of port 3.2, since port 3.2 is INT0. I hope your 8051's crystal is a multiple of the crystal speed, because if it is not, then some pulses might not be received. oh, by the way, take a look here: http://www.8052.com/set8051.phtml and you will find an instruction that deals with extended memory. |
Topic | Author | Date |
Problem with interrupts.. Help needed | 01/01/70 00:00 | |
Understand the problem first | 01/01/70 00:00 | |
Read the Data Pin | 01/01/70 00:00 | |
Thank u all.. | 01/01/70 00:00 | |
some answers | 01/01/70 00:00 | |
How So![]() | 01/01/70 00:00 |