Thursday, January 30, 2020

Integrative Approaches to Psychology and Christianity Essay Example for Free

Integrative Approaches to Psychology and Christianity Essay Education and experience in the secular set-up or the what we call here as Athens wisdom believes differently from the biblical standpoint in whatever aspect of life. Psychology in general, though embraces somewhat a neutral position according to some proponents, is not able to do justice to a balanced view of human behavior and most if not all of the individual’s activities. Indeed, Author Dr. Entwistle (2004) argues about the general tendency to dichotomize or what he said as â€Å"to buy into the dichotomy between the ‘sacred’ and the ‘secular’ which is what seeing Jerusalem and Athens as â€Å"mutually exclusive categories. † From the outset I would like to say my piece regarding the point where Dr. Entwistle is coming from without sounding arrogant in the same vein. He has mentioned a lot about presupposition while at the same time sounds like he doesn’t anything about presuppositions. When he separated â€Å"Jerusalem† and the â€Å"Church† in his book, I immediately detected his lack of background in the realm of biblical theology. At the heart of Christianity or the Church that Dr. Entwistle is referring to, there is no such dichotomy. The Church in every dimension of it (or Christianity as we aptly put it) does not do any separation unless what Christ has separated. Meaning, our premise or presupposition starts with the fact that the Church and Christian spirituality or faith if one would put it simply, stands on the Judaeo-Christian context not a choice between â€Å"Jerusalem† or â€Å"Church. † The fundamental difference lies in the great divide between Christianity and Athens or secular wisdom. It is only between the secular wisdom and biblical knowledge does the Bible place a dichotomy. Let me state what led me to this view: it is because, theologically speaking, biblical authors explicitly wrote in their letters from the Old to the New Testament Scriptures that God has His own laws and statutes through which life in general must be regulated. The same knowledge explicitly and implicitly runs through the fabric of the whole Scripture (Old New), which means that the presuppositions of all of the Biblical authors, all fall into one primary presupposition: that there is one God, and that this One God has revealed Himself through His laws and statutes. Without the laws of God, man alone, with all of his learning, if they are all apart from the revelation of God, is mere natural or secular. This is the reason that every man ought to know these laws or statutes or biblical principles and only then can he apply these into all aspects of his secular life. This could have been what Dr. Entwistle intended to mean. One cannot come from the opposite side as what Dr. Entwistle had done instead as he hinged the argument from secular to the theological; though he tried to get his ideas from the likes of great men like Dr. A. W. Tozer and others. All those people’s arguments come from biblical presupposition: they have thorough knowledge of the Scriptures that they applied to various realms of life which in turn caused them to spur their readers to do the same. Trying to oppose the standpoint of apologist Tertullian, Dr. Entwistle seemingly misunderstands all of their positions, thus complicating what could have been an uncomplicated and unified stream of thought. The main contributing factors that led me to this viewpoint are my personal study of the Bible, and some works (massive) of Biblical scholars. The following discussion of renewing the mind then is a by-product of my own presupposition derived from the influence of these Biblical Scholars which include contemporary theologians like Dr. Vincent Cheung, Dr. Philip Johnson, and the father of Presuppositional apologetics Cornelius Van Til, to name a few. This thorough discussion of counsel of the wicked (representing secular or Athens wisdom) and the discriminative counsel which embraces all of Judaeo- Christian principles (as all contained in the Bible) captures best the essence of faith-spirituality molded from this basic presupposition. The dichotomy is between what the Bible says all throughout as the Wicked or ungodly counsel versus that of Godly wisdom. Dr. Entwistle unintentionally pursued a trichotomous delineation of Judeao-Christian theological thinking from secular. This is not proper. Discussion Christians know that a big portion of God’s work in their lives is concentrated on renewal of the mind. Our born again experience signaled the beginning of a new life for us rather than, as have been used by many figuratively, the end of our life’s quest for truth. It is the start of an individual’s real life in that it is the time when a person experiences the quickening work of God through His Spirit (Ephesians 2:1-7). Let’s think for a while our past life as portrayed to us in the Bible: 1. ) We were once dead spiritually – in trespasses and sins; 2. ) We once walked (lived our lives) according to the course of this world; 3. ) We once lived our lives (knowingly or unknowingly) controlled by Satan; 4. ) We once behaved in a way that in everything we do, we only fulfill our desires and what – in our minds – looked good and pleasant. Now, knowing that we are naturally (without the saving power of God) unresponsive to God and fully responsive to the things that are not of God, we recognize our great need to be renewed or our minds oriented to the things of God – things that really matter to Him and in this life (Romans 12:1-2). I. Discriminative Counsel. 1. ) Biblical/Godly Counsel – Its Necessity. There is a trend being proliferated in the area of guidance or direction in one’s life. The premise, if looked at the surface, seems to be sound and Biblical. It is somehow taken from the Bible. They are from the book of Proverbs. â€Å"Where there is no counsel, the people fall; but in the multitude of counselors there is safety. † – Proverbs 11:14. â€Å"Without counsel, plans go awry, but in the multitude of counselors they are established. †Ã¢â‚¬â€œ Proverbs 15:22. These verses, however, when balanced with other portions of the Scripture, do not say that believers should heed suggestions from others without discrimination. Let’s take for example Psalms 1:1-6. â€Å"Blessed is the man who walks not in the counsel of the ungodly, nor stands in the path of sinners, nor sits in the seat of the scornful; but his delight is in the law of the LORD, and in His law he meditates day and night. He shall be like a tree planted by the rivers of water, that brings forth its fruit in its season, whose leaf also shall not wither; and whatever he does shall prosper. The ungodly are not so, But are like the chaff which the wind drives away. Therefore the ungodly shall not stand in the judgment, or sin- ners in the congregation of the righteous. For the LORD knows the way of the righteous, but the way of the ungodly shall perish. † It says here that the â€Å"blessed man† is he whose delight is in â€Å"the law of the Lord. † He meditates on it â€Å"day and night† (v. 2). What the Bible calls as â€Å"blessed† are not those who just swallow every information or trends who happen to be around. The blessed man’s â€Å"delight† is in the law of the Lord, and his pleasure to God’s law/word is made evident in his â€Å"meditating† on it â€Å"day and night. † â€Å"Blessed is the man who walks not in the counsel of the ungodly, nor stands in the path of sinners, nor sits in the seat of the scornful; but his delight is in the law of the LORD, and in His law he meditates day and night. † – Psalms 1:1-2. On the other hand, this is also a warning. A warning to those who are not careful and would let down their guard with regards to their upholding the habit of meditating or checking everything with the teachings of the Scriptures. When someone starts to entertain the seemingly harmless conventional â€Å"advices† of the world without allowing the Bible (God’s Word) to filter those opinions/suggestions, the lurking danger sets in and the undiscerning is on his way to the wrong direction for he has already given thought to â€Å"ungodly counsel. † He entertained and has given a benefit of the doubt to counsel other than God’s counsel. This is a classic case of God’s word versus Satan’s lies. The enemy succeeded in tempting the first couple – Adam and Eve. â€Å"Then the LORD God took the man and put him in the garden of Eden to tend and keep it. And the LORD God commanded the man, saying, Of every tree of the garden you may freely eat; but of the tree of the knowledge of good and evil you shall not eat, for in the day that you eat of it you shall surely die. † – Genesis 2:15-17. Going back to our immediate text in Psalms 1:1, let’s try to divide its wordings in three divisions and see what does it say? It says: â€Å"Blessed is the man who does not (1) walk in the counsel of the wicked (2) stand in the way of sinners (3) sit in the seat of mockers. These three expressions are actually three stages of wickedness, or three steps towards spiritual deterioration. They illustrate the progressive stages of wickedness into which one who strays from God enters. According to the Word of God, this is what will happen to people who stray from the sound teachings of the Scriptures – they will go from bad to worse. And note that, with each stage, the ungodly (anybody who ventures on this path is called â€Å"ungodly†) becomes more resolute and his hostility against the counsel of the inspired scriptures and righteousness intensifies (Cheung, 2007).

