Part Number Hot Search : 
CS4961XX MC120 Z4A130 C992M1 LC7867E MMUN221 C023M BD5328
Product Description
Full Text Search
 

To Download TC9329AFAG Datasheet File

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


  Datasheet File OCR Text:
  TC9329AFAG/afcg 2006-03-02 1 toshiba cmos digital integrated circuit silicon monolithic TC9329AFAG, tc9329afcg portable audio dts controller (dts-21) the TC9329AFAG/afcg is a single-chip dts microcontroller for portable audio incorporating a 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 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: cpu in operation: i dd = 40 a typ. pll in operation: i dd = 6 ma typ. (vhf mode) ? operating temperature range: ta = ? 10~60c ? program memory (rom): 16 bits 4096 steps ? data memory (ram): 4 bits 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 bits 4-channels ? 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 bits (as timer clock: intr1/intr2; instruction cycle: 1 khz selectable) ? pulse counter: 8-bit up/down counter (input via intr2 pin) buzzer: 8 settings, 0.625~3 khz; 4 built-in modes consisting of continuous, single-shot, 10 hz intermittent, or 10 hz intermittent at 1 hz intervals. ? interrupts: 2 external, 2 internal (serial interface, 8-bit timer) ? package: qfp-64 (0.5-mm/0.65-mm pitch, 1.4-mm thickness) note: handle with care to prevent devices from deteriorating due to electrostatic discharge. TC9329AFAG tc9329afcg weight lqfp64-p-1010-0.50e : 0.32 g ( typ.) tqfp64-p-1010-0.50c : 0.26 g ( typ.)
