Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi
How are you reading the data pattern from the encoder? Are you just using a multimeter?
Take a look at this page it might be of assistance:
https://www.dghacks.com/micro-controller/quadrature_encoders/
reset function in 8051
I have had these problems in the past and solved it by putting the LCD init code in a function and then calling the function 3 times at start up. Some makes of display seem to take a while at power up before they are ready to accept data/commands. I hope this helps:D
uni-t - ut-2152c - oscilloscope, dso, 150mhz, col
Take a look at Rigol scopes. They are good, I have one and am very happy with it. Do not purchase one with the built in Logic Analyser, they have a design problem that Rigol have admitted to.
You do not need sonar. You set the ultrasonic above the water in the tank and then simply measure the distance to the water. Of course this would be much easier to do with a MCU
Re: 89c51
A 'soft reset' is best done by using the watch dog timer (if the MCU has one) to do a real hard reset. I say this because simply forcing the program to start at address 0000 does not clear interrupt flags etc. For example if RI is set and not cleared it can cause problems after your...
Re: Matrix keypad
On each timer interrupt, scan the next row of your matrix. After scanning all rows set a variable with the value of the key pressed or to zero if none pressed. Your main loop can check this variable to see if it is non zero which means that a key was pressed. If your main loop...
serial c51 gets
Be careful of using functions like printf in the interrupt. Not all of the library functions are re-entrant so they will cause problems in interrupts. Try do the formating with your own code and try avoid using the library code. Then at least you will know exactly what the code...
keil 8051 serial interrupt programming
depending on how often data arrives the way to do it is to create a FIFO that gets written to by the interrupt and read by your main loop. You should always declare variables used in this way as "volatile" You need to make sure that your data in the FIFO...
c51 global variable
It been a long time since I worked with 8051 but I think that you must set TI = 0 & RI = 0 in your interrupt routine even if you choose to ignore the data.
Disable the WD. Also make sure that your stack is not overflowing.
If this does not help perhaps you should show your...
keil watchdog interrupt
WD should olny take the cycles that you spend updating it. Apart from that it should not have any affect unless it is timing out and reseting your processor. What language are you using?
keil c51 interrupt
Program running slow could be one of the following:
Your interrupt happens too frequently
Your interrupt routine is trying to do too much and therefore using 80% of processing time.
Delays in the prog should make no difference
watchdog might be resetting the processor?? Try...
itu 656 generator
Take a look at this link - There is enough info here to create a simple Color Bar. If you are using an FPGA you can store the data in Ram.
**broken link removed**
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.