Wednesday, January 22, 2020

Jurassic Park Summary :: essays research papers

Michael Crichton's Jurassic Park Alan Grant and Ellie Sattler were among many people paleontologists that were funded by a wealthy man by the name of John Hammond. The two of them were visited by a man named Morris who was very interested in Hammond. Apparently he had leased an island of the west of Costa Rica. He had some kind of big development going on for the past ten years. He also had been buying large quantities of Amber which seemed useless due to it's low value. And Morris, being from the government, was very suspicious. Shortly after this visit the two dinosaur diggers were called by this man called Hammond. He wanted the two of them to visit him on his island. It was some type of biological preserve that would change the world in science and Hammond needed all the opinions he could get on if it would be safe. He called it, Jurassic Park. Meanwhile there was a young man by the name of Dodgson who worked with a rival company of John Hammond. He knew Hammond was on to something big having to do with dinosaurs. He met up with one of Hammond's employee's named Nedry who was the design of there park's computer system. Dodgson knew that they're company was some how recreating dinosaurs by making embryos. There was just one problem, they're company was ten years behind and would never catch up. Nedry ended up taking the million dollar offer from Dodgson for the embryo's that would change there whole company and update them on ten years of research. When Sattler and Grant arrived at the island they met up with other acquaintances of Hammond. There was the famous mathematician, Ian Malcolm. The big and rather rude man, Dennis Nedry. The intelligent scientist that was behind the whole park, Henry Wu. And the lawyer, Ed Regis. Soon later the rest of the visitors arrived. It was Hammond's grandchildren. And then, it was ready for the tour to begin. The tour consisted of six people. Hammond's grandchildren, Lex and Tim, Malcolm, Dr. Sattler and Dr.Grant, and Ed Regis. On the tour they saw many interesting things. There was real live moving dinosaurs! The walk around tour briefly explained how the scientists did it. First off they had to find amber which was tree sap that hardened a long time ago when the dinosaurs lived. In this amber contained many bugs such as mosquitoes which drank the blood of dinosaurs millions of years ago. This blood was then used to capture the DNA which would recreated an actual embryo that would soon turn into a live growing dinosaur.