TC9329AFAG/afcg 2006-03-02 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/tqfp64 (0.5 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 10111213141516
TC9329AFAG/afcg 2006-03-02 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) x?tal 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 rese t 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)
TC9329AFAG/afcg 2006-03-02 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 outputs common signals to lcd panels. through a matrix with pins s1 to s18, a maximum of 72 segments can be displayed. three levels, v lcd , vee (1/2 v lcd ), 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. an instruction increments the data ports (ot1 to ot14) by 1 every time data are accessed. therefore the ports 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 doubled voltage v lcd . therefore disconnect the voltage boosting capacitor and 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
TC9329AFAG/afcg 2006-03-02 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), 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 at 1 hz intervals 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
TC9329AFAG/afcg 2006-03-02 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 change in the input of i/o port 1 and hold . the 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 built in.) v dd v dd r in2 input instruction v dd to ad converter
TC9329AFAG/afcg 2006-03-02 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, resulting in entry to 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 is set tooff. regardless of this input state, wait mode is executed in order to lower power dissipation. either operation of the crystal oscillator only or cpu suspension can be programmed. for operation of the crystal oscillator only, 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
TC9329AFAG/afcg 2006-03-02 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. 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. note: to operate the power on reset, the power supply should start up in 10~100 ms. v dd r fin 2 gnd v dd
TC9329AFAG/afcg 2006-03-02 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 is supported. 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. 54 reset reset input input pin for system reset signals. reset takes place at low level; at high level, the program starts from address ?0?. v reg v dd r fin 1 v reg
TC9329AFAG/afcg 2006-03-02 10 pin no. symbol pin name function and operation remarks 55 xout 56 xin crystal oscillator pin crystal oscillator pins. a reference 75 khz crystal resonator is connected to the xin and xout pins. 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. usually, the clock of a crystal oscillator is used for the clock for peripheral equipment. through programming, the built-in vco can be changed to cpu and cpu only operation can be accelerated. 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) note: when the lcd pin is set as an output port, the ?h? level output is the doubled voltage v lcd . therefore disconnect the voltage boosting capacitor and connect the v lcd pin to the v dd pin. v dd r f xt xout xin rout v lcd
TC9329AFAG/afcg 2006-03-02 11 description of operations cpu the cpu consists of a program counter, a stack register, an alu, a program memory, a data memory, a g-register, a data register, a dal address register, a 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 the 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: addresses 0000h-0fffh are reserved for the program memory. for this reason, access to addresses outside this range is prohibited. 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 vector 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 inst ruction (addr2) dal address register (da) contents of stack register vector address of each interruption contents of general register (r) operand of instruction (addr3)
TC9329AFAG/afcg 2006-03-02 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 ~ 0fffh. the program memory is divided into 4096 separate steps and consists of page 0 ~ 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 ~ 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 ~ 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. * 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 area * 2 jump instruction specification area call instruction specification area
TC9329AFAG/afcg 2006-03-02 13 5. data memory (ram) the data memory consists of 4 bit 256 words and is used for storing data. these 256 words are expressed in row addresses (4 bits) and column addresses (4 bits). 192 words (row address = address 004h ~ 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 ~ 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 ~ 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 row address are used ?0? (00h ~ 0fh address). note: by using ld and st instructionss, it can be addressed directly in 256 words (row address = 00h ~ 0fh) in a data memory. 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 ~ 0fh) ld and st instructions allow low addresses (0h ~ fh) to be directly indirect specification of row addresses (4h ~ fh ) with the g-re g ister the indirect specification of row address = 0h ~ fh is also possible * colmun address: dc row address: dr *
TC9329AFAG/afcg 2006-03-02 14 6. g-register (g-reg) the g-register is a 4 bits register used for addressing the row addresses (d r = 4h ~ 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 the register port section.) 7. data register (data reg) the data register consists of 1  16 bits and stores 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 an in1 instruction from among the i/o instructions is executed. ( refer to the register port section.) moreover, this register supports writing from the data memory and is used 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 a 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 section in 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 are not affected by the execution of any other instruction. the carry f/f can be accessed by the 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 the register port section.) 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 15 instructions 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 the interruption function section.)
TC9329AFAG/afcg 2006-03-02 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
TC9329AFAG/afcg 2006-03-02 16 13. table of instruction functions and operational instructions (description of the symbols used in the table) m : data memory address. generally one of the addresses from among addresses 00h to 3fh in the data memory. m* : data memory address (256 words) one of the addresses from among addresses 000h to 0ffh in the data memory. (effective only at the time of st and ld instruction execution) r : general register one of the addresses from among addresses 00h to 00fh in the data memory. pc : program counter (14 bits) stack : stack register (14 bits) g : g-register (6 bits) data : data register (16 bits) i : immediate data (4 bits) i* : immediate data (6 bits, effective only at the time of stig instruction execution) n : bit position (4 bits)  : all ?0? c : port code no. (4 bits) cn : port code no. (4 bits) rn : general register no. (4 bits) addr1 : program memory address (14 bits) addr2 : program memory address within page 0 to 3 (12 bits) addr3 : high order 6 bits of the program memory address within page 0. da : dal address register (14 bits, effective only dal instruction at the time of dal bits is set to ?1?) ca : carry cy : carry flag p : wait condition b : borrow in1~in3 : the ports used during the execution of instructions in1 to in3 out1~out3 : the ports used during the execution of instructions out1 to out3 ( ) : contents of the register or data memory [ ] c : contents of the port indicating code no. c (4 bits) [ ] : contents of the data memory indicating the contents of the register or data memory [ ] p : contents of the program memory (16 bits) ic : instruction code (6 bits) * : commands equipped with the skip function dc : data memory column address (4 bits) dr : data memory row address (2 bits) dr* : data memory row address (4 bits, effective only at the time of st and ld instruction execution) (m) b0~(m) b3 : bits data of the contents of a data memory (1 bit)
TC9329AFAG/afcg 2006-03-02 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) > = * 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) > = 1 if (r) < (m) + (ca) or (cy) 0 if (r) > = + (ca) 011101 dr dc rn
TC9329AFAG/afcg 2006-03-02 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.
TC9329AFAG/afcg 2006-03-02 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 (1 2 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: the imf bit is an interruption master permission flag and is arranged on i/o map. ( refer to the interruption function section. )
TC9329AFAG/afcg 2006-03-02 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 memory?s 10-bit 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) are arrenged on the i/o map. ( refer to the register port section) note: when ?1? is set to dal bit and the dal instruction is executed, all the operand part becomes invalid and the reference addresses are used for the dal address register.
TC9329AFAG/afcg 2006-03-02 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
TC9329AFAG/afcg 2006-03-02 22 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 * kl2d data select s1 s2 s4 s8
TC9329AFAG/afcg 2006-03-02 23 i/o map all of the ports within the device are expressed with a matrix of six i/o instructions (out 1 ~ 3 instructions and in 1 ~ 3 instructions) and a 4-bit code number. the allocation of these ports is shown on the following page in the form of an i/o map. the ports used in the execution of the various i/o instructions on the horizontal axis of the i/o map are allocated to the port code numbers indicated on the vertical axis. the g-register, data register and dal bits are also used as ports. the out1 ~ 3 instructions are specified as output ports and the in 1 ~ 3 instructions are specified as input ports. note: the ports indicated 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 affected 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 don?t care status. note: the y1 contents of the ports expressed in 4 bits correspond to the data memory?s low order bits and the y8 contents correspond to the high order bits. the ports specified with the six i/o instructions and code no. c are coded in the following manner: (example) the setting for the g-register is allocated to code ?d? and ?e? in the out1 instruction. the encoded expression at this time becomes ? l1d?and ? l1e?. [ k/l ] m n ( o ) contents of the selection port (indirectly specified data, 0-f [hex]) i/o instruction?s 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)
TC9329AFAG/afcg 2006-03-02 24 clock generator the clock generator generates the standard clock used as the standard of the system clock supplied to a core-based cpu and circumference hardware. through the program, it is possible to switch between an external crystal oscillation circuit and the built-in cr oscillation circuit as the cpu operation clock. 1. crystal oscillation circuit 75 khz crystal resonator is connected to the device?s crystal resonator terminal (xn, xout) as indicated below. during normal operation, the oscillation signal is supplied to the clock generator, the reference frequency divider and other elements, and generates the various cpu timing signals and reference frequency. note: it is necessary to use a crystal resonator with a low ci value and favorable start-up characteristics. be sure to adjust and set the external resistance and capacitor constant to the crystal resonator actually used. 2. cr vco through the use of the built-in cr vco, it is possible to raise the cpu processing speed. this will be utilized for high-speed processing in the required system. the oscon bit controls the on/off operation of the cr oscillation circuit; and if this bit is set to ?1?, the cr vco starts operating. if the setting of the cpu select bits is ?0?, the cpu operates on the 75 khz for the crystal oscillator clock; if the setting is ?1?, the cpu operates on the cr vco clock. the oscillation frequency of cr vco (fcr) is 1 mhz (typ.); and a clock that divides this frequency by 1/2 or 1/4 can be used as the cpu operation clock. the cr vco frequency serves as a system that can control the resistance of the cr vco through the program so that factors, such as power supply voltage and the variations in the built-in capacitor and resistance can be changed. for this reason, it is possible to calculate the cr oscillation frequency using the if counter. if used for the cpu clock, the frequency of the cr vco is changed to the cpu operation clock after the cr vco resistance is controlled and adjusted to the set-up frequency and the cr oscillation frequency is calculated using the if counter. moreover, the frequency changes with the change in power supply voltage from ? 15% to + 10% of the set value, v dd = 1.5 v (i.e., from v dd = 1.1 v to v dd = 1.8 v). if a setting frequency with an accuracy greater than this range is required, be sure always to adjust the cr vco frequency using the if counter. the frequency setting range of cr vco can be freely set up in the range 0.8 to 1.2 mhz. the resistance of the cr vco, which has a standard value of 36 k ? (1 mhz), can be programmed to 16 levels, from 20 k ? to 50 k ? (in 2 k ? steps) and the value set using the data of 3 bits of osc0-osc3. the freq select bit sets the division value of the cr oscillation frequency. the frequency is fcr/2 if this bit is set to ?0?, and fcr/4 if the bit is set to ?1?. when the frequency is set to f cr = 1 mhz, the instruction executing time is compared with the 40 s for when the crystal oscillator clock is used. the instruction execution time is accelerated to 3/500 khz = 6 s for 1/2 division mode, and to 3/250 khz = 12 s for 1/4 division mode. although the processing speed of the cpu is accelerated, other timing functions (such as that for the timer, etc.) operate on the crystal oscillation frequency. the ifin bit is a control bit for changing the cr oscillation frequency clock to the if counter. if ?0? is set, the if counter starts calculating the if (etc.); if ?1? is set, the cr vco frequency can be selected as the clock input of the if counter. to calculate the cr vco frequency, it is necessary to set the prescaler in bit to ?1?. ( refer to if counter item.) moreover, the cr oscillation frequency clock can be output from the mute terminal, and used for external ic clocks and monitoring of the cr oscillation clock monitor. if the test port 1 ( l1f) is set to ?5h?, the cr vco clock outputs from mute terminal. the setup and control of the frequency of the cr vco is set using an out3 instruction for which [cn = 6~7h] has been specified in the operand 57 (gnd) 56 (xin) 55 (xout) 54 co x'tal ci r x?tal = 75 khz
TC9329AFAG/afcg 2006-03-02 25 note: the oscillation frequency is t he frequency of a standard product and this frequency varies with the power supply voltage and the product. the frequency range in which settings be made is from 0.8~ 1.2 mhz. 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: used for crystal resonator frequency clock 1: used 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
TC9329AFAG/afcg 2006-03-02 26 system reset the device?s system will be reset when the reset terminal is subject to the ?l? level. the program will start from 0 address after about 100 ms of stand-by time have elapsed following system reset. note: the lcd common output and the segment output will be fixed at their ?l? level during system reset and during the subsequent stand-by period. note: it is necessary to initialize through the program any of the internal ports shown in the above-mentioned i/o map that were not initialized after system reset. the mark on the i/o map after system reset indicates a port or bit set to ?0? after system reset, while the mark indicates a port or bit set to ?1?. a port or bit with no mark is unfixed.. note: if there is a possibility that the power supply voltage will drop to 0.9 v or less, set to clock stop mode or activate the reset operation. 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?. a fter system reset, this bit is unfixed. cpu operation v dd terminal 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 ) crystal oscillator stops during the reset from a reset terminal. (note) (note)
TC9329AFAG/afcg 2006-03-02 27 back-up mode by executing the ckstp instruction or wait instruction, three kinds of back-up mode can be activated. 1. clock stop mode clock stop mode is a function that suspends system operations and maintains the internal status immediately prior to suspension at a low level of current consumption (under 1 a). crystal oscillations suspended simultaneously and cmos output ports and output terminals for lcd display purposes are automatically set at ?l? level, and n-channel open-drain terminals are set to off status (high impedances) automatically. the supply voltage can be reduced to 0.75 v with clock stop mode. suspension is activated at the ckstp instruction execution address when the ckstp instruction is executed. the next address is executed after approximately 100 ms of stand-by time when clock stop mode is cancelled. (1) clock stop mode setting there are two types of mode setting for clock stop mode. the required setting is selected with the ckstp mode bit. this bit is accessed with the out2 instruction for which [cn = 6h] has been specified in the operand. mode-0 wtih this mode set, the clock stop mode is assumed if the ckstp instruction is executed when the hold terminal is at ?l? level. the same operations as the noop instruction will be assumed if the ckstp instruction is executed when the hold terminal is at ?h? level. mode-1 with this mode set, the clock stop mode is assumed when the ckstp instruction is executed regardless of the hold terminal level. note: the pll will assume off status during execution of the ckstpinstruction. note: before the execution of the clock stop instruction, be sure to access the hold input terminal and i/o port 1 input port and rest the 2 hzf/f. without execution of this instruction, it may not be possible to enter clock mode even if clock mode is executed. (2) canceling clock stop mode mode-0 clock stop mode is cancelled when specified in this mode by changing the ?h? level of the hold terminal or the input status of the i/o port (p1-0~3) specified in the input port. mode-1 clock stop mode is cancelled when specified in this mode by changing the hold terminal or the input status of the i/o port (p1-0~3) specified in the input port. y1 y2 y4 y8 l26 ckstp mode 0: mode-0 1: mode-1
TC9329AFAG/afcg 2006-03-02 28 (3) clock stop mode timing mode-0 (the clock stop mode is assumed if the ckstp instruction is executed when the hold input is at ?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) 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
TC9329AFAG/afcg 2006-03-02 29 2. wait mode wait mode suspends system operations, maintains the internal status immediately prior to suspension and reduces current consumption. there are two types of wait mode: soft wait mode and hard wait mode. operations are suspended at the address where the wait instruction was executed when the wait mode is activated. the next address is executed immediately after the wait mode is cancelled without entry to stand-by status. (1) soft wait mode only the cpu operations within the device are suspended on execution of a wait instruction in which [p = 0h] has been specified in the operand. the crystal resonator and other elements will continue to operate normally at this time. the soft wait mode is efficient in reducing current consumption during clock operations when used in programs that include clock functions. note: current consumption will differ in accordance with execution time of cpu operation. (2) hard wait mode the operations of all elements, with the exception of the crystal resonator, can be suspended by the execution of a wait instruction in which [p = 1h] has been specified in the operand. this enables even greater levels of current consumption reduction than the soft wait mode. it suspends the cpu operation. note: the output port is maintained during hard wait mode. all lcd display output terminals are fixed at ?l? level and the voltage doubler circuit (v db ), lcd voltage regulator ciicuit (v ee ) and lcd voltage doubler circuit (v lcd ) operate. (3) wait mode setting the wait status is assumed whenever the wait instruction is executed. note: the pll off status will be assumed during the wait mode. (4) wait mode cancellation conditions wait mode is cancelled when the following conditions are satisfied: 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 the hold terminal can be used as an input port. this bit loads into the data memory data input using the in1 instruction for which [cn = 7h] has been specified in the operand. it is necessary to access this port prior to the execution of the ckstp instruction when clock stop mode or wait mode is set. note that, without accessing this port it may not be possible to enter clock stop mode even if this instruction is executed. while hold pll off control bit is set to ?1?, pll off mode result if hold terminal input goes to ?l? level. therefore setting to pll off-mode can be done quickly during battery replacement. the bit is accessed with the out3 instruction for which [cn = 9h] has been specified in the operand. pll off mode becomes active even if all reference ports are ?1?. ( refer to the reference frequency divider item) note: the hold input terminal is used as an intr2 terminal. the same as data is output at the hold and intr2 input ports. 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
TC9329AFAG/afcg 2006-03-02 30 interrupt function the peripheral hardware that can use the interrupt function has an intr1 terminal, intr2 terminal, timer counter, and serial interface. if this peripheral hardware fulfills the conditions, the interrupt request signal from the peripheral hardware is output, and the interrupt request is issued. on being received, each interrupt branches to a vector address determined by the interrupt factor, and the processing routine for the interrupt begins. pretreatment and post-processing are necessary in the interrupt routine, before and after the normal interrupt processing, to restore the same state that was in effect at the time the interrupt occurred. it is necessary to perform shunting and return of the register and indestructible data memory used by alu to the data memory for interrupt use.. when interrupt processing ends, the program is restored using the return command for the interrupt function. the intr1 and intr2 terminals are serve as ifin1 and hold terminals. 1. interrupt control circuit the interrupt control circuit consists of an interrupt permission flag, an interrupt latch, and an interrupt priority circuit block. this control performs setup and control through the out2/in2 instructions. (1) interrupt enable flag the interrupt enable flag has a master permission flag and individual permission flags corresponding to each interrupt factor. an individual enable flag sets the interrupt prohibition/permission according to the interrupt factor. a master enable flag is a flag for prohibiting or permitting all interrupts. if these enable registers are set to ?1?, permission takes effect; if they are set to ?0?, prohibition takes effect.. an individual enable flag is accessed through the out2/in2 instructions for which [cn  8h] has been specified in the operand. a master enable flag can perform permission/prohibition by execution of an ei/di instruction. interrupt is prohibited by execution of a di command, and enabled by execution of an ei command. at this time, interrupt is enabled during execution of the ei command and di command in the program. if an interrupt request is received, the master enable flag is reset to ?0? and all interrupts are prohibited. on execution of the interrupt return command, the flag is set to ?1?. a master enable flag is read into the data memory using an in2 command for which [cn = 7h] has been specified. y1 y2 y4 y8 lk28 ef1 ef2 ef3 ef4 ef1 ??? intr1 terminal ef2 ??? intr2 terminal ef3 ??? serial interface ef4 ??? 8 bits timer counter an individual enable flag ?0? ??? prohibition ?1? ??? enable reset to ?0? on receipt of interrupt or execution of di command. set to ?1? on execution of the interrupt return or ei commands. y1 y2 y4 y8 k27 imf 0 0 0 master enable flag
TC9329AFAG/afcg 2006-03-02 31 (2) interrupt latch if an interrupt request generates, the interrupt latch is set to ?1?. if interrupt is enabled, the cpu will be requested to receive the interrupt, and the process will branch to the interrupt routine. if the interrupt is received at this time, the interrupt latch is reset by data ?0? automatically. interrupt latch data can read by the program and the existence or nonexistence of an interrupt occurrence can be determined on an individual basis. in accordance with the interrupt request, the interrupt latch that was set to ?1? is reset to ?0?; in this way, it is possible to cancel or initialize the interrupt request. (3) interrupt priority circuit block interrupt priority circuit is a circuit that determines the order in which interrupts are processed if interrupts occur simultaneously or if two or more interrupts have been permitted.. vector addresses for the interrupt routine are also generated in this block. priority interrupt factor vector address 1 intr1 terminal 0001h 2 intr2 terminal 0002h 3 serial interface 0003h 4 timer counter 0004h y1 y2 y4 y8 l29 ilr1 ilr2 ilr3 ilr4 interrupt latch reset if set to ?1?, interrupt latch is reset to ?0?. 0: no interrupt 1: interrupt existence y1 y2 y4 y8 k29 il1 il2 il3 il4 il1 ??? intr1 terminal il2 ??? intr2 terminal il3 ??? serial interface il4 ??? 8-bits timer counter interrupt latch data on occurrence of interrupt request, set to ?1?; on receipt of interrupt, reset to ?0?.
TC9329AFAG/afcg 2006-03-02 32 2. interrupt reception processing the interrupt request is retained until the interrupt is received or the interrupt latch is reset to ?0? by system reset operation or by the program. the interrupt reception operation is as shown below. if the interrupt conditions are fulfilled, each item of peripheral hardware outputs each interrupt request signal and sets the interrupt latch to ?1?. the interrupt latch of the interrupt factor received resets to 0 if the interrupt enable flag corresponding to each interrupt factor and the master enable flag are set to 1 . the interrupt master enable flag resets to 0 and interrupt is prohibited. the contents of a stack pointer are made -1. the contents of the program counter (pc) are shunted to the stack register. in this case, the contents of the program change to the next address after the point at which the interrupt was received, or the next address after the point at which the interrupt was permitted. the contents of the vector address corresponding to the received interrupt are transferred to the program counter. the contents of the vector address are executed. steps ~ are executed within one instruction cycle. this instruction cycle is called the ?interrupt cycle? note: the stack pointer is a pointer for which an 8-level stack register is specified. interrupt enable period interrupt holed 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
TC9329AFAG/afcg 2006-03-02 33 3. return processing from interrupt processing routine a special command, the rni instruction, is used to return to the processing state that was in effect before the interrupt was received. with execution of the rni instruction, the following processing is executed step-by-step automatically. the contents of the address stack, specified by the stack pointer, are returned to the program counter. set the interrupt master enable flag to ?1? to activate the enable state. +1 is applied to the contents to the stack pointer. the above-mentioned rni instruction processing is performed in one instruction cycle. 4. interrupt processing routine the interruption is received regardless of the program being run when the interrupt request is issued if this is the program area where the interrupt is enabled. therefore, to restore the base program after the interrupt processing is completed, it is necessary to return to the state in which interrupt processing was not being performed. for this reason, it is necessary to perform the shunting and return operations within the interrupt processing routine, at least for those items such as the register and data memory that can be operated within the interrupt processing routine. (1) shunting processing in the execution of the shunting processing, it is essential that a carry flag be shunted. if interruption is received during the execution of arithmetic or similar operations, the contents of the carry flag (cy), etc., will change, resulting in the program making incorrect decisions. for this reason, the contents of the carry flag are shunted in the data memory once through the in1 instruction in the data of the carry flag of the i/o map. the contents of the data memory used by the interruption processing routine and the contents of a general register are also made to shunt if needed. furthermore, when mvgd, mvgs or dal instruction is used in the interrupt routine, it is necessary to shunt the contents of the g-register or the dal address register. (2) return processing return processing should do the opposite to the above-mentioned shunting processing. since, when the interrupt is received, the interrupt master enable flag is reset to ?0?, it follows that before receiving the interrupt, the interrupt master enable flag must have been ?1?. for this reason, the rni instruction is executed and a master enable flag is returned. 5. multiplex interrupt multiplex interrupt is a method of processing others interrupt during interrupt processing. as shown in the figure, the other interrupt factor c or d is processed during the interrupt processing of interrupt factors a and b. in this process, the depth of the interrupt is called the interrupt level. 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
TC9329AFAG/afcg 2006-03-02 34 caution is required for the following points when using multiplex interrupt. the priority of interrupt factors restriction of the address stack level used at the time of interrupt request issue shunting processing of the carry flag, the data memory, etc. (1) priority of interrupt factor in this priority ranking, the processing of interrupt c must be given priority even if the interrupt processing of a or b is in progress; and the processing of d must be given priority even if the interrupt processing of c is in progress. the necessity of determining priority in the handling of multiple interruptions can be illustrated as follows. suppose, for example, there are the interruption factors a and b. for factor a, a request is generated about every 10 ms and the interrupt processing time is 4 ms; for factor b, a request is generated about every 2 ms and the interrupt processing time is 1 ms. if no priority were applied to a and b, then a request for interrupt a that came in during the processing of interrupt b could lead to interrupt a being processed, resulting in the processing of interrupt b being repeatedly stopped. such a case requires a program that establishes the priority a  b, not only prohibiting interrupt a during the processing of interrupt b but also enabling the reception of interrupt b during the processing of interrupt a. as explained in the item on the interrupt priority circuit block, when all individual enable flags are set to ?1? (enable state), the priority of the hardware can be changed by manipulating the individual enable flags in the program. as a rule, received interrupts and low-priority interrupts are prohibited, and high-priority interrupts are enabled in the interrupt processing routine. (2) restriction of address stack level as explained in the item on interrupt reception processing, when an interrupt request is issued, the return address is shunted automatically to the address stack. as explained in the item on registers, an address stack is also used for execution of sub-routine call instructions on eight levels. for this reason, if the interrupt level and sub routine call level exceed eight levels, the contents of the return address recorded from the first address stack are destroyed. therefore restriction is necessary. (3) shunting processing when using the multiplex interrupt function, it is necessary to secure a shunting area for shunting processing separately for each interrupt factor.
TC9329AFAG/afcg 2006-03-02 35 external interrupt and timer counter function there are two types of external interrupt: that using the intr1 terminal and that using the intr2 terminal. interrupt requests are issued by the rising or falling edge of a signal applied to these terminals. the timer counter is an 8-bit binary counter and has the function of timer and external clock timer. the input of the external clock timer function is used as an external interrupt terminal (intr1, intr2). 1. external interrupt function there are two input terminals for external interrupt, intr1 and intr2; and an interrupt request is issued on detection of the edge of these inputs. there is a noise canceller for the input: a noise removal clock uses a frequency of 75 khz, and any pulse under this frequency is removed as noise. the ie bit is an enable bit which permits 8-bit timer counter operation, and interrupt and external interrupt requests. it is possible to select either the rising or falling edge as the input edge for each terminal. usually, this bit is set to ?1?. these controls are accessed using an out2 instruction for which [cn  7h] has been specified in the operand. the program will branch to address 0001h on receipt of an intr1 interrupt, and to address 0002h on receipt of an intr2 interrupt. these terminals are used as input ports and the input status can be read into the data memory by execution of an in2 instruction for which [cn  7h] has been specified in the operand. note: an interrupt request may be issued if an edge is changed using pol bits. for this reason, when changing an edge, be sure to prohibit interruption beforehand. after making the change, reset the interrupt latch and return to normal operation. note: the intr1 terminal and intr2 terminal are used as ifin1 terminal and hold terminal respectively. if using only the intr1 terminal be sure to set intr if1/ bits ( l16) to ?0?. also, the same data is output at the hold input and intr2 input port. 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-bitstimer and control external interrupt operation enable control ?0?: prohibition ?1?: enable usually, the bit is set ?1?. 1: rising edge 0: falling edge pulse less than 13.3 s eliminated more than 40 s regarded as a signal note: the edge of the external clock of the timer counter is also controlled. no noise cancel function is used for the input to the timer counter. therefore, even if no interrupt occurs, caution is necessary regarding the input of a clock pulse of less than 40 s into the clock pulse counter. select edge of timer counter 1: count by rising edge 0: count by falling edge
TC9329AFAG/afcg 2006-03-02 36 2. timer counter function timer counter are consists of 8-bit binary counter, counter coincidence register, digital comparator and controlled the control circuit. if timer counter is coincided with the contents of counter coincidence register, timer counter is outputted a coincidence signal pulse and interrupt request is done by inputting timer clock to 8-bit binary counter timer clock. reset of timer counter is possible with a coincidence pulse and a program, and it can perform enable and prohibition of reset by the coincidence pulse. as a clock of timer, it can be selected intr1/2 input and an instruction cycle and 1 khz. (1) timer counter register configuration the timer counter register consists of a counter data, coincidence register and a control register. note: to use the timer counter, it is necessary to set the ie bit to ?1?. note: set the intr if1/ bits ( l16) to ?0? when the intr1 terminal is used as a 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 output if in agreement with the 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 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 ??? ?whenever sets ?1?, counter is reset. enable counter reset by coincidence pulse. 0: enable 1: prohibition
TC9329AFAG/afcg 2006-03-02 37 (2) timer mode timer mode is detected fixed time. interrupt request is done and reset to counter whenever it detects fixed time. at this time, control bit is set to 1 khz or an instruction as timer clock, ?0? to gt bit and ?0? (it does not reset) to cr bit. timer coincidence data is timer time = idn (coincidence data) timer clock cycle it sets up the data which corresponding to time. in addition, although an external terminal can be used for timer clock, a clock frequency should use the frequency below 25 khz. if gt bit is setup ?1?, it can be also be integrated of an external clock. 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.
TC9329AFAG/afcg 2006-03-02 38 internal interrupt and interrupt function interrupt has two types of timer counter and serial interface. 1. interrupt of timer counter if timer counter value is same as coincidence register value, interrupt of timer counter is occurred interruption. refer to the item of timer counter function in detail. 2. interrupt of serial interface interrupt of serial interface is occurred interruption at the time of finishing operation of serial interface. refer to the item of serial interface function in detail. 3. interruption block configuration 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 pulse 75 khz hold ck0 ck1 1 khz instruction cycle clock intr2 intr1
TC9329AFAG/afcg 2006-03-02 39 programmable counter the programmable counter consists of two modulus prescalers, 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 prescaler (td6134af/td7101/04f) or 1 chip tuner ic that is built-in for 1/16 prescaler (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 prescaler. the division method and power control of the prescaler are accessed using an out1 instruction for which [cn = 0h] has been specified in the operand. the division frequency setting is accessed using an out1 instruction for which [cn = 1~5h] has been specified and the setting is made by writing in the p16 bits ( 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 prescaler. in the setup to prescaler if input, if the bit is set to ?1?, a programmable counter stops and prescaler 1/15 and 16 are fixed to 16 division. usually, consisting of pll, the bit is set to ?0?. ( refer to the if counter item) y1 y2 y4 y8 l10 hf pw0 pw1 fm division method setting power control setting the number of divisions of the 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 input to if counter. pre-scaler if counter input setup 0: psc output prohibition 1: psc output permission
TC9329AFAG/afcg 2006-03-02 40 2. division method setting the pulse swallow method or direct method are selected using the hf and fm bit. the power control bits (pw0/1) control the gain of the amplifier and prescaler (1/2 ? 1/15?16). although the power bit in each mode has five methods, set it up as shown in a table. by using the single-chip tuner ic that is built-in for the 1/16 prescaler (ta2142fn), set the lf mode and set the division value after the 1/16 division frequency. mode hf pw0 pw1 fm division method example of receiving band operation frequency 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 for 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 input 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)
TC9329AFAG/afcg 2006-03-02 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 prescaler will be in a stop state, and psc output is outpu p2-3 terminal. a division method is set as lf mode, and am vco input and an external prescaler output are changed and input 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 prescalers, 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 prescaler when in the vhf/fm mode. the example of an external pre-scaler connection circuit TC9329AFAG/afcg 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
TC9329AFAG/afcg 2006-03-02 42 ? direct division method circuit configuration the prescaler is not required if this is selected; instead, the13-bit programmable counter is used. note: oscin terminal has been fitted into the amplifier, and small amplitue 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 count er 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 using an 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 a m 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
TC9329AFAG/afcg 2006-03-02 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. it 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 comparator and a charge pump output are constant voltage vreg potential (1.5 v), it is possible to stabilized phase comparison even if vdd 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?
TC9329AFAG/afcg 2006-03-02 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 output constant voltage of 1.5 v and ?h? level of charge pump output is output 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 output 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 stat us 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 during the do output setup, the output 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)
TC9329AFAG/afcg 2006-03-02 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. be sure to design the actual circuits taking into account the band configuration of the system and required characteristics. 40 phase comparator v reg do/ot v reg m1, m0 bit unlock rese t v reg on 41 constant voltage circuit v db (v dd 2 doubler power supply) unlock enable unlock f/f reference frequency programmable counter output decoder to the vco variable capacitor 4.7 k ? 0.01 f 1 f 4.7 k ? 40 do/ot dc-dc converter 100 k ? 0.1 f 10 k ? 40 41 0.47 f (typ.) v reg do/o t fn/vhf/am vco r2 lpf c1 r1 example of low pass filter circuit ( for reference ) example of an active low pass filter circuit ( for reference )
TC9329AFAG/afcg 2006-03-02 46 if counter the if counter is a 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. the vco of an analog tuner is measured, and detection of the received frequency and detection of the 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 prescaler input is set as if counter input, at the time of a setup of a pulse-swallow system, prescsler;1/15?16 are fixed to 16 division, and this frequency is input 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 input 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 setups 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 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
TC9329AFAG/afcg 2006-03-02 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. (3) 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 input, 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 input for a total numerical value, over bit is set to ?1?. busy bit and over bit are judged ?0? and the frequency input can be measured by taking in if data of f0-f19. (4) 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. (5) an input setup and division setup of if counter usually, intermediate frequency (if) measurement is input 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 (input frequency) (note) * * * 0 1 1 cr oscillation frequency (f cr ) * * * 1 * * input 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 prescaler 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
TC9329AFAG/afcg 2006-03-02 48 2. if counter circuit configuration the if counter circuit consists of an input amplifier, a gate time control circuit and a 12 ? 8 bit binary counter. the oscin prescaler and cr oscillation clocks can be input as if counters. note: all the binary counters of the if counter operate in a standup. note: during input of the oscin into the if counter, the 1/15 ? 16 of the prescaler is fixed to a dividing frequency of 1/16. this dividing frequency becomes 1/32 in vhf/fm mode and 1/16 in hf mode. in lf mode, the osc frequency can be input directly. if counter input data set to stp sta/ bit busy bit 1 khz gate binary counter input ?1? an 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
TC9329AFAG/afcg 2006-03-02 49 lcd driver the lcd driver uses a 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 pins for the lcd driver can also be used as i/o ports on being set to function as i/o ports after system reset. the i/o port and segment output can be changed using bit units. all lcd output pins (com1-s14) can be changed to output ports. the lcd driver is incorporates a constant voltage circuit (v ee = 1.5 v) for display purposes and a voltage doubler circuit (v lcd = 3.0 v). the voltage doubler (v db ), which raises the power supply voltage to twice its level, is used for the constant voltage circuit for the display (v ee ). for this reason, it is even possible to stabilize the lcd display at a power supply voltage of 0.9 v. 1. lcd driver port note: if the disp off-bit is set to ?1?, common output and a segment output.are output at ?l? level. note: the segment data controls t he illumination and extinguishing of segment lighting corresponding to the common output and segment output.. note: during clock stop mode and about 100 ms after system reset, all the common and segment outputs are 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
TC9329AFAG/afcg 2006-03-02 50 the lcd driver control port consists of the segment data selection port and the segment data port. these ports are accessed using an out2 instruction for which [cn = dh~fh] has been specified in the operand. the segment data for the lcd driver is set through the segment data ports ( l2e, l2f). the lcd display will be extinguished when the segment data port is set to ?0?, and will be illuminated when the port is 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 of the segment data. it is possible to extinguish the entire lcd display using the disp off bit without setting the segment data. if this bit is set to ?1?, the common output and segment output are fixed to ?l? level and the entire lcd display is extinguished. the segment data is retained at this point, and the previous display appears on the lcd if the disp off bit is set to ?0?. in addition, rewriting of segment data is possible during disp off. moreover, after reset and ckstp instruction execution, the disp off bit is set to ?1?. the lcd off bit can set all lcd output terminals to serve as output ports. for the lcd display, this bit is set ?0?. ( refer to the output port item) the terminals s11 to s18 terminal are used as i/o ports. this control is done a segment/io port select port ( l2f6, l2f7). set to ?1?, the port will become segment output port and set to ?0?, it will become an i/o port. ( refer to the 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: if set to serve as an 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 becomses 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 clock stop mode and reset, the potential of v lcd /v ee /v db becomes 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 )
TC9329AFAG/afcg 2006-03-02 51 the potential of the lcd driver waveform outputs the potential of the v lcd and gnd, and the middle potential level that is 1/2 these values. s1 s2 com1 com2 com3 com4 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
TC9329AFAG/afcg 2006-03-02 52 serial interface (sio1/2) there are 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) in synchronization with an internal or external serial clock. the si, so, and sck terminals transmit and receive together with the extension lsi and microcomputer, etc. interruption is issued when the serial interface stops operating. all outputs are nch open drain outputs. sio2 inputs 26-bit data serially in synchronization with an external serial clock. sio2 has a function for decoding the input serial data, and interruption is issued for every input serial clock edge. 1. control port and data port of the serial interface 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 at 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 on end of sio1 serial operation end.) 1: sio2 mode operation (interrupt on 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)
TC9329AFAG/afcg 2006-03-02 53 serial interface control and data are accessed with an out2 and 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, and p3-3 terminals, and each of the i/o port-3 terminals are switched to operate as si, so and sck terminals by setting the sio on bit to ?1?. note: all the serial interface inputs incorporate schmidt circuits. note: since the si (p3-1) terminal can be used as an i/o port even when the serial interface function is selected, it can be used for the sio strobe signal, etc. if this terminal is used for serial input, be sure to enter ?1? for the setting of the p3-1 output data and change it to the 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 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 serial format into data memory
TC9329AFAG/afcg 2006-03-02 54 edge, sck-inv, sck-i/o bits 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. serial clock (sck) shift operation is performed on the rising edge if the edge bit is set to ?0?, and on the falling edge if the edge bit is set to ?1?. 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 in accordance with the settings as shown in the following table. make the settings in accordance with the controlling serial format. 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 the sck/so terminal indicates its pull-up status. in this period this status will be ?hz?. 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 123 4 so0 so1 so2 so3 si0 si1 si2 si3 sta bit set as ?1? sck terminal si terminal busy interrupt 12 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
TC9329AFAG/afcg 2006-03-02 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 output by the state of this bit. o i/ - so bit this bit sets the serial i/o for the so terminal. the so terminal outputs serial data when the bit is set at ?0?, and is used for serial data input when this bit is set at ?1?. this control is used as a serial bus system for outputting and inputting serial data through one terminal. serial interface operation monitor the operational status of the serial interface is determined by referencing the busy, count, and 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. the count bit determines whether the sending/receiving of data has been performed in multiples of four. the bit is set to ?0? if shift operation was performed in multiples of four, and to ?1? if not. . the sio f/f bit is set to ?1? when the sck terminal starts shift operation. 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 input 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 used to start serial interface operation. serial operation is started whenever the sta bit is set to ?1?. if the sta bit is set to ?1?, serial output data will be transmitted to a shift register, and the count bit and sio f/f bit will be reset. a serial clock is output for an internal sck setting; and a state of waiting for the serial clock input will take effect in the case of an external setting. sck terminal so terminal changing edge 1 2 3 4 so0 so1 so2 si0 so3 123 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 example of serial operation for an 8 bit setting 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 5678 si4 si5 si6 so4 so5 so6 so7 si7
TC9329AFAG/afcg 2006-03-02 56 2. composition of the serial interface 1 (sio1) srial interface 1 consists of a control circuit, a shift register, and an i/o port. note: the erminal can be used as i/o port -3 (p3-1). note: the shift memory contents for the data and serial input data are stored by the data memory. for this reason, the contents of the data set to serial output data and those of the serial input data are not in agreement. note: all serial input terminals are the schmitt input type. note: the output of the so terminal and the serial clock output of sck terminal are nch open drain outputs. for this reason, connect pull-up resistance. in addition, be sure to use a pull-up potential of 3.6 v or less. 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 busy sio f/f interrupt requirement count sta o i/ - sck edge sck-inv 4 bit shift register 4 bit shift register
TC9329AFAG/afcg 2006-03-02 57 3. serial interface timing of sio1 circuit the clock frequency output from the sck terminal when the sck clock is set as an internal clock is 37.5 khz (duty. = 50%). when the sck clock is as an external input, a clock of a maximum of 200 khz can be input. external clock: tcyc = 5 s min, th = 2.5 s min, tplh/tpll = 2 s max 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
TC9329AFAG/afcg 2006-03-02 58 4. serial interface 2 (sio2) control and data ports 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 ? 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
TC9329AFAG/afcg 2006-03-02 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 output 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 input 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 using an out2 instruction for which [cn = 3h] has been specified in the operand. 5. control and serial data of the serial interface 2 note: if the si terminal is used for serial input, the so terminal will serve as an sio1 serial output. when using the si terminal as a serial input, be sure to set the p3-1 output data to ?1? and change it to the input state. note: serial input is inputt 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 45 67 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 0123456789 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
TC9329AFAG/afcg 2006-03-02 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. an internal power supply (v dd ) is used for the standard voltage of a/d conversion. the voltage dividing this power supply by 64 and the a/d input voltage are compared, and the data is output to the a/d conversion data port. the a/d conversion input follows the multiplex method for the four channels of the external input terminals (adin1~adin4 terminal) and the 1/2 potential of the vreg terminal voltage, and is selected using bits ad sel0 to ad sel2. the a/d converter performs a/d conversion whenever the sta bit is set at ?1?, and this ends after seven machine cycles (280 s). the completion of a/d conversion is determined by reference to 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 obtained through the following calculation. n ? 0.5 n + 0.5 v dd 64 (63 > = n > = 1) < = a/d input voltage < = 64 (62 > = n > = 0) (n is the a/d conversion data value. [decimal]) the v reg /2 to the a/d input is used for battery detection. the 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. if this function is used, the v reg on bit is set to ?1?. these controls are accessed with an out2/in2 instruction for which [cn = 0h, 1h] has been specified in the operand. note: if the v reg on bit is set to ?1? , the cpu operating consumption current is increased. the vreg terminal also supplies power to the 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
TC9329AFAG/afcg 2006-03-02 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. since the 6-bit d/a converter and comparator part operate only when the busy bit is ?1?, there is no a/d converter power when the a/d converter is inoperative. the doubler voltage (twice that of v dd ) is used to drive the a/d converter part. 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 ~ a d5 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
TC9329AFAG/afcg 2006-03-02 62 buzzer output the buzzer output can be used to output tones and alarm tones to confirm key operations and the tuning scan mode. the buzzer type can be selected from a combination of four output modes and eight different frequencies. 1. buzzer control port ports p4-0 i/o are also used for buzzer output. 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 continual output mode (mode a), if the buzzer enable bit is set to ?1?, the buzzer frequency will be output continuously; if ?0? is set, the buzzer output will stop. in staggered output mode, whenever the buzzer enable bit is set to ?1?, the buzzer is output and stopped at 50-ms intervals. under a buzzer output (50 ms), if buzzer enable bit is set to ?1? again, the buzzer is extended to 50 ms, being output for 100 ms. given that a further extension of 50 ms to 150 ms is possible, the buzzer time can be set up easily. in the 10-hz intermittent output mode (mode c), if the buzzer enable bit is set to ?1?, a 50-ms buzzer output and 50-ms buzzer pause are carried out continuously. a setting of ?0? stops the 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 output 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 data 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
TC9329AFAG/afcg 2006-03-02 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 output 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 an 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 the buzzer output function active, be sure to set p4-0 to the input state (by setting the i/o control port to ?1?). note: the change of buzzer frequency is updated in modifications of 10 hz. data set to ben bit buzzer frequency 10 hz ?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
TC9329AFAG/afcg 2006-03-02 64 pulse counter the pulse counter is an 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 set to ?1?, a 8-bit rise down counter is reset. ? over reset bit ................. whenever it set to ?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)
TC9329AFAG/afcg 2006-03-02 65 the pulse counter measures the number of pulses in the pctrin input 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 input during change command execution, since it is canceled, be careful of this count. when 2 8 or more pulses are input, 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. the ctr reset bit resets only the 8-bit counter. the counter is reset whenever this bit is set to ?1?. counter data loaded data in a data memory by the binary. the control of pulse counter and data loading is accessed using 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
TC9329AFAG/afcg 2006-03-02 66 input and output port (i/o port) there are 28 i/o ports available between i/o ports 1~5, 8-9 of 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 features of each i/o port are as follows. i/o port combination and additional function structure i/o port-1 it is possible to set pull-up/pull-down. but, a combination of pull-up pull down is not available. p2-0~-2 ? i/o port-2 p2-3 prescaller 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 input. i/o port-8 i/o port-9 the potential to v lcd (3 v) can be input. 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
TC9329AFAG/afcg 2006-03-02 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 output 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 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. the status is pull-down if the bit is set to ?0?, and pull-up if the bit is set to ?1? 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
TC9329AFAG/afcg 2006-03-02 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 output 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 output all ?l? level, i/o port -1 stands by in the state of a pull-up, and if a key is input, 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 input, 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 prescaler 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 input 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 input ?l? level from souce 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 key souce 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.
TC9329AFAG/afcg 2006-03-02 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. the register is accessed using an 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 using a single instruction. note: the contents of this register are only valid when the mvgd instruction and mvgs instruction are executed and are ineffective when any other instruciton is executed. moreover, this register is not affected 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 000100 04h 000101 05h 000110 06h 011111 0fh 100000 10h 111110 3eh 111111 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
TC9329AFAG/afcg 2006-03-02 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
TC9329AFAG/afcg 2006-03-02 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 register and dal address register. 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
TC9329AFAG/afcg 2006-03-02 72 timer port the timer is equipped with 100 hz, 10 hz and 2 hz f/f bits and is used for counting clock operations and tuning scan mode, etc. 1. timer port the timer ports are accessedusing an 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 2-hz f/f of the reset port. this bit is usually used as a clock counter. the 2-hz timer f/f can only by reset with the 2-hz f/f of the reset port, 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? is set. timer reset port
TC9329AFAG/afcg 2006-03-02 73 output port (both as lcd driver terminal) there are 14-output ports of 14 cmos type. these output ports 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 output 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 be used 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. during output port setup, this bit is usually set to ?1?. the power supply of this output port is used v lcd doubler 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?.
TC9329AFAG/afcg 2006-03-02 74 mute output this is a dedicated 1-bit cmos output port for muting control purposes. 1. mute port this port is accessed using an out1/in1 instruction for which [cn = 8h] has been specified in the operand. the 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 set 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 signal of input change of i/o port -1 hold bit signal of hold input terminal changing pol bit mute reset signal mute bit s
TC9329AFAG/afcg 2006-03-02 75 test port access is performed using an out1 instruction for which [cn = fh] has been specified in the operand, and an out2 instruction for which [cn = 6h] has been specified in the operand. ?0? is usually set 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 chip if test terminal is supplied ?h? level (test mode), the device operates as an emulator chip. three kinds of test modes are abailable 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 tc932afag/afcg 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
TC9329AFAG/afcg 2006-03-02 76 absolute 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 specified, 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 * : guaranteed when v dd = 0.9~1.8 v, ta = ? 10~60c
TC9329AFAG/afcg 2006-03-02 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
TC9329AFAG/afcg 2006-03-02 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 the v reg /v lcd power supply do not exceed the power supply (doubled voltage: v db ) output current.
TC9329AFAG/afcg 2006-03-02 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 port 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.
TC9329AFAG/afcg 2006-03-02 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.
TC9329AFAG/afcg 2006-03-02 81 package dimensions weight: 0.32 g (typ.)
TC9329AFAG/afcg 2006-03-02 82 package dimensions note: lead type sn-ag weight: 0.26 g (typ.)
TC9329AFAG/afcg 2006-03-02 83


▲Up To Search▲   

 
Price & Availability of TC9329AFAG

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