term definition am amplitude modulation asic application specific integrated circuit bist built - in self test bit built - in test cmos complementary metal oxide semiconductor dac digital to analog converter dsp digital signal processor dut device under test fm frequency modulation fpga field programmable gate array fsk frequency shift keying gsm global system for mobile communication hdl hardware description language ic integrated circuit ism industrial scientific medical band pc personal computer pll phase locked loop rf radio frequency the present invention is a test mechanism for a transceiver power amplifier and oscillator frequency for use in testing the transmitter portion of an integrated rf transceiver . the mechanism of the present invention obviates the need to use expensive rf test equipment and instead permits the use of very low cost test equipment to test an integrated rf transmitter . a relatively small amount of additional circuitry , however , is required to realize the mechanism on the integrated circuit . this additional circuitry would typically only be used once at the time of ic production testing to ensure the minimum performance of the transmitter . in most cases , however , the additional chip real estate taken up by the test mechanism circuitry , which is not used during normal operation of the chip is more than offset by the savings in both test time and test cost since high cost rf test equipment is not needed . to aid in understanding the principles of the present invention , the description is provided in the context of a transceiver adapted to comply with the bluetooth standard . it is appreciated , however , that the invention is not limited to use with bluetooth compliant devices but can be applied to devices adapted to comply with other standards as well . in addition , the invention is not limited to use with a specific modulation scheme but is applicable to any modulation scheme including both digital and analog modulation . the invention can be used to ensure that the signal level at the output of the power amplifier and the oscillator frequency comply with a given set of requirements whether part of a standard or not . a main object of the test mechanism of the present invention is to reduce the costs involved in testing the functionality of the power amplifier and oscillator frequency of a transmitter at a much lower frequency and to verify that the power amplifier output power is above a desired level , e . g ., 4 dbm . to accomplish this , the invention provides a built - in circuit with input voltage amplitude threshold detection followed by frequency division . since a power amplifier is an analog circuit which could have a behavior that typically varies over variances in the manufacturing process , or could altogether be faulty with some probability , there exists a need to verify , by means of an analog measurement , that it complies with its target specification at the time of production . the mechanism of the present invention serves to convert the need for an external analog measurement to that of a simple digital measurement , which could be performed either by external low cost equipment ( described in the first embodiment below ) or entirely on - chip by means of dedicated digital hardware and / or software ( described in the second embodiment below ). in addition , since the rf oscillator is also based on analog circuitry , which cannot be tested by the scanning methods employed for digital circuitry , there is a need to verify its functionality ( e . g ., center frequency and frequency range ). this is accomplished by the present invention without requiring the expensive external test equipment typically used for such tests , since the internal circuitry digitizes the tested entity ( i . e . rf frequency in this case ) and provides it at a lower ( i . e . divided ) frequency to be counted by a simple external low - cost tester , or internal circuitry or software , all of which accomplish the high frequency related tests quickly and at lower cost compared to existing expensive rf test equipment . a block diagram illustrating a first embodiment of the transceiver power amplifier and oscillator frequency test mechanism of the present invention utilizing low cost external test equipment is shown in fig2 . the test scheme , generally referenced 20 , comprises the device under test ( dut ) 22 , namely the transmitter with built - in self - test capability ( bist ). the transmitter 22 comprises the rf modulator 26 , power amplifier 28 , analog comparator 36 , frequency divider 42 , digital to analog converter ( dac ) 38 , configurable threshold register 40 and configurable division register 44 . in normal operation , the rf modulator functions to modulate the analog or digital transmit data 24 . the transmit signal is input to the power amplifier which amplifies the signal to the appropriate output power levels to drive an antenna ( not shown ). in many transceivers the output power level is adjustable by means of software . in such cases , if various power levels need to be tested , a different configurable threshold would be written into the threshold register 40 for each of the tested power levels . the bist circuit 34 is preferably completely shutdown in order not to waste power during normal operation . during testing , the rf output 30 is not connected to an antenna but rather to an rf dummy load 32 . in addition , during testing , the rf output from the power amplifier in the transmitter is input to the built - in dedicated analog comparator 36 having a configurable threshold . the comparator is adapted to handle the rf frequency of interest , e . g ., 2 . 4 ghz for bluetooth . the analog threshold level is generated using a configurable threshold register 40 whose n - bit output is input to a dac 38 . the number of bits n required is dependent on the precision required for the analog threshold voltage . the analog output of the dac is input to one of the two inputs of the comparator . an external computing device 50 , e . g ., pc , test computer , microprocessor , microcomputer , laptop , etc ., functions to write the digital value corresponding to the desired threshold into the register 40 under software control . the output of the comparator is input to the frequency divider 42 . optionally , the frequency divider is adapted to be configurable . in this case , the configurable division register 44 stores the control word that determines the final division output of the frequency divider . the division register 44 is also under software control of the external computing device 50 . the test output signal 46 of the frequency divider is input to an external very low cost test equipment 48 . a simple frequency counter may also be used to qualify the oscillator frequency . assuming the power amplifier is outputting the proper level of power , the threshold input to the comparator is adjusted via software control to determine the level at which transitions begin to occur at the comparator output . this threshold can then be used to test chips for compliance with the power amplifier output level requirement . in addition , the output of the comparator , being a digital square wave , is fed into a frequency divider whose lower frequency output is monitored and tested by the low cost digital tester 48 . the output of the tester 50 is a pass / fail indication 52 used to determine whether the chip meets the qualification requirements . for example , given a bluetooth rf signal at 2 . 4 ghz , a divide by 128 frequency divider yields a 19 mhz output signal . this 19 mhz frequency reading is then analyzed to determine the actual rf frequency ( multiply by 128 in this example ) to confirm that the correct oscillator frequency signal is being generated . checking the frequency output of the frequency divider not only tests the frequency of the rf out signal but also tests the power amplifier . this is because if the power amplifier does not meet the minimum power output requirement , the level at the input of the comparator would never exceed the threshold ( assuming it is configured appropriately ) and hence no transitions would be present at the output of the comparator . this would result in a frequency of zero or a frequency much lower than expected . thus , the expected output from the frequency divider is observed only when the power amplifier output amplitude is large enough , indicating that the power amplifier is functional and can generate the required minimum output power . a block diagram illustrating in more detail the frequency divider of the on - chip test mechanism of the present invention is shown in fig3 . the example frequency divider shown , generally referenced 60 , comprises a plurality of d - type flip flops 62 , 64 , 66 , 68 , 70 , 72 , 74 . the frequency divider shown is a 7 - stage ripple counter which divides the input frequency by 2 7 = 128 . in the bluetooth example provided herein , the square wave output from the comparator is normally at the rf output frequency of 2 . 4 ghz . it is important that the flip flops used to construct the frequency divider are able to operate with the frequencies present at their inputs . this is especially important for the first few flip flops as these must handle the high rf frequencies . the flip flops further down the line do not require such high frequency capability . it is noted that flip flops able to handle high frequencies such as in the 2 . 4 ghz or 5 . 7 ghz ism bands are well known in the art . note that the test mechanism of the present invention can be used to test either a fixed or multilevel ( i . e . variable ) power amplifier output . in the former case , only a single threshold value is required to test the performance of the power amplifier . in the latter case , a different threshold value is written to the configurable threshold register during the test procedure . each different threshold value corresponds to a different power amplifier output power level . for each output power level , the appropriate analog threshold input to the comparator is applied by writing different values to the threshold register . the invention may be used to test transmitters having either fixed or multiple oscillator frequency bands as well . in the case of a single oscillator frequency band , use of a fixed frequency divider in the bist circuit is sufficient . in the case of multiple oscillator frequency bands , as would be needed in a multi - band gsm handset , a programmable frequency divider may be used in the bist circuit to ensure that the output frequency is always within a desired narrow range . such frequency dividers are well known in the art and may be constructed by inserting one or more multiplexers into the circuit . for example , a multiplexer may be used to select either the output or the input of the last flip - flop in the divider to provide an adjustment of 2 ×, as could be needed for a dual band transceiver where the upper band is at approximately 2 × the lower band . an example of such system is the gsm system which has bands at 900 mhz and 1 . 8 ghz . note also that the test mechanism of the present invention may be used with digital or analog based transmitters . further , the invention can be used not only to test the carrier signal of the transmitter but can also be used to test transmitter modulation as well , regardless of whether the modulator is digital or analog based . to test a fixed oscillator frequency , the carrier frequency is permitted to run without any modulation input during the test , i . e . the modulation circuit in the transmitter is turned off or disabled . in the case of frequency modulation ( fm ), a test signal is applied to the rf modulator 26 ( fig2 ) to produce test modulation . the test modulation causes a certain frequency deviation in the local oscillator signal used to generate transmit signal . the test output of the frequency divider is then analyzed for the correct corresponding deviation . the test mechanism can also be used to test amplitude modulation ( am ). this is achieved by applying a certain test input to the modulator so as to generate a known ( fixed ) amount of amplitude modulation of the carrier signal . under software control , the appropriate threshold level corresponding to the test modulation is applied to the comparator . if the modulation circuit is operating correctly , a square wave at the carrier frequency is generated and the external test equipment can check the test output of the frequency divider for the correct frequency . further , the test of the power amplifier and oscillator frequency may be performed using a dummy rf load or no load at all , depending on the application . an external dummy rf load would typically be built into the test board which the device under test is placed in for testing . alternatively , the dummy rf load may be incorporated internally on - chip integral with the transmitter . in either case , knowing both the impedance of the dummy rf load at the rf output and the output impedance of the transmitter itself permits the calculation of the expected voltage level at the rf output of the chip . thus , the output power of the amplifier can be measured by measuring the voltage generated at the output , which is determined by the configurable comparator . once the ratio of the internal and external loads during testing is known , the appropriate threshold to be applied to the comparator can be determined . in similar fashion , if the chip is tested with no rf load ( i . e . infinite load ), the appropriate threshold voltage to be applied to the comparator can also be determined . in transceivers incorporating a built - in processor ( e . g ., controller , microprocessor , fpga or asic processor core , dsp , dedicated hardware , etc .) the test controller block 50 ( fig2 ) may be realized in its entirety on - chip , thereby further reducing the need for external testing resources . a block diagram illustrating a second embodiment of the power amplifier and oscillator frequency test mechanism of the present invention utilizing an internal processor and bist circuitry is shown in fig4 . the test scheme , generally referenced 80 , comprises the device under test ( dut ) 82 , namely the transmitter with built - in self - test ( bist ) circuit 94 and internal processor 108 . the transmitter 82 comprises the rf modulator 86 adapted to receive the tx data or analog signal 84 , power amplifier 88 adapted to output an rf out signal 90 , analog comparator 96 , frequency divider 102 adapted to output a test out signal 106 , digital to analog converter ( dac ) 98 , configurable threshold register 100 and configurable division register 104 . the operation of the bist circuit of fig4 is similar to that of fig2 with the difference being that the on - chip processor performs the functionality of and replaces the external test controller and frequency counter . for the case of an on - chip software based processor ( e . g ., microprocessor or dsp ) used to perform the test , the testing software is adapted to configure , control and interface with the rf modulator , configurable threshold register and configurable division register . at the conclusion of a test , the processor is adapted , under software control , to read the test out signal output of the frequency divider . note that the software required to perform the testing and adapted to execute on the processor is loaded into rewritable memory ( i . e . ram ) used by the processor . once testing is complete , the testing software is no longer needed and can be replaced with the normal operation software , thereby eliminating the need for dedicated memory allocation for production testing purposes . it is intended that the appended claims cover all such features and advantages of the invention that fall within the spirit and scope of the present invention . as numerous modifications and changes will readily occur to those skilled in the art , it is intended that the invention not be limited to the limited number of embodiments described herein . accordingly , it will be appreciated that all suitable variations , modifications and equivalents may be resorted to , falling within the spirit and scope of the present invention .