Tuesday, January 14, 2020

Microcontroller Based Bidirectional Visitor Counter

ConstruCtion Microcontroller-bAsed bidirectionAl Visitor counter UMAR SUNIL K ? AkshAy MAthur, kuldeep singh nAglA V isitor counting is simply a measurement of the visitor traffic entering and exiting offices, malls, sports venues, etc. Counting the visitors helps to maximise the efficiency and effectiveness of employees, floor area and sales potential of an organisation.Visitor counting is not limited to Semiconductors: IC1 – LM324 quad op-amp IC2 – 74LS76 J-K flip-flop IC3 – AT89C52 microcontroller IC4 – 7805 5V regulator T1, T2 – L14F1 npn phototransistor T3, T4 – 2N3904 npn transistor IR TX1, IR TX2 – IR transmitting LED BR1 – 1A bridge rectifier DIS1-DIS3 – LTS543 CC 7-segment display Resistors (all ? -watt,  ±5% carbon): R1, R2 – 68-ohm R3, R4 – 6. 8-kilo-ohm R5, R6 – 100-ohm R7, R8, R10, R11 – 10-kilo-ohm R9 – 4. 7-kilo-ohm R12-R32 – 220-ohm VR1, VR2 – 20-kilo-ohm preset RNW1 – 10-kilo-ohm resistor network Capacitors: C1, C2 C3, C4 C5 C6 C7 Miscellaneous: XTAL X1 S1 S2 – 0.  µF ceramic disk – 33pF ceramic disk – 10 µF, 16V electrolytic – 470 µF, 25V electrolytic – 0. 1 µF ceramic disk – 12MHz crystal – 230V primary to 7. 5V, 250mA secondary transformer – Push-to-on switch – On/off switch Fig. 1: Transmitter-receiver set-up at the entrance-cum-exit of the passage Parts List the entry/exit point of a company but has a wide range of applications that provide information to management on the volume and flow of people throughout a location. A primary method for counting the visitors involves hiring human auditors to stand and manually tally the number of visitors who pass by a certain location.But human-based data collection comes at great expense. Here is a low-cost microcontrollerbased visitor counter that can be used to know the number of persons at a place. All the c omponents required are readily available in the market and the circuit is easy to build. Two IR transmitter-receiver pairs are used at the passage: one pair comprising IR transmitter IR TX1 and receiver phototransistor T1 is installed at the entry point of the passage, while the other pair comprising IR transmitter IR TX2 and phototransistor T2 is installed at the exit of the passage.The IR signals from the IR LEDs should continuously fall on the respective phototransistors, so proper orientation of the transmitters and phototransistors is necessary. circuit description Fig. 1 shows the transmitter-receiver set-up at the entrance-cum-exit of the passage along with block diagram. Two similar sections detect interruption of the IR beam and generate clock pulse for the microcontroller. The microcontroller controls counting and displays the number of persons present inside the hall. Fig. 2 shows the circuit of the microcontroller-based visitor counter, wherein the transmitter and the re ceiver form the IR detection circuit.Control logic is built around transistors, operational amplifier LM324 (IC1) and flip-flop (IC2). When nobody is passing through the entry/exit point, the IR beam continuously falls on phototransistor T1. Phototransistor T1 conducts and the high voltage at its emitter drives transistor T3 into saturation, which makes pin 3 of comparator N1 low and finally output pin 1 of comparator N1 is high. Now if someone enters the place, first the IR beam from IR TX1 is interrupted and then the IR beam from IR TX2. When the beam from IR TX1 is interrupted, phototransistor T1 and transistor T3 cut-off and pin 3 of comparator N1 goes high.The low output (pin 1) of comparator N1 provides negative trigger pulse to pin 1 of J-K flip-flop IC2(A). At this moment, the high input at ‘J’ and ‘K’ w w w. e f y m ag . co m 7 8 †¢ J a n ua ry 2 0 0 7 †¢ e l e c t ro n i c s f o r yo u ConstruCtion w w w. e f y m ag . co m e l e c t ro n i c s f o r yo u †¢ J a n ua ry 2 0 0 7 †¢ 7 9 Fig. 2: Circuit of the microcontroller-based visitor counter ConstruCtion Fig. 3: Power supply circuit pins of flip-flop IC2(A) toggles its output to low. On the other hand, the low input at ‘J’ and ‘K’ pins of IC2(B) due to Fig. : Pin clock pin 1 of configuration of L14F1 and IC2(A) and ‘J’ intransistor 2N3904 put (pin 9) and ‘K’ input (pin 12) of IC2(B) are connected to pin 1 of comparator N1. The negative-going pulse is applied to clock pin 6 of IC2(B) when the person interrupts the IR beam from IR TX2. There is no change in the output of IC2(B) flip-flop. This triggers the external interrupt INT0 (pin 12) of microcontroller AT89C52. The AT89C52 is an 8-bit microcontroller with 8 kB of flash-based program memory, 256 bytes of RAM, 32 input/output lines, three 16-bit timers/counters, on-chip oscillator and clock circuitry.A 12MHz crystal is used for providing clock. Ports 0, 1 and 2 are configured for 7-segment displays. Port-0 pin is externally pulled up with 10-kilo-ohm resistor network RNW1 because port0 is an 8-bit, open-drain, bidirectional, input/output (I/O) port. Port-1 and port-2 are 8-bit bidirectional I/O ports with internal pull-ups (no need of external pull-ups). Port pins 3. 0 and 3. 1 are configured to provide the set pulse to J-K flip-flops IC2(A) and IC2(B), respectively. External interrupts INT0 and INT1 receive the interrupt pulse when the person interrupts the IR beams.Resistor R9 and capacitor C5 provide power-on-reset pulse to the microcontroller. Switch S1 is used for manual reset. When the microcontroller is re- set, the flip-flops are brought in ‘set’ state through the microcontroller at software run time by making their ‘set’ pin high for a moment. The value of the counter increments by Fig. 5: An actual-size, single-side PCB for the microcontroller-based visitor ‘1’ when the counter (F ig. 2) including its power supply (Fig. 3) interrupt service routine for INT0 is executed.The output of the corresponding J-K flip-flop is set to ‘high’ again by making its ‘set’ input pin low through the microcontroller. The micro-controller is configured as a negative-edgetriggered interrupt sensor. Similarly, if somebody exits the place, first the IR beam from IR TX2 is interrupted and then the IR beam from IR TX1. When Fig. 6: Component layout for the PCB the beam from IR TX2 is interrupted, output pin provides clock pulse to pin 6 of J-K 7 of comparator N2 goes low. This flip-flop IC2(B). w w w. e f y m ag . co m 8 0 †¢ J a n ua ry 2 0 0 7 †¢ e l e c t ro n i c s f o r yo u ConstruCtionAt this moment, the high input at ‘J’ and ‘K’ pins of flip-flop IC2(B) toggles its output to low. On the other hand, the low input at ‘J’ and ‘K’ pins of IC2(A) due to clock pin 6 of IC2(B) and ‘Jâ€℠¢ input (pin 4) and ‘K’ input (pin 16) of IC2(A) are connected to pin 7 of comparator N2. The negative-going pulse is applied to clock pin 1 of IC2(A) when the person interrupts the IR beam from IR TX1. There is no change in the output of IC2(A) flip-flop. This triggers the external interrupt INT1 (pin 13) of microcontroller AT89C52. The value of the counter decrements by ‘1’ when interrupt service routine for INT1 is executed.The output of the corresponding J-K flip-flop is set to ‘high’ again by making its ‘set’ input pin low through the microcontroller. The circuit is powered by regulated 5V. Fig. 3 shows the circuit of the power supply. The AC mains is stepped down by transformer X1 to deliver secondary output of 7. 5V, 250mA, which is rectified by bridge rectifier BR1, filtered by capacitor C6 and regulated by IC 7805 (IC4). Capacitor C7 bypasses any ripple in the regulated output. 3) is shown in Fig. 5 and its component layou t in Fig. 6. software The software for the visitor counter is written in ‘C’ language and compiled using C51 Keil compiler.The demo version of this compiler is available for free on the website ‘www. keil. com. ’ It can compile programs up to 2 kB only, which is sufficient for writing most programs. EFY note. The source code and other relevant files of this article have been included in this month’s EFY-CD. construction An actual-size, single-side PCB for the microcontroller-based visitor counter (Fig. 2) including its power supply (Fig. visitor. c #include int i=0,j,k,l,m,a[]={63,6,91,79,102,109,125,7,127,111}; void enter (void) interrupt 0 { i++; if(i>999) i=999; P3_1=0; for(m=0;m Microcontroller Based Bidirectional Visitor Counter ConstruCtion Microcontroller-bAsed bidirectionAl Visitor counter UMAR SUNIL K ? AkshAy MAthur, kuldeep singh nAglA V isitor counting is simply a measurement of the visitor traffic entering and exiting offices, malls, sports venues, etc. Counting the visitors helps to maximise the efficiency and effectiveness of employees, floor area and sales potential of an organisation.Visitor counting is not limited to Semiconductors: IC1 – LM324 quad op-amp IC2 – 74LS76 J-K flip-flop IC3 – AT89C52 microcontroller IC4 – 7805 5V regulator T1, T2 – L14F1 npn phototransistor T3, T4 – 2N3904 npn transistor IR TX1, IR TX2 – IR transmitting LED BR1 – 1A bridge rectifier DIS1-DIS3 – LTS543 CC 7-segment display Resistors (all ? -watt,  ±5% carbon): R1, R2 – 68-ohm R3, R4 – 6. 8-kilo-ohm R5, R6 – 100-ohm R7, R8, R10, R11 – 10-kilo-ohm R9 – 4. 7-kilo-ohm R12-R32 – 220-ohm VR1, VR2 – 20-kilo-ohm preset RNW1 – 10-kilo-ohm resistor network Capacitors: C1, C2 C3, C4 C5 C6 C7 Miscellaneous: XTAL X1 S1 S2 – 0.  µF ceramic disk – 33pF ceramic disk – 10 µF, 16V electrolytic – 470 µF, 25V electrolytic – 0. 1 µF ceramic disk – 12MHz crystal – 230V primary to 7. 5V, 250mA secondary transformer – Push-to-on switch – On/off switch Fig. 1: Transmitter-receiver set-up at the entrance-cum-exit of the passage Parts List the entry/exit point of a company but has a wide range of applications that provide information to management on the volume and flow of people throughout a location. A primary method for counting the visitors involves hiring human auditors to stand and manually tally the number of visitors who pass by a certain location.But human-based data collection comes at great expense. Here is a low-cost microcontrollerbased visitor counter that can be used to know the number of persons at a place. All the c omponents required are readily available in the market and the circuit is easy to build. Two IR transmitter-receiver pairs are used at the passage: one pair comprising IR transmitter IR TX1 and receiver phototransistor T1 is installed at the entry point of the passage, while the other pair comprising IR transmitter IR TX2 and phototransistor T2 is installed at the exit of the passage.The IR signals from the IR LEDs should continuously fall on the respective phototransistors, so proper orientation of the transmitters and phototransistors is necessary. circuit description Fig. 1 shows the transmitter-receiver set-up at the entrance-cum-exit of the passage along with block diagram. Two similar sections detect interruption of the IR beam and generate clock pulse for the microcontroller. The microcontroller controls counting and displays the number of persons present inside the hall. Fig. 2 shows the circuit of the microcontroller-based visitor counter, wherein the transmitter and the re ceiver form the IR detection circuit.Control logic is built around transistors, operational amplifier LM324 (IC1) and flip-flop (IC2). When nobody is passing through the entry/exit point, the IR beam continuously falls on phototransistor T1. Phototransistor T1 conducts and the high voltage at its emitter drives transistor T3 into saturation, which makes pin 3 of comparator N1 low and finally output pin 1 of comparator N1 is high. Now if someone enters the place, first the IR beam from IR TX1 is interrupted and then the IR beam from IR TX2. When the beam from IR TX1 is interrupted, phototransistor T1 and transistor T3 cut-off and pin 3 of comparator N1 goes high.The low output (pin 1) of comparator N1 provides negative trigger pulse to pin 1 of J-K flip-flop IC2(A). At this moment, the high input at ‘J’ and ‘K’ w w w. e f y m ag . co m 7 8 †¢ J a n ua ry 2 0 0 7 †¢ e l e c t ro n i c s f o r yo u ConstruCtion w w w. e f y m ag . co m e l e c t ro n i c s f o r yo u †¢ J a n ua ry 2 0 0 7 †¢ 7 9 Fig. 2: Circuit of the microcontroller-based visitor counter ConstruCtion Fig. 3: Power supply circuit pins of flip-flop IC2(A) toggles its output to low. On the other hand, the low input at ‘J’ and ‘K’ pins of IC2(B) due to Fig. : Pin clock pin 1 of configuration of L14F1 and IC2(A) and ‘J’ intransistor 2N3904 put (pin 9) and ‘K’ input (pin 12) of IC2(B) are connected to pin 1 of comparator N1. The negative-going pulse is applied to clock pin 6 of IC2(B) when the person interrupts the IR beam from IR TX2. There is no change in the output of IC2(B) flip-flop. This triggers the external interrupt INT0 (pin 12) of microcontroller AT89C52. The AT89C52 is an 8-bit microcontroller with 8 kB of flash-based program memory, 256 bytes of RAM, 32 input/output lines, three 16-bit timers/counters, on-chip oscillator and clock circuitry.A 12MHz crystal is used for providing clock. Ports 0, 1 and 2 are configured for 7-segment displays. Port-0 pin is externally pulled up with 10-kilo-ohm resistor network RNW1 because port0 is an 8-bit, open-drain, bidirectional, input/output (I/O) port. Port-1 and port-2 are 8-bit bidirectional I/O ports with internal pull-ups (no need of external pull-ups). Port pins 3. 0 and 3. 1 are configured to provide the set pulse to J-K flip-flops IC2(A) and IC2(B), respectively. External interrupts INT0 and INT1 receive the interrupt pulse when the person interrupts the IR beams.Resistor R9 and capacitor C5 provide power-on-reset pulse to the microcontroller. Switch S1 is used for manual reset. When the microcontroller is re- set, the flip-flops are brought in ‘set’ state through the microcontroller at software run time by making their ‘set’ pin high for a moment. The value of the counter increments by Fig. 5: An actual-size, single-side PCB for the microcontroller-based visitor ‘1’ when the counter (F ig. 2) including its power supply (Fig. 3) interrupt service routine for INT0 is executed.The output of the corresponding J-K flip-flop is set to ‘high’ again by making its ‘set’ input pin low through the microcontroller. The micro-controller is configured as a negative-edgetriggered interrupt sensor. Similarly, if somebody exits the place, first the IR beam from IR TX2 is interrupted and then the IR beam from IR TX1. When Fig. 6: Component layout for the PCB the beam from IR TX2 is interrupted, output pin provides clock pulse to pin 6 of J-K 7 of comparator N2 goes low. This flip-flop IC2(B). w w w. e f y m ag . co m 8 0 †¢ J a n ua ry 2 0 0 7 †¢ e l e c t ro n i c s f o r yo u ConstruCtionAt this moment, the high input at ‘J’ and ‘K’ pins of flip-flop IC2(B) toggles its output to low. On the other hand, the low input at ‘J’ and ‘K’ pins of IC2(A) due to clock pin 6 of IC2(B) and ‘Jâ€℠¢ input (pin 4) and ‘K’ input (pin 16) of IC2(A) are connected to pin 7 of comparator N2. The negative-going pulse is applied to clock pin 1 of IC2(A) when the person interrupts the IR beam from IR TX1. There is no change in the output of IC2(A) flip-flop. This triggers the external interrupt INT1 (pin 13) of microcontroller AT89C52. The value of the counter decrements by ‘1’ when interrupt service routine for INT1 is executed.The output of the corresponding J-K flip-flop is set to ‘high’ again by making its ‘set’ input pin low through the microcontroller. The circuit is powered by regulated 5V. Fig. 3 shows the circuit of the power supply. The AC mains is stepped down by transformer X1 to deliver secondary output of 7. 5V, 250mA, which is rectified by bridge rectifier BR1, filtered by capacitor C6 and regulated by IC 7805 (IC4). Capacitor C7 bypasses any ripple in the regulated output. 3) is shown in Fig. 5 and its component layou t in Fig. 6. software The software for the visitor counter is written in ‘C’ language and compiled using C51 Keil compiler.The demo version of this compiler is available for free on the website ‘www. keil. com. ’ It can compile programs up to 2 kB only, which is sufficient for writing most programs. EFY note. The source code and other relevant files of this article have been included in this month’s EFY-CD. construction An actual-size, single-side PCB for the microcontroller-based visitor counter (Fig. 2) including its power supply (Fig. visitor. c #include int i=0,j,k,l,m,a[]={63,6,91,79,102,109,125,7,127,111}; void enter (void) interrupt 0 { i++; if(i>999) i=999; P3_1=0; for(m=0;m