Part Number Hot Search : 
ATP214 SM2T14A BR101 OM7664SC ATP214 TA75358P LT102 39111
Product Description
Full Text Search
 

To Download TC9329FA Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  TC9329FA/fb 2002-02-07 1 toshiba cmos digital integrated circuit silicon monolithic TC9329FA, tc9329fb portable audio dts controller (dts-21) the TC9329FA/fb is a single-chip dts microcontroller for portable audio incorporating 230 mhz prescaler, pll, and lcd driver. in addition to a 20 bit if counter, 6 bit a/d converter, serial interface, and buzzer function, the device supports an interrupt function, 8 bit timer/counter, and 8 bit pulse counter. the lcd driver features built-in 1/4 duty, 1/2 bias and a 3 v voltage doubler boosting circuit, implementing stable lcd. the power supply voltage ranges from 0.9 to 1.8 v. because of its low-current consumption (cpu: 80 a (max)), the device is suitable for use in digital tuning systems in portable equipment such as headphone stereos. features ? cmos dts microcontroller lsi with built-in 230 mhz prescaler, pll, and lcd driver ? operating voltage: v dd = 0.9~1.8 v (typ.: 1.5 v) ? current dissipation: when cpu in operation: i dd = 40 a typ. when pll in operation: i dd = 6 ma typ. (vhf mode) ? operating temperature range: ta = ? 10~60c ? program memory (rom): 16 bit 4096 steps ? data memory (ram): 4 bit 256 words ? instruction execution time: with crystal oscillator: 40 s with cr oscillator: 6 s (at 1 mhz, v dd = 1.1~1.8 v) ? crystal oscillator frequency: 75 khz ? stack level: 8 ? general-purpose if counter: 20 bit (cmos input supported) ? a/d converter: 6 bit 4-channel ? lcd driver: 1/4 duty, 1/2 bias, 72 segments (max) ? i/o port: cmos i/o ports: 12 n-channel open drain i/o ports: 16 (max) output-only port: 1 input-only ports: 3 (max) ? timer/counter: 8 bit (as timer clock: intr1/intr2, instruction cycle: 1 khz selectable) ? pulse counter: 8 bit up/down counter (input via intr2 pin) ? buzzer: built-in four mode: 0.625~3 khz (8 types), continuous, single-shot, 10 hz intermittent, or 10 hz intermittent 1 hz interval ? interrupts: 2 external, 2 internal (serial interface, 8 bit timer) ? package: qfp-64 (0.5 mm/0.65 mm pitch, 1.4 mm thick) TC9329FA tc9329fb weight lqfp64-p-1010-0.50 : 0.32 g (typ.) qfp64-p-1212-0.65 : 0.45 g (typ.)
TC9329FA/fb 2002-02-07 2 pin assignment ( top view) 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 p5-3 (ad in4 ) p2-0 p2-1 p2-2 p2-3 (psc) reset xout xin gnd v db c 1 c 2 v ee c 3 c 4 v lcd 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 mute p4-3 p4-2 p4-1 p4-0 (buzr) v dd p1-3 p1-2 p1-1 p1-0 p9-3 (s18) p9-2 (s17) p9-1 (s16) p9-0 (s15) p8-3 (s14) p8-2 (s13) 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 p5-2 (ad in3 ) p5-1 (ad in2 ) p5-0 (ad in1 ) p3-3 (sck) p3-2 (so) p3-1 (si) p3-0 v reg do (ot) v dd oscin gnd ifin2 (in2) ifin1 (intr1) hold (intr2/pctrin) test com1 (ot1) com2 (ot2) com3 (ot3) com4 (ot4) s1 (ot5) s2 (ot6) s3 (ot7) s4 (ot8) s5 (ot9) s6 (ot10) s7 (ot11) s8 (ot12) s9 (ot13) s10 (ot14) p8-0 (s11) p8-1 (s12) lcd driver (1/4 duty, 1/2 bias: 72 segments max) sio svfp64/vvfp64 (0.5 mm/0.65 mm pitch) a/d pll oscillation circuit doubler circuit cmos i/o ports (4) n-channel open drain/ cmos i/o ports (8) cmos i/o ports (4) cmos i/o ports (4) n-channel open drain i/o ports (8) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
TC9329FA/fb 2002-02-07 3 block diagram port1 port2 port4 mute port9 port8 lcd driver cr osc buzr doubler v ee (1.5 v) doubler reset program counter stack reg. (8 level) lcd driver/output port rom (16 4096 step) data reg (16 bit) instruction decoder ram (4 256 word) xtal osc peripheral cpu v reg (1.5 v) phase comp. pll xout xin v reg do2 (ot) oscin if counter ifin1 (intr1) ifin2 (in2) intr2 up/down counter timer interrupt cont. serial interface port3 p3-3 (sck) p3-2 (so) p3-1 (si) p3-0 a/d conv. port5 p5-3 (adin4) p5-2 (adin3) p5-1 (adin2) p5-0 (adin1) g-reg. r/w buf. v lcd p1-3 p1-0 p2-3 (psc) p2-0 p4-3 p4-0 (buzr) p8-3 (s18) p9-0 (s15) p8-3 (s14) p8-0 (s11) psc v lcd mute v lcd hold (intr2) test v dd gnd v db c 1 c 2 v ee c 3 c 4 v lcd alu reset crosc v db v reg crosc v dd s6 (ot10) com1 (ot1) s7 (ot11) com2 (ot2) s8 (ot12) com3 (ot3) s9 (ot13) v lcd s10 (ot14) s1 (ot5) s2 (ot6) com4 (ot4)
TC9329FA/fb 2002-02-07 4 description of pin function pin no. symbol pin name function and operation remarks 1 com1/ot1 2 com2/ot2 3 com3/ot3 4 com4/ot4 lcd common output/output port output common signals to lcd panels. through a matrix with pins s1 to s22, a maximum 88 segments can be displayed. three levels, v lcd , v ee , and gnd, are output at 62.5 hz every 2 ms. v ee is output after system reset and clock stop are released, and a common signal is output after the disp off bit is set to ?0?. these pins can be programmed as output ports (note 1). 5~14 s1/ot5~ s10/ot14 lcd segment output/output port 15~22 p8-0/s13~ p9-3/s18 lcd segment output/ i/o port 8, 9 segment signal output terminals for lcd panel. together with com1 to com4, a matrix is formed that can display a maximum of 72 segments. v ee is output after system reset and clock stop are released, and a common signal is output after the disp off bit is set to ?0?. all pins from s1 to s10 can be programmed as output ports (note 1), and all pins from s11 to s18 as i/o ports, in units of pins. when the pins function as output ports, v lcd pin potential and gnd potential are output to them. when the pins function as i/o ports, drain output is n-ch open. because power is supplied from v lcd for the i/o ports, up to v lcd voltage (3 v) can be applied. these data ports (ot1 to ot14) are incremented by 1 by instruction every time data are accessed. therefore, they can be used for external memory address signals, facilitating data access. note: after system reset, the output port pins are set to lcd output, the i/o port pins to i/o port input. 23~26 p1-0~p1-3 i/o port 1 the input and output of these 4 bit i/o ports can be programmed in 1 bit units. these pins can be programmed to be pulled up or down. thus, they can be used as key input pins. by altering the input of i/o ports set to input, the clock stop mode or the wait mode can be released, and the mute bit of the mute pin can be set to ?1?. note 1: when the lcd pin is set as an output port, the ?h? level output is the d oubled voltage v lcd . therefore, disconnect the voltage doubler boosting capacitor but connect the v lcd pin to the v dd pin. v lcd v ee v lcd v dd v dd r in1 v dd input instruction v lcd v dd
TC9329FA/fb 2002-02-07 5 pin no. symbol pin name function and operation remarks 50~52 p2-0~p2-2 i/o port 2 53 p2-3/psc i/o port 2 /prescaler /psc output the input and output of these 4 bit i/o ports can be programmed in 1 bit units. the p2-3 pin is also used as a pll prescaler psc signal output pin. a pll can be configured using an external prescaler. in such a case, set the pin to i/o port output. 42~45 p3-0 p3-1/si p3-2/so p3-3/sck i/o port 3 /serial data input /serial data output /serial clock i/o 4 bit i/o ports, allowing input and output to be programmed in 1 bit units. the i/o ports are n-ch open drain. up to 3.6 v can be input. even at low voltage, n-ch high output current (2 ma typ.) can be obtained. these pins also function as serial interface circuit (sio) input/output pins. there are two types of serial interface circuit: sio1 allows 4 or 8 bit input/output and sio2 allows 26 bit serial data input. sio1 inputs data of si pin serially with the edge of the clock of sck pin, and outputs it to so pin. internal (sck = 37.5 khz) or external, or rising/falling shift can be selected as the clock (sck) for serial operation. the so pin can be switched to serial input (si), facilitating lsi control and communication between controllers. setting ?1? in the sio2 bit sets the sck pin to the sio2 clock input and the si/so pin to sio2 data input. a synchronization circuit is built-in for sio2. when sio interrupts are enabled, an interrupt is generated after sio execution or by sio2 operating clock input and the program jumps to address 4. all sio inputs use built-in schmitt circuits. sio and all controls are programmable. 28 p4-0/buzr i/o port 4 /buzzer output 29~31 p4-1~p4-3 i/o port 4 4-bit i/o ports, allowing input and output to be programmed in 1-bit units. the p4-0 pin is also used for buzzer output. the buzzer output can select 8 kinds of 0.625 to 3 khz frequencies with 4 modes: continuous output, single-shot output, 10 hz intermittent output, and 10 hz intermittent 1 hz interval output. sio, buzzer, and all associated controls can be programmed. v lcd v dd input instruction (p3-0) input instruction input instruction + sioon (p3-1~p3-3) input instruction v dd
TC9329FA/fb 2002-02-07 6 pin no. symbol pin name function and operation remarks 46~49 p5-0/ad in1 ~ p5-3/ad in4 i/o port 5 /ad analog voltage input 4-bit i/o ports, allowing input and output to be programmed in 1 bit units. pins p5-0 to p5-3 can also be used for analog input to the built-in 6 bit, 4-channel ad converter. the conversion time of the built-in ad converter using the successive comparison method is 280 s. the necessary pin can be programmed to ad analog input in 1 bit units. up to the doubled voltage v db (v dd 2) can be input as the ad input voltage. i/o ports are n-ch open drain output. up to the v db voltage can be applied to the ad input pins. the ad converter and all associated controls are performed via sortware. 32 mute muting output port 1 bit output port, normally used for muting control signal output. this pin can set the internal mute bit to ?1? according to a change in the input of i/o port 1 and hold . mute bit output logic can be changed. the internal cr oscillator clock can be output depending on the contents of the test port. 33 test test mode control input input pin used for controlling test mode. ?h? (high) level indicates test mode, while ?l? (low) indicates normal operation. the pin is normally used at low level or in nc (no connection) state. (a pull-down resistor is builtin). v dd v dd r in2 input instruction v dd to ad converter
TC9329FA/fb 2002-02-07 7 pin no. symbol pin name function and operation remarks 34 hold /intr2 /pctrin hold mode control input /external interrupt input /plus count input input pin for request/release hold mode. normally, this pin is used to input radio mode selection signals or battery detection signals. hold mode includes clock stop mode (stops crystal oscillation) and wait mode (halts cpu). setting is implemented with the ckstp instruction or the wait instruction. to request clock stop mode, either l-level detection on the hold pin or forced execution can be programmed. the mode is released by h-level detection on the hold pin or input change, respectively. executing the ckstp instruction stops the clock generator and the cpu, entering memory backup state. in memory backup state, current dissipation becomes low (1 a or less) and the display output/cmos output ports automatically become l level and n-ch open drain output off. regardless of this input state, wait mode is executed in order to lower power dissipation. either crystal oscillator only in operation or cpu suspension can be programmed. for crystal oscillator only in operation, all displays are at l level and other pins are in hold state. for cpu suspension, the cpu stops and all others retain their states. wait mode is released by changing hold input. the p34 pin is also used for external interrupt input. when interrupts are enabled and a 13.3 to 26.7 a pulse or longer is input to the pin, interrupt intr1/2 is generated and the program jumps to address 1/2. input logic or rising/falling edge can be selected for each input interrupt. the internal 8 bit timer clock input can be selected as input to the pins. when the count value reaches the specified value, an interrupt is generated (address 4). the pin is also used for input of an 8 bit pulse counter. input rising/falling or upcount/downcount can be selected for the counter. v dd
TC9329FA/fb 2002-02-07 8 pin no. symbol pin name function and operation remarks 35 36 ifin1/intr1 ifin2/in2 if signal 1 input /external interrupt input if signal 2 input /input port if signal input pin for the if counter to count the if signals of the fm and am bands and to detect the automatic stop position. the input frequency is between 0.3 to 12 mhz. a built-in input amp. and c coupling allow operation at low-level input. the if counter is a 20 bit counter with optional gate times of 1, 4, 16 and 64 ms. 20 bits of data can be readily stored in memory. in manual mode, gate on/off or cr oscillator clock frequency count can be performed using an instruction. the input pin can be programmed for use as an input port (in port). in this case, the pins are cmos input. they can count input clocks using the if counter. ifin1 also functions as an external interrupt input pin. when interrupts are enabled and a 13.3 to 26.7 a pulse or longer is input to ifin1, an interrupt is generated and the program jumps to address 1. input logic or rising/falling edge can be selected for the input interrupt. the internal 8 bit timer clock input can be selected as input to the pin. when the count value reaches the specified value, an interrupt is generated (address 4). note: when a pin is set to if input, the input is at high impedance in pll off mode or if the pins are not used for input. 27, 39 v dd 37, 57 gnd power-supply pins pins to which power is applied. normally, v dd = 0.9~1.8 v is applied. for the pll, power for the prescaler in the programmable counter block and if input amp can be individually programmed. by switching to different modes depending on the power supply voltage and the frequency used, current dissipation can be lowered. connect a stabilizing capacitor between the v dd pin and gnd (4.7 f, 0.01 f typ.). in backup state (at execution of the ckstp instruction), current dissipation drops (1 a or less) and the power supply voltage can be reduced to 0.75 v. if more than 0.9 v is applied when the pin voltage is 0, the device system is reset and the program starts from address ?0?. (power on reset) note: to operate the power on reset, the power supply should start up in 10~100 ms. note: the power-on reset function can be enabled/disabled using the ai switch. v dd r fin 2 gnd v dd 4.7 f 0.01 f
TC9329FA/fb 2002-02-07 9 pin no. symbol pin name function and operation remarks 38 oscin local oscillation signal input for fm input, mode can be switched between 1/2 + pulse swallow vhf and fm mode. for am input, mode can be switched between pulse swallow (hf) and direct dividing (lf) mode. normally, local oscillation output (voltage-controlled oscillator: vco output) of 80 to 230 mhz is input in vhf mode; 60 to 130 mhz in fm mode; 1 to 30 mhz in hf mode; 0.5 to 8 mhz in lf mode. a pll can be configured using an external prescaler. in such a case, set the pin to lf, and connect the prescaler divider output to the oscin input pin and the psc input to the p2-3 (psc) output pin. with an input amp incorporated, capacitive-coupling, small-amplitude operation. note: the input is at high impedance in pll off mode. 40 do/ot phase comparator output/output port pll phase comparator output pins. tristate output. when the program counter divider output is higher than the reference frequency, h level is output; when lower, l level; and when they match, high impedance. for the phase comparator power supply, a 1.5 v constant voltage supply (v reg pin) is used. even if the power supply voltage drops, a stable pll can be configured. the do/ot pin can be programmed to high impedance or as an output port (ot). note: for tristate output, the h-level output uses a constant voltage supply. when h-level output current is required, toshiba recommend using an external power supply. 41 v reg phase comparator constant voltage supply phase comparator constant voltage supply. when the phase comparator output is tristate output, a constant voltage supply of 1.5 v (typ.) is output to the pin. for this output, connect a stabilizing capacitor (0.47 f typ.). constant voltage on/off can be programmed. because half the voltage potential can be switched to ad converter a/d input, it can be used to detect how much battery remains. at pll operation, the constant voltage is used for h level phase comparator output. thus, when h level output current is required, toshiba recommend using an external power supply. externally apply 1.8 to 3.6 v to the pin. v reg v dd r fin 1 v reg
TC9329FA/fb 2002-02-07 10 pin no. symbol pin name function and operation remarks 54 reset reset input input pin for system reset signals. reset takes place while at low level; at high level, the program starts from address ?0?. normally, if more than 0.9 v is supplied to v dd when the voltage is 0, the system is reset (power on reset). accordingly, this pin should be set to high level during operation. note: when the power-on reset function is disabled by the ai switch, input l level at power on. 55 xout 56 xin crystal oscillator pin crystal oscillator pins. a reference 75 khz crystal resonator is connected to the xin and xout pins. (ci = co = 10 pf) the oscillator stops oscillating during ckstp instruction execution. the vxt pin is the power supply for the crystal oscillator. a stabilizing capacitor (0.47 f typ.) is connected. 58 v db 59 c 1 60 c 2 61 v ee 62 c 3 63 c 4 64 v lcd voltage doubler boosting output pins voltage doubler boosting output pins. the v db pin doubles the v dd pin voltage using the voltage doubler boosting capacitor between c 1 and c 2 . the doubled voltage is used for the ad converter and constant voltage circuit (v reg , v ee ) power supply. the v ee pin supplies a constant voltage of 1.5 v from the v db voltage. the voltage is doubled (to 3 v) using the voltage doubler boosting capacitor between c 3 and c 4 . the doubled voltage is then supplied to the v lcd pin. the v ee potential and the v lcd potential are used to drive the lcd. connect a stabilizing capacitor between the v db pin and gnd (0.1 f, 10 f typ.), and between the v lcd pin and gnd (0.1 f typ.). connect a voltage doubler boosting capacitor (0.1 f typ.) between c 1 and c 2 , and between c 3 and c 4 . (note 1) note 1: when the lcd pin is set as an output port, the ?h? level output is the d oubled voltage v lcd . therefore, disconnect the voltage doubler boosting capacitor but connect the v lcd pin to the v dd pin. v dd v dd r f xt xout xin rout v lcd
TC9329FA/fb 2002-02-07 11 description of operations cpu the cpu consists of a program counter, a stack register, alu, a program memory, a data memory, g-register, a data register, dal address register, carry f/f, a judgment circuit, and an interruption circuit. 1. program counter (pc) the program counter consists of a 14-bit binary up-counter and addresses the program memory (rom). the counter is cleared when the system is reset and the programs start from the 0 address. under normal conditions, the counter is increased in increments of one whenever an instruction is executed, but the address specified in the instruction operand is loaded when a jump instruction or call instruction is executed. also, when an instruction that is equipped with the skip function (ais, slti, tmt, rns instructions, etc.) is executed and result of this includes a skip condition, the program counter is increased in increments of two and the subsequent instruction is skipped. furthermore, if interruption is received, the vector address corresponding to each interruption is loaded. note: program memory (rom) it is 0000h-0fffh address. for this reason, an access setup to the address beyond this is forbidden. contens of program counter (pc) instruction pc13 pc12 pc11 pc10 pc9 pc8 pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 jump addr1 jump addr2 0 0 0 power on reset reset by reset pin 0 0 0 0 0 dal (da) (dal bit = 1) rn, rns, rni at the time of an interruption reception power on reset reset by reset pin 0 0 0 0 0 0 0 0 0 0 0 0 0 0 priority interruption factor vecter address 1 intr1 pin 0001h 2 intr2 pin 0002h 3 serial inter face 0003h 4 timer counter 0004h 2. stack register a register consisting of 8 14 bits which stores the contents of the program counter + 1 (the return address) when a sub-routine call instruction is executed. the contents of the stack register are loaded into the program counter when the return instruction (rn, rns, rni instruction) is executed. there are eight stack levels available and nesting occurs with both levels. operand of instruction (addr1) operand of instruction (addr2) dal address register (da) contents of stack register vecter address of each interruption contents of general register (r) operand of instruction (addr3)
TC9329FA/fb 2002-02-07 12 3. alu alu is equipped with binary 4-bit parallel add/subtract functions, logical operation, comparison and multiple bit judgment functions. this cpu is not equipped with an accumulator, and all operations are handled directly within the data memory. 4. program memory (rom) the program memory consists of 16 bits 4096 steps and is used for storing programs. the usable address range consists of 4096 steps between address 0000h and 0fffh. the program memory is divided into 4096 separate steps and consists of page 0 to 3. the jump instruction and call instruction can be freely used throughout all 4096 steps. in case of setting dal bit (it arranges on i/o map) ?0? (dal addr3, (r) command), the program memory address 0000h to 03ffh (page 0) are used as data area and setting dal bit ?1? (dal (da) command), the program memory address 0000h to 0fffh (page 0 to 3) are used as data area. the 16 bit contents of this can be loaded into the data register by executing the dal instruction. note: an address outside of the program lop must be set when establishing a data area within the program memory. time jump point address of initialization * 1: dal bit = dal access area at setting ?0? * 2: dal bit = dal access area at setting ?1? note: dal bit is arranged on i/o map. 0000h page 0 (1 k step) 0400h page 1 0800h page 2 0c00h 0fffh page 3 0000h jump address at initialization 0001h intr1 0002h intr2 0003h serial interface 0004h interruption vector address 8 bit timer rom 16 bit * 1 dal instruction specification area * 2 jump instruction specification area call instruction specification area
TC9329FA/fb 2002-02-07 13 5. data memory (ram) the data memory consists of 4 bit 256 words and used for storing data. these 256 words are expressed in row address (4 bits) and column addresses (4 bits). 192 words (row address = address 004h to 00fh) within the data memory are addressed indirectly by the g-register. owing to this, it is necessary to specify the row address with the g-register before the data in this area can be processed. the address 00h to 0fh within the data memory are known as general registers, and these can be used simply by specifying the relevant column address (4 bit). these sixteen general registers can be used for operations and transfers with the data memory, and may also be used as normal data memories. note: the column address (4 bit) that specifies the general register is the register number of the general register. note: all row address (addresses 0h to fh) can be specified indirectly with the g-register. note: the data memory is 256 words and 2 bits of the 6-bit higher ranks of g-register low address are used ?0? (00h -0fh address). note: by using ld and st instruction, it can be addressed directly in 256 words (low address = 00h to 0fh) in a data memory. ld and st command are a low address. (0h-fh) up to -- direct specification can be carried out 0 1 2 3 4 5 6 7 8 9 a b c d e f 0 1 2 3 4 5 6 7 8 9 a b c d e f general register (one from among addresses 00h to 0fh) ld and st instruction can specified low address (0h to fh) directly indirect specification of row addresses (4h to fh ) with the g-re g ister the indirect specification of row address = 0h to fh is also possible * colmun address: dc row address: dr *
TC9329FA/fb 2002-02-07 14 6. g-register (g-reg) the g-register is a 4 bits register used for addressing the low addresses (d r = 4h to fh addresses) of the data memory?s 192 words. the contents of this register are validated when the mvgd instruction or mvgs instruction are executed, and not affected through the execution of any other instructions. this register is used as one of the ports, and the contents are set when the out1 instruction from among the i/o instructions is executed. the 6-bit contents can be directly set by execution of stig instruction. ( refer to section in register ports.) 7. data register (data reg) the data register consists of 1 16 bits and loads 16 bits of optional address data. this register is used as one of the ports, and the contents are loaded into the data memory in units of 4 bits when in1 instruction from among the i/o instruction is executed. ( refer to section #1 in register ports.) moreover, this register is also possible to writing from data memory and uses it for evacuation/return processing of the data at the time of interruption. 8. dal address register (da) the data register consists of 1 14 bits. if dal instruction is executed when the dal bit is set to ?1?, 16 bits of the data of the free addresses in the program memory specified by this dal address register are loaded. by the setting (data) da bit to ?1?, the contents of data register (data reg) can be transmitted to dal address register (da). this register and a control bit are treated as a port, and are accessed by in3/out3 instruction of an input-and-output instruction. ( refer to register port item) 9. carry f/f (ca flag) this is set when either carry or borrow are issued in the result of calculation instruction execution and is reset if neither of these are issued. the contents of carry f/f can only be amended through the execution addition, subtraction, clt, cltc instructions and not affected by the execution of any other instruction. the carry f/f can be accessed by in1/out1 instruction of an input-and-output instruction. for this reason, an input-and-output command performs the evacuation and the return at the time of interruption between data memories. (refer to register port item) 10. judgment circuit (j) this circuit judges the skip conditions when an instruction equipped with the skip function is executed. the program counter is increased in increments of two when the skip conditions are satisfied, and the subsequent instruction is skipped. there are 15instructions equipped with a wide variety of skip functions available. ( refer to the items marked with a ? * ? symbol in the table instruction functions and operational instructions) 11. interruption circuit an interruption circuit branches to each vector address by the demand from circumference hardware, and performs each interruption processing. ( refer to interruption functional item)
TC9329FA/fb 2002-02-07 15 12. instruction set table a total of 57 instruction sets are available, and all of these are single-word instructions. these instructions are expressed with 6 bit instruction codes. 00 01 10 11 high order 2 bit low order 4 bit 0 1 2 3 0000 0 ai m, i tmtr r, m slti m, i 0001 1 aic m, i tmfr r, m sgei m, i 0010 2 si m, i seq r, m seqi m, i 0011 3 sib m, i sne r, m snei m, i 0100 4 orim m, i tmtn m, n 0101 5 anim m, i tmt m, n 0110 6 xorim m, i tmfn m, n 0111 7 mvim m, i ld r, m * tmf m, n 1000 8 ad r, m in1 m, c 1001 9 ac r, m in2 m, c 1010 a su r, m in3 m, c 1011 b sb r, m st m * , r jump addr1 out1 m, c 1100 c orr r, m clt r, m out2 m, c 1101 d andr r, m cltc r, m out3 m, c 1110 e xorr r, m mvgd r, m dal addr3, r 1111 f mvsr m1, m2 mvgs m, r cal addr2 shrc m rorc m stig i * skp, skpn rn, rns wait p ckstp xch m di, ei, rni noop
TC9329FA/fb 2002-02-07 16 13. table of instruction functions and operational instructions n (description of the symbols used in the table) n n nn-n nnnnnnnnxxnnlnnnn -n * ? *
TC9329FA/fb 2002-02-07 17 machine language (16 bits) instruc -tion group mnemonic skip function function description operation description ic (6 bits) a (2 bits) b (4 bits) c (4 bits) ai m, i add immediate data to memory m (m) + i 000000 dr dc i aic m, i add immediate data to memory with carry m (m) + i + ca 000001 dr dc i ad r, m add memory to general register r (r) + (m) 001000 dr dc rn addition instructions ac r, m add memory to general register with carry r (r) + (m) + ca 001001 dr dc rn si m, i subtract immediate data from memory m (m) ? i 000010 dr dc i sib m, i subtract immediate data from memory with borrow m (m) ? i ? b 000011 dr dc i su r, m subtract memory from general register r (r) ? (m) 001010 dr dc rn subtraction instructions sb r, m subtract memory from general register with borrow r (r) ? (m) ? b 001011 dr dc rn slti m, i * skip if memory is less than immediate data skip if (m) < i 110000 dr dc i sgei m, i * skip if memory is greater than or equal to immediate data skip if (m) > = i 110001 dr dc i seqi m, i * skip if memory is equal to immediate data skip if (m) = i 110010 dr dc i snei m, i * skip if memory is not equal to immediate data skip if (m) i 110011 dr dc i seq r, m * skip if general register is equal to memory skip if (r) = (m) 010010 dr dc rn sne r, m * skip if general register is not equal to memory skip if (r) (m) 010011 dr dc rn clt r, m set carry flag if general register is less than memory, or reset if not (cy) 1 if (r) < (m) or (cy) 0 if (r) > = (m) 011100 dr dc rn comparison instructions cltc r, m set carry flag if general register is less than memory with carry or reset if not (cy) 1 if (r) < (m) + (ca) or (cy) 0 if (r) > = (m) + (ca) 011101 dr dc rn
TC9329FA/fb 2002-02-07 18 machine language (16 bits) instruc -tion group mnemonic skip function function description operation description ic (6 bits) a (2 bits) b (4 bits) c (4 bits) ld r, m * load memory to general register r (m * ) 0101 dr * (4 bits) dc rn st m * , r store memory to general register m * (r) 0110 dr * (4 bits) dc rn mvsr m1, m2 move memory to memory in same row (dr, dc1) (dr, dc2) 001111 dr dc1 dc2 mvim m, i move immediate data to memory m i 000111 dr dc i mvgd r, m move memory to destination memory referring to g-register and general register [(g), (r)] (m) 011110 dr dc rn mvgs m, r move source memory referring to g-register and general register to memory (note) (m) [(g), (r)] 011111 dr dc rn transfer instructions stig i * move immediate data to g-register g i * 111111 i * 0010 in1 m, c input in1 port data to memory m [in1] c 111000 dr dc cn out1 m, c output contents of memory to out1 port [out1] c (m) 111011 dr dc cn in2 m, c input in2 port data to memory m [in2] c 111001 dr dc cn out2 m, c output contents of memory to out2 port [out2] c (m) 111100 dr dc cn in3 m, c input in3 port data to memory m [in3] c 111010 dr dc cn i/o instructions out3 m, c output contents of memory to out3 port [out3] c (m) 111101 dr dc cn orr r, m logical or of general register and memory r (r) (m) 001100 dr dc rn andr r, m logical and of general register and memory r (r) (m) 001101 dr dc rn orim m, i logical or of memory and immediate data m (m) i 000100 dr dc i anim m, i logical and of memory and immediate data m (m) i 000101 dr dc i xorim m, i logical exclusive or of memory and immediate data m (m) ? i 000110 dr dc i logical poeration instructions xorr r, m logical exclusive or of general register and memory r (r) ? (m) 001110 dr dc rn note: the execution time for the mvgs instruction is two machine cycles.
TC9329FA/fb 2002-02-07 19 machine language (16 bits) instruc -tion group mnemonic skip function function description operation description ic (6 bits) a (2 bits) b (4 bits) c (4 bits) tmtr r, m * test general register bits by memory bits, then skip if all bits specified are true skip if r [n (m)] = all 1 010000 dr dc rn tmfr r, m * test general register bits by memory bits, then skip if all bits specified are false skip if r [n (m)] = all 0 010001 dr dc rn tmt m, n * test memory bits, then skip if all bits specified are true skip if m (n) = all 1 110101 dr dc n tmf m, n * test memory bits, then not skip if all bits specified are false skip if m (n) = all 0 110111 dr dc n tmtn m, n * test memory bits, then not skip if all bits specified are true skip if m (n) = not all 1 110100 dr dc n tmfn m, n * test memory bits, then not skip if all bits specified are false skip if m (n) = not all 0 110110 dr dc n skp * skip if carry flag is true skip if (cy) = 1 111111 00 ? 0011 bit judgement instruction skpn * skip if carry flag is false skip if (cy) = 0 111111 01 ? 0011 cal addr2 call subroutine stack (pc) + 1 and pc addr2 1011 addr2 (12 bits) rn return to main routine pc (stack) 111111 10 ? 0011 sub = routne instructions rns return to main routine and skip unconditionally pc (stack) and skip 111111 11 ? 0011 jump instructions jump addr1 jump to address specified pc addr1 10 addr1 (14 bits) di reset imf (note) imf 0 111111 00 ? 0111 ei set imf (note) imf 1 111111 01 ? 0111 intruption instruction rni return to main routine and set imf (note) pc (stack) imf 1 111111 11 ? 0111 note: imf bits is an interruption master permission flag and is arranged on i/o map. ( refer to interruption function)
TC9329FA/fb 2002-02-07 20 machine language (16 bits) instruc -tion group mnemonic skip function function description operation description ic (6 bits) a (2 bits) b (4 bits) c (4 bits) shrc m shift memory bits to right direction with carry 0 (m) b3 (m) b2 (m) b1 (m) b0 (cy) 111111 dr dc 0000 rorc m rotate memory bits to right direction with carry (m) b3 (m) b2 (m) b1 (m) b0 (cy) 111111 dr dc 0001 xch m exchange memory bits mutually (m) b3 ? (m) b0, (m) b2 ? (m) b1 111111 dr dc 0110 dal addr3, r if dal bit = 0 then load program in page 0 to data register if dal bit = 1 then load program memory referring to dal address register to data register (note) data [addr3 + (r)] p in page 0 111110 addr3 (6 bits) rn at p = 0 h, the condition is cpu waiting (soft wait mode) wait p at p = 1 h, expect for clock generator, all function is waiting (hard wait mode) wait at condition p 111111 p ? 0100 ckstp clock generator stop stop clock generator to mode condition 111111 ? ? 0101 other instructions noop no operation ? 111111 ? ? 1111 note: the four low order bits of the program memorys 10-bitr address specified with the dal instruction are addressed indirectly with the contents of the general registerer. note: the excution time for the dalinstruction is two machine cycles note: dalbitsand dal address register (da) is arrenged on i/o map. ( refer to register port item) note: when 1 is set to dal bit and dal instruction is executed, all the operand part becomes invalid and reference address is used for dal address register. to specify 0, 0 to be operand parts as dummy data at this time. r r
TC9329FA/fb 2002-02-07 21 i/o map (in1 (m, c), in2 (m, c), in3 (m, c), out1 (m, c), out2 (m, c), out3 (m, c)) l1 l2 l3 k1 k2 k3 out1 out2 out3 in1 in2 in3 i/o code y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 power control i/o port 1 pull-down i/o port 1 if monitor a/d data i/o port 1 0 hf pw0 pw1 fm pd0 k1 pd2 pd3 -0 -1 -2 -3 busy manual over 0 ad0 ad1 ad2 ad3 -0 -1 -2 -3 programmable counter 1 a/d control i/o port 2 if data 1 a/d data i/o port 2 1 p0 p1 p2 p16 ad sel0 ad sel1 ad sel2 sta -0 -1 -2 -3 f0 f1 f2 f3 ad4 ad5 busy 0 -0 -1 -2 -3 programmable counter 2 serial interface control 1 i/o port 3 if data 2 i/o port 3 2 p4 p5 p6 p7 edge inv - sck /o i - sck sio-on -0 -1 -2 -3 f4 f5 f6 f7 -0 -1 -2 -3 programmable counter 3 serial interface control 2 i/o port 4 if data 3 serial interface monitor i/o port 4 3 p8 p9 p10 p11 sta o i/ - so bit 4 8/ sio select -0 -1 -2 -3 f8 f9 f10 f11 busy count sio f/f 0 -0 -1 -2 -3 programmable counter 4 serial interface output data 1 i/o port 5 if data 4 serial interface input data 1 i/o port 5 4 p12 p13 p14 p15 so0 so1 so2 so3 -0 -1 -2 -3 f12 f13 f14 f15 si0 si1 si2 si3 -0 -1 -2 -3 reference select programmable counter serial interface output data 2 if data 5 serial interface input data 2 5 r0 r1 r2 p16 so4 so5 so6 so7 f16 f17 f18 f19 si4 si5 si6 si7 if counter control 1 timer reset test port 2 timer 6 2 if1/ pw intr1 if1/ in2 if2/ 2 hz f/f clock ckstp mode #4 2 hz f/f 10 hz 100 hz 0 if counter control 2 interrupt control i/o port 8 interrupt master flag i/o port 8 7 stp sta/ manial g0 g1 pol1 (intr1) pol2 (intr2) ie * -0 -1 -2 -3 hold intr1 intr2 0 imf 0 0 0 -0 -1 -2 -3 mute control interrupt permission flag i/o port 9 mute control interrupt permission flag i/o port 9 8 mute i/o-1 pol hold ef1 (intr1) fe2 (intr2) fe3 (sio) fe4 (timer) -0 -1 -2 -3 mute i/o pol hold ef1 ef2 ef3 ef4 -0 -1 -2 -3 unlock detection do2 control interrupt latch reset unlock detection input port interrupt latch 9 reset pn m0 m1 ilr1 (intr1) ilr2 (intr2) ilr3 (sio) ilr4 (timer) hold pll off control if counter split prescaller in psc ena f/f ena (intr1) in2 il1 il2 il3 il4 buzzr output control 1 timer counter interrupt detection data1 timer counter data 1 a bf0 bf1 bf2 ben id0 id1 id2 id3 dal (data) da ot count up port 1 pull-up ct0 ct1 ct2 ct3 dal 0 0 0 buzzr output control 2 timer counter interrupt detection data2 dal address timer counter data 2 dal address b bm0 bm1 buzr on pol id4 id5 id6 id7 da0 da1 da2 da3 ct4 ct5 ct6 ct7 da0 da1 da2 da3 timer counter control data register 1 data register 1 c ca flag * * * ck0 ck1 gt cr d0 d1 d2 d3 ca flag 0 0 0 d0 d1 d2 d3 g register 1 data select data register 2 g register 1 data select data register 2 d g0 g1 g2 g3 sel1 sel2 sel4 sel8 d4 d5 d6 d7 g0 g1 g2 g3 s1 s2 s3 s4 d4 d5 d6 d7 g register 2 segment data 1/ general purpose output data data register 3 g register 2 data register 3 e g4 g5 * * com1/ot com2/ot com3/ot com4/ot d8 d9 d10 d11 g4 g5 0 0 d8 d9 d10 d11 test port 1 segment data2/ segment io control data register 4 data register 4 f #0 #1 #2 #3 com1 com2 com3 com4 d12 d13 d14 d15 d12 d13 d14 d15 refer to next page
TC9329FA/fb 2002-02-07 22 r l2e l2f l3b k3b out2 out2 out3 in3 i/o l2d y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 y1 y2 y4 y8 s1/ot1~ot4 s13 dal address 1 dal address 1 0 com1 /ot1 com2 /ot2 com3 /ot3 com4 /ot4 com1 com2 com3 com4 da0 da1 da2 da3 da0 da1 da2 da3 s2/ot5~ot8 s14 dal address 2 dal address 2 1 com1 /ot5 com2 /ot6 com3 /ot7 com4 /ot8 com1 com2 com3 com4 da4 da5 da6 da7 da4 da5 da6 da7 s3/ot9~ot12 s15 dal address 3 dal address 3 2 com1 /ot9 com2 /ot10 com3 /ot11 com4 /ot12 com1 com2 com3 com4 da8 da9 da10 da11 da8 da9 da10 da11 s4/ot13~ot14 s16 dal address 4 dal address 4 3 com1 /ot13 com2 /ot14 com3 com4 com1 com2 com3 com4 da12 da13 * * da12 da13 0 0 s5 s17 pulse counter control pulse counter data 4 com1 com2 com3 com4 com1 com2 com3 com4 down pol * * pc0 pc1 pc2 pc3 s6 s18 pulse counter control pulse counter data 5 com1 com2 com3 com4 com1 com2 com3 com4 ctr reset over reset * * pc4 pc5 pc6 pc7 s7 segment/io select osc control pulse counter data 6 com1 com2 com3 com4 s11 s12 s13 s14 ifin cpu select osc on freq select over 0 0 0 s8 segment/io select osc data sio2 decode data 7 com1 com2 com3 com4 s15 s16 s17 s18 osc0 osc1 osc2 osc3 dec0 dec1 dec2 dec3 s9 i/o control 1 sio2 information data 1 8 com1 com2 com3 com4 -0 -1 -2 -3 sio2 data select * inf0 inf1 inf2 inf3 s10 i/o control 2 sio2 information data 2 9 com1 com2 com3 com4 -0 -1 -2 -3 inf4 inf5 inf6 inf7 s11 i/o control 4 sio2 information data 3 a com1 com2 com3 com4 -0 -1 -2 -3 vreg on * * * inf8 inf9 inf110 inf11 s12 sio2 information data 4 b com1 com2 com3 com4 inf12 inf13 inf14 inf15 sio2 offset/check data 1 c 0: offset data 1: check data ofs0 /chk0 ofs1 /chk1 ofs2 /chk2 ofs3 /chk3 sio2 offset/check data 2 d ofs4 /chk4 ofs5 /chk5 ofs6 /chk6 ofs7 /chk7 sio2 offset/check data 3 e ofs8 /chk8 ofs9 /chk9 0 0 lcd control f disp off lcd off otb-up * r kl2d data select s1 s2 s4 s8
TC9329FA/fb 2002-02-07 23     i/o map nnnnnnnnnnnnnnennvnwnnln nnnwnnlnsnnnpbnn-n nnnnnnnnnnnnnnnnen-nnnnn nnnnnennnnnnnnennnnnnn nnnnnn-nnb>nnnnnnnnnn -nn nwnnlnnnnnnnnnnwnnlnnnnn n-n note: the ports indicatedc by the angled lines on the i/o map do not actually exist within the device. the contents of other ports and data memories are not affect ed when data is output to a non-existent output port with the execution of the output instruction. the data loaded from data memories when a non-existent input port has been specified with the execution of an input instruction becomes 1. note: the outout ports marked with an asterisk ( * ) on the i/o map are not used. data output to these ports assume the dont cares status. note: the y1 contents of the ports expressed in 4 bits correspond to the data memory datas low order bit and the y8 contents correspond to the hig order bits. r rrrrrrzl?rrrr'wrkrrrrrr[r r r r oh4r rrrrrrrrrrjrrhrrr?frwr r rrrrrrr [ k/l ] m n ( o ) contents of the selection port (indirectly specified data, 0-f [hex]) i/o instructions operand cn (0~f [hex]) the six i/o instructions are coded with the digits 1 to 3 i/o instruction out1 out2 out3 in1 in2 in3 m 1 2 3 1 2 3 indicates the input/output port k: input port (in1~in3 instruction) l: output port (out1~out3 instruciton)
TC9329FA/fb 2002-02-07 24     clock generator nnnnnnnnnnnnnnnnnn nnnn-n n nn>nnnnnnnnnnnbnnnn nnnn-n n 1. crystal oscillation circuit 5vnnnnnnnnnnnnv>nsnnn -n>nnnnnnnnn>nnnnnn n>nnnnnnnnnn-n n n n note: it is necessary to use a crystal resonator with a low ci value and favorable start-up characteristics. please adjust and determine external resistance and the constant of a capacitor as the actually used crystal resonator. 2. cr vco nbnnnn>nnnnnnnnnnbnnn nnnnn-nnnnennnnn>nnnnn n wnnn>nnnn-n nxnnnnn>nnnn5vnnnnn>nnnnw>nn nnnnnnn-nnnnnnnv s nnwnnv-s>nnn nnnnnwehnnwepnnnnnnn-n n nnnnnn>nnnnnnnnnn>nn nnnn>nnnnnnnnnnbnnn -nnn>nnnnnnnnnnn-n n nnnnnnnnnn>nnnnnnnn nnnbn>nnnnnnnnnnn>nnnn nnnnnnn-n>nnnnnnn nnn ? + ? ? ? = = = = 57 (gnd) 56 (xin) 55 (xout) 54 co x'tal ci r xtal = 75 khz ci = 10 pf, co = 10 pf, r = 0 ? (typ.)
TC9329FA/fb 2002-02-07 25 note: oscillation frequency is the frequency of a standard product and this frequency varies with power supply voltage and a product. moreover, the frequency range which can be set up is from 0.8 to 1.2 mhz. r 3. composition of a clock generator y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 data select y1 y2 y4 y8 l3b osc control 6 ifin cpu select osc on freq select change of cr oscillation dividing frequency 0: f cr /2 1: f cr /4 control for cr vco operation..... 0: cr vco stop 1: cr vco operation selection of cpu clock................ 0: use for crystal resonator frequency clock 1: use for inside oscillation frequency clock connection control to if counte r of cr oscillation clock 0: if input operation mode 1: internal oscillate frequency calculation mode y1 y2 y4 y8 l3b osc data 7 osc0 osc1 osc2 osc3 selection of the internal resistance of cr vco osc0 osc1 osc2 osc3 resistance (typ.) oscillation frequency (typ.) 0 0 0 0 20 k ? f cr = 1.8 mhz (2 k ? interval) 1 0 0 0 36 k ? f cr = 1.0 mhz (2 k ? interval) 1 1 1 1 50 k ? f cr = 0.64 mhz 56 xin 55 xout (circumference hardware operation clock) 75 khz osc0~osc3 oscon cpu timing clock cpu timing generator 1/2 1/2 crystal oscillation circuit cr oscillation circuit freq select cpu select to if counter and mute terminal r
TC9329FA/fb 2002-02-07 26     system reset nnnnnnnn nnnnnnnnnnn nxnn note: a power-on reset function can be forbidden with al switch. please specify power-on reset prohibition and use in es order request sheet. in case of forbidden the powe-on reset function, reset with a reset terminal. note: the lcd common output and the segument output will be fixed at ther l level during system reset and during the subsequent stand-by period. note: inside shown in the above-mentioned i/o map the port that is not initialized after system reset, it is necessary to initialize port by the program. the inside port on the i/o map, the port or bit mark on i/o map is set to 0 after system reset and marks port or bit is set to 1. no mark port or bit is unfixed. r r r r note: when power supply voltage may become below 0.9 v, setup to the clock stop mode or operation to the reset function. the cpu operations are reset when a power supply voltage is re-apply from 0.3 to 0.6 v. (power-on reset) l2f out2 i/o l2d y1 y2 y4 y8 i/o control 1 8 -0 -1 -2 -3 l1 out1 i/o code y1 y2 y4 y8 reference select programmable counter 5 r0 r1 r2 p16 after system reset, this port is set to 0. after system reset, this port is set to 1. after system reset, this bi t is unfixed. cpu operation v dd terminal hol reset terminal gnd xout terminal internal reset signal reset stand-by ( about 100 ms ) cpu operation stand-by (about100 ms) cpu operation stand-by ( about100 ms ) a crystal oscillator stops during the reset from a reset terminal. (note) (note)
TC9329FA/fb 2002-02-07 27 ? back-up mode nnnnnn>nnnnbnnnn-n n 1. clock stop mode nnnnnnnnnnnnnnnn nnnnnnnnnnnvnwn = ?? mode-0 by setting this mode, the clock stop mode is assumed if the ckstp instruction is executed when the hold terminal is in the ?l? level. the same operations as the noop instruction will be assumed if the ckstp instruction is executed when the hold terminal is in the ?h? level. ?? mode-1 by setting this mode, the clock stop mode is assumed when the ckstp instruction is executed regardless of the hold terminal level. note: pll will assume the off status during ckstpinstruction execution. note: before the execution of the clock stop instruction, be sure to access hold input terminal and i/o port 1 input port and rest the 2 hzf/f. if without execution the instruction and execute the clock stop mode, it may not go into mode. r ou4r krrrrr r ?? mode-0 the clock stop mode is cancelled when specified in this mode by changing the ?h? level of the hold terminal or the input status of i/o port (p1-0~3) specified in the input port. ?? mode-1 the clock stop mode is cancelled when specified in this mode by changing the hold terminal or the input status of i/o port (p1-0~3) specified in the input port. y1 y2 y4 y8 l26 ckstp mode 0: mode-0 1: mode-1
TC9329FA/fb 2002-02-07 28 oe4r krrrr r ?? mode-0 (the clock stop mode is assumed when the ckstp instruction is executed when the hold input is in the ?l? level.) ?? mode-1 (the clock stop mode is assumed whenever the ckstp instruction is executed.) (4) example of a circuit (example of a mode-0 circuit) 0.1 f 34 27 39 1 m ? 1 k ? 0.1 f 470 f hold v dd v dd power example of battery back-up circuit 0.1 f 34 27 39 1 m ? 1 k ? 0.1 f 4700 f hold v dd v dd power example of a condenser back-up circuit cpu o p eration high impedance clock stop cpu operation noop operation ckstp instruction execution noop operation xout terminal ckstp instruction stand-by (about 100 ms) hold terminal cpu operation high impedance clock stop ckstp instruction execution hold terminal xout terminal ckstp instruction ckstp instruction execution stand-by ( about 100 ms ) cpu operation clock stop
TC9329FA/fb 2002-02-07 29 2. wait mode nnnnn>nnnnnnnn nnnn-nnnnnnnnnnnn nnnnn-nnnnnnnnnnn nnnnnnn-nnnnnnnnnn nnnnnnbn-n n vwsn nnn nnnnnnnnnnnnnnnn = note: current consumption will differ in accordance with execution time of cpu operation. r ou4r 5jrzrr rrrryrrrrrrryrrrrrr rrrzrrrrr = note: the output port is maintains during the hard wait mode. all lcd display output terminal are fixed l level and voltage doubler curcuit (v db ), voltage regular cuicuit for lcd (v ee ) and voltage doubler curcuit for lcd (v lcd ) are operatinns. r oe4r rrr rrrrrrrzrrrwr note: the pll off status will be assumed during the wait mode. r oq4r rrrr rrrrrrrrrr[r ?? when the input status of the hold terminal changes. ?? when the input status of the i/o port specified in the input port (p1-0~3) changes. ?? when the 2 hz timer f/f is set as ?1? (only with the soft wait mode) 3. hold ? ? ? ? input port n n n n nnnnnnn-nnnnnnnwnnn nn = = note: hold input terminal is used as intr2 terminal. hold input port and intr2 input is outputted the same data. r 0: input l level 1: input h level y1 y2 y4 y8 k17 hold (intr1) (intr2) 0 0: do not control of pll off with a hold terminal 1: pll off mode with l level of hold terminal y1 y2 y4 y8 l39 hold pll off control
TC9329FA/fb 2002-02-07 30     interrupt function nnnnnnnnnwn>nhn>n n>nnn-n nnnn>nnnnnnnn n>nnnnn-nnnnnnnnnnnn n>nnnnnnnn>nnbnnnn n-nnnnnnnnnnnnn>nnn nnnnn>nnbnnnnn-nnn nnnnnnnnnnnnnnnnnnn n-nnnn>nnnnnnnnnn -n n>nwnnnhnnnnnwnn n-n n 1. interrupt control circuit nnnnnnnn>nnn>nnnn nn-nnnnnnnnhehn-n n vwsn nnn nnnnnnnnnnnnnn nnn-nnnnnnnennn nnnn-nnnnnnnnnnn ennn-nnnnnnnw>nnnnn xnnn>nnn-nnnnnnnnnn ennn-nnnnnnnw>nnnnnnn x>nnnnnn-n nnnnnnnhehnnnnn = = y1 y2 y4 y8 lk28 ef1 ef2 ef3 ef4 ef1 kkk intr1 terminal ef2 kkk intr2 terminal ef3 kkk serial interface ef4 kkk 8 bits timer counter an individual enable flag 0 kkk prohibition 1 kkk enable its reset 0 when it is able to s received interrupt or executed di instruction. its is set 1 by interrupt return instruction or ei instruction execution. y1 y2 y4 y8 k27 imf 0 0 0 master enable flag
TC9329FA/fb 2002-02-07 31 ou4rzrr zrzrryrrrrrrfwr zrzrryrzrrrrrrkrrrrrr zrwrzrzrrrrryrzrrrrrrnr wr zrrrrrrrrrrrrrrrr wrrryrrrrrrfrrrnyrrrrrr rrrwr r r r oe4r zrrrr zrrrrrrrrrrrrrrr rrrrrrrrrrrrwrr rrrrrrrrrwr r r priority interrupt factor vector address 1 intr1 terminal 0001h 2 intr2 terminal 0002h 3 serial interface 0003h 4 timer counter 0004h r y1 y2 y4 y8 l29 ilr1 ilr2 ilr3 ilr4 interrupt latch reset if its set to 1, interrupt latch is reset to 0. 0: interrupt nothing 1: interrupt existence y1 y2 y4 y8 k29 il1 il2 il3 il4 il1 kkk intr1 terminal il2 kkk intr2 terminal il3 kkk serial interface il4 kkk 8 bits timer counter interrupt latch data if the interrupt request, its set to 1, receiving interrupt, its reset to 0.
TC9329FA/fb 2002-02-07 32 2. interrupt receptionist processing nnnnnnnnnnnxnnnnnn nnnnn-nnnnnnn-n ?? each around hardware is output each interrupt signal and set ?1? to interrupt latch if interrupt conditions are fulfilled. ?? interrupt latch of interrupt factor received resets to ?0? if interrupt enable flag and the master enable flag corresponding to each interrupt factor set to ?1? ?? interrupt master enable flag resets to ?0? and interrupt is forbidden. ?? the contents of a stack pointer are done -1. ?? the contents of program counter (pc) evacuates to stack register. at this time, the contents of a program become the following address, which permitted the next address or next interrupt at the time of interrupt being received. ?? the contents of vector address corresponding to received interrupt transfers to program counter. ?? executing of the contents of vector address. these execution ? ~ ? is executed during 1 instruction cycle. the instruction cycle is called ?interrupt cycle?. note: stack pointer is the pointer for which specified the 8 level stack register. reference of the contents of a stack pointer cannot be performed. r in case of interrupt enable period in case of interrupt reservation period instruction ei instruc -tion set 1 to individual enable flag interrup -tion cycle imf (master enable flag) interrupt signal interrupt signal il (interrupt latch) ef (individual enable flag) one instruction cycle interrupt enable period interrupt reception interrupt processing routine instruction ei instruction set 1 to individual enable flag interrupt cycle imf (master enable flag) interrupt signal interrupt signal il (interrupt latch) ef (individual enable flag) interrupt reservation period interrupt reception interrupt processing routine
TC9329FA/fb 2002-02-07 33 3. return processing from interrupt processing routine nnnnnnnnnnnnnn>n nnnnnnnnn-n n nnnnnnnnnnn-n n ?? the contents of address stack, which is specified with a stack pointer, are returned to a program counter. ?? set ?1? to interrupt master enable and changes into a enable state. ?? the contents of a stack pointer are done + 4. interrupt processing routine nnnnnnnnnnnnnn nnnnnnnnnnn-n>nnnn >nnnnnnnnnn>nnnnnnnnnnn nnnn-nnn>nnnnnnnnn nnnnnnnn>nnn>n-nnnn nnnnnnn-n n vwsnnn nnnn>nnnnnnnn-nnnn nnnnn>nnnnnnnnvsn-n nnnnnnnn-nnn>nnnnnnn nnnnnnnnnwnnnnnnnnnnen-n nnnnnnnnnnnnnnnnn nnnnnnnn-n>nn>nnnn nnnnn>nnnnnnnnbnnn nn n vhsnnn nnnnnnnnbnn-n nnnn>nnnnnnnnx>nnn>n nnnnnnnnnnw-n nn>nnnnnnnnnnn-n n 5. multiplex interrupt nnnnnnnnnnn-n n nnnn>nnnnnnnnnnnnnnn nnnn-nnnnnnnnnnn-n n main routine b main d a b c d c interrupt level 1 interrupt level 2 interrupt level 3 interrupt level 4 th e examp l e o f mu lti p l ex i n t errup t
TC9329FA/fb 2002-02-07 34 krrrrrrrrrrwr r ?? the priority of interrupt factor ?? restriction of the address stack level used at the time of interrupt request issue ?? shunting processing of a carry flag, a data memory, etc. (1) priority of interrupt factor the priority of multiplex interrupt is a < < < <
TC9329FA/fb 2002-02-07 35     external interrupt and timer counter function nnnnnnwnnnhn-nnnnnn nnnnnnnnnnn-n nnnbnnnnnnnnnnnn-nnn nnnnnnnnnnnvw>nhs-n n 1. external interrupt function nnnnnnwnnnhnnnnnnnnn nnnnn-nnnnn>nnnn5vnnnnnn nnnnnnnnnnnnnn-nnnnnnn nbnnnnnnnnn-nnnnnn nnnnnnnn-n>nnnnnw-n n nnnnnhnnnnn = = note: interrupt request may be published if edge is changed by pol bits. for this reason, when changing edge, it changes after forbidding interrupt, and interrupt latch is reset, and it returns to usual operation. note: intr1 terminal and intr2 terminal are used also ifin1 terminal and hold terminal. when only intr1 terminal uses this function, intr if1/ bits ( l16) is setup 0. hold input and intr2 input is outputted the same. r 0: input l level 1: input h level y1 y2 y4 y8 k17 ( hold ) intr1 intr2 o the input state of each y1 y2 y4 y8 l27 pol1 pol2 ie * intr1 intr2 edge select 8 bitstimerandcontrol external interrupt operation enable 0: prohibition 1: enable usually, the bit is set 1. 1: rising edge 0: falling edge reduce less than 13.3 s pulse more than 40 s regards it as a signal { 0!?

+
!1

= /
/!&
!1
$
!

/!
! !//+@

$
!
#!  
!


1!
!1
!
/
1!@
!

!*
9
1
= /
 #  +!
!
! *


)


/!&
#/
!1
+


#+
!
! *
!  
4 +@@
%/
+
!1
$
!
?
!
,

+
?
!
,
1//
+

TC9329FA/fb 2002-02-07 36 2. timer counter function nnnnnbnn>nnn>nnnn nnn-n nnnnnnnnnnn>nnnnn nnnnnnnnnnnnnnbnnn n-nnnnnnnnnnnnn>nnnnn nnnnnnnn-nnnnn>nnnnnwehn nnnnnnwn-n n vwsn nnnn nnnnnnnnn>nnnnn-n n note: its necesarry to set 1 to ie bit when it uses tmer counter. note: set 0 to intr if1/ bits ( l16) when intr1 terminal is used as timer clock. l2a y1 y2 y4 y8 id0 id1 id2 id3 timer counter coincidence data l2b y1 y2 y4 y8 id4 id5 id6 id7 a coincidence pulse will be outputted if in agreement with timer counter. k2a y1 y2 y4 y8 id0 id1 id2 id3 timer counter data k2b y1 y2 y4 y8 id4 id5 id6 id7 timer counter data is read into data memory as a binary data. ck1 ck0 timer clock 0 0 intr1 terminal input 0 1 intr2 terminal input 1 0 instruction cycle clock (40 s) 1 1 1 khz 0: count by raising edge 1: count by falling edge select clock edge by pol bit y1 y2 y4 y8 l2c ck0 ck1 gt cr select of timer clock timer counter reset kkk whenever sets 1, counter is reset. enable counter reset by coincidence pulse. r 0: enable 1: prohibition
TC9329FA/fb 2002-02-07 37 ou4rrr rrrrrwrzrrrrrrrrrr rrwrrryrrrrrrfr5rrrrrryrnrrr rrnrorrr4rrkrwr r rrrr r rr = idn 00h 01h 02h 03h idn 00h 01h 02h 03h id (n ? 1) timer clock timer data coincidence pulse request for interrupt and reset timer counter. it is used by inputting more than 40 s cycle at the time of an external clock input.
TC9329FA/fb 2002-02-07 38     internal interrupt and interrupt function nnnnnnnnn-n n n 1. interrupt of timer counter nnnnnnnnn>nnnnnnn -nnnnnnnnnn-n n 2. interrupt of serial interface nnnnnnnnnnnnnnn-n nnnnnnnnn-n n n 3. interruption block configuration n n decoder priority determination?vector address generate circuit vector address noise canceller noise canceller ilr1 s r il1 ef1 ilr2 s r il2 ef2 ilr3 s r il3 ef3 ilr4 s r il4 ef4 selector 35 intr1 (ifin1) pol1 34 intr2 ( hold ) pol2 8 bits binary counter r coincidence register (id0~id7) imf s r la di instruction rni instruction gt ei instruction cr interrupt receiving signal serial interface interrupt ct0~ct7 coincidence p ulse 75 khz hold ck0 ck1 1 khz instruction cycle clock intr2 intr1
TC9329FA/fb 2002-02-07 39     programmable counter the programmable counter consists of two modulus pore-scaler, a 4-bit + 13 bit programmable counter and a port to control these elements. the programmable counter controls the on/off functions for the contents of the reference port and hold input status. by using external pre-scaler (td6134af/td7101/04f) or 1 chip tuner ic that is built-in for 1/16 pre-scaler (ta2142fn), it?s possible to reduce the emission from the tuner portion and consumption current. 1. programmable counter control port this port is controlling for division frequency, division method and operating current and gain of pre-scaler. the division method and power control of pre-scaler are accessed with the out1 instruction for which [cn = 0h] has been specified in the operand. the division frequency setting is accessed with the out1 instruction for which [cn = 1~5h] has been specified and setting is by writing in the p16 bit ( l15). all data between p0 to p16 are updated when p16 is set. it is therefore necessary to access p16 without fail even when updating only certain items of data and to perform setting as the final process. psc output permission setup is used at the time of connection of external pre-scaler. in the setup to pre-scaler if input, if the bit is set to ?1?, a programmable counter stops and pre-scaler 1/15 and 16 are fixed to 16 division. usually, consisting of pll, the bit is set to ?0?. ( refer if counter item) y1 y2 y4 y8 l10 hf pw0 pw1 fm division method setting power control a setup of the number of division of programmable counter l11 y1 y2 y4 y8 p0 p1 p2 p3 l12 y1 y2 y4 y8 p4 p5 p6 p7 l13 y1 y2 y4 y8 p8 p9 p10 p11 l14 y1 y2 y4 y8 p12 p13 p14 p15 l15 y1 y2 y4 y8 p16 lsb msb y1 y2 y4 y8 l39 prescaller in psc ena psc output permission setup 0: regular pll composition 1: pre-scaler division output is inputted to if counter. pre-scaler if counter input setup 0: psc output prohibition 1: psc output permission
TC9329FA/fb 2002-02-07 40 2. division method setting the pulse swallow method or direct method are selected with the hf and fm bit. the power control bits (pw0/1) are controlled the gain of amplifier and pre-scaler (1/2 + 1/15?16). although the power bit in each mode has five methods, set up it as shown in a table. by using 1 chip tuner ic that is built-in for 1/16 pre-scaler (ta2142fn), set up to the lf mode and set the division value after 1/16 division frequency. mode hf pw0 pw1 fm division method example of receiving band operationf requency range division number (note) lf 0 1 0 0 direct division method mw/lw 0.5~8 mhz hf1 1 1 0 0 3~30 mhz hf2 1 0 1 0 pulse swallow method (1/15?16) sw 1~10 mhz n fm 1 1 0 1 fm 60~130 mhz vhf 1 0 1 1 pulse swallow method (1/2 + 1/15?16) tv (1 ch~12 ch) 80~230 mhz 2?n note: ?n? represents the number of divisions programmed. note: do not perform a setup except the above-mentioned power control setup. there are not normal operation such as flowing over-current or unlocked pll etc.. note: a local oscillation input is common to each mode, and is altogether inputted into oscin terminal. 3. frequency division number setting the frequency division number for the programmable counter is set in bits p0 to p16 in binary. ? pulse swallow method (17 bit) ? direct division method (13 bit) p16 p15 p14 p13 p12 p11 p10 p9 p8 p7 p6 p5 p4 p3 p2 p1 p0 2 16 2 0 lsb msb the range of frequency division number setting (n = 210h~1ffffh (528~131071) p16 p15 p14 p13 p12 p11 p10 p9 p8 p7 p6 p5 p4 p3 p2 p1 p0 2 12 2 0 don?t care lsb msb the range of frequency division number setting (n = 10h~1fffh (16~8191)
TC9329FA/fb 2002-02-07 41 4. psc output permission setting in case of using the external pre-sccaler (td6134af/td7101/04f), psc output permission bit is setup to ?1?. at this time, a swallow counter will be operating and pre-scaler will be in a stop state, and psc output is outputted p2-3 terminal. a division method is set as lf mode, and am vco input and an external pre-scaler output are changed and inputted into amin input terminal. p3 terminal is used by setting it as an output port. 5. programmable counter circuit configuration ? pulse swallow method circuit configuration this circuit consists of amplifier, two 1/15?16 modulus pre-scalers, the 4-bit swallow counter and a 13-bit binary programmable counter. a 1/2 frequency divider is added to the front stage of the pre-scaler when in the vhf/fm mode. the example of an external pre-scaler connection circuit TC9329FA/fb psc vhfin 7 3 53 38 psc oscin 5 out 2 fmin 0.001 f 0.001 f 0.01 f am vco fm/tv vco td6134af 0.01 f 38 oscin amplifier 1/16 1/15 1/15?16 1/2 4 bit swallow counter 13 bit programmable counter p4~p16 p0~p3 pre-set pw0/1 to the phase comparator
TC9329FA/fb 2002-02-07 42 ? direct division method circuit configuration the pre-scaler is not required if this is selected, and instead, the13-bit programmable counter is used. note: oscin terminal has been fitted into the amplifier, and small amplitued possible by linking them to a condenser. the input is high impedance when pll is in the off mode. vco input serves as each of operation mode common terminal. note: if it becomes pll off-mode, all programmable counter parts will be stopped. the contents of each control port are held at this time.     reference frequency divider the reference frequency divider divides the oscillation frequency of the external 75 khz crystal and generates the following seven types of pll reference frequency signals; 1 khz, 3 khz, 3.125 khz, 5 khz, 6.25 khz, 12.5 khz and 25 khz. these signals are selected with reference port data. the selected signal is supplied as a reference frequency for the phase comparator as described below. also, the pll is switched on and off with the contents of the reference port. 1. reference port the reference port is an internal port for selecting the seven reference frequency signals. this port is accessed with the out1 instruction for which [cn = 5h] has been specified in the operand ( l15). operations for the programmable counter, the if counter and reference counter are suspended and the pll assumes the off mode when the contents of the reference port are all ?1?. as the frequency division setting data for the programmable counter is updated when the reference port is set, it is necessary to set the frequency division number of the programmable counter prior to setting the reference port. 38 oscin am p lifier p4~p16 pre-set pw0/1 to the phase comparator 13-bit programmable counter y1 y2 y4 y8 l15 r0 r1 r2 r2 r1 r0 reference frequency 0 0 0 0 1 khz 0 0 1 1 3 khz 0 1 0 2 3.125 khz 0 1 1 3 5 khz 1 0 0 4 6.25 khz 1 0 1 5 12.5 khz 1 1 0 6 25 khz 1 1 1 7 pll off mode reference frequency selection code
TC9329FA/fb 2002-02-07 43     phase comparator and lock detection port the phase comparator compares the difference in phasing between the reference frequency signal supplied from the reference frequency divider and frequency division output of the programmable counter and outputs the result. if then controls the vco (voltage control oscillator) via a low pass filter in order to ensure that the two frequency signals and the phase difference match. in order to use a phase comparison machine and a charge pump output are constant voltage v reg potential (1.5 v), it?s possible to stabilized phase comparison even if v dd potential was set to 0.9 v. the do terminal can also be used as a general-purpose output with the do control port. 1. do control port and the unlock detection port y1 y2 y4 y8 l3b a vreg on * * * input port y1 y2 y4 y8 do control l19 unlock reset pn m0 m1 set up do output do terminal output state setup set to ?0? unlock f/f and unlock enable are reset whenever the data is set at ?1?. y1 y2 y4 y8 unlock k19 f/f ena (intr1) in2 note: an input state is read for if counter input combination terminal from this port at the time of an input port setup. intr1 data turns into the same data as intr1 port of an interruption item.1 0: input terminal ?l? level 1: input terminal ?h? level y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 unlock enable 0: pll unlock detection stand-by 1: pll unlock detection enabled 0: pll lock status 1: pll unlock status 1.5 v constant voltage operation control of v reg terminal output data select 0: constant voltage off 1: constant voltage on unlock detection bit m1 m0 do output status 0 0 do output 0 1 ?l? level 1 0 ?h? level 1 1 ?hz?
TC9329FA/fb 2002-02-07 44 m0 and m1 bit of do control ports are perform a general-purpose output port setup of do output, and a setup of high impedance. the power supply of a phase comparison and a charge pump output circuit is using v reg terminal. the v reg terminal is outputted constant voltage of 1.5 v and ?h? level of charge pump output is outputted v reg terminal. for a reason, phase comparison operation power supply voltage was stabilized by 0.9 v is possible. the operation control of v reg constant voltage is controlled by v reg on bit ( l3ba), if the bit is set ?0?, the v reg terminal potential is outputted v dd level and set ?1?, it becomes 1.5 v constant voltage potential for this reason, it is set ?1? at the time of pll on mode and set ?0? at the time of pll off-mode. unlock f/f detects the phase difference of a programmable counter division output and reference frequency to the timing from which about 180 degrees of phases shifted. when a phase does not suit at this time (that is unlock status), unlock f/f is set. the unlock f/f status is reset whenever the unlock reset bit is set as ?1?. it is necessary to access to unlock f/f after establishing more time than is required for the reference frequency cycle after the unlock f/f has been reset in order to detect the phase difference with the reference frequency cycle. it is for this purpose that the enable bit has been made available, but the unlock f/f must not be accessed until after it has been confirmed that the unlock enable has been set at ?1?. note: when pll off-mode is set up at the time of do output setup, the toutput of this terminal becomes as high impedance. in do terminal, when pll off-mode or the clock stop mode is set up at the time of a general-purpose output port setup, this output state is held. 2. phase comparator and unlock port timing reference frequency programmable counter output do output phase difference lock detection strobe unlock reset execution unlock f/f unlock enable high impedance ?h? level (v reg ) ?l? level (gnd)
TC9329FA/fb 2002-02-07 45 3. phase comparator and the unlock port circuit configuration note: at the time of pll on mode, v reg on bit is setup ?1? and pll off mode, set up ?0?. note: the filter circuits illustrated in the above diagrams are for reference purposes only. it is necessary to examine the system band configration and characteristic and design actual circuits in accordance with requirements. 40 41 0.47 f (typ.) v reg do/ot fn/vhf/am vco r2 lpf c1 r1 example of low pass filter circuit ( for reference ) to the vco variable 1 k ? 2.2 k ? v cc 0.01 f 1 f 4.7 k ? 40 do/ot dc-dc converter 100 k ? 0.01 f 56 k ? 1 k ? example of an active low pass filter circuit ( for reference ) 40 phase comparator v reg do/ot v reg m1, m0 bit unloc k reset v reg on 41 constant voltage circuit v db (v dd 2 doubler power supply) unlock enable unlock f/f reference frequency programmable counter outpu t decoder
TC9329FA/fb 2002-02-07 46     if counter the if counter is 20-bit general-purpose if counter that calculates fm and am intermediate frequencies (if) during auto-tuning and can be used for detecting auto-stop signals, etc. vco of an analog tuner is measured and detection of received frequency and detection of cr oscillation frequency can be performed. 1. if counter control port and data port note: at the time of an input port setup, the terminal becomes cmos input type and be able to detect frequency by if counter. note: when a pre-scaler input is set as if counter input, at the time of a setup of a pulse-swallow system, pre-scsler;1/15?16 are fixed to 16 division, and this frequency is inputted into if counter. note: when a division operation setup of the if counter is carried out, the counter of 8 bits of higher ranks is inputted from intr2 terminal. however, only 8 bits of this higher rank cannot perform a gate setup by the auto mode. reset of this counter is reset by setting up ?1? to stp sta/ bit. y1 y2 y4 y8 l39 if counter split prescaller in oscin pre-scaler input setup at if counter 0: set ifin terminal input 1: set oscin terminal input if counter division o p eration setu p 0: if counter 20 bit operation 1: inputs into 8 bits of if counter higher ranks from intr2 terminal. y1 y2 y4 y8 l17 stp sta/ manual g0 g1 selection of the gate time for frequency measurements (measurement time) g1 g0 gate time 0 0 1 ms 0 1 4 ms 1 0 16 ms 1 1 64 ms frequency measurements automatic/manual mode switching bit 0: automatic mode (measurement is performed with the above-mentioned gate time when in the automatic mode) 1: manual mode (starts/stops measurements with the stp sta/ bits) if counter start/stop control bit 0: counter stop 1: counter start y1 y2 y4 y8 l16 2 if1/ pw 1 intr if1/ in2 if2/ set if amplifier gain set up ?0? selection of if input /input port 0: set input port 1: set if input port selection if input 0: set ifin2 input 1: set ifin1 input
TC9329FA/fb 2002-02-07 47 note: when it is set as if input, in pll off-mode, if input amplifier is turned off in pll-off mode. in using if counter in pll off-mode, it sets it as an input port (cmos input). note: the input amplifier un-chosen by 2 if1/ bit. if input amplifier turns off, this input will serve as high impedance. (1) if counter automatic mode a setup in the auto mode of if counter is set ?0? to manual bit and gate time is set up according to the frequency band to measure. if the stp sta/ is set ?1?, operation of if counter will be started and the set-up clock in gate time will be inputted, and this number of input pulses is counted and it ends. an end of the calculation of if counter can be judged by referring to busy bit. when more 2 20 pulses are inputted for a total numerical value, over bit is set to ?1?. busy bit and over bit are judged ?0? and the frequency inputted can be measured by taking in if data of f0-f19. (2) if counter manual mode by internal time base (10 hz etc.), it is used when gate time is controlled and it measures frequency. the manual mode is set ?1? to manual bit. at this time, a gate time setup serves as don't care. in stp sta/ bit is set to ?1?, it starts calculation. in stp sta/ bit is set to ?0?, it will end and calculation will take in data by the binary. (3) an input setup and division setup of if counter usually, intermediate frequency (if) measurement is inputted into ifin1 or ifin2 terminal input, and measures this frequency. these terminals contain input amplifier and small-size width operation is possible. in addition, the following setup is possible to the input to if counter, and use it for it according to specification. 2 if1/ 1 intr if1/ in2 if2/ if counter split prescaller in ifin ( l3b6:y1) if input setup 1 1 * 0 0 0 ifin1 input (amplifier operation) 1 0 * 0 0 0 intr1 (ifin1) input (cmos input) 0 * 1 0 0 0 ifin2 input (amplifier operation) 0 * 0 0 0 0 in2 (ifin2) input (cmos input) vhf mode (32 divided frequency) (note) fm mode (32 divided frequency) (note) hf1/2 mode (16divided frequency) (note) * * * 0 1 0 oscin input lf mode (inputted frequency) (note) * * * 0 1 1 cr oscillation frequency (f cr ) * * * 1 * * inputted from ) hold ( pctrin terminal only 8 bits only of higher ranks. note: refer to the programmable counter item for the input frequency range at the time of pre-scaler input setup. 0: if counter calculation value < = 2 20 ? 1 1: if counter calculation value > = 2 20 (overflow status) 0: if counter automatic mode 1: if counter manual mode y1 y2 y4 y8 k10 busy manual over 0 overflow detection operation mode 0: if counter calculation ended 1: if counter calculation in progress o p eration monitor if counter data k11 y1 y2 y4 y8 f0 f1 f2 f3 k12 y1 y2 y4 y8 f4 f5 f6 f7 k13 y1 y2 y4 y8 f8 f9 f10 f11 k14 y1 y2 y4 y8 f12 f13 f14 f15 k15 y1 y2 y4 y8 f16 f17 f18 f19 lsb msb 2 0 2 19
TC9329FA/fb 2002-02-07 48 2. if counter circuit configuration the if counter consists of the input amplifier, the gate time control circuit and the 12 + 8 bit binary counter. the clock of oscin pre-scaler and cr oscillation clock can be inputted as an if counter. note: all the binary counters of if counter operate in a standup. note: when inputting oscin input into if counter, dividing frequency of pre-scaler ;1/15?16 are fixed to 1/16. for this reason, in vhf/fm mode, it becomes in 1/32 and hf mode is 1/16. in lf mode, the direct input of the osc frequency can be done at if counter. if counter input data set to stp sta/ bi t busy bit 1 khz gate binary counter input ?1? the example of if counter auto mode operation timing 38 oscin 0.01 f amplifier 1/15?16 1/2 gate time control circuit f0~f11 to programmable counter pw0/1 1 intr if1/ pw 35 ifin1 0.01 f 36 ifin2 0.01 f 12 bit binary counter f12~f19 8 bit binary counter over over psc cr oscillation circuit 34 stp sta/ prescaller in if counter split f cr prescallerin, ifin in2 if2/ in2 in1 2 if1/ 1 khz pctrin manual g0 g1 gate hold
TC9329FA/fb 2002-02-07 49     lcd driver the lcd driver uses the 1/4 duty and 1/2 bias drive method (62.5 hz frame frequency). the common output outputs the v lcd , v lcd /2 (v ee ) and the gnd electrical potential, and the segment output outputs the v lcd and gnd electrical potential. a combination of four common outputs and 18 segment outputs enables a maximum of 72 segments to be illuminated. the s11 to s18 segment output for lcd river are also used as the i/o port, after system reset is set as an i/o port, and can perform a change of an i/o port and a segment output per 1 bit. all lcd output terminals (com1-s14) can be changed to an output port. the lcd driver is built-in a constant voltage circuit (v ee = 1.5 v) for display purposes and a voltage doubler circuit (v lcd = 3.0 v), the constant voltage circuit for display is used as for twice doubler voltage (v db ) is used. for this reason, lcd display stabilized even if power supply voltage was set to 0.9 v is possible. 1. lcd driver port note: if disp off-bit is set ?1?, common output and a segment output.are outputted at ?l? a level. note: segment data controls lighting/putting out lights of the segment corresponding to a common output and a segment output. note: at the time of clock stop mode and about 100 ms after system reset, ball the common output and segment output is fixed at ?l? level. y1 y2 y4 y8 s15 s16 s17 s18 7 segment /io select y1 y2 y4 y8 s11 s12 s13 s14 6 segment /io select com1 com2 com3 com4 5 s18 com1 com2 com3 com4 b s12 change for segment and i/o port 0: i/o port 1: segment output lcd display off control bit 0: all lcd display illuminated 1: all lcd display extinguished lcd off control bit 0: lcd output setting 1: output port setting f disp off lcd off otb -up * y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 data select y1 y2 y4 y8 2 s3 y1 y2 y4 y8 1 s2 segment-1 data y1 y2 y4 y8 l2e com1 com2 com3 com4 0 s1 y1 y2 y4 y8 2 s15 y1 y2 y4 y8 1 s14 segment-2 data y1 y2 y4 y8 l2f com1 com2 com3 com4 0 s13 segment data 0: extinguished 1: illuminated
TC9329FA/fb 2002-02-07 50 the lcd driver control port consists of the segment data selection port and the segment data port. these ports are accessed with out2 instruction for which [cn = dh~fh] has been specified in the operand. the segment data for lcd driver is set with the segment data ports ( l2e, l2f). the lcd display will be extinguished when the segment data port is set at ?0?, and will be illuminated when set at ?1?. also, the segment-2 data ( l2ff) specified with fh in the segment selection port becomes the disp off bit and lcd off bit without setting the segment data. it is possible to extinguish all lcd display with the disp off bit without setting the segment data. in this bit if ?1? is set, a common output and a segment output is fixed to ?l? level and lcd display all puts out the light. in that time, segment data is held and if disp off bit is set ?0?, former display is stilled display on lcd. in addition, rewriting of segment data is possible during disp off. moreover, after reset and ckstp instruction execution, disp off-bit is set to ?1?. lcd off-bit can set all lcd output terminals as an output port. in lcd display, this bit is set ?0?. ( refer to output port item) s11 to s18 terminal is used as i/o port. this control is done a segment/io port select port ( l2f6, l2f7). if the port is set ?1?, it will becomes segment output port and set ?0?, it will become an i/o port. ( refer to output port item) these data is divided and undirected setting by data selects port ( l2d). the data of a specification port to set a segment data port to beforehand is set, and the data port corresponding to it is accessed. a data select port is + 1 increment whenever accessing data port ( l2e, l2f). for this reason, after setting up a data selection port, it can set up continuously. note: the data select port is + 1 increment automatically by accessing l2e, l2f, l3b, k3b on i/o map. 2. lcd driver circuit configuration note: in case of setting i/o port, this output port is nch open drain. note: in case of setting segment output as output port in setup ?1? to v lcd off bit ,?h? level of all output becomse v lcd potential output. when ?h? output is made into v dd remove the capacitor between c3/c4, and connect v lcd and v dd . note: during the clock stop mode and reset, the potential of v lcd /v ee /v db becoms as v dd level. 0.1 f 0.1 f 60 59 58 61 62 63 64 10 f 0.47 f 0.1 f 0.1 f com1/ot1 1 com2/ot2 2 com3/ot3 3 com4/ot4 4 s1/ot5 5 s2/ot6 6 s3/ot7 7 s10/ot14 14 p8-0/s11 15 p8-1/s12 16 p9-2/s17 21 p9-3/s18 22 segment driver segment data common output circuit i/o-8?9 port power supply voltage double voltage circuit (v dd 2) dips off 500 hz v lcd off 75 khz/2 v dd constant voltage circuit (v ee = 1.5 v) voltage doubler circuit (v ee 2) c2 c1 v db v ee c3 c4 v lcd 75 khz/2 to a/d converter constant voltage circuit (v reg )
TC9329FA/fb 2002-02-07 51 the potential of lcd driver waveform outputs the potential of v lcd and gnd, and the middle potential level. s1 s2 com1 com2 com3 com4 the example of segment data segment data -1 ( l2e) y1 y2 y4 y8 0 com1 com2 com3 com4 (s1) 1 0 1 0 y1 y2 y4 y8 1 com1 com2 com3 com4 (s2) 1 1 0 1 segment data selection ( l2d) ? v lcd gnd com2-s1 (off waveform ) ? v lcd gnd com1-s1 (on waveform ) v lcd v lcd gnd gnd s2 s1 com com3 com2 com1 disp off v lcd gnd v ee v lcd gnd v ee v lcd gnd v ee v lcd gnd v ee v lcd v lcd 16 ms (62.5 hz) 2 ms
TC9329FA/fb 2002-02-07 52     serial interface (sio1/2) the serial interface has two kinds of serial interface (sio1 and sio2). sio1 is the serial i/o port, which transmits and receives data (4 bits or 8 bits) synchronizing with the serial clock of an inside or the exterior. si, so, and sck terminal perform the transmission and reception with lsi for extension and a microcomputer, etc. an end of operation of a serial interface publishes interruption. all outputs are nch open drain outputs. sio2 inputs 26-bit data serially synchronizing with an external serial clock. in sio2, it has the function, which decodes the inputted serial data, and interruption is published for every input serial clock edge. 1. the serial interface?s control port and data port y1 y2 y4 y8 l22 edge sck-inv o i/ - sck sio-on selection of the i/o port-3 and serial interface 0: i/o port-3 selection (p3-1~p3-3) 1: serial interface sio1 or sio2 function selection sck clock external/internal selection 0: external clock output 1: internal clock output inversion of the sck clock signal 0: sck clock output from ?hz? level 1: sck clock output from ?l? level logical selection of serial data shift operation (sio1/2 common) 0: shift at the sck rising edge 1: shift as the sck falling edge y1 y2 y4 y8 l23 sta o i/ - so bit 4 8/ sio select permission o p eration of the serial interface 2 ( sio2 ) 0: sio2 mode stop (interrupts by sio1 serial operation end.) 1: sio2 mode operation (interrupt by sck clock edge) selection of the data length of serial data selection of input and output of so terminal 0: so output 1: si input serial operation start and internal port reset 0: 4 bit data 1: 8 bit data 0: don?t care 1: reset count, sio f/f and the serial output data in the shift register. serial operation is started when the internal sck clock is selected. reset sio2 shift register data (26 bits)
TC9329FA/fb 2002-02-07 53 serial interface control and data are accessed with the out2 an in2 instruction for which [cn = 2h~5h] has been specified in the operand. the serial interface terminal is used together with the i/o-3 p3-1, p3-2, p3-3 terminals, and each of the i/o port-3 terminals are switched across to the si, so and sck terminals by setting ?1? in the sioon bit. note: all the inputs of a serial interface build in the schmidt circuit. note: since si (p3-1) terminal can be used as an i/o port even when a serial interface is chosen, it can be used for the strike robe signal of sio etc. in case of using this terminal as a serial input, it is setup ?1? of p3-1 and change into an input state. y1 y2 y4 y8 k23 busy count sio f/f 0 sio start flag 0: sio operations performed 1: sio operations not performed sck clock count detection 0: clock count normal (sck clock count is in multiple of four) 1: clock count abnormal (sck clock count is not in multiple of four) sio operation monitor 0: sio operations ended 1: sio operation in progress l24 y1 y2 y4 y8 so0 so1 so2 so3 serial output data: the data set in these ports is output in the serial format l25 y1 y2 y4 y8 so4 so5 so6 so7 k24 y1 y2 y4 y8 si0 si1 si2 si3 k25 y1 y2 y4 y8 si4 si5 si6 si7 serial input data: it is possible to load data input in the serial format into data memory
TC9329FA/fb 2002-02-07 54 ? edge, sck-inv, sck-i/o bit the edge bit is setup the edge of a shift and the sck-inv bit set up the input-and-output waveform of a shift clock. if the edge bit is set ?0?, (sck) shift operation is done at rising edge and set ?1?, (sck) shift operation is done at falling edge. sck-inv bit is set the bit of serial clock output from ?h? or l?. in case of setting "0", it starts shift operation from ?h? output, and setting ?1?, it starts shift operation from ?l? output. these bits perform serial operation as shown in the following table by setup. set up by the serial format to control. sck-i/o bit is setup the input-output of serial clock. usually, when this product is used as a master, t ?1? to sck-i/o bit and then it used as serial clock output and in the case of a slave, set to ?0? and then it used as serial input. sck-inv = 0 sckinv = 1 edge = 0 edge = 1 note: the ?h? level of sck/so terminal is showed the pull-up status. this term will be in ?hz? state. sck terminal si terminal busy interrupt 1 2 3 4 so0 so1 so2 so3 si0 si1 si2 si3 so terminal sta bit set as ?1? sck terminal sta bit set as ?1? so terminal si terminal busy interrupt 1 2 3 4 so0 so1 so2 so3 si0 si1 si2 si3 sta bit set as ?1? sck terminal si terminal busy interrupt 1 2 3 4 so0 so1 so2 so3 si0 si1 si2 si3 so terminal sck terminal sta bit set as ?1? so terminal si terminal busy interrupt 1 2 3 4 so0 so1 so2 so3 si0 si1 si2 si3
TC9329FA/fb 2002-02-07 55 ? 8/4 bit the 8/4 bit selects the length of the serial data. the length of the serial data is set at 4 bits when this bit is ?0?, and at 8 bits when this bit is ?1?. if sio is started when a serial clock is set as an internal clock, a clock (4 bits or 8 bits) will be continuously outputted by the state of this bit. ? o i/ - so bit the bit sets the serial i/o for the so terminal. the so terminal outputs serial data when the bit is set at ?0?, and the so terminal is used for serial data input when this bit is set at ?1?. this control is used as the serial bus system which outputs and inputs serial data with one terminal. ? serial interface operation monitor the operational status of the serial interface is determined by referencing the busy, count, sio f/f bits. as the busy bit becomes ?1? during sio operations, control data switching and serial data access is performed when the busy bit is ?0?. it interrupts in falling of busy bit and a demand is published. count bit determines if the data sending/receiving has been performed in multiples of four, and ?1?when not performed in multiples of four. ?1? is set in the sio f/f bit when the sck terminal commence shift operations. both count bb it and sio f/f bits are reset to ?0? when ?1? is set in the sta bit. these two bits are mostly used when the sck terminal sets external clocks (slave mode). an external clock is inputted and it can be judged to be the information that serial data was transmitted and received whether operation was performed normally. usually, since interruption is published, interruption processing performs a serial interface end. ? sta bit sta bit is a bit of starting serial interface operation. serial operation is started whenever sta bit sets ?1?. if sta bit setup ?1?, serial output data will be transmitted to a shift register, and count bit and sio f/f bit will be reset. when sck clock is made an internal setup, a serial clock is outputted, and when an external setup of the sck clock is carried out, it will be in the state waiting for a serial clock input. sck terminal so terminal changing edge 1 2 3 4 so0 so1 so2 si0 so3 1 2 3 si1 si2 si3 4 set sta bit to ?1? set so-i/o bit to ?1? set sta bit to ?1? set so-i/o bit to ?0? example for serial input-output operation the example of serial operation at the time of setting it as 8 bit sck terminal so terminal si terminal busy sta bit set as ?1? interrupt 1 2 3 4 so0 so1 so2 so3 si0 si1 si2 si3 5 6 7 8 si4 si5 si6 so4 so5 so6 so7 si7
TC9329FA/fb 2002-02-07 56 2. composition of the serial interface 1 (sio1) the serial interface 1 consists of a control circuit, a shift register, and an i/o port. note: si terminal can be used as i/o port -3 (p3-1). note: as for data and serial input data, the contents of a shift register are taken in by the data memory. for this reason, the contents of the data set to serial output data and serial input data are not in agreement. note: all serial input terminals are the schmidt input type. note: the output of so terminal and the serial clock output of sck terminal are nch open drain output. for this reason, connect pull-up resistance. in addition, please use pull-up potential below by 3.6 v. 44 43 sck (p3-3) 45 so4 si4~si7 so (p3-2) si (p3-1) o i/ - so so5 so6 so7 so0 so1 so2 so3 si0~si3 serial input data serial output data bit 4 8/ -1 -0 -3 -2 i/o port-3 data i/o port-3 i/o control data -1 -0 -3 -2 control circuit bus y sio f/f interrupt requirement count sta o i/ - sck edge sck-inv 4 bit shift register 4 bit shift register
TC9329FA/fb 2002-02-07 57 3. serial interface timing of sio1 circuit the clock frequency outputted from sck terminal when sck clock is set as an internal clock is 37.5 khz (duty. = 50%). when sck clock is considered as an external input, the clock of a maximum of 200 khz can be inputted. at external clock: tcyc = 5 s min, th = 2.5 s min, tplh/tpll = 2 s max at internal clock: tcyc = 26.6 s typ., th = 13.3 s typ., tplh/tpll = 2 s max sck terminal so terminal si terminal sio f/f bit so0 so1 so2 so3 tcyc a b c d a busy bit set ?1? count bit sta bit serial input data port ( k24) interrupt set ?1? th so3 so2 so1 so0 a so3 so2 so1 b a so3 so2 c b a so3 d c b a y8 y4 y2 y1 : unfixed at internal clock 26.6 s tplh/tpll
TC9329FA/fb 2002-02-07 58 4. the control port of the serial interface 2 (sio2), and a data port note: ? : exor (exclusive logic sum) y1 y2 y4 y8 k3b 8 sio2 data select * * * y1 y2 y4 y8 ofs8/ chk8 ofs9/ chk9 0 0 e sio2 offset/check data 3 y1 y2 y4 y8 ofs4/ chk4 ofs5/ chk5 ofs6/ chk6 ofs7/ chk7 d sio2 offset/check data 2 y1 y2 y4 y8 ofs0/ chk0 ofs1/ chk1 ofs2/ chk2 ofs3/ chk3 c sio2 offset/check data 1 inf12 inf13 inf14 inf15 b sio2 information data 4 y1 y2 y4 y8 inf4 inf5 inf6 inf7 9 sio2 information data 2 y1 y2 y4 y8 inf0 inf1 inf2 inf3 8 sio2 information data 1 0 0 0 1 0 0 0 ofs9 = (inf14 ? inf13 ? inf12 ? inf11 ? inf10 ? inf5 ? inf4 ? inf3 ? inf2 ? inf1) ? chk8 1 0 1 1 1 1 0 ofs8 = (inf13 ? inf12 ? inf11 ? inf10 ? inf9 ? inf4 ? inf3 ? inf2 ? inf1 ? inf0) ? chk8 1 0 1 0 0 1 1 ofs7 = (inf14 ? inf13 ? inf9 ? inf8 ? inf5 ? inf4 ? inf0) ? chk7 0 0 0 1 1 0 1 ofs6 = (inf15 ? inf14 ? inf11 ? inf10 ? inf8 ? inf7 ? inf5 ? inf2  inf1) ? chk6 0 0 1 0 1 0 1 ofs5 = (inf15 ? inf14 ? inf13 ? inf10 ? inf9 ? inf7 ? inf6 ? inf4 ? inf1 ? inf0) ? chk5 1 0 1 1 0 1 1 ofs4 = (inf15 ? inf11 ? inf10 ? inf9 ? inf8 ? inf6 ? inf4 ? inf2 ? inf1 ? inf0) ? chk4 0 0 0 0 1 1 1 ofs3 = (inf13 ? inf12 ? inf11 ? inf9 ? inf8 ? inf7 ? inf4 ? inf2 ? inf0) ? chk3 1 0 1 0 0 0 1 ofs2 = (inf15 ? inf14 ? inf13 ? inf8 ? inf7 ? inf6 ? inf5 ? inf4 ? inf2) ? chk2 0 0 0 0 0 0 0 ofs1 = (inf15 ? inf14 ? inf13 ? inf12 ? inf7 ? inf6 ? inf5 ? inf4 ? inf3 ? inf1) ? chk1 other data 0 0 0 0 0 0 0 ofs0 = (inf15 ? inf14 ? inf13 ? inf12 ? inf11 ? inf6 ? inf5 ? inf4 ? inf3 ? inf2 ? inf0) ? chk0 ? 194h 000h 1b4h 350h 168h 198h 0 fch 0 6 5 4 b 3 2 1 y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 information data data select y1 y2 y4 y8 k3b dec0 dec1 dec2 dec3 7 sio2 decode data offset/check data change of offset/check data 0: loading of offset data 1: loading of check data
TC9329FA/fb 2002-02-07 59 the data port of the serial interface 2 (sio2) is constituted of 16-bit information data ( k3b8~b), 10-bit check data, 10-bit offset data and 4-bit decoding data ( k3b7). in 26-bit serial data, serial data of 16-bit are information data and 10-bit are check data. as shown in the above-mentioned table, the data that took the exclusive logic sum of each bit of 26-bit data turns into offset data. furthermore, when the offset data is specialized in the above ?mentioned, the data of 1~6h and bh are outputted as 4-bit decoding data. loading port of check data and offset data ( k3bc~e) are common and selection of loading is sio2 data select bit ( l3b8). if the bit is set to ?0?, the offset data will be loaded and set to ?1?, the check data will be loaded. if the data ?1? is set to sioon bit ( l22) and sio select bit ( l23), sio2 will be in a permission state of operation. if the data ?1? is set to sta bit ( l23), 26-bit shift registers are all reset and si terminal input state will be serially inputted one by one by the shift register with the shift clock of sck terminal clock. if sio interruption is permitted at this time, interruption will be published with edge contrary to the shift edge of a shift clock. si terminal and so terminal can be changed to a serial input terminal by the so-i/o bit, if the data ?0? is set up, si terminal will serve as a serial data and ?1? will be set up, so terminal will serve as a serial data input. if si terminal is selected as a serial input, since so terminal turns into a sio1 serial output terminal, we recommend use of so terminal to a serial input. these data is divided and indirect specified set up by the data select port ( l2d). the data of a specification port to set dal address port to beforehand is set, and the data port corresponding to it is accessed. a data selection port is + 1 increment by accessing of dal address port ( kl3b). for this reason, after setting up a data selection port, it can set up continuously. note: the data select port is + 1 increment automatically by accessing l2e, l2f, l3b and k3b on i/o map. control and serial data of the serial interface-2 is accessed with the out2 instruction for which [cn = 3h] has been specified in the operand. 5. control and serial data of the serial interface 2 note: if si terminal is used for a serial input, so terminal will serve as a sio1 serial output. when si terminal ais used as serial input, output data of p3-1 is set to ?1? and changes into an input state. note: serial input is inputted and shifted also sio1 at the same time. 45 44 43 sck terminal si terminal inf16 sio interruption inf15 inf14 chk2 chk1 chk0 chk16 chk3 0 1 2 3 chk0 chk1 chk2 chk3 4 5 6 7 chk4 chk5 chk6 chk7 8 chk8 9 chk9 inf0 inf1 inf2 inf3 inf4 inf5 inf6 inf7 inf8 10 11 12 inf9 inf10 inf11 inf12 13 inf13 14 inf14 inf15 0 1 2 3 4 5 6 7 8 9 decode circuit sck (p3-3) 26 bit shift register so (p3-2) si (p3-1) o i/ - so check data ofs0~ofs9 (offset data) edge 15 information data sio interruption dec0~dec3 (decode data) exor circuit for offset data detection
TC9329FA/fb 2002-02-07 60 a/d converter the a/d converter is used for measuring the strength of electric fields and the voltage of batteries with 4-channel 6-bit resolution.. 1. a/d converter control port and data port a/d converter is the serial comparison systems of 6 bit decomposition ability. the standard voltage of a/d conversion is an internal power supply (v dd ). the voltage which divided this power supply into 64 and a/d input voltage is compared, and data is outputted to a/d conversion data port. a/d conversion input follows multiplex method for the 4-external input terminals (adin1~adin4 terminal) and the 1/2 potential of vreg terminal voltage, and selected by ad sel0 to ad sel2 bits. the a/d converter performs a/d conversion whenever the sta bit is set at ?1?, and this is ended after seven machine cycles (280 s). a/d conversion completion is determined by referring the busy bit, and the a/d conversion data is loaded into the data memory after conversion has finished. the result of a/d conversion is required for by the following calculation. n ? 0.5 n + 0.5 v dd 64 (63 > = n > = 1) < = a/d input voltage < = v dd 64 (62 > = n > = 0) (n is a/d conversion data value. [decimal]) v reg /2 to a/d input are used for battery detection. v reg potential is 1.5 v 0.15 v and 1/2 potential: 0.75 v 0.075 v of v reg terminal voltage is chosen as a/d input, and v dd potential which is standard potential can be detected by carrying out a/d conversion of this potential. when v dd potential is 1.5 v, a/d conversion data is set to 20h, and if a/d data goes up and v dd potential serves as 0.75 v as v dd potential falls, it will serve as 3fh. in case of using this function, v reg on bit is set up ?1?. these control are accessed with the out2/in2 instruction for which [cn = 0h, 1h] has been specified in the operand. note: if v reg on bit is set up ?1? , cpu operating consunption current is increased. v reg terminal is power supply for phase comparator. y1 y2 y4 y8 l21 ad sel0 ad sel1 ad sel2 sta sel2 sel1 sel0 adinput 0 0 0 adin1 0 0 1 adin2 0 1 0 adin3 0 1 1 adin4 1 * * v reg /2 0: a/d conversion ended 1: a/d conversion in progress a/d converter start bit a/d conversion is performed whenever this bit is set at ?1?. a/d input selection a/d operation monitor k20 y1 y2 y4 y8 ad0 ad1 ad2 ad3 a/d conversion data k21 y1 y2 y4 y8 ad4 ad5 busy 0 lsb msb
TC9329FA/fb 2002-02-07 61 2. a/d converter circuit configuration the a/d converter consists of a 6-bit d/a converter, a comparator, an a/d conversion latch and control circuit. only when busy bit is ?1?, 6 bit d/a converter and a comparator part is in order to operate, no current consumption of a/d converter between a/d converter un-operating. 1/2 potential of v reg constant voltage can choose as a/a d input. a/d converter part is driving using by doubler voltage v db (two times to v dd ). note: to the output data of i/o port -5 (nch open drain) corresponding to a/d input terminal to use set up ?1? and use it by changing into an input state. 46 47 48 49 41 adin1 (p5-0) sample hold adin2 (p5-1) adin3 (p5-2) adin4 (p5-3) v dd control circuit decoder sta busy a/d conversion data latch busy a/d conversion data comparator sel0~2 ad0 ~ ad5 constant voltage circuit v reg on v reg busy to phase comparator v db (v dd 2 double r power supply) r r 3r/2 r/2 r
TC9329FA/fb 2002-02-07 62 buzzer output the buzzer output can be used to output tones and alarm tones to confirm key operations and the tuning scan mode. buzzer type scan be selected from a combination of four output modes and eight different frequencies. 1. buzzer control port the buzzer output is used also p4-0 i/o port. in order to set it as a buzzer output, buzr on bit is set up ?1? and it changes to a buzzer output by setting it as an output by the p4-0 i/o control port. after logic setting up of buzzer frequency, mode setup and a logic setup, buzzer enable bit is set up ?1?, it outputs buzzer. at the time of condition setup, buzzer enable bit is setup ?0?. in continuation output mode (mode a), if buzzer enable bit is set ?1?, buzzer frequency will be outputted continuously, and if ?0? is set, a buzzer output will stop. in staggered output mode, whenever buzzer enable bit is set ?1?, buzzer is outputted and stopped between 50 ms. under a buzzer output (50 ms), if buzzer enable bit is set ?1?again, 50 ms extension is carried out and the buzzer of 100 ms can be made to output. since it will be extended with 150 ms if it sets again between extended 50 ms, buzzer output time can be set up easily. 10 hz intermittence output mode (mode c), if buzzer enable bit is set of ?1?, 50 ms buzzer output and 50 ms buzzer pause is carried out continuously. and a set of ?0? stops a buzzer output. y1 y2 y4 y8 l1b bm0 bm1 buzr on pol buzzer output mode setup bm1 bm0 buzzer output mode 0 0 continual output (mode a) 0 1 staggered output (mode b) 1 0 10 hz intermittent output (mode c) 1 1 10 hz intermittent output with 1hz intervals (mode d) 0: positive logic output. buzzer frequency is outputted in positive logic from ?l? level. 1: negative logic output. buzzer output is outputted in negative logic from ?h? level. buzzer output logic setup 0: i/o port-4 (p4-0) selection 1: buzzer output selection i/o port-4 and buzzer output selection y1 y2 y4 y8 l1a bf0 bf1 bf2 ben buzzer frequency selection port 0: buzzer output fixed (at pol = ?0?, ?l? level, pol = ?1?, ?h? level) 1: buzzer output enabled buzzer output enable bit bf2 bf1 bf0 buzzer frequency duty 0 0 0 0.625 khz 1/2 0 0 1 0.75 khz 1/2 0 1 0 1 khz 2/3 0 1 1 1.25 khz 1/2 1 0 0 1.5 khz 1/2 1 0 1 2.08 khz 2/3 1 1 0 2.5 khz 1/2 1 1 1 3 khz 2/3
TC9329FA/fb 2002-02-07 63 10 hz intermittent output with 1 hz intervals mode (mode d), if buzzer enable bit is set ?1?, 50 ms buzzer output and 50 ms buzzer pause will carry out 500 ms output, after that 500 ms pause output of 50 ms buzzer output and the 50 ms buzzer pause is carried out again, and this operation is repeated. a set of ?0? stops a buzzer output. at mode b, c, and d, a buzzer is in an output state, even if it sets ?0? to buzzer enable bit and it makes it stop, the buzzer of 50 ms is outputted and stops. in addition, a buzzer output state can be judged according to the contents of a timer port. the timer port 10 hz bit is ?0?, buzzer is an output state and it is in a pause state at the time of ?1?. the control of buzzer is accessed by the out 1 instruction for which [cn = ah, bh] has been specified in the operand. 2. buzzer circuit configuration 3. buzzer output timing note: when making a buzzer output, it sets up an output state about p 4-0 (set ?1? to i/o control port) note: change of buzzer frequency is updated by change of 10 hz. data set to ben bit buzzer frequency 10 h z ?1? buzzer output (mode b) ?0? buzzer output (mode a) buzzer output (mode c) during a buzzer output, if ?1? is set to ben bit again, 50 ms extension will be carried out. buzzer output (mode d) 50 ms period of buzzer frequency output 50 ms period of non-output period of non-output the output state in mode c period of output ?1? 500 ms 500 ms buzr (p4-0) 10 hz 1 hz 0.625 khz~3 khz bf0~bf2 bm0~bm1 28 ben buzzer output circuit multiplexer
TC9329FA/fb 2002-02-07 64 pulse counter the pulse counter is 8-bit up/down counter and detection of the number of clocks can be performed with pctrin terminal (cmos input type) used also hold terminal. it can use for the count and detection of a tape run. 1. pulse counter control port, data port ? down bit............................. set up 8 bit up/down counter 0: up count action 1: down count action ? pol bit ................................. set up input terminal (pctrin terminal) counter input edge 0: cont for input fallig edge 1: count for input rising edge control ? ctr reset bit .................... whenever it sets ?1?, a 8-bit rise down counter is reset. ? over reset bit ................. whenever it sets ?1?, over f/f is reset. y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 data select ctr reset over reset * * 5 pulse counter control down pol * * 4 pulse counter control y1 y2 y4 y8 3 dal address data 4 y1 y2 y4 y8 2 dal address data 3 y1 y2 y4 y8 1 dal address data 2 dal address data y1 y2 y4 y8 l3b da0 da1 da2 da3 0 dal address data 1 over 0 0 0 6 pulse counter control pc4 pc5 pc6 pc7 5 pulse counter data pc0 pc1 pc2 pc3 4 pulse counter data y1 y2 y4 y8 3 dal address data 4 y1 y2 y4 y8 2 dal address data 3 y1 y2 y4 y8 1 dal address data 2 dal address data y1 y2 y4 y8 k3b da0 da1 da2 da3 0 dal address data 1 data pc0 pc1 pc2 pc3 pc4 pc5 pc6 pc7 over 2 0 2 7 msb lsb pulse counter data over f/f bit ................. detected of overflow 0: counter calculation value < = 2 8 ? 1 1: counter calculation value > = 2 8 (overflow status)
TC9329FA/fb 2002-02-07 65 the pulse counter measures pulse number of pctrin terminal. pol bit set up the clock edge of input terminal. if ?0? is set, it will count in the falling of an input and it will set to ?1?, it will count in the rising of an input. usually, this bit is used fixed. down bit sets up a up/down of 8-bit counter. if it sets to ?0? and it will set to rise count operation and ?1?, down count operation will be done. a change of a rise/down can be performed freely. however, if a clock pulse is inputted during change command execution, since it is canceled, be careful of this count. when 2 8 or more pulses are inputted, over f/f bit is set to ?1?. when performing count operation of 8-bits or more, this over f/f are detected, and on a data memory, only the number of times of overflow is added and subtracted, and can correspond. after detection by this bit, and over reset bit is set ?1? and over f/f is reset.ctr reset bit resets only 8-bit counter. the counter is reset whenever it sets ?1?. counter data loaded data in a data memory by the binary. the control of pulse counter and data loading is accessed with the out3/in3 instructions for which [cn = bh] have been specified in the operand and arranges in dal address register port. this port is set up by data select port ( l2d), which specified the division. the data of a specification port to set beforehand is set and the data port corresponding to it can be accessed. the data select port is + 1 increments whenever it accesses dal address port ( l3b, k3b). for this reason, after setting up a data selection port, it can set up continuously. note: if pol bit is changed, a clock pulse may enter. reset data by the reset bit after changing. note: if data select port is + 1 increments whenever it accesses l2e, l2f, l3b, k3b on the i/o map. 2. pulse counter circuit configuration note: it can be used together as pulse counter and interrupt function ( hold terminal input). 3. example for pulse counter timing hold (pctrin) over reset down pc0~pc7 pol ctr reset to interrupt circuit 34 8-bit up/down counter f/f over f/f data set to pulse counter control bit ctr/over reset execution down bit set to ?1? over reset execution down bit pctrin input counter data over f/f pulse width 1 ? 1 n ? 2 n + 1
TC9329FA/fb 2002-02-07 66 input and output port (i/o port) there are 28 i/o ports available between i/o port-1~5 8-9 which are used to input and output control signals. of these 28 i/o ports, 12 i/o ports are cmos type and 16 i/o ports are nch open drain type. the combination function and the functional feature of each i/o port are as follows. i/o port combination and additional function structure i/o port-1 it?s possible to set pull-up/pull-down. but, mixture of a pull-up pull down is impossible. p2-0~-2 ? i/o port-2 p2-3 pre-scaller psc output cmos p3-0 ? i/o port-3 * p3-1~3 serial interface input/output port nch open drain p4-0 buzzer output i/o port-4 p4-1~3 i/o port cmos i/o port-5 6-bit a/d converter analog input the potential to v db (v dd 2) can be inputted. i/o port-8 i/o port-9 the potential to v lcd (3 v) can be inputted. nch open drain note: i/o port-3 terminal of * markis nch high output buffer output and output-proof is 3.6 v (max). 1. i/o port control, i/o port data note: i/o-1, i/o-2, - - - - - is correspond to the name of p1-0~-3, p2-0~-3, - - - - - terminal. y1 y2 y4 y8 -0 -1 -2 -3 a i/o control-4 0: i/o port 1: segment output segment and i/o port changing y1 y2 y4 y8 l2d sel1 sel2 sel4 sel8 data select y1 y2 y4 y8 -0 -1 -2 -3 9 i/o control-2 y1 y2 y4 y8 -0 -1 -2 -3 8 i/o control-1 y1 y2 y4 y8 s15 s16 s17 s18 7 segment /io select segment-2 data y1 y2 y4 y8 l2f s11 s12 s13 s14 6 segment /io select i/o control data (input/output setting) 0: i/o port input 1: i/o port output
TC9329FA/fb 2002-02-07 67 the i/o port for the i/o ports is set with the contents of the i/o control data port. ?0? is set in the i/o control data port bit which corresponds to the relevant port when setting the input port, and ?1? is set when setting the output port. i/o control data port is arranged segment-2 data port and set up by data select port ( l2d), which specified the division. the data of a specification port to set beforehand is set and the data port corresponding to it can be accessed. the data select port is + 1 increments whenever it accesses dal address port ( l2f). for this reason, after setting up a data selection port, it can set up continuously. the output status of the i/o port is controlled by executing the out3 instruction for which corresponds to each i/o port during output port setting. the contents of the data currently output can also be loaded into the data memory by executing the in3 instruction. in addition, the data read by the in3 command is not surely in agreement with the data outputted by the out3 instruction and, in order to read the state of a terminal. the data input in the i/o port is loaded into the data memory by executing the in3 instruction for which corresponds to each i/o port during input port setting. the contents of the output latch will have absolutely no effect on the input data at this point. nch open drain i/o ports have not i/o control data. when it makes an input, it is set ?1? in i/o data port, the status becomes high impedance and read the input status into data memory by in3 instruction. when output state becomes "l" level, it set ?0? in i/o data port by out3 command. the execution of the wait instruction and ckstp instruction is cancelled and cpu operations are re-started when the status of the i/o port input specified in the input port changes with i/o port-1. also, the mute port and mute bit are forcibly set to ?1? during changes in the input status when the mute port?s i/o bit is set at ?1?. by control port of i/o port-1 pull-down, it sets up pull-down or pull-up status. it can set up a pull-down or pull-up for every terminal and if the port is set up ?1?, it will become a pull-up or a pull-down. the pull-up/pull down control bit of i/o port -1 perform a change of a pull-up and a pull down. if the bit is set up?0?, the status becomes pull-down and set up ?1?, it becomes pull-up. y1 y2 y4 y8 lk34 -0 -1 -2 -3 i/o port-5 y1 y2 y4 y8 lk33 -0 -1 -2 -3 i/o port-4 y1 y2 y4 y8 lk32 -0 -1 -2 -3 i/o port-3 0: pull up or pull down off 1: pull up or pull down on control pull-down or pull-up of i/o port-1 y1 y2 y4 y8 lk31 -0 -1 -2 -3 i/o port-2 y1 y2 y4 y8 lk30 -0 -1 -2 -3 i/o port-1 y1 y2 y4 y8 lk38 -0 -1 -2 -3 i/o port-9 lk37 -0 -1 -2 -3 i/o port-8 i/o port data y1 y2 y4 y8 l20 pd0 pd1 pd2 pd3 i/o port pull-down note: pd0~pd3 is correspond to p1-0~p1-3 0: set up pull-down 1: set up pull-up control bit of pull-up/pull-down of i/o port-1 y1 y2 y4 y8 l3a port 1 pull up 0: i/o terminal ?l? level 1: i/o terminal ?h? level cmos i/o port 0: i/o terminal ?l? level 1: i/o terminal ?h? level output terminal is high impedance nch open drain i/o port
TC9329FA/fb 2002-02-07 68 set up the pull-up and pull-down is used for key matrix configuration. i/o port -1 with a pull down or a pull-up is considered for a usual i/o port output as an input as an output of a key matrix, and a key matrix is constituted. it is able to constitute of the key matrix of a low noise by the following methods. in setting pull-down to i/o port-1, the output side of a key matrix is usually high impedance (input state), output and scan to ?h? level on key loaded line, detected key input or non by loading input status of i/o port-1. in the case of a pull-up, ?l? level is outputted and it detected on a key loading line. during executing of ckstp instruction and wait instruction, the existence of this key input can also be judged and re-started. when re-starting at the time of ckstp command execution, i/o port -1 is used by changing into a pull-up state. for the clock stop mode, since the outputs of an i/o port are outputted all ?l? level, i/o port -1 stands by in the state of a pull-up, and if a key is inputted, i/o port -1 input will change and re-start. in this case, since the standby time of about 100 ms occurs as time lag after being canceled of a clock stop. since release of wait instruction holds the output state, re-starting is possible by the method of both a pull-up and a pull down, and since there is no time lag from release, detection and operation of a key are quickly possible. using these backup modes together can reduce consumption current. since the input of i/o port -1 is an inverter input, the usage that serves as middle potential cannot be done to this input. but, only at the time of execution of the input instruction, since an input will be in an on state, even if middle potential is inputted, as for other i/o port inputs, unusual consumption current does not occur. for this reason, use of the pull-up in potential lower than vdd potential, the three value output of an output level, etc. is possible. i/o port -2, -4 terminals are the i/o ports of cmos structure, p2-3 terminal is the pre-scaler psc output, p4-0 terminal is the buzzer output and p3-1-3 terminals are the serial interface serve a double purpose, respectively. i/o port-3, -5, -8~-9 are nch open drain i/o port. i/o port -3 uses v lcd (3 v) for the gate potential of nch output buffer. for this reason, the output current by which power supply voltage was stabilized also in the time of low voltage can be obtained. this port can perform the input and output to 3.6 v. i/o port-5 is used as 6-bit a/d converter input. this port is able to inputted v db potential (the potential to v dd 2). i/o port -8, -9 are using also lcd driver. v lcd (3 v) is used for the gate potential of an nch open output buffer. for this reason, the output current by which power supply voltage was stabilized also in the time of low voltage can be obtained. these terminals can perform the input and output to v lcd (3 v). these terminals are set as the input of an i/o port after reset. note: the data select port is + 1 increments automatically when it accesses l2e, l2f, l3b, k3b on the i/omap. 24 23 25 20 19 22 21 26 p1-3 v dd p1-2 p1-1 p1-0 p9-3 p9-2 p9-1 p9-0 example for key input matrix circuit p9-3 p9-2 p9-1 p9-0 high impedance p1-3 p1-2 p1-1 p1-0 pull u p pull u p pull u p pushin g of p9-3 and p1-1 ke y s i/o port-1 loaded into data the following is an example of key input matrix circuit configuration. without key input, it pulled-up and key is pushed, it inputted ?l? level from sauce side(i/o port-9). it is necessary to take into consideration the shift time to the pull-up of a key input from ?l?. they are all about a ke y sauce side at the time of wait instruction execution and ?l? wait instruction can be lifted, whenever a key input will be pushed, if it stands by on the level.
TC9329FA/fb 2002-02-07 69 register port the g-register and data register outlined in the explanation on the cpu are also used as a single internal port. 1. g-register ( kl1d, kl1e) this register addresses the data memory?s row addresses (dr = 04h~3fh) during execution of the mvgd instruction and mvgs instruction. this register is accessed with the out1/in1 instruction for which [cn = dh~eh] has been specified in the operand. moreover, if stgi instruction is used, data can be set to this register by one instruction. note: the contents od this register are only valid when the mvgd instruction and mvgs instruction are executed and are ineffective when any other instruciton is executed. moreover, it does not have the influence on this register by mvgd instruction and mvgs instruction. note: all of the data memory row addresses can be specified indirectly by setting data 00h to 3fh in the g-register. (dr = 00h~3fh) note: for a reason with a ram capacity of 256 words, this product will become unfixed if 10h-3fh is specified to be g-register. note: writing and read-out are possible for this register. please evacuate and return in a data memory if needed at the time of interruption. g5 g4 g3 g2 g1 g0 dr 0 0 0 1 0 0 04h 0 0 0 1 0 1 05h 0 0 0 1 1 0 06h 0 1 1 1 1 1 0fh 1 0 0 0 0 0 10h 1 1 1 1 1 0 3eh 1 1 1 1 1 1 3fh kl1d y1 y2 y4 y8 g0 g1 g2 g3 data memory row address specification kl1e y1 y2 y4 y8 g4 g5 * * i * stgi instruction transmit i0 i1 i2 i3 i4 i5 can?t specified in this area
TC9329FA/fb 2002-02-07 70 2. data register ( kl3c~ kl3f), dal address register ( kl3b0~ kl3b3) and control bit da11 da10 da9 da8 lsb msb l2d y1 y2 y4 y8 sel1 sel2 sel4 sel8 data select dal address register da13 da12 da3 da2 da1 da0 da7 da6 da5 da4 kl3e y1 y2 y4 y8 d11 d10 d9 d8 kl3f y1 y2 y4 y8 d15 d14 d13 d12 kl3c y1 y2 y4 y8 d3 d2 d1 d0 kl3d y1 y2 y4 y8 d7 d6 d5 d4 dal instruction indirect specification data register 16-bit data lsb msb b11 b10 b9 b8 b15 b14 b13 b12 b3 b2 b1 b0 b7 b6 b5 b4 program memory 16-bit data whenever it sets ?1?, the contents of a data register are transmitted to dal address register. it transmits 16 bits of program memories by dal instruction 0: dal add3, (r) instruction select 1: dal da instruction select y1 y2 y4 y8 dal ?? 1 3 da12 da13 * /0 * /0 l/k3a y1 y2 y4 y8 dal (data) da/0 /0 /0 l/k3b y1 y2 y4 y8 dal ?? 1 2 da8 da9 da10 da11 y1 y2 y4 y8 dal ?? 1 1 da4 da5 da6 da7 l/k3b y1 y2 y4 y8 dal address1 0 da0 da1 da2 da3
TC9329FA/fb 2002-02-07 71 the data register is 16-bit register for which load the program memory data when the dal instruction is executed. the contents of this register are loaded into the data memory in 4-bit units with the execution of the out1/in1 instructions for which [cn = ch~fh] has been specified in the operand. this register can be used for loading lcd segment decoding operations, radio band edge data and the data related to binary to bcd conversion. the dal address register (da) is 14-bit register for which specified the program memory indirectly when the dal instruction is executed. there are 2 kinds of operation methods of dal instruction. the control is selected by dal bit. when dal bit is set ?0?, addr3 (6 bit) of the operand and contents of general register (r) becomes the reference address of program memory and when dal bit is set ?1?, 14 bit of dal address register becomes reference address. at the time of setting dal bit is ?0? and execution of dal instruction, only program memory area (0000h~03ffh) becomes reference area and dal bit is set ?1? and execution of dal instruction, all program memory area (0000h~3fffh) becomes reference area. if (data) da bit is set to ?1?, it can transfer from the contents of data register to 14 bit dal address register by executing of single instruction. the contents of dal address register are accessed the data in 4-bit units with the execution of the out3/in3 instruction for which [cn = bh] have been specified in the operand. dal address register port is setup by data select port ( l2d) for which divides and indirect specified. the data of a specification port to set beforehand is set and the data port corresponding to it is accessed. data select port is + 1 incremented whenever is accessed this port( l3b, k3b). for this reason, after setting up a data selection port, it can access continuously. dal bit and (data) da bit are accessed with the execution of out3/in3 instruction for which [cn = ah] has been specified in the operand. note: dal address register becomes effective only execution of dal instruction when setting ?1? and becomes unrelated at the time of other instruction execution. it does not have the influence on this register by dal instruction. note: for this product have 4 k step of rom capacity, if 1000h - 3fffh is specified to be dal address register and dal instructiion is executed, the contents of a data register will become unfixed. note: it?s possible to write in and read out for data registeter and dal address regsiter. please evacuate and return in a data memory if needed at the time of interruption. note: it?s no action when (data) da bit is set ?0? . when it accesses to k3a, it only read out only the dal bit. (the other bit is ?0?.) 3. carry f/f (ca flag, kl1c) this is set when either carry or borrow are issued in the result of calculation instruction execution and is reset if neither of these is issued. the carry f/f is accessed with out1/in1 instructions for which [cn = ch] have been specified. for this reason, evacuation and a return of the carry f/f at the time of interruption can be performed easily. carry f/f is written in a data memory by in1 instruction at the time of evacuation, it is evacuated, and the data evacuated by out1 instruction is transmitted to carry f/f from a data memory at the time of a return. y1 y2 y4 y8 l/k1c ca flag * /0 * /0 * /0 carry f/f
TC9329FA/fb 2002-02-07 72 timer port the timer us equipped with 100 hz, 10 hz and 2 hz f/f bits and used for counting clock operations and tuning scan mode, etc. 1. timer port the timer ports are accessed with the out2 instruction for which [cn = 6h] has been specified in the operand 2. timer port timing the 2 hz timer f/f is set with the 2 hz (500 ms) signal and is reset by setting ?1? in the reset port?s 2 hz f/f. this bit is usually used as a clock counter. the 2 hz timer f/f can only by reset with the reset port?s 2 hz f/f, and incorrect counts will be output and correct timers not acquired if not reset within a 500 ms cycle. the 10 hz and 100 hz timers are output to 10 hz and 100 hz bits will respective cycles of 100 ms and 10 ms and a pulse of duty 50%. counters at 1 khz or below will be reset whenever the reset port?s timer bit is set at ?1?. 2 hzf/f reset execution 500 ms t < 500 ms 2 hzf/f output 2 hz clock t 5 ms 100 ms 10 ms 50 ms 100 hz 10 hz y1 y2 y4 y8 l26 2 hz f/f timer the 10 hz, 100 hz and under 1 khz bits are reset whenever ?1? is set. y1 y2 y4 y8 k26 2 hz f/f 10 hz 100 hz the 2 hz is reset whenever ?1? us set. timer reset port
TC9329FA/fb 2002-02-07 73 output port (both as lcd driver terminal) there are 14-output ports of 14 cmos type. these output port are used as lcd driver and changed output port by v lcd off bit. if v lcd off bit is set to ?1?, this port becomes output port. the outputted data to output port is used as segment data port-1 ( l2e). this data is accessed with out2 instruction for which [cn = eh] is specified and is setup by data select port ( l2d) for which divides and indirect specified as same as segment data. the data of a specification port to set a segment data port to beforehand is set, and the data port corresponding to it is accessed. the data select port is + 1 incremented whenever is accessed segment data port-1 ( l2e). for this reason, after setting up a data selection port, it can set up continuously. output data is + 1 increment with ot count up bit by executing one instruction. for this reason, it can use as an address signal output when using an external memory etc. output buffer capability can be changed at the time of an output setup. if otb-up bit is set ?0?, it becomes low output buffer (same performance of lcd output driver) and set ?1?, it becomes high output buffer. usually, at the time of an output port setup, this bit is set ?1?. the power supply of this output port is used v lcd dobuler potential, when using it as an output port, remove for the capacitor of v lcd doubler potential (between c3-c4) and connect with v dd terminal and use v lcd terminal. note: data select port is + 1 increment automatically whenever is accessed l2e, l2f, l3b, k3b on i/o map. note: if set ?0? to ot count up bit, it?s not performed count-up. note: refer to lcd driver item. l2d y1 y2 y4 y8 sel1 sel2 sel4 sel8 data select if v lcd off-bit is set ?1?, segment output data will turn into output port data. y1 y2 y4 y8 dal ?? 1 3 ot13 ot14 * * l/k3b y1 y2 y4 y8 dal ?? 1 2 ot9 ot10 ot11 ot12 y1 y2 y4 y8 dal ?? 1 1 ot5 ot6 ot7 ot8 l2e y1 y2 y4 y8 output port data 0 ot1 ot2 ot3 ot4 l3a y1 y2 y4 y8 ot count up in this bit whenever is set ?1?, all the ot1 - ot14 is count up ( + 1). ot1 bit is lower bit; ot14 bit is upper bit and count up from ot1 bit. l2ff y1 y2 y4 y8 otb -up 0: low output buffer 1: high output buffer control bit for output port (ot) buffer performance at set up output port, it set to ?1?.
TC9329FA/fb 2002-02-07 74 mute output this is a dedicated 1-bit cmos output port fro muting control purposes. 1. mute port this port is accessed with the out1/in1 instruction for which [cn = 8h] has been specified in the operand. mute output is used for muting control. this function prevents noise from being generated during linear circuit switching when band is performed with the i/o port-1 or hold input. this control is set up according to the contents of i/o bit and hold bit. pol bit sets up the logic of mute output. please set up according to specification. 2. circuit composition of mute output l/k18 y1 y2 y4 y8 mute i/o pol hold 0: even if hold input status changes, mute output does not change. 1: by changing hold input status, mute bit is set to ?1?. control b y chan g e of hold in p ut state chan g in g 0: positive logic: mute bit output without modification 1: negative logic: mute bit inversed and output mute output polarity control 0: mute output not amended when changes in i/o port-1input status exist 1: mute bit se at ?1? when changes in i/o port-1 input status exist control selection by changes in the i/o port-1input status 0: mute output set at ?l? level during positive logic and ?h? level during negative logic. 1: mute output set at ?h? level during positive logic and ?l? level during negative logic. mute output setting 32 i/o bit the signal of input change of i/o port -1 hold bit the signal of hold input terminal changing pol bit mute reset signal mute bit s
TC9329FA/fb 2002-02-07 75 test port access is performed with the out1 instruction for which [cn = fh] has been specified in the operand, and the out2 instruction for which [cn = 6h] has been specified in the operand. ?0? is usually se with the program. if the following data is set as test port from #3 to #0, various signals can be made to output from mute terminal. #3 #2 #1 #0 data mute terminal output 0 0 0 0 0 mute output 0 0 0 1 1 programmable counter frequency 0 0 1 0 2 reference frequency ~ ~ ~ ~ ~ prohibition 0 1 0 1 5 cr vco frequency ~ ~ ~ ~ ~ 1 1 1 1 f prohibition application to an emulator tip if test terminal is supplied ?h? level (test mode), the device operates as an emulator chip. three kinds of test modes are prepared and can constitute a soft development tool by using three devices. radio operation can be checked by the connection between this soft development tool and ic for tuners, performing soft development. please refer to TC9329FA/fb software development tool specifications of a development tool. l1f y1 y2 y4 y8 #0 #1 #2 #3 test port l26 y1 y2 y4 y8 #4 test port
TC9329FA/fb 2002-02-07 76 maximum ratings (ta = = = = 25c) characteristics symbol rating unit supply voltage v dd ? 0.3~4.0 v voltage doubler boosting voltage v db ? 0.3~4.0 v output voltage 1 (n-channel open drain) v o1 ( * ) ? 0.3~4.0 v output voltage 2 (n-channel open drain) v o2 ( * ) ? 0.3~v db + 0.3 v output voltage 3 (n-channel open drain) v o3 ( * ) ? 0.3~v lcd + 0.3 v input voltage v in ? 0.3~v dd + 0.3 v power dissipation p d 100 mw operating temperature t opr ? 10~60 c storage temperature t stg ? 65~150 c * : v o1 : p3-0~p3-3 pin v o2 : p5-0~p5-3 pin v o3 : p8-0~p8-3, p9-0~p9-3 pin electrical characteristics (unless otherwise noted, ta = = = = 25c, v dd = = = = 1.5 v) characteristics symbol test circuit test condition min typ. max unit v dd1 ? under cpu operation ( * ) 0.9 ~ 1.8 range of operating supply voltage v dd2 ? under pll operation ( * ) 0.9 ~ 1.8 v range of memory retention voltage v hd ? crystal oscillation stopped (ckstp instruction executed) ( * ) 0.75 ~ 1.8 v i dd1 ? pll operation (vhf mode), at input fmin = 230 mhz ? 6 10 ma i dd2 ? under cpu operation only (pll off, display turned on, v reg off) ? 40 80 i dd3 ? under cpu operation only (pll off, display turned on, v reg on) ? 50 ? i dd4 ? in hard wait mode, (pll off, crystal oscillator operating only) ? 20 40 i dd5 ? at soft wait executed, (pll off, cpu stopped) ? 30 ? operating current i dd6 ? under cpu accelerated operation, (cr oscillator operation, pll off, display on) ? 250 500 a memory retention current i hd ? crystal oscillation stopped (ckstp instruction executed) ? 0.1 1.0 a crystal oscillation frequency f xt ? ( * ) ? 75 ? khz crystal oscillation start-up time t st ? crystal oscillation f xt = 75 khz ? ? 1.0 s cr oscillation frequency f crw ? v dd = 1.1~1.8 v, ta = ? 10~60c 0.8 1.0 1.2 mhz for conditions marked by an asterisk ( * ), guaranteed when v dd = 0.9~1.8 v, ta = ? 10~60c
TC9329FA/fb 2002-02-07 77 voltage doubler boosting circuit characteristics symbol test circuit test condition min typ. max unit doubled voltage v db ? gnd reference (v db ) ? v dd 2 ? v doubled voltage output current i db ? v oh = v db ? 0.1 v (v db ) ? 50 ? 200 ? a doubled voltage reference voltage v ee ? gnd reference (v ee ) 1.35 1.50 1.65 v constant voltage for phase comparator v reg ? gnd reference (v reg ) ( * ) 1.35 1.50 1.65 v constant voltage temperature characteristic dv ? gnd reference (v ee ) D ? 5 ? mv/c power supply output current for phase comparator i reg ? v oh = v reg ? 0.1 v (v reg ) (note 1) ? 50 ? 200 ? a doubled voltage v lcd ? gnd reference (v lcd ) 2.7 3.0 3.3 v doubled voltage output current i lcd ? v oh = v lcd ? 0.1 v (v lcd ) (note 1) ? 50 ? 200 ? a * : guaranteed when v dd = 0.9~1.8 v, ta = ? 10~60c note 1: the ?h? level output current of the pin using the v reg /v lcd power supply must not exceed the power supply (doubled voltage: v db ) output current. programmable counter/if counter operating frequency range characteristics symbol test circuit test condition min typ. max unit oscin (vhf mode) f vhf ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 80 ~ 230 mhz oscin (fm mode) f fm ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 60 ~ 130 mhz f hf1 ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 3.0 ~ 30 oscin (hf mode) f hf2 ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 1.0 ~ 10 mhz oscin (lf mode) f lf ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 0.5 ~ 8 mhz ifin1, ifin2 f if ? v in = 0.1 v p-p , v dd = 0.9~1.8 v ( * ) 0.3 ~ 12 mhz psc transfer delay time tpd ? c l = 15 pf, v dd = 1.1~1.8 v (psc) ( * ) D D 400 ns * : guaranteed when v dd = 0.9~1.8 v, ta = ? 10~60c programmable counter/if counter input amplitude range characteristics symbol test circuit test condition min typ. max unit oscin (vhf mode) v vhf D same as for f vhf ( * ) 0.1 ~ 0.6 v p-p oscin (fm mode) v fm D same as for f fm ( * ) 0.1 ~ 0.6 v p-p oscin (hf mode) v hf D same as for f hf1~2 ( * ) 0.1 ~ 0.6 v p-p oscin (lf mode) v lf D same as for f lf ( * ) 0.1 ~ 0.6 v p-p ifin1, ifin2 v if D same as for f if ( * ) 0.1 ~ 0.6 v p-p * : guaranteed when v dd = 0.9~1.8 v, ta = ? 10~60c
TC9329FA/fb 2002-02-07 78 lcd common output/segment output (com1~com4, s1~s18) characteristics symbol test circuit test condition min typ. max unit ioh1 ? v lcd = 3 v, v oh = v lcd ? 0.3 v (com1~com4) ? 0.10 ? 0.20 ? ?h? level ioh2 ? v lcd = 3 v, v oh = v lcd ? 0.3 v (s 1 ~s 18 ) ? 0.05 ? 0.10 ? iol1 ? v lcd = 3 v, v ol = 0.3 v (com1~com4) 0.10 0.30 ? output current ?l? level iol2 ? v lcd = 3 v, v ol = 0.3 v (s 1 ~s 18 ) 0.05 0.15 ? ma output voltage 1/2 level vbs ? no load (com1~com4) 1.35 1.5 1.65 v output port, i/o port (ot1~ot14, p8-0~p8-3, p9-0~p9-3) characteristics symbol test circuit test condition min typ. max unit ?h? level ioh3 ? v lcd = 3 v, v oh = v lcd ? 0.3 v (note 2, except i/o port) ? 1.5 ? 3.0 ? output current ?l? level iol3 ? v lcd = 3 v, v ol = 0.3 v 1.5 3.0 ? ma input leak current ili ? v ih = v lcd , v il = 0 v (p8-0~p8-3, p9-0~p9-3) ? ? 1.0 a ?h? level v ih1 ? (p8-0~p8-3, p9-0~p9-3) v dd 0.8 ~ v dd input voltage ?l? level v il1 ? (p8-0~p8-3, p9-0~p9-3) 0 ~ v dd 0.2 v note 2: the ?h? level output current is the current when the pin power supply is fixed. make sure that pins using v reg /v lcd power supply do not exceed the power supply (doubled voltage: v db ) output current.
TC9329FA/fb 2002-02-07 79 i/o port (p1-0~p5-3) characteristics symbol test circuit test condition min typ. max unit ioh4 ? v dd = 1.5 v, v oh = v dd ? 0.2 v (i/o port p2, p4) ? 0.4 ? 0.8 ? ?h? level ioh5 ? v dd = 0.9 v, v oh = v dd ? 0.2 v (i/o port p2, p4) ? 0.04 ? 0.2 ? iol4 ? v dd = 1.5 v, v ol = 0.2 v (except i/o port p3) 0.5 1.0 ? iol5 ? v dd = 0.9 v, v ol = 0.2 v (except i/o port p3) 0.1 0.3 ? output current ?l? level iol6 ? v dd = 0.9~1.8 v, v ol = 0.2 v (i/o port p3) 1.0 2.0 ? ma ? v ih = v dd , v il = 0 v (i/o port p1, p2, p4) ? ? 1.0 ? v ih = 3.6 v, v il = 0 v (i/o ?` p3) ? ? 1.0 input leak current ili ? v ih = v db , v il = 0 v (i/o port p5) ? ? 1.0 a v ih2 ? except i/o port 3 v dd 0.8 ~ v dd ?h? level v ih4 ? i/o port 3 v dd 0.8 ~ 3.6 input voltage ?l? level v il2 ? ? 0 ~ v dd 0.2 v input pull-down resistor rin1 ? when p1-0~p1-3 are set to pull-down or pull-up 30 60 120 k ? sck clock external input frequency f sio ? when i/o port p3-3 are set to serial clock input ? ? 200 khz mute output characteristics symbol test circuit test condition min typ. max unit ioh4 ? v dd = 1.5 v, v oh = v dd ? 0.2 v ? 0.4 ? 0.8 ? ?h? level ioh5 ? v dd = 0.9 v, v oh = v dd ? 0.2 v ? 0.04 ? 0.2 ? iol4 ? v dd = 1.5 v, v ol = 0.2 v 0.5 1.0 ? output current ?l? level iol5 ? v dd = 0.9 v, v ol = 0.2 v 0.1 0.3 ? ma hold , intr1/2, in1/2 input port, reset input characteristics symbol test circuit test condition min typ. max unit input leak current ili ? v ih = v dd , v il = 0 v ? ? 1.0 a ?h? level v ih3 ? ? vdd 0.8 ~ v dd input voltage ?l? level v il3 ? ? 0 ~ v dd 0.2 v note 2: the ?h? level output current is the current when the pin power supply is fixed. make sure that pins using v reg /v lcd power supply do not exceed the power supply (doubled voltage: v db ) output current.
TC9329FA/fb 2002-02-07 80 a/d converter (adin1~adin4) characteristics symbol test circuit test condition min typ. max unit analog input voltage range vad ? ? 0 ~ v db v resolution vres ? ? ? 6 ? bit conversion total error ? ? ? ? 0.5 1.0 lsb analog input leak ili ? v dd = v db , v ih = v db , v il = 0 v ? ? 1.0 a do output characteristics symbol test circuit test condition min typ. max unit ?h? level ioh4 ? v reg = 1.5 v, v oh = v reg ? 0.2 v (note 2) ? 0.4 ? 0.8 ? output current ?l? level iol4 ? v reg = 1.5 v, v ol = 0.2 v 0.5 1.0 ? ma output off leak current itl ? v dd = 1.5 v, v tlh = 1.5 v, v tll = 0 v ? ? 100 na others characteristics symbol test circuit test condition min typ. max unit input pull-down resistance rin2 ? (test) 5 10 30 k ? xin amp. feedback resistance rfxt ? (xin-xout) ? 20 ? m ? xout output resistance rout ? (xout) ? 4 ? k ? ? vhf mode, fm mode (oscin) 100 200 400 rf in1 ? hf mode, lf mode (oscin) 300 600 1200 input amp. feedback resistance rf in2 ? (ifin1, ifin2) 300 600 1200 k ? note 2: the ?h? level output current is the current when the pin power supply is fixed. make sure that pins using v reg /v lcd power supply do not exceed the power supply (doubled voltage: v db ) output current.
TC9329FA/fb 2002-02-07 81 package dimensions weight: 0.32 g (typ.)
TC9329FA/fb 2002-02-07 82 package dimensions weight: 0.45 g (typ.)
TC9329FA/fb 2002-02-07 83 ? toshiba is continually working to improve the quality and reliability of its products. nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. it is the responsibility of the buyer, when utilizing toshiba products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such toshiba products could cause loss of human life, bodily injury or damage to property. in developing your designs, please ensure that toshiba products are used within specified operating ranges as set forth in the most recent toshiba products specifications. also, please keep in mind the precautions and conditions set forth in the ?handling guide for semiconductor devices,? or ?toshiba semiconductor reliability handbook? etc.. ? the toshiba products listed in this document are intended for usage in general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). these toshiba products are neither intended nor warranted for usage in equipment that requires extraordinarily high quality and/or reliability or a malfunction or failure of which may cause loss of human life or bodily injury (?unintended usage?). unintended usage include atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, all types of safety devices, etc.. unintended usage of toshiba products listed in this document shall be made at the customer?s own risk. ? the products described in this document are subject to the foreign exchange and foreign trade laws. ? the information contained herein is presented only as a guide for the applications of our products. no responsibility is assumed by toshiba corporation for any infringements of intellectual property or other rights of the third parties which may result from its use. no license is granted by implication or otherwise under any intellectual property or other rights of toshiba corporation or others. ? the information contained herein is subject to change without notice. 000707eb a restrictions on product use


▲Up To Search▲   

 
Price & Availability of TC9329FA

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X