Friday, October 18, 2019
Public Administration- Program Development Coursework
Public Administration- Program Development - Coursework Example purpose of the introduction of the Department of Human Resources in the company is to ensure that there is workforce diversity across all departments as the purpose of the department is always to ensure that all the matters regarding the employees as a companyââ¬â¢s assets are taken care of. In this project that the introduction of the department is proposed, it is very important to ensure that the success or the level to which the initiative is effective is examined or evaluated. In this chapter, we are going to analyze the changes that are apparent in the introduction following the introduction of the department. This is going to be done by having the trend analysis of the average level of workforce diversity within the organization. This table shows an hypothetical trend analysis of the average level of workforce diversity for the company before and after the introduction or implementation of the department of human resources. In this hypothetical example, we find that the trend in the data shows that the workforce diversity ââ¬Ës level with the organization saw an increase from slightly to moderately during the two different periods of transition on average. However, the post data shows that the introduction of the Department of Human Resources greatly accelerated the rate of the increase to which the organization was becoming more diversity racially or ethnically. On top of reviewing the overall workforce diversity level for the organization, trend analysis can be done for individual departments. This analysis will help in examining the level or extend to which the individual departments have succeeded in hiring more qualified minority candidates and also the level to which they have been in rise in the overall workforce diversity level within their structures. In addition, the comparative trend analysis can be done to examine the performance across the departments. This can always be done both at micro and macro levels. The departments that have been chosen
How to use marketing mix buile Chiang Rai province as a destination Assignment
How to use marketing mix buile Chiang Rai province as a destination during winter season - Assignment Example 116,664 + 18.90 119,450 + 2.39 YEMEN 3,469 - 2.88 2,993 - 13.72 MIDDLE EAST 282,879 + 6.62 298,076 + 5.37 Source- (Ambhanwong 2010) International Tourist Arrival in Thailand in 2009 -14,149,841 International Tourist from Middle East alone 298,076 (5.37%) Source - (Ambhanwong 2010) Marketing Mix According to Kotler et al (2006), marketing mix connotes the elements that a business owner or a manager can manage to influence the consumers in decision- making on the tourist visit to Chiang Rai province, especially in winter. As per Shoemaker, Lewis and Yesawich (2007), Professor Neil Borden of Harvard can be said as the father of the concept namely ââ¬Å"marketing mix.â⬠Borden developed the ââ¬Å"four Psâ⬠principles namely ââ¬Å"product, place (distribution), price and promotion. (Kotler et al, 2006) The term product connotes to features like the business range of services or products, the novelty of those services or products, their distinctiveness from the products of the ir rivals, or their excellence to the competitorsââ¬â¢ services or products with reference to quality. Price connotes to the services / or productââ¬â¢s prices enumerated in the price list or any incentive offered for the promotions of such services or products, and if there is any price incentive available for the peak season or offseason period. Place connotes to the delivery of the services or products gauged by the elements like availability, distribution and convenience. The term promotion connotes to informative sales campaign like displays, features and discount, detailing and advertising. McCarthy is of the view that marketing of tourism industry is different from that of marketing of products and thus, needs a varied approach to the marketing mix ââ¬â that is ââ¬â the concept of the marketing mix to... This essay discusses that Chiang Rai has large potential to offer medical tourism, adventure tourism and golf tourism to the foreign tourist at the affordable cost with the world-class luxury. In the last decade, tourism industry is one of the major revenue earners for the Thailand economy, and tourism accounted about 7% of its GDP (Gross Domestic Product). Tourism Authority of Thailand (TAT) has launched various programs to promote the tourist industry both domestic and inbound one with attractive slogans like ââ¬Å" Unseen Thailand ââ¬Å", & ââ¬Å" Amazing Thailand.â⬠The revenues generated through tourism industry are mainly meant for income distribution to various regions of Thailand and for economic growth, including Chiang Rai province. According to TAT, about 14,584,226 international tourists arrived in Thailand in 2008 14,149,841 international tourists arrived in Thailand in 2009 alone. Goeldner & Ritchie , in their empirical research study ,have found that respondent s in a survey who visited Baan Phangam province in Thailand gave the highest mean positive feedback (3.99) on the service/product aspects for adventure tourism. This is trailed by place (3.43), and then, the price and then promotion. Further, the tourists also gave more weight to natural beauty of the surrounding or scenic beauty, daring adventure movements and a mixture of adventure activities. As regards to touristââ¬â¢s demeanours , positive feedback given by colleagues / friends who visited Thailand already scored high mean score of 56% for a tourist to decide as Thailand as their favourite tourist destination.
Thursday, October 17, 2019
Financial Management Degree Case Study Example | Topics and Well Written Essays - 3250 words
Financial Management Degree - Case Study Example As the acquirer buys another company and pays cash to the target's shareholders, the bidding shareholders would be able to retain the same level of control in the company because their equity proportion is not diluted. To some shareholders, retaining the level of control over the whole entity after the target company has been acquired is one of the major considerations (McDougall & Chenhall). Another advantage of cash purchase to the bidding shareholders is that is is simple and straightforward. A cash offer would be more likely attractive to the target's shareholders especially when economic times are not so predictable, therefore the acquisition deal would prove to have higher success. A major disadvantage to the acquirer would be the huge sum of cash that it has to raise in order to fulfil the deal. While it is less likely for a company to raise such a huge amount of cash from its retained earnings, it is necessary for the company to raise it through other means, such as by incurring debt. The dilution of the capital structure of the company through higher debt, which affects its risk and credit rating, is a major disadvantage. If the company already has a high amount of debt, the acquirer's shareholders would find that the huge amount of debt to raise cash and pay for the acquisition would erode the company's credit rating, and would increase the risk of each share that they hold. From the point of view of the target's ... B. Shares exchange Another form of merger financing is shares exchange. Instead of paying cash, the acquiring company can issue more shares for the target's shareholders in exchange for the shares that they hold in the target company. From the point of view of the acquirer's shareholders, shares exchange is beneficial in such that the company would not have to be burdened to raise a huge amount of cash through other financing means such as debt, which could put pressure and increased risk on each of the shares they hold. The company's liquidity position would not be compromised in the process (McDougall & Chenhall). Shares exchange have been so attractive during the past decades because of its impact on the acquirer's price/earning ratio. If the target has a low p/e ratio, the acquirer can take advantage of it by issuing one share equivalent to more than one share of the target's. This can have a significant impact on the acquirer's own p/e ratio. However, one major disadvantage of shares exchange to the acquirer's shareholders is the dilution of equity due to the issue of more shares, which leads to the dilution of position and lower level of control over the company. With shares exchange, the target's shareholders will not incur capital gains tax because no immediate sale of shares has taken place. If the target's shareholders sell their new shares in the acquiring company, that is when they pay the capital gains tax. This is one of the advantages. Another advantage is that the target's shareholders will be able to maintain a position in the new combined entity. One disadvantage to the target's shareholders would be that, if the acquiring company fails to generate
Canada and China cooperation in Science and Technology Thesis
Canada and China cooperation in Science and Technology - Thesis Example the free trade policies and agreements in NAFTA, SAFTA, ASEAN etc. Apart from the common summit, various countries also have been indulging themselves in treaties which are more individualistic in nature, helping both the participants. China and Canada are good example of such nations. There have been various agreements and various treaties signed by the two nations which have helped them to grow economically as well as culturally. There has been a huge difference in the cultures of the two nations. Despite of this, they have sidelined the cultural barriers and created an era of utmost friendship and fostered mutual understanding and economic growth. The major agreements between the two countries are in the field of agriculture and science and technology. Funding organizations like MOST in China and ISTP in Canada have been set up to fund various research projects in universities/colleges, companies and association to augment the growth of research and technology based partnership. A lso with the help of CIDA's Agricultural Program, the agricultural productivity of China has touched new heights. In the course of this paper, we will study the cultures, demographic details, science and technology and the economies of the two nations and then the growth achieved by them with the help of their treaties in agriculture and science and technology. Han Chinese, the largest ethnic group in China,constitute about 91.9... Languages There are seven major Chinese dialects and many subdialects. Mandarin (or Putonghua), the predominant dialect, is spoken by over 70% of the population. Mandarin is taught in all schools and is the medium of government. About two-thirds of the Han ethnic groups are native speakers of Mandarin; the rest, concentrated in southwest and southeast China, speak one of the six other major Chinese dialects. Non-Chinese languages spoken widely by ethnic minorities include Mongolian, Tibetan, Uygur and other Turkic languages (in Xinjiang), and Korean (in the northeast). The Pinyin System of Romanization In 1979, the Government of China adopted the pinyin system for spelling Chinese names and places in Roman letters. Pinyin has now replaced other conventional spellings in China's English-language publications. The U.S. Government also has adopted the pinyin system for all names and places in China. For example, the capital of China is now spelled "Beijing" rather than "Peking." Religion Religion plays an important role in the life of many Chinese. Buddhism is the religion that is most widely practiced, with an estimated 100 million adherents. Traditional Taoism also is practiced. Official figures indicate there are 20 million Muslims, 5 million Catholics, and 15 million Protestants; unofficial estimates are much higher. While the Chinese constitution affirms religious toleration, the Chinese Government places restrictions on religious practice outside officially recognized organizations. Only two Christian organizations--a Catholic church without official ties to Rome and the "Three-Self-Patriotic" Protestant church--are sanctioned by the Chinese Government. Unauthorized churches have sprung up in many
Wednesday, October 16, 2019
Financial Management Degree Case Study Example | Topics and Well Written Essays - 3250 words
Financial Management Degree - Case Study Example As the acquirer buys another company and pays cash to the target's shareholders, the bidding shareholders would be able to retain the same level of control in the company because their equity proportion is not diluted. To some shareholders, retaining the level of control over the whole entity after the target company has been acquired is one of the major considerations (McDougall & Chenhall). Another advantage of cash purchase to the bidding shareholders is that is is simple and straightforward. A cash offer would be more likely attractive to the target's shareholders especially when economic times are not so predictable, therefore the acquisition deal would prove to have higher success. A major disadvantage to the acquirer would be the huge sum of cash that it has to raise in order to fulfil the deal. While it is less likely for a company to raise such a huge amount of cash from its retained earnings, it is necessary for the company to raise it through other means, such as by incurring debt. The dilution of the capital structure of the company through higher debt, which affects its risk and credit rating, is a major disadvantage. If the company already has a high amount of debt, the acquirer's shareholders would find that the huge amount of debt to raise cash and pay for the acquisition would erode the company's credit rating, and would increase the risk of each share that they hold. From the point of view of the target's ... B. Shares exchange Another form of merger financing is shares exchange. Instead of paying cash, the acquiring company can issue more shares for the target's shareholders in exchange for the shares that they hold in the target company. From the point of view of the acquirer's shareholders, shares exchange is beneficial in such that the company would not have to be burdened to raise a huge amount of cash through other financing means such as debt, which could put pressure and increased risk on each of the shares they hold. The company's liquidity position would not be compromised in the process (McDougall & Chenhall). Shares exchange have been so attractive during the past decades because of its impact on the acquirer's price/earning ratio. If the target has a low p/e ratio, the acquirer can take advantage of it by issuing one share equivalent to more than one share of the target's. This can have a significant impact on the acquirer's own p/e ratio. However, one major disadvantage of shares exchange to the acquirer's shareholders is the dilution of equity due to the issue of more shares, which leads to the dilution of position and lower level of control over the company. With shares exchange, the target's shareholders will not incur capital gains tax because no immediate sale of shares has taken place. If the target's shareholders sell their new shares in the acquiring company, that is when they pay the capital gains tax. This is one of the advantages. Another advantage is that the target's shareholders will be able to maintain a position in the new combined entity. One disadvantage to the target's shareholders would be that, if the acquiring company fails to generate
Tuesday, October 15, 2019
Optimal Bidding Strategies Essay Example | Topics and Well Written Essays - 1500 words
Optimal Bidding Strategies - Essay Example Game theoretical issues in bidding often form the basis of well defined mathematical models used by bidders in arriving at optimal bidding strategies. Bidders often have varying preferences and capabilities, and thus, one bidderââ¬â¢s strategy may directly impact on another bidderââ¬â¢s strategy, although on the basis of private and independent valuations to the bid. The overall market efficiency may also be influential to the impact and effectiveness of optimization strategies that bidders put in place (Eckbo, 2010, P.55-78). First Price Sealed Bid Sealed bids are often rendered as the sellerââ¬â¢s monopoly since information regarding the winning bids and their valuations are open to the seller and hidden to buyers as opposed to open forms where information is available to all participants. First price sealed bid auction is basically a bid where each participating bidder submits a sealed bid hidden from other bidding participants to the auctioneer. The first price sealed bi d is rather referred as a one shot game since bidders winning chances relies on their one time decision and valuation after which the bid manager opens the bids and determines the highest bid as the winning bid. Bidders with the winning market clearing bids must then pay the amounts they set forward as a one shot bid (McGuigan, Moyer, & Harris, 2011, p.594). The first-price sealed bid auction optimal bidding strategy basically lies on submitting bids below oneââ¬â¢s private valuation to maximize surplus. Maximization of a bidders expected surplus is dictated by lower a bid that increases surplus potential although on the other hand it reduces probability a bid becoming successful. More so, the probability of a bid becoming successful increases with valuation increase but decreases with an increase in the number of bidders with regards to their strategies and valuations. The basic optimal strategy for the first-price sealed bid auction is for a bidder to bid below the real valuati on in order to make a profit. In case the bidder bids above or equal to the bid valuation, the payment may exceed or equal the bid valuation in case of a win bid, and thus, no optimization is achieved (Sheble. 1999. P.44-151). There are no interactions among bidders in the first price sealed bid auction, since bids are only submitted by participants once. Participants trade between winning more frequently and maximizing profits, and low bidding with regards to the Nash equilibrium. Optimal bidding strategies under independent and uniformly distributed private valuations among bidders calls for a slight overestimation strategy of the winning bid, considering the fact a bidder has the chance of winning when he or she has the highest estimate irrespective of correct bidding based on averages (Kagel & Levin, 2002, p.2). Assumption that all participating bidders are risk-neutral renders the optimal bidding strategies in the first price sealed bid auction as a bidder that emerges the high est bidder among all bidders bidding the highest expected value (Sheble, 1999, p.70). The optimal difference between the value that a bidder opts to bid below private valuation and the actual value basically depends on beliefs of the bidder with regards to rival bidder valuation and strategies. This strikes situational
Monday, October 14, 2019
Digital Voltmeter Using An 8051 Microcontroller Computer Science Essay
Digital Voltmeter Using An 8051 Microcontroller Computer Science Essay A voltmeter finds its importance wherever voltage is to be measured. Aà voltmeterà is an instrument used for measuring theà electrical potentialà difference between two points in an electric circuit. Analog voltmeters move a pointer across a scale in proportion to the voltage of the circuit. General purpose analog voltmeters may have an accuracy of a few per cent of full scale, and are used with voltages from a fraction of a volt to several thousand volts. Digital voltmeters give a numerical display of voltage by use of analog to digital converter. Digital meters can be made with high accuracy, typically better than 1%. Specially calibrated test instruments have higher accuracies, with laboratory instruments capable of measuring to accuracies of a few parts per million. Meters usingà amplifiersà can measure tiny voltages of micro-volts or less. Digital voltmeters (DVMs) are usually designed around a special type ofà analog-to-digital converterà called anà integrating converter. Voltmeter accuracy is affected by many factors, including temperature and supply voltage variations. To ensure that a digital voltmeters reading is within the manufacturers specified tolerances, they should be periodically calibrated. Digital voltmeters necessarily have input amplifiers, and, like vacuum tube voltmeters, generally have a constant input resistance of 10 mega-ohms regardless of set measurement range. This project aims at building a Digital Voltmeter using an 8051 microcontroller. All the data accessed and processed by the microcontroller is the digital data. And thus, the usage of an analog-to-digital converter finds its necessity here. A standard analog-to-digital converter ADC0804 is used in the current project. The input voltage (which is the analog input) is restricted to be in the range of 0-15V. The processed data in the 8051 is used to drive a display output on a LCD display unit. The display is in the form of digits and is accurate to a value of one decimal. The input voltage is desired to be that of a DC voltage for steady observations of the voltage value on the LCD panel. Rather, if an AC input voltage is given at the input terminals, the output varies indefinitely as is the nature of AC voltage. Thus, the instantaneous value of the AC voltage is not steadily shown on the LCD panel. COMPONENTS Following is the entire set of the components used to build the Digital Voltmeter: Microcontroller, AT89S52 Analog-to-Digital Converter, ADC0804 161 LCD Oscillator circuit for the microcontroller 12MHz Crystal Capacitor 33pF Capacitors Voltage divider circuit/ Input terminals 200k, 100k Resistors 100nF Capacitor ADC Clock Circuit 10k Resistor 150pF Capacitor 100k Potentiometer (to adjust the back-light of the LCD) Description of the Components used Microcontroller, AT89S52 Ãâà The AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller with 4K bytes of In-System Programmable Flash memory. The device is manufactured using Atmels high-density non-volatile memory technology and is compatible with the industry-standard 80C51 instruction set and pin-out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional non-volatile memory programmer. By combining a versatile 8-bit CPU with In-System Programmable Flash on a monolithic chip, the Atmel AT89S51 is a powerful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications. The AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16-bit timer/counters, a five-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89S51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the RAM con-tents but freezes the oscillator, disabling all other chip functions until the next external interrupt or hardware reset. Pin configuration of the AT89S52 is as follows: 40-Lead PDIP VCC Supply voltage. GND Ground. Port 0 Port 0 is an 8-bit open drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high-impedance inputs. Port 0 can also be configured to be the multiplexed low-order address/data bus during accesses to external program and data memory. In this mode, P0 has internal pull-ups. Port 0 also receives the code bytes during Flash programming and outputs the code bytes during program verification. External pull-ups are required during program verification. Port 1 Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 1 also receives the low-order address bytes during Flash programming and verification. P1.5 MOSI (used for In-System Programming) P1.6 MISO (used for In-System Programming) P1.7 SCK (used for In-System Programming) Port 2 Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pull-ups when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the high-order address bits and some control signals during Flash programming and verification. Port 3 Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull-ups. Port 3 receives some control signals for Flash programming and verification. Port 3 also serves the functions of various special features of the AT89S51, as shown in the following table. Alternate functions of port 3, P3.0 RXD (serial input port) P3.1 TXD (serial output port) P3.2 INT0 (external interrupt 0) P3.3 INT1 (external interrupt 1) P3.4 T0 (timer 0 external input) P3.5 T1 (timer 1 external input) P3.6 WR (external data memory write strobe) P3.7 RD (external data memory read strobe) RST Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device. This pin drives High for 98 oscillator periods after the Watchdog times out. The DIS-RTO bit in SFR AUXR (address 8EH) can be used to disable this feature. In the default state of bit DISRTO, the RESET HIGH out feature is enabled. ALE/PROG Address Latch Enable (ALE) is an output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming. In normal operation, ALE is emitted at a constant rate of 1/6 the oscillator frequency and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external data memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode. PSEN Program Store Enable (PSEN) is the read strobe to external program memory. When the AT89S51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory. EA/VPP External Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be strapped to VCC for internal program executions. This pin also receives the 12-volt programming enable voltage (VPP) during Flash programming. XTAL1 Input to the inverting oscillator amplifier and input to the internal clock operating circuit. XTAL2 Output from the inverting oscillator amplifier. Memory Organisation, Program Memory: If the EA pin is connected to GND, all program fetches are directed to external memory. On the AT89S51, if EA is connected to VCC, program fetches to addresses 0000H through FFFH are directed to internal memory and fetches to addresses 1000H through FFFFH are directed to external memory. Data Memory: The AT89S51 implements 128 bytes of on-chip RAM. The 128 bytes are accessible via direct and indirect addressing modes. Stack operations are examples of indirect addressing, so the 128 bytes of data RAM are available as stack space. Interrupts: The AT89S51 has a total of five interrupt vectors: two external interrupts (INT0 and INT1), two timer interrupts (Timers 0 and 1), and the serial port interrupt. Each of these interrupt sources can be individually enabled or disabled by setting or clearing a bit in Special Function Register IE. IE also contains a global disable bit, EA, which disables all interrupts at once. The Timer 0 and Timer 1 flags, TF0 and TF1, are set at S5P2 of the cycle in which the timers overflow. The values are then polled by the circuitry in the next cycle. ADC0804 Ãâà The ADC080X family are CMOS 8-Bit, successive approximation A/D converters which use a modified potentiometric ladder and are designed to operate with the 8080A control bus via three-state outputs. These converters appear to the processor as memory locations or I/O ports, and hence no interfacing logic is required. The differential analog voltage input has good common-mode-rejection and permits offsetting the analog zero input voltage value. In addition, the voltage reference input can be adjusted to a low encoding any smaller analog voltage span to the full 8 bits of resolution. The functional diagram of the ADC080X series of A/D converters operates on the successive approximation principle. Analog switches are closed sequentially by successive-approximation logic until the analog differential input voltage [VlN(+) VlN(-)] matches a voltage derived from a tapped resistor string across the reference voltage. The most significant bit is tested first and after 8 comparisons (64 clock cycles), an 8- bit binary code (1111 1111 = full scale) is transferred to an output latch. The normal operation proceeds as follows. On the high-to-low transition of the WR input, the internal SAR latches and the shift-register stages are reset, and the INTR output will be set high. As long as the CS input and WR input remain low, the A/D will remain in a reset state. Conversion will start from 1 to 8 clock periods after at least one of these inputs makes a low to high transition. After the requisite number of clock pulses to complete the conversion, the INTR pin will make a high- to-low transition. This can be used to interrupt a processor, or otherwise signal the availability of a new conversion. A RD operation (with CS low) will clear the INTR line high again. The device may be operated in the free-running mode connecting INTR to the WR input with CS = 0. To ensure start-up under all possible conditions, an external WR pulse is required during the first power-up cycle. A conversion in process can be interrupted by issuing a second start command. Digital Operation The converter is started by having CS and WR simultaneously low. This sets the start flip-flop (F/F) and the resulting 1 level resets the 8-bit shift register, resets the Interrupt (INTR) F/F and inputs a 1 to the D flip-flop, DFF1, which is at the input end of the 8-bit shift register. Internal clock signals then transfer this 1 to the Q output of DFF1. The AND gate, G1, combines this 1 output with a clock signal to provide a reset signal to the start F/F. If the set signal is no longer present (either WR or CS is a 1), the start F/F is reset and the 8-bit shift register then can have the 1 clocked in, which starts the conversion process. If the set signal were to still be present, this reset pulse would have no effect (both outputs of the start F/F would be at a 1 level) and the 8-bit shift register would continue to be held in the reset mode. This allows for asynchronous or wide CS and WR signals. After the 1 is clocked through the 8-bit shift register (which completes the SAR ope ration) it appears as the input to DFF2. As soon as this 1 is output from the shift register, the AND gate, G2, causes the new digital word to transfer to the Three-State output latches. When DFF2 is subsequently clocked, the Q output makes a high-to-low transition which causes the INTR F/F to set. An inverting buffer then supplies the INTR output signal. When data is to be read, the combination of both CS and RD being low will cause the INTR F/F to be reset and the three state output latches will be enabled to provide the 8-bit digital outputs. Digital Control Inputs The digital control inputs (CS, RD, and WR) meet standard TTL logic voltage levels. These signals are essentially equivalent to the standard A/D Start and Output Enable control signals, and are active low to allow an easy interface to microprocessor control busses. For non-microprocessor based applications, the CS input (pin 1) can be grounded and the standard A/D Start function obtained by an active low pulse at the WR input (pin 3). The Output Enable function is achieved by an active low pulse at the RD input (pin 2). Analog Operation The analog comparisons are performed by a capacitive charge summing circuit. Three capacitors (with precise ratioed values) share a common node with the input to an autozeroed comparator. The input capacitor is switched between VlN(+) and VlN(-), while two ratioed reference capacitors are switched between taps on the reference voltage divider string. The net charge corresponds to the weighted difference between the input and the current total value set by the successive approximation register. A correction is made to offset the comparison by 1/2 LSB. Analog Differential Voltage Inputs and Common- Mode Rejection This A/D gains considerable applications flexibility from the analog differential voltage input. The VlN(-) input (pin 7) can be used to automatically subtract a fixed voltage value from the input reading (tare correction). This is also useful in 4mA 20mA current loop conversion. In addition, common-mode noise can be reduced by use of the differential input. The time interval between sampling VIN(+) and VlN(-) is 41/2 clock periods. There is maximum error voltage due to this slight time difference between the input voltage samples. The allowed range of analog input voltage usually places more severe restrictions on input common-mode voltage levels than this. An analog input voltage with a reduced span and a relatively large zero offset can be easily handled by making use of the differential input. Analog Input Current The internal switching action causes displacement currents to flow at the analog inputs. The voltage on the on-chip capacitance to ground is switched through the analog differential input voltage, resulting in proportional currents entering the VIN(+) input and leaving the VIN(-) input. These current transients occur at the leading edge of the internal clocks. They rapidly decay and do not inherently cause errors as the on-chip comparator is strobed at the end of the clock period. Input Bypass Capacitors Bypass capacitors at the inputs will average these charges and cause a DC current to flow through the output resistances of the analog signal sources. This charge pumping action is worse for continuous conversions with the VIN(+) input voltage at full scale. For a 640kHz clock frequency with the VIN(+) input at 5V, this DC current is at a maximum of approximately 5uA. Therefore, bypass capacitors should not be used at the analog inputs or the VREF/2 pin for high resistance sources (>1kOhm.) If input bypass capacitors are necessary for noise filtering and high source resistance is desirable to minimize capacitor size, the effects of the voltage drop across this input resistance, due to the average value of the input current, can be compensated by a full scale adjustment while the given source resistor and input bypass capacitor are both in place. This is possible because the average value of the input current is a precise linear function of the differential input voltage at a constant conversion rate. Input Source Resistance Large values of source resistance where an input bypass capacitor is not used will not cause errors since the input currents settle out prior to the comparison time. If a low-pass filter is required in the system, use a low-value series resistor for a passive RC section or add an op amp RC active low-pass filter. For low-source-resistance applications, a 0.1uF bypass capacitor at the inputs will minimize EMI due to the series lead inductance of a long wire. A 100Ohm series resistor can be used to isolate this capacitor (both the R and C are placed outside the feedback loop) from the output of an op amp, if used. Stray Pickup The leads to the analog inputs (pins 6 and 7) should be kept as short as possible to minimize stray signal pickup (EMI). Both EMI and undesired digital-clock coupling to these inputs can cause system errors. The source resistance for these inputs should, in general, be kept below 5kÃŽà ©. Larger values of source resistance can cause undesired signal pickup. Input bypass capacitors, placed from the analog inputs to ground, will eliminate this pickup but can create analog scale errors as these capacitors will average the transient input switching currents of the A/D (see Analog Input Current). This scale error depends on both a large source resistance and the use of an input bypass capacitor. This error can be compensated by a full scale adjustment of the A/D (see Full Scale Adjustment) with the source resistance and input bypass capacitor in place, and the desired conversion rate. Reference Voltage Span Adjust For maximum application flexibility, these A/Ds have been designed to accommodate a 5V, 2.5V or an adjusted voltage reference. This has been achieved in the design of the IC. Notice that the reference voltage for the IC is either 1/2 of the voltage which is applied to the V+ supply pin, or is equal to the voltage which is externally forced at the VREF/2 pin. This allows for a pseudo-ratiometric voltage reference using, for the V+ supply, a 5V reference voltage. Alternatively, a voltage less than 2.5V can be applied to the VREF/2 input. The internal gain to the VREF/2 input is 2 to allow this factor of 2 reduction in the reference voltage. Zero Error The zero of the A/D does not require adjustment. If the minimum analog input voltage value, VlN(MlN), is not ground, a zero offset can be done. The converter can be made to output 0000 0000 digital code for this minimum input voltage by biasing the A/D VIN(-) input at this VlN(MlN) value. This utilizes the differential mode operation of the A/D. The zero error of the A/D converter relates to the location of the first riser of the transfer function and can be measured by grounding the VIN(-) input and applying a small magnitude positive voltage to the VIN(+) input. Zero error is the difference between the actual DC input voltage which is necessary to just cause an output digital code transition from 0000 0000 to 0000 0001 and the ideal 1/2 LSB value (1/2 LSB = 9.8mV for VREF/2 = 2.500V). Full Scale Adjust The full scale adjustment can be made by applying a differential input voltage which is 11/2 LSB down from the desired analog full scale voltage range and then adjusting the magnitude of the VREF/2 input (pin 9) for a digital output code which is just changing from 1111 1110 to 1111 1111. When offsetting the zero and using a span-adjusted VREF/2 voltage, the full scale adjustment is made by inputting VMlN to the VIN(-) input of the A/D and applying a voltage to the VIN(+) input. Clocking Option The clock for the A/D can be derived from an external source such as the CPU clock or an external RC network can be added to provide self-clocking. The CLK IN (pin 4) makes use of a Schmitt trigger. Heavy capacitive or DC loading of the CLK R pin should be avoided as this will disturb normal converter operation. Loads less than 50pF, such as driving up to 7 A/D converter clock inputs from a single CLK R pin of 1 converter, are allowed. For larger clock line loading, a CMOS or low power TTL buffer or PNP input logic should be used to minimize the loading on the CLK R pin (do not use a standard TTL buffer). Restart During a Conversion If the A/D is restarted (CS and WR go low and return high) during a conversion, the converter is reset and a new conversion is started. The output data latch is not updated if the conversion in progress is not completed. The data from the previous conversion remain in this latch. Continuous Conversions In this application, the CS input is grounded and the WR input is tied to the INTR output. This WR and INTR node should be momentarily forced to logic low following a power-up cycle to insure circuit operation. Interfacing the Microcontroller Interfacing the ADC0804 with 8051 Ãâà As shown in the typica circuit, ADC0804 can be interfaced with any microcontroller. A minimum of 11 pins are required to interface the ADC0804, eight for data pins and 3 for control pins. As shown in the typical circuit the chip select pin can be made low if you are not using the microcontroller port for any otherà peripheralà (multiplexing). There is aà universalà rule to find out how to use an IC. All we need is the datasheet of the IC we are working with and a look at theà timing diagramà of the IC which shows how to send the data, which signal to assert and at what timeà the signalà should be made high or low, etc. Timing Diagrams, Pin Description 1.à à CS, Chip Select: This is an active low pin and used to activate the ADC0804. 2.à à RD, Read: This is an input pin and active low. After converting the analog data, the ADC stores the result in an internal register. This pin is used to get the data out of the ADC 0804 chip. When CS=0 high to low pulse is given to this pin, the digital output is shown on the pins D0-D7. 3.à à WR, Write: This is an input pin and active low. This is used to instruct the ADC to start the conversion process. If CS=0 and WR makes a low to high transition, the ADC starts the conversion process. 4.à à CLK IN, Clock IN: This is an input pin connected to an external clock source. 5.à à INTR, Interrupt: This is an active low output pin. This pin goes low when the conversion is over. 6.à Vin+ : Analog Input . 7.à Vin- : Analog Input. Connected to ground. 8.à à AGND: Analog Ground. 9.à à Vref/2: This pin is used to set the reference voltage. If this is not connected the default reference voltage is 5V. In some application it is required to reduce the step size. This can be done by using this pin. 10.à DGND: Digital Ground. 11-18. Output Data Bits (D7-D0). 19. CLKR: Clock Reset. 20. Vcc: Positive Supply The above timing diagrams are from ADC0804 datasheet. The first diagram shows how to start a conversion. Also you can see which signals are to be asserted and at what time to start a conversion. So looking into the timing diagramà we note down the steps or say the order in which signals are to be asserted to start a conversion of ADC. As we have decided to make Chip select pin as low so we need not to bother about the CS signal in theà timing diagram. Below steps are for starting an ADC conversion. I am also including CS signal to give you a clear picture. While programming we will not use this signal. Make chip select (CS) signal low. Make write (WR) signal low. Make chip select (CS) high. Wait for INTR pin to go low (means conversion ends). Once the conversion in ADC is done, the data is available in the output latch of the ADC. Looking at the second diagram, which shows theà timing diagramà ofà how to readà the converted value from the output latch of the ADC, data of the new conversion is only available for reading after ADC0804 made INTR pin low or say when the conversion is over. Below are the steps to read output from the ADC0804. Make chip select (CS) pin low. Make read (RD) signal low. Read the data from port where ADC is connected. Make read (RD) signal high. Make chip select (CS) high. Interfacing the LCD with 8051 Ãâà Pin Information of LCD: Pin No Name Description 1 Vss Ground 2 Vdd +5V 3 Vee Contrast Adjustment -2V to -5V 4 RS Register Select 5 RW 1 -Read , 0- Write 6 E Enable Strobe 7 D0 Data Line 8 D1 Data Line 9 D2 Data Line 10 D3 Data Line 11 D4 Data Line 12 D5 Data Line 13 D6 Data Line 14 D7 Data Line 15 LED+ Backlit LED +Và Vdd (Optional signal) 16 LED- Backlit LED -Và Vss (Optional signal) Algorithm to send data to LCD: 1.Make R/W low 2.Make RS=0 ;if data byte is command RS=1 ;if data byte is data (ASCII value) 3.Place data byte on data register 4.Pulse E (HIGH to LOW) 5.Repeat the steps to send another data byte LCD Initialization: Proper working of LCD depend on the how the LCD is initialized. We have to send few command bytes to initialize the LCD. Simple steps to initialize the LCD Specify function set: Sendà 38Hà for 8-bit, double line and 57 dot character format. Display On-Off control: Sendà 0FHà for display and blink cursor on. Entry mode set: Sendà 06Hà for cursor in increment position and shift is invisible. Clear display: Sendà 01Hà to clear display and return cursor to home position. Writing software: The LCD module is an intelligent component. We communicate to LCD module by sending commands from microcontroller. To write data to LCD module separate sequence is followed for 4 bit and 8 bit mode. Writing command for 8 Bit mode: Write 8 bit data on D0-D7 Generate strobe by taking EN from high to low Writing command for 4 Bit mode: Write 4 bit data (upper nibble) on D4-D7 Generate strobe by taking EN from high to low Write 4 bit data (lower nibble) on D4-D7 Generate strobe by taking EN from high to low LCD Commands:à Instruction RS RW D7 D6 D5 D4 D3 D2 D1 D0 Description NOP 0 0 0 0 0 0 0 0 0 0 No Operation Clear Display 0 0 0 0 0 0 0 0 0 1 Clear Display and Address counter = 0 Cursor Home 0 0 0 0 0 0 0 0 1 x Address counter = 0 Entry mode set 0 0 0 0 0 0 0 1 I/D S Set cursor direction(I/D) and auto display shift (S) Display Control 0 0 0 0 0 0 1 D C B Turn display (D) and cursor (C) ON/OFF. Set cursor blinking(B) Cursor/ Display shift 0 0 0 0 0 1 S R/L x x Shift display/cursor (S), specify direction (R/L) Function set 0 0 0 0 1 DL N F x x Set Interface data width (DL), number of display lines (N), character font (F) Set CGRAM Address 0 0 0 1 Set CGRAM address (D0-D5), CGRAM data is sent after this command Set DDRAM Address 0 0 1 Set DDRAM address (D0-D6), DDRAM data is sent after this command Busy Flag and Address 0 1 BF Read busy flag (BF) and address counter(D0-D6) Write Data 1 0 Write data (D0-D7) into DDRAM/CGRAM Read Data 1 1 Read data (D0-D7) from DDRAM/CGRAM Legends used in table:- I/D:à à à à à 1- Increment, 0- Decrement S:à à à à à à à à à 1- Auto Display shift, 0 No display shift D:à à à à à à à à 1- Display ON, 0 Display OFF C:à à à à à à à à 1- Cursor ON, 0- Cursor OFF B:à à à à à à à à 1- Cursor blinking ON, 0 Cursor blinking OFF S:à à à à à à à à à 1- Display Shift, 0 -Cursor move R/L:à à à à 1- Shift right, 0- Shift left DL:à à à à à 1- 8 bit interface, 0- 4 bit interface N:à à à à à à à à 1- 2 lines, 0- 1 line F:à à à à à à à à 1- 5X10 dots font, 0- 5X7 dots f
Subscribe to:
Posts (Atom)