| ??? 05/17/03 07:07 Read: times |
#45728 - try to read it with soft heart Responding to: ???'s previous message |
Now i did not go on replying in different posts as this will create lots of posts on this question and it may be removed which i don't want...so here are one by one reply for all :- but just imagine why iam wasting my time on this forum ..writing long replies, its only because i have wasted more time on my assemblers and flow charts which are not working , its easy to do with external timer inetrrupts if only Pulses are needed to counted using One Device ...just try to think with a soft heart.i am just thinking that on such a forum some of you might have done such a project and can reply me with with an example but eitheir no one has done such pulses counting project or every one is thinking that " I worked hard to find the ways to count the pulses why i should give away this code to waqar in a minute" Dennis Welbourn: 1) Firslty its not all datasheet reading , i have done lots of checking work and its not one 8 lines intercom that i have gone through its about 3or 4 systems that i have analyzed before selecting the one which iam taking as a reference. "Remember how long it took us to convince you to use interrupts? " 2) i never said that i don't want to use interrupts , i only asked every one that as at that time i was a new user i was wondering how to use the other commands for delays ....now you tell me the entire forum at that time was saying "Use Interrrupts , Use Interrupts ..." i have never taken any educational classes for this but i can bet that one teacher will tell the student to use interrupts in the first project will they ? and i have made the digital clock without using interrupts althought there was some s2 or 3 seconds problem but it worked after that i used interrupts.. so just think and tell me at that time you were guiding me to run before i started to walk... "So--have you done any research into the matter of state machines (or finite state machines as they are sometimes referred to)? " 3) At first i thought state machine is some kind of Gaint but as i went through books it was the same old theory of time sharing :) also i have gone through the following arcticle: which is about embedded multitasking... http://www.chipcenter.com/circuitce...201ck1.htm Michael Karas 1) I usually go through all the questions posted on this forum and i have gone through the code you suggested to Lance Austin, see you never checked that Guy whether he knows the controller or not if you see his previous posts you will notice that he has just started learning http://www.8052.com/forum/rea...&top=43639 controller and you people did not ask him to do any thing , he has just started to learn blinking LEDS and i can bet that the project he is working on is a educational one, no one asked any questions about this.. and provided him such a stable code... how come this happens...why no test of lance austin was taken...really Strange...now please don't start to do the same things with lance which you are doing with me. Lance and i have no personal differences so don't think that iam trying to say that don't help him.. 2) I have seen your code , now this is for the initial and final condition , now this code is good for on hook and off hook conditions....am i rite that this code can be use to check Off Hook and On Hook , if off hook it starts to do that task and if On Hook controller starts to do the task related with On Hook. But how come this is counting pulses? Here it is........................................ ;---- ; in data area have... ; CURR: DS 1 ;place to hold current port 2 sample PREV: DS 1 ;place to hold previous port 2 sample ;---- ; setup in system initialize ; INIT: MOV P2, #0FFH ;ensure that P2 works as inputs MOV CURR, #0FFH ;Init the Current and previous values MOV PREV, #0FFH ;---- ; then in your main polling loop 3) I understand your timer counter advice and will try to work on it...Now see i told you before that Pulse Dialing is not a easy task if it is then some one might have provided me with some code as normally it happens... so why you people always say waqar its very easy and you are not listening to us and what we are suggesting..etc.. etc.. "OR wire me 3 days if consulting fees and I'll write the thing for you. My email address, while easily found here, is: mkaras@CarouselDesign.com" 4) I told you before the only objective of designing this project is not to sale it netheir its a home work assignment ..its just my passion , my desire and further in Pakistan there are many engineers who can do the same with a cheaper rates then you charge , if like Business man i want to design it for commerical purpose i would not be rooming on this forum instead i must have appointed some engineer and learned from him... 5)and if you say that Pulse Dialing is a hard task of 2 or 3 days then this forum is only for educational small projects like blinking leds...i don't think so its a professional forum where people from different countries share their views.. Now just try to realize who is spoiling the forum. "Sampling the line at a periodic rate allows an easy filter to be made. Instead of just keeping track of current and previous states for the input one can shift the states of the detected line through a byte, this allows up to 8 poll times of filter information to be gathered. If one should choose a poll time period of 2 milliseconds then this shift type filter would hold 16 milliseconds worth of states. One would decide that the line was stable if say that the 6 most recent bits in this register were all zero's or one's. " please explain this ? if you have time..and please take your time in replying as this is not a time limited project IJAZ AHMED: 1) iam if my posts are like iam complaining or something like this... 2) Listen as i said before its easy to say that Waqar use State Machine Concept or waqar just use two counters , one for periodic and one for counting the pulses but you and i both knows that its not like this.... 3) Come on if you can do it with 92 commands ,, just tell me few commands for this...its not that easy ...just imagine why iam wasting my time on this forum ..writing long replies its only because i have wasted more time on my assemblers and flow charts which are not working.. Hal Albach:- 1) I have mentioned that iam not designing a PBX .. just consider that there is a BOX and from this BOX 8 lines go out and are connected with 8 telephone sets which support pulse as well as tone dialing but since this BOX does not support DTMF only Pulse Dialing so it is necessary for to make the controller count the pulses through the off hook detection path..and this Pulse Dialing is electronically counted..as iam the telephone are not rotary they are normal key pad one which we use in our dialy life. 2) The Pulses are simple and i think there is no debounce but i will check it again on scope. |



