Toshiba TMP92CZ26AXBG инструкция обслуживания

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751

Идти на страницу of

Хорошее руководство по эксплуатации

Законодательство обязывает продавца передать покупателю, вместе с товаром, руководство по эксплуатации Toshiba TMP92CZ26AXBG. Отсутствие инструкции либо неправильная информация, переданная потребителю, составляют основание для рекламации в связи с несоответствием устройства с договором. В законодательстве допускается предоставлении руководства в другой, чем бумажная форме, что, в последнее время, часто используется, предоставляя графическую или электронную форму инструкции Toshiba TMP92CZ26AXBG или обучающее видео для пользователей. Условием остается четкая и понятная форма.

Что такое руководство?

Слово происходит от латинского "instructio", тоесть привести в порядок. Следовательно в инструкции Toshiba TMP92CZ26AXBG можно найти описание этапов поведения. Цель инструкции заключается в облегчении запуска, использования оборудования либо выполнения определенной деятельности. Инструкция является набором информации о предмете/услуге, подсказкой.

К сожалению немного пользователей находит время для чтения инструкций Toshiba TMP92CZ26AXBG, и хорошая инструкция позволяет не только узнать ряд дополнительных функций приобретенного устройства, но и позволяет избежать возникновения большинства поломок.

Из чего должно состоять идеальное руководство по эксплуатации?

Прежде всего в инструкции Toshiba TMP92CZ26AXBG должна находится:
- информация относительно технических данных устройства Toshiba TMP92CZ26AXBG
- название производителя и год производства оборудования Toshiba TMP92CZ26AXBG
- правила обслуживания, настройки и ухода за оборудованием Toshiba TMP92CZ26AXBG
- знаки безопасности и сертификаты, подтверждающие соответствие стандартам

Почему мы не читаем инструкций?

Как правило из-за нехватки времени и уверенности в отдельных функциональностях приобретенных устройств. К сожалению само подсоединение и запуск Toshiba TMP92CZ26AXBG это слишком мало. Инструкция заключает ряд отдельных указаний, касающихся функциональности, принципов безопасности, способов ухода (даже то, какие средства стоит использовать), возможных поломок Toshiba TMP92CZ26AXBG и способов решения проблем, возникающих во время использования. И наконец то, в инструкции можно найти адресные данные сайта Toshiba, в случае отсутствия эффективности предлагаемых решений. Сейчас очень большой популярностью пользуются инструкции в форме интересных анимаций или видео материалов, которое лучше, чем брошюра воспринимаются пользователем. Такой вид инструкции позволяет пользователю просмотреть весь фильм, не пропуская спецификацию и сложные технические описания Toshiba TMP92CZ26AXBG, как это часто бывает в случае бумажной версии.

Почему стоит читать инструкции?

Прежде всего здесь мы найдем ответы касательно конструкции, возможностей устройства Toshiba TMP92CZ26AXBG, использования отдельных аксессуаров и ряд информации, позволяющей вполне использовать все функции и упрощения.

После удачной покупки оборудования/устройства стоит посвятить несколько минут для ознакомления с каждой частью инструкции Toshiba TMP92CZ26AXBG. Сейчас их старательно готовят или переводят, чтобы они были не только понятными для пользователя, но и чтобы выполняли свою основную информационно-поддерживающую функцию.

Содержание руководства

  • Страница 1

    Data Book 32bit Micro controller TLCS-900/H1 series TMP92CZ26AXBG Rev0.2 09/Dec./2005 TENT A TIVE It’ s first version technical data sheet. Since this revision 0.2 is still under working, there may be some mistakes in it. When you will start to design, please order the latest one.[...]

  • Страница 2

    T able of Content s TLCS-900/H1 Devices TMP92CZ26A 1. Outline and Featur es ・・・・・・・・・・・・・ ・・・・・・・・・・・・・・・ ・・・・・・・・・・・・ 92CZ26A-1 2. Pin Assignment and Pin Functions ・・・・・・ ・・・・・・・・・・・・・・・ ・・・・・・・ 92CZ26A-6 2.1 Pin [...]

  • Страница 3

    3.12 8 bit timers (TMRA) ・・ ・・・・・・・・・・・・・・ ・・・・・・・・・・・・・・・ ・・・ 92CZ26 A-266 3.13 16 bit timer (TMRB) ・・・・・・・ ・・・・・・・・・・・・・・・ ・・・・・・・・・・・・ 92CZ26A-294 3.14 Serial channel (SIO) ・・・・・・・・・ ・・・?[...]

  • Страница 4

    TMP92CZ26A 92CZ26A-1 CMOS 32-Bit Micro controllers TMP92CZ26AXBG 1. Outline and Features TMP92CZ26A is high-speed advanced 32-bit micro-c ontroller developed for controlling equipment which processes mass data. TMP92CZ26AXBG is housed in a 228-pin BGA package. (1) CPU : 32-bit CPU(High-speed 900/H1 CPU) • Compatible with TLCS-900/L1 instruction c[...]

  • Страница 5

    TMP92CZ26A 92CZ26A-2 (4) External memory expansion • Expandable up to 3.1G bytes (shared progr am/data area) • Can simultaneously su pport 8/16-bit width external data bus …… Dynamic data bus sizing • Separate bus system (5) Memory controller • Chip select output : 4 channel • One channel in 4 channels is en abled detailed AC enable s[...]

  • Страница 6

    TMP92CZ26A 92CZ26A-3 (17) T ouch screen interface • Built-in Switch of Low-resistor , and available to delete external compon ents for shift change row/column (18) Watch dog timer (19) Melody/alarm generator • Melody: Output of clock 4 to 5461Hz • Alarm: Output of the 8 kinds of alarm pattern • 5 kinds of interval interrupt (20) MMU • Exp[...]

  • Страница 7

    TMP92CZ26A 92CZ26A-4 (28) Stand-by function • Three Halt modes : IDLE2 (programmable), IDLE1, STOP • Each pin status programma ble for stand-by mode • Built-in power supply management circuits (PMC) for leak current prov ision (29) Clock controller • Built-in two blocks of clock doubler (PLL). PLL supplies 48 MHz for USB and 80 MHz for CPU [...]

  • Страница 8

    TMP92CZ26A 92CZ26A-5 Figure 1.1 Block Diagram of TMP92CZ26A (PY)P97 IX IY IZ SP L H E D C B A W XSP XIZ XIY XIX XHL XDE XBC XW A 900/H1 CPU F SR 32bit P C 288KB RAM SERIAL I/O SIO0 ( RXD0 ) P91 (TXD0)P90 (CTS0, SCLK0)P92 RESET DBGE AM [ 1:0 ] 10-bit 6ch AD Converter VREFH, VREFL A VCC, A VSS (AN3, MY , ADTRG )PG3 (AN2, MX)PG2 (AN0 to AN1)PG0 to PG1[...]

  • Страница 9

    TMP92CZ26A 92CZ26A-6 2. Pin Assignment and Pin Functions The assignment of input/output pins for TMP92C Z26A, their na mes and functions are as follows; 2.1 Pin Assignment Diagram (T op V iew) Figure 2.1.1 shows the pin assignment of th e TMP92CZ26A. A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A1 1 A12 A13 A14 A15 A16 A17 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B1 1 B12[...]

  • Страница 10

    TMP92CZ26A 92CZ26A-7 T able 2.1.1 Pin number and the name Ball No. Pin name Ball No. Pin name Ball No. Pin name Ball No. Pin name A1 Dummy1 D9 P73,EA24 J15 PT5,LD13 P15 PK4,LHSYNC A2 PG2,AN2, MX D10 PF4,I2 S1DO J16 P47,A7 P16 P13,D11 A3 PA6,KI6 D11 PF7,SDCLK J17 P46,A6 P17 P14,D12 A4 PA5,KI5 D12 PJ4,SDLUDQM K1 PN3,KO3 R1 X 2 A5 PA3,KI3 D13 P85, CSZ[...]

  • Страница 11

    TMP92CZ26A 92CZ26A-8 2.2 Pin names and Functions The names of the input/output pins an d their func tions ar e described below . T able 2.2.1 Pin names and functions (1/6 ) Pin name Number of Pins I/O Functions D0 to D7 8 I/O Data: Data bus D0 to D7. P10 to P17 D8 to D15 8 I/O I/O Port 1: I/O port. Input or output is specifiable in units of bit. Da[...]

  • Страница 12

    TMP92CZ26A 92CZ26A-9 T able 2.2.1 Pin names and functions (2/6 ) Pin name Number of Pins I/O Functions P86 CSZD CE 0 ND 1 Output Output Output Port 86 : Output port. Expanded address ZD : Outputs “Low” when add ress is within specified address area. Chip select of NAND Flash 0: Output s “Low” when NAND Flash 0 is enable. P87 CSXB CE 1 ND 1 [...]

  • Страница 13

    TMP92CZ26A 92CZ26A-10 T able 2.2.1 Pin names and functions (3/6 ) Pin name Number of Pins I/O Functions PF0 I2S0CKO 1 I/O Output Port F0: I/O port. Outputs clock of I2S0. PF1 I2S0DO 1 I/O Output Port F1: I/O port. Outputs data of I2S0. PF2 I2S0WS 1 I/O Output Port F2: I/O port. Outputs word select signal of I2S0. PF3 I2S0WS 1 I/O Output Port F3: I/[...]

  • Страница 14

    TMP92CZ26A 92CZ26A-1 1 T able 2.2.1 Pin names and functions (4/6 ) Pin name Number of Pins I/O Functions PK0 LCP0 1 Output Output Port K0: Output port. Signal for LCD driver . PK1 LLOAD 1 Output Output Port K1: Output port. Signal for LCD driver .: Data load signal PK2 LFR 1 Output Output Port K2: Output port. Signal for LCD driver . PK3 LV S Y N C[...]

  • Страница 15

    TMP92CZ26A 92CZ26A-12 T able 2.2.1 Pin names and functions (5/6 ) Pin name Number of Pins I/O Functions PR3 SPCLK 1 I/O Output Port R3: I/ O port. Clock output pin of SD card. PT0 to PT7 LD8 to LD15 8 I/O Output Port T0 to T7: I/O port. Data bus for LCD driver: LD8 to LD15. PU0 to PU4,PU6 LD16 to LD20,LD22 6 I/O Output Port U0 to U4 , U6: I/O port [...]

  • Страница 16

    TMP92CZ26A 92CZ26A-13 T able 2.2.1 Pin names and functions (6/6 ) Pin name Number of Pins I/O Functions D+, D- 2 I/O Data pin connected to USB. In case USB is not used, connect both pins to pull-up(DVCC3A) or pull-down resistor for protect current flows it. CLKOUT 1 Output Internal clock output pin. AM1,AM0 2 Input Operation mode; Fix to AM1=”0?[...]

  • Страница 17

    TMP92CZ26A 92CZ26A-14 3. Operation This section describes the basic com ponents, functi ons and operation of the T MP92 CZ26A. 3.1 CPU The TMP92CZ26A contains an advanced high -speed 32 -bit CPU (900/H1 CPU) 3.1.1 CPU Outline 900/H1 CPU is high-sp eed and high-perform anc e CPU based on 900/L1 CPU. 900/H1 CPU has expanded 32-bit int erna l data bus[...]

  • Страница 18

    TMP92CZ26A 92CZ26A-15 3.1.2 Reset Operation When resetting the TMP92CZ26A microcontroller , ensure that the power supply voltage is within the operatin g voltage range, and that the internal hig h-frequency osci llator has stabilized. Then hold the RESET input Low for at least 20 system clocks (3 2µs at X1=10MHz). At reset, since the c lock double[...]

  • Страница 19

    TMP92CZ26A 92CZ26A-16 Figure 3.1.1 TMP92CZ26 A Reset timing chart f sys A 23 ∼ 0 DATA-IN D0 ∼ 15 D0 ∼ 15 Sampling (After reset is released, it is started from 1 wait read cycle) : High-Z Sampling RESET RD WRxx SRWR 0FFFF00H DATA-IN DATA-OUT CS0,1, 3 CS2 SRxxB SRxxB f SYS × (15.5 ∼ 16.5) Clock[...]

  • Страница 20

    TMP92CZ26A 92CZ26A-17 This LSI has the restriction for the order of supplying power . Be sure to supply external 3.3V power with 1.5V power is supplied. Note1: Inernal 1.5 V and External 3.3V po wer supply can be set to ON/ OFF at the same time. However, ext ernal pin may become unstable condition momentary. Th erefore, set external power supply to[...]

  • Страница 21

    TMP92CZ26A 92CZ26A-18 3.1.3 Setting of AM0 and AM1 Set AM1 and AM0 pins as Table 3.1.2 shows according to syst em usage. T able 3.1.2 Operation Mode Setup T able Mode Setup input pin RESET AM1 AM0 DBGE Operation Mode 0 Debug mode 0 1 1 16-bit external bus starting 0 1 0 1 Test mode (Prohibit to set) 0 Test mode (Prohibit to set) 1 1 1 BOOT(32-bit i[...]

  • Страница 22

    TMP92CZ26A 92CZ26A-19 3.2 Memory Map Figure 3.2.1 is a memory map of the TMP92 CZ2 6A. Figure 3.2.1 Memory Map Note1: Don’t use specified 64kbyte area of above 16M byte when using debug mode. This is because the area is reserved for control in the debug mode. Note2: Don’t use the last 16-byte area (FFFFF0H t o FFFFFFH). This area is reserved as[...]

  • Страница 23

    TMP92CZ26A 92CZ26A-20 3.3 Clock Function and S tandby Function TMP92CZ26A contains (1) clock gear , (2) clock doubler (PLL), (3) standb y controlle r and (4) noise-re ducing circuit. Th ey are used f or low-power , lo w-noise syste ms. This chapter is organized as follows: 3.3.1 Block diagram of system clock 3.3.2 SFRs 3.3.3 System clock controller[...]

  • Страница 24

    TMP92CZ26A 92CZ26A-21 The clock operating modes are as follows: (a) PLL-OFF Mode (X1, X2 pins only), (b) PLL-ON Mode (X1, X2, and PLL). Figure 3.3.1 shows a transition figure. Reset (f OSCH /16) release Reset instruction interrupt STOP m ode (Stops all circ uits) PLL-OFF mode (f OSCH /gear value) IDLE2 mode (I/O operat e) IDLE1 mode (Operate only o[...]

  • Страница 25

    TMP92CZ26A 92CZ26A-22 3.3.1 Block diagram of system clock Clock gear SYSCR 0<PRC K> fs f OSCH Low frequency Oscillator circuit XT1 XT2 SYSCR0<XTEN > Warming up timer (High/Low frequency oscillator circuit) SYSCR0<WUEF> SYSCR2<WUPTM1:0> X1 X2 ÷ 2 ÷ 16 ÷ 4 fc/16 fc/8 fc/4 fc/2 fc PLLCR0<FCSEL> SYSCR1<GEAR2:0> ÷[...]

  • Страница 26

    TMP92CZ26A 92CZ26A-23 TMP92CZ26A has two PLL circuits: one is fo r CPU (PLL0) and the other for USB (PLL1). Each PLL can be con trolled in dependently . Frequency of external osc illat or is 6 to 10MHz. Don’t conn ec t oscill at or m ore than 10 MH z. When clo ck is in put by usin g ext ernal osci llato r , range of input frequency is 6 to10MHz. [...]

  • Страница 27

    TMP92CZ26A 92CZ26A-24 3.3.2 SFR 7 6 5 4 3 2 1 0 bit Symbol XTEN USBCLK1 USBCLK0 WUEF PRCK Read/write R/W R/W R/W R/W R/W After Reset 1 0 0 0 0 Function Low -frequency oscillator circui t (fs) 0: Stop 1: Oscillation Select the clock of USB(f USB ) 00:Disable 01: Reserved 10:X1USB 11:f PLLUS B Warm-up Timer 0: Write Don’t care Note3 1: Write start [...]

  • Страница 28

    TMP92CZ26A 92CZ26A-25 7 6 5 4 3 2 1 0 Bit symbol PROTECT − EXTIN DRVOSCH DRVOSCL Read/Write R R/W R/W R/W R/W After reset 0 0 0 1 1 Function Protect flag 0: OFF 1: ON Always write “0”. 1: External clock fc oscillato r drive ability 1: NORMAL 0: WEAK fs oscillato r drive ability 1: NORMAL 0: WEAK Bit symbol Read/Write After reset Function Bit [...]

  • Страница 29

    TMP92CZ26A 92CZ26A-26 7 6 5 4 3 2 1 0 bit symbol FCSEL LUPFG Read/Write R/W R After reset 0 0 Function Select fc-clock 0 : f OSCH 1 : f PLL Lock-up timer Status flag 0 : not end 1 : end Note: Be carefull that logic of PLL CR0<LUPFG> is different from 900/L1’s DFM. 7 6 5 4 3 2 1 0 bit symbol PLL0 PLL1 LUPSEL PLLTIMES Read/Write R/W R/W R/W R[...]

  • Страница 30

    TMP92CZ26A 92CZ26A-27 3.3.3 System clock controller The system clock controller gene rates the system clock signal (f SYS ) for the CPU core and internal I/O. SYSCR0<XEN> and S YSCR0<XTEN> control enab ling and disabli ng of each oscil lator . SYSCR1<GEAR2:0> sets the high frequency clock gear to either 1, 2, 4, 8 or 16 (fc, fc/2,[...]

  • Страница 31

    TMP92CZ26A 92CZ26A-28 3.3.4 Clock doubler (PLL) PLL0 outputs the f PLL clock signal, which is 12 or 16 times as fa st as f OSCH . That is, the low-speed frequenc y oscillator can be used as extern al oscillator, ev en though the intern al clock is high-frequency. Since Reset initializes PLL0 to stop status, setting to PLLCR0 and PLLCR1-registe r is[...]

  • Страница 32

    TMP92CZ26A 92CZ26A-29 The following is a setting exampl e fo r PLL0-starting and PLL0-stopping. (Example-1) PLL0-starting PLLCR0 EQU 10E8H PLLCR1 EQU 10E9H LD (PLLCR1),1XXXXXXXXB ; Enables PLL0 operation and starts lock-up . LUP: BIT 5,(PLLCR0) ; JR Z,LUP ; Detects end of lock-up LD (PLLCR0 ), X1XXXXXXB ; Changes fc from 10 MHz to 60 MHz. X: Don&ap[...]

  • Страница 33

    TMP92CZ26A 92CZ26A-30 Limitation point on the use of PLL0 1. If you stop PLL operation during using PLL0 , you should execute following setting in the same order . LD (PLLCR0),X0XXXXXXB ; Change the clock f PLL to f OS CH LD (PLLCR1),0XXXXXXXB ; S top PLL0 X: Don't care 2. If you shift to STOP mode during using PLL, you should execute followin[...]

  • Страница 34

    TMP92CZ26A 92CZ26A-31 3.3.5 Noise reduction circuits Noise reduction c ircuits a re built in, allowin g im p lementation o f the f ollowing features. (1) Reduced drivability for high-f requ ency oscillat or circuit (2) Reduc ed drivabilit y f or low-frequenc y oscillator cir cuit (3) Sing le dr ive for h igh -fr equency oscillator circuit (4) SFR p[...]

  • Страница 35

    TMP92CZ26A 92CZ26A-32 (2) Reduced drivabi lity for low-fr equency osci llator circuit (Purpose) Reduces noise and p ow er for oscillator when a r esonator is used. (Block diagram) XT1 pi n Reson ator C2 C1 En a ble osc illation E MCCR 0< DRVO S CL> f S XT 2 pi n (Setting met hod) The drivabili ty of the oscillator is reduc ed by writing 0 to [...]

  • Страница 36

    TMP92CZ26A 92CZ26A-33 (4) Runaway prov ision with SFR protect i on register (Purpose) Provision in runaway of program by noise mixin g. W rit e operation t o specified SFR is prohib ited so that prov ision program in r unaway prevents that it is in the state which is fetch impossibility by stoppin g of clock, memory control r eg ister ( Memory cont[...]

  • Страница 37

    TMP92CZ26A 92CZ26A-34 3.3.6 S tandby controller (1) Halt Modes and Port Drive-register When the HAL T instruction is e xecuted, th e operating mod e switches to IDLE2, IDLE1 or STOP Mode, depending on the cont ents of the SYSCR 2<HAL TM1 to 0 > register and each pin-status is se t according to PxDR-register . 7 6 5 4 3 2 1 0 bit symbol Px7D P[...]

  • Страница 38

    TMP92CZ26A 92CZ26A-35 The operati o n of e ach of the differ ent Halt Modes i s describ ed in T able 3.3.3. T able 3.3.3 I/O operation during Halt Mo des Halt Mode IDLE2 IDLE1 STOP SYSCR2 <HAL TM1:0> 1 1 10 01 CPU, MAC Stop I/O ports Depends on PxDR register setting TMRA, TMRB SIO,SBI A/D converter WDT Available to select Operation block I2S,[...]

  • Страница 39

    TMP92CZ26A 92CZ26A-36 T able 3.3.4 Source of Halt state cl earance and Halt clearan ce operation S tatus of Received Interrupt Interrupt Enabled (interrupt level) ≥ (interrupt mask) Interrupt Disabled (interrupt level) < (interrupt mask) Halt mode IDLE2 IDLE1 STOP IDLE2 IDLE1 STOP INTWDT  × × − − − INT0 to 5 (Note1) INTKEY   ?[...]

  • Страница 40

    TMP92CZ26A 92CZ26A-37 (Example - releas ing IDLE1 Mode) An INT0 interrupt clears the Halt stat e when the devic e is in IDLE1 Mode. Address 8200H LD (PCFC), 02H ; Sets PC1 to INT0 interru pt. 8203H LD (IIMC0), 00H ; Select INT0 interrupt rising edge. 8206H LD (INTE0), 06H ; Sets INT0 interrupt level to 6. 8209H EI 5 ; Sets CPU interrupt level to 5.[...]

  • Страница 41

    TMP92CZ26A 92CZ26A-38 (3) Operation a. IDLE2 Mode In IDLE2 Mode, on ly specific internal I/O op erations, as designa ted by the IDLE2 Setting Reg iste r , can take place. Instruction execut ion by the CPU stops. Figure 3.3.8 il lustrates an example of the timin g for clearance o f the IDLE2 Mode Halt state by an interrupt. Figure 3.3.8 T iming char[...]

  • Страница 42

    TMP92CZ26A 92CZ26A-39 c. STOP Mode When STOP Mode is selected, al l internal circuits stop, inc luding the in ternal oscillator. After STOP Mode has been cleared system clock outp ut starts when the w arm-up time has elapsed, in orde r to al low oscillation to st abi lize. Figure 3.3.10 illustrat es the timing for clearanc e of the STOP Mode Halt s[...]

  • Страница 43

    TMP92CZ26A 92CZ26A-40 T able 3.3.6 Input Buf fer S tate T able Input Buffer S tate In HAL T mode (IDLE2/1/STOP) When the CPU is operating <PxDR>=1 <PxDR>=0 Port Name Input Function Name During Reset When Used as function Pin When Used as Input port When Used as function Pin When Used as Input port When Used as function Pin When Used as [...]

  • Страница 44

    TMP92CZ26A 92CZ26A-41 T able 3.3.7 Output buf fer S tate T able (1/ 2) Output Buffer S tate In HAL T mo de (IDLE2/1 /STOP) When the CPU is operating <PxDR>=1 <PxDR>=0 Port Name Output Function Name During Reset When Used as function Pin When Used as Output port When Used as function Pin When Used as Output port When Used as function Pin[...]

  • Страница 45

    TMP92CZ26A 92CZ26A-42 T able 3.3.8 Output buf fer state table (2/2) Output Buffer S tate In HAL T mode (IDLE2/1/STOP) When the CPU is operating <PxDR>=1 <PxDR>=0 Port Name Output Function Name During Reset When Used as function Pin When Used as Output port When Used as function Pin When Used as Output port When Used as function Pin When[...]

  • Страница 46

    TMP92CZ26A 92CZ26A-43 3.4 Boot ROM The TMP92CZ26A contains boot ROM for download ing a user program, and supports two kinds of do wnloading methods. 3.4.1 Operation Modes The TMP92CZ26A has two operation modes: MUL TI mode and BOOT mode. The operation mod e is selected according to the AM1 and AM0 pin leve ls when RESET is asserted. (1) MUL TI mode[...]

  • Страница 47

    TMP92CZ26A 92CZ26A-44 3.4.2 Hardware S pecifications of Internal Boot ROM (1) Memory map Figure 3.4.1 shows a memory map of BOOT mode. The boot ROM inc orporated in the TM P92CZ26A is an 8-Kbyte ROM area mapped to addresses 3FE000H to 3FFFFFH. In MUL TI mode, the boot ROM is not mapped and the above area is map ped as an external area. Note: BROMCR[...]

  • Страница 48

    TMP92CZ26A 92CZ26A-45 3.4.3 Outline of Boot Operation The method for download ing a user program can be select ed from two types: from UART , or via USB. After reset, the boot pr ogram on the internal boot ROM executes as shown in Figure 3.4.2. Regardless of the downl oading method used, the boot program down loads a user program into the internal [...]

  • Страница 49

    TMP92CZ26A 92CZ26A-46 Figure 3.4.3 How the Boot Program Uses Internal RAM Work Area for Boot Program (4 Kbytes) Download Area for User Program (282 Kbytes) Stack Area for Boot Program (2 Kbytes) 002000H 049800H 003000H 049FFFH[...]

  • Страница 50

    TMP92CZ26A 92CZ26A-47 (1) Port settings T able 3.4.3 shows th e port settings by the boot pro gram. When desig ning your application system, pl ease a lso re fer to T able 3.4.4 for recommended pin connections for using the boot program. The boot program only sets the ports shown in the t able below; other ports are left as they are after reset or [...]

  • Страница 51

    TMP92CZ26A 92CZ26A-48 T able 3.4.4 Recommended Pin Connections Recommended Pin Connections for Each Download Method Port Name Function Name I/O UART USB P90 TXD0 Output No special setting is needed for booting via USB. UART P91 RXD0 Input Connect to the level shifter. Add a pull-up resistor (100 k Ω recommended) to prevent transition to UART proce[...]

  • Страница 52

    TMP92CZ26A 92CZ26A-49 (2) I/O register s ettings T able 3.4.5 shows the I/O regist ers th at are set by the boot program. After the boot se quence, if ex ecution moves to an application syst em program without a reset being asserted, the settings of these I/O registers must be taken into account. Also note that the registers in the CPU and the inte[...]

  • Страница 53

    TMP92CZ26A 92CZ26A-50 3.4.4 Downloading a User Program via UAR T (1) Connection example Figure 3.4.4 shows an example of con nec tions for download ing a user program via UART (using a 16-bit NOR Flash memory device as program me mory). Note: When USB is not used, add a pull-up or pull-down resi stor to the D+ and D- pins to prevent flow-through cu[...]

  • Страница 54

    TMP92CZ26A 92CZ26A-51 (3) UART data transfer format T able 3.4.6 to T able 3.4.1 1 show the support ed frequencies, data transfer format, baud rate modification command, oper atio n command, and version managemen t information, respective ly . Please also ref er to th e description of b oot program operat ion later in this sec tion. T able 3.4.6 Su[...]

  • Страница 55

    TMP92CZ26A 92CZ26A-52 T able 3.4.8 Baud Rate Modification Co mmand Baud Rate (bps) 9600 19200 38400 57600 115200 Modification Command 28H 18H 07H 06H 03H Note 1: If f OSCH (oscillation frequency) is 10.0 MHz, 5760 0 and 115200 bps are not supported. Note 2: If f OSCH (oscillation frequency) is 6.00, 8.00, or 9.00 MHz, 38400, 57600 , and 115200 bps [...]

  • Страница 56

    TMP92CZ26A 92CZ26A-53 the baud rate is not changed, the initial baud rat e data (28H: 9600 bps) must be sent. Baud rate modification b e comes effective a fter the echo back transmission is completed. 8. The 9th byte is used to echo back th e received d ata to the PC when the da ta received in the 8 th byte is one of the baud rat e modification dat[...]

  • Страница 57

    TMP92CZ26A 92CZ26A-54 b) Error codes The boot program uses the error codes shown in T able 3.4.12 to notify the PC of its processing status. T able 3.4.12 Error Code s Error Code Meaning 62H Unsupported baud rate 64H Invalid operation command A1H Framing error in received data A3H Overrun error in received data Note 1: If a receive error occurs whi[...]

  • Страница 58

    TMP92CZ26A 92CZ26A-55 d) No tes on Inte l Hex fo rmat (bi nary) 1. After receiving the checksum of a record, the boot pr ogram waits for the star t mark (3AH for “:”) of the next record . If data other than 3AH is received between records, it is ignored. 2. Once th e PC program has finished sen ding the checksum of an end record, it m us t w ai[...]

  • Страница 59

    TMP92CZ26A 92CZ26A-56 e) User program recei v e error If either of the f ollowing error c onditions occ urs while a us er program is b eing received, the boo t pro gra m stops operati on. If the record type is other than 00H, 01 H, or 02H If a checksum error occurs f) Measured frequ enc y/baud rate error When the boot program receives matching data[...]

  • Страница 60

    TMP92CZ26A 92CZ26A-57 (5) Others a) Handshake function Although the CTS pin is available in the TMP 92CZ26A, the boot pr ogram does not use it for transfer control. b) RS-232C connector The RS-232C connector must not be connected or disconnected while the boot program is running. c) Software on the PC When downloadin g a user program v ia UART , sp[...]

  • Страница 61

    TMP92CZ26A 92CZ26A-58 3.4.5 Downloading a User Program via USB (1) Connection example Figure 3.4.5 shows an example of con nec tions for download ing a user program via USB (using a 16-bit NOR Flash memory device as program memory). Note 1: The value of pull-up and pull-down resistors are rec ommended values. Note 2: The PU6 and LD22 pins are assig[...]

  • Страница 62

    TMP92CZ26A 92CZ26A-59 The following shows an overview of th e USB communicat i on flow . Figure 3.4.6 Overall Flowchart Host (PC) Connection Recognition Send GET_DISCRIPTOR Send DESCRIPTOR information Send the microcontroller information command Send microcontroller information data Check data Data Transfer Send the microcontroller information comm[...]

  • Страница 63

    TMP92CZ26A 92CZ26A-60 T able 3.4.15 V endor Requ est Co mmands Command Name V alue of bRequest Operation Notes Microcontroller information command 00H Send microcontroller information Microcontroller information data is sent by bulk IN transfer after the setup stage is completed. User program transfer start command 02H Receive a user program Set th[...]

  • Страница 64

    TMP92CZ26A 92CZ26A-61 T able 3.4.17 S tandard Request Comma nds S tandard Request Response Method GET_STATUS Automatic response by hardware CLEAR_FEATURE Automatic response by hard ware SET_FEATURE Automatic response by hardware SET_ADDRESS Automatic response by hardware GET_DISCRIPTOR Automatic response by hardware SET_DISCRIPTOR Not supported GET[...]

  • Страница 65

    TMP92CZ26A 92CZ26A-62 ConfigrationDescriptor Field Name V alue Meaning bLength 09H 9 bytes bDescriptorType 02H Configuration descriptor wTotalLength 0020H T ota l length (32 bytes) which each descriptor of both configuration descriptor , interface and endpoint is added. bNumInterfaces 01H There is one interface. bConfigurationValue 01H Configuratio[...]

  • Страница 66

    TMP92CZ26A 92CZ26A-63 T able 3.4.19 Information Returned for th e Microcontroller Information Comm and Microcontroller Information ASCII Code TMP92CZ26A 54H, 4DH, 50H, 39H, 32H, 43H, 5AH, 32H, 36H,20H, 20H, 20 H, 20H, 20H, 20H T able 3.4.20 Information Returned for th e User Program T ransfer Result Command T ransfer Result V alue Error Conditions [...]

  • Страница 67

    TMP92CZ26A 92CZ26A-64 (3) Description of the USB boot program opera tion The boot program l oads a user pr ogram in Intel H ex format se nt from the P C into the internal RAM. Wh en the user pr ogram has be en loaded succ essful ly , the user program starts executing from th e first address receiv ed. The boot program thus e n abl es users to perfo[...]

  • Страница 68

    TMP92CZ26A 92CZ26A-65 b. Notes on the user program format (binary) 1. After rec eiving the ch ecksum of a reco rd, the boot program waits for the start mark (3AH for “:”) of the next record . If data other than 3AH is received between records, it is ignored. 2. Since the address pointer is initially set to 00 H, the record type to be transferre[...]

  • Страница 69

    TMP92CZ26A 92CZ26A-66 (4) Others a) USB connector The USB connector must not be con nected or disconnected whi le the boot program is running. b) Software on the PC T o download a user program via USB, a USB device driver and special application soft war e are needed on th e P C.[...]

  • Страница 70

    TMP92CZ26A 92CZ26A-67 3.5 Interrupts Interrupts are controlled by the CPU Interrupt Ma sk Regist er <IFF2 to 0> (bits 12 to 14 of the Status Regist er) an d by the built-in interrupt control ler. TMP92CZ26A has a total of 56 interru pts divided into the followin g five t ypes: Interrupts generated by CPU: 9 sources • Software interrupts: 8 [...]

  • Страница 71

    TMP92CZ26A 92CZ26A-68 Figure 3.5.1 Interrupt processing Sequence Interrupt processing Interrupt vector calue “V” read interrupt request F/F clear Interrupt specified by DMA start v ector ? PUSH PC PUSH SR SR<IFF2:0> ← Level of accepted interrupt + 1 INTNEST ← INTNEST + 1 PC ← (FFFF00H + V) Interrupt processing program RETI instructi[...]

  • Страница 72

    TMP92CZ26A 92CZ26A-69 3.5.1 General-purpose Interrupt Processing When the CPU accepts an interrupt, it us ually performs the following sequence of operations. How ever , in the cas e of softwar e in terrupts and illegal instruction int errupts generated by the CPU, the CPU sk ips steps (1) and (3), and exec utes only steps (2), (4), and (5). (1) Th[...]

  • Страница 73

    TMP92CZ26A 92CZ26A-70 T able 3.5.1 TMP92CZ26A Interrupt V ect ors and Micro DMA/HDMA S tart V ectors Default Priority T ype Interrupt Source and Source of Micro DMA Request Ve c t o r V alue Address Refe r to V ector Micro DMA /HDMA S tart Ve c t o r 1 Reset or [SWI0] instruction 0000H FFFF00H 2 [SWI1] instruction 0004H FFFF04H 3 Illegal instructio[...]

  • Страница 74

    TMP92CZ26A 92CZ26A-71 Default Priority T ype Interrupt Source and Source of Micro DMA Request Ve c t o r V alue Address Refe r to V ector Micro DMA /HDMA S tart Ve c t o r 51 INTADHP: AD most priority conversion end 00C8H FFFFC8H 32H 52 INT AD: AD conversion end 00CCH FFFFCCH 33H 53 INTT C0/INTDMA0: Micro DMA0 /HDMA0 end 00D0H FFFFD0H 34H 54 INTT C[...]

  • Страница 75

    TMP92CZ26A 92CZ26A-72 3.5.2 Micro DMA processing In addition to general-p urpose interrupt proc essing, the TMP92CZ26 A also includes a micro DMA function and HDMA function. This section explains about Micro DMA function. For the HDMA function, please refer 3.23 DMA controller . Micro DMA processing for interrupt requests set by micr o DMA is perfo[...]

  • Страница 76

    TMP92CZ26A 92CZ26A-73 If micro DMA requ ests are set simultaneously for more than one channel, priority is not based on the interru pt priority level but on th e channel number: The low er the channel number , the higher the priority (Channel 0 thus has the highest priority an d channel 7 the lowest). Note: Don’t st art any micro DMAs by one inte[...]

  • Страница 77

    TMP92CZ26A 92CZ26A-74 (2) Soft start function T h e T M P 9 2 C Z 2 6 A c a n i n i t i a t e m i c r o D M A / H D M A e i t h e r w i t h a n i n t e r r u p t o r b y using the micro DM A /HDMA soft start func tion, in wh ich micro DMA or HDMA is initiated by a W rite cyc le which writes to the regis ter DMAR. W riting “1” to each bit of DM [...]

  • Страница 78

    TMP92CZ26A 92CZ26A-75 (4) Detailed des cription of the transf er m ode register 0 0 0 Mode DMAM0 to 7 DMAMn[4:0] Mode Descrip tion Execution T ime 0 0 0 z z Destination IN C mode (DMADn +) ← (DMASn) DMACn ← DMACn - 1 if DMACn = 0 then INTTCn 5 states 0 0 1 z z Destination DE C mode (DMADn -) ← (DMASn) DMACn ← DMACn - 1 if DMACn = 0 then INT[...]

  • Страница 79

    TMP92CZ26A 92CZ26A-76 3.5.3 Interrupt Controller Operation The block diagram in Figure 3.5.3 shows the int errupt circuits. The left-h and side of the diagram shows the interrupt controller ci rcuit. The right-hand side shows the CPU interrupt request signal circuit and the halt release circuit. For each of the 59 interr upts channels ther e is an [...]

  • Страница 80

    TMP92CZ26A 92CZ26A-77 Interrupt request signal to CPU IFF = 7 then 0 Micro DMA/H DMA start vector setting regist er INTTC4/INTDM A4 INTTC5/INTDM A5 INTTC6 INTTC7 V = E0H V = E4H V = E8H V = ECH Soft start Micro DMA/H DMA counter 0 interrupt 6 INTT C0/ INTDMA0 During IDLE1 52 3 3 3 1 6 1 7 3 3 8 6 51 8 input OR INT0,1 t o 4,INTK EY, IN TR TC INTAL[...]

  • Страница 81

    TMP92CZ26A 92CZ26A-78 (1) Interrupt priority settin g registers Symbol Name Addres s 7 6 5 4 3 2 1 0 − INT0 − − − − I0C I0M2 I0M1 I0M0 R R/W R R/W INTE0 INT0 enable F0H Always write “0”. 0 0 0 0 INT2 INT1 I2C I2M2 I2M1 I2M0 I1C I1M2 I1M1 I1M0 R R/W R R/W INTE12 INT1 & INT2 enable D0H 0 0 0 0 0 0 0 0 INT4 INT3 I4C I4M2 I4M1 I4M0 I3[...]

  • Страница 82

    TMP92CZ26A 92CZ26A-79 Symbol Nam e Address 7 6 5 4 3 2 1 0 INTTB01 (TMRB0) INTTB00 (TMRB0) ITB01C ITB01M2 ITB 01M1 ITB01M0 I TB00C IT B00M2 ITB00M1 ITB00M0 R R/W R R/W INTETB0 INTTB00 & INTTB01 enable D8H 0 0 0 0 0 0 0 0 INTTB1 1 (TMRB1) INTTB10 (TMRB1) ITB1 1C IT B1 1M2 ITB 1 1M1 IT B1 1M0 ITB10C ITB10M2 IT B10M1 IT B10M0 R R/W R R/W INTETB1 I[...]

  • Страница 83

    TMP92CZ26A 92CZ26A-80 Symbol Name Address 7 6 5 4 3 2 1 0 − INTLCD − − − − ILCD1C ILCDM2 ILCDM1 ILCDM0 R R/W INTELCD INTLCD enable EAH Always write “0”. 0 0 0 0 INTI2S1 INTI2S0 II2S1C II2S1M2 II2S1M1 II2S1M0 I I2S0C II2S0 M2 II2S0M1 II2S0M0 R R/W R/W R/W INTEI2S01 INTI2S0 & INTI2S1 enable EBH 0 0 0 0 0 0 0 0 INTRSC INTRDY IRSCC IR[...]

  • Страница 84

    TMP92CZ26A 92CZ26A-81 Symbol Name Address 7 6 5 4 3 2 1 0 INTTC1/INTDMA1 INTTC0/INTDMA0 ITC1C /IDMA1C ITC1M2 /IDMA1M2 ITC1M1 /IDMA1M1 ITC1M0 /IDMA1M0 ITC0C /IDMA0C ITC0M2 /IDMA0M2 ITC0M1 /IDMA0M1 ITC0M0 /IDMA0M0 R R/W R R/W INTETC01 /INTEDMA01 INTTC0/INTDMA0 & INTTC1/INTDMA1 enable F1H 0 0 0 0 0 0 0 0 INTTC3/INTDMA3 INTTC2/INTDMA2 ITC3C /IDMA3C[...]

  • Страница 85

    TMP92CZ26A 92CZ26A-82 (2) External interrupt contro l Symbol Name Address 7 6 5 4 3 2 1 0 I5EDGE I4EDGE I3EDGE I2EDGE I1EDGE I0EDGE I0LE − W W W W W W R/W R/W 0 0 0 0 0 0 0 0 IIMC0 Interrupt input mode control 0 F6H (Prohibit RMW) INT5EDGE 0: Rising 1: Falling INT4EDGE 0: Rising 1: Falling INT3EDGE 0: Rising 1: Falling INT2EDGE 0: Rising 1: Falli[...]

  • Страница 86

    TMP92CZ26A 92CZ26A-83 (3) SIO receive interrupt control Note: When using the micro DMA transfer end interrupt, al ways write “1”. INTRX0 edge enable 0 Edge detect INTRX0 1 “H” level INTRX0 Symbol Na me Address 7 6 5 4 3 2 1 0 − − IR0LE W W W 0 0 1 SIMC SIO interrupt mode control F5H (Prohibit RMW) Always write “0” (Note) Always writ[...]

  • Страница 87

    TMP92CZ26A 92CZ26A-84 (4) Interrupt request flag clear register The interrup t request flag is clear ed by wr iting the appr opriate micro D MA /HDMA start vector , as given in T able 3.5.1 to the register INTCLR. For example, to cl ear the interrupt flag INT0, perform the following re gister operation after execution of the DI i n stru ction. INTC[...]

  • Страница 88

    TMP92CZ26A 92CZ26A-85 Symbol Name Address 7 6 5 4 3 2 1 0 DMA0V5 DMA0V4 DMA0V3 DMA0V2 DMA0V1 DMA0V0 R/W 0 0 0 0 0 0 DMA0V DMA0 start vector 100H DMA0 start vector DMA1V5 DMA1V4 DMA1V3 DMA1V2 DMA1V1 DMA1V0 R/W 0 0 0 0 0 0 DMA1V DMA1 start vector 101H DMA1 start vector DMA2V5 DMA2V4 DMA2V3 DMA2V2 DMA2V1 DMA2V0 R/W 0 0 0 0 0 0 DMA2V DMA2 start vector [...]

  • Страница 89

    TMP92CZ26A 92CZ26A-86 (7) Specification of a micro DM A burst Specifying the micro DMA burst function caus es micro DMA transfer , once started, to continue until th e value in the transfer count er re gister reaches “0”. Setting any of the bits in the register DMAB whic h correspond to a micro DMA channel (as shown be low) to “1” spe cifie[...]

  • Страница 90

    TMP92CZ26A 92CZ26A-87 (8) Notes The instruction executi on unit and the bus interface unit in this CPU operate independentl y . T herefor e, if imm ediat ely befor e an interru pt is generat ed, the CP U fetches an instruction which clears the corres pondin g interrupt reques t flag, the CP U may ex ecute this instruction in between accepting t he [...]

  • Страница 91

    TMP92CZ26A 92CZ26A-88 3.6 DMAC (DMA Controller) The TMP92CZ26A incorporates a DMA controller (DMAC) havin g six channels. This D MAC can realize data transfer fast er than the m icro DMA function by th e 900/H1 CPU . The DMAC has the foll owing features: 1) Six independ ent chan nels of DMA 2) Two types of transfer start requests Hardware request ([...]

  • Страница 92

    TMP92CZ26A 92CZ26A-89 3.6.1 Block Diagram Figure 3.6.1 shows an overall block diagram for the DMAC. Note: “n” denotes a channel number. Micro DMA has eight c hannels (0 to 7) and DMA has six channels (0 to 5). Figure 3.6.1 Overall Block Diagram DMAnV DMAR → DMAC or micro DM A request source setting → DMAC or micro DMA soft start setting DMA[...]

  • Страница 93

    TMP92CZ26A 92CZ26A-90 3.6.2 SFRs The DMAC has the follo wing SFRs. These regist ers are connected to the CPU via a 1 6-bit data bus. (1) HDMASn (DMA Transfer Source Address Setting Register) The HDMASn register is used to set the DMA tr ansfer source addr ess. When the sourc e address is updated by DMA execu tio n, HDMASn is also updated. HDMAS0 to[...]

  • Страница 94

    TMP92CZ26A 92CZ26A-91 (2) HDMADn (DMA Transfer Destination Address Sett ing Register) The HDMADn regist er is used to set the DM A transfer destin ation address. When th e destination address is upd ated by D MA ex ecution, HDMADn is also updated. HDMAD0 to HDMAD5 have th e same configuration. Although the bus s izing function is supported, the add[...]

  • Страница 95

    TMP92CZ26A 92CZ26A-92 (3) HDMACAn (DM A Transf er C ount A Setting Regist er) The HDMACAn re gister is used to s et the number o f times a DMA tran sfer is to be performed by one DMA requ est. HDMACAn contains 16 bits and can specify up to 65536 transfers (0001H = one transfer, FFFFH = 65535 transfers, 0000H = 65536 transfers). Even when the transf[...]

  • Страница 96

    TMP92CZ26A 92CZ26A-93 (4) HDMACBn (DM A Transf er C ount B Setting Regist er) The HDMACBn register is used t o set the num ber of t imes a D MA r equest is to be m ade. HDMACBn contains 16 bits and can specify up to 65536 requ ests (0001H = one requ est, FFFFH = 65535 requests, 0000H = 65536 requests). When the transfer count B is updat ed by DMA e[...]

  • Страница 97

    TMP92CZ26A 92CZ26A-94 (5) HDMAMn (DMA Transfer Mode Setting Registe r) The HDMAMn regist er i s used to set the DMA tra nsfer mode. HDMAM0 to HDMAM5 have th e same configuration. HDMAMn Register 7 6 5 4 3 2 1 0 bit Symbol DnM4 DnM3 DnM2 DnM1 DnM0 Read/Write R/W After reset 0 0 0 0 0 Function DMA transfer mode 000: Destination INC (I/O → MEM) 001:[...]

  • Страница 98

    TMP92CZ26A 92CZ26A-95 (6) HDMAE (DMA Operation Enable Reg ister) The HDMAE regist er is used to enabl e or disable the DM AC operati on. Bits 0 to 5 correspond to channels 0 to 5. Unused ch annels shou ld be set to “0”. HDMAE Register 7 6 5 4 3 2 1 0 bit Symbol DMAE5 DMAE4 DMAE3 DMAE2 DMAE1 DMAE0 Read/Write R/W After reset 0 0 0 0 0 0 Function [...]

  • Страница 99

    TMP92CZ26A 92CZ26A-96 3.6.3 DMAC Operation Description (1) Overall flowchart Figure 3.6.9 shows a flowchart for DMAC operation wh en an interrupt (DMA) is requested. Figure 3.6.9 Overall Flowchart Interrupt specified by DMA start vector? Ye s No Bus ACK? No Ye s HDMASn read HDMADn write T imer match? No Ye s HDMACAn -1=0? No Ye s Bus REQ deassert I[...]

  • Страница 100

    TMP92CZ26A 92CZ26A-97 ZZ12H 1234H 400001H 400000H 800000H D15 ∼ D0 SRLLB SRLUB SRWR RD A23 ∼ A0 1 CS busak busrq int_xx SDCLK DMAC/read DMAC/write CPU execution c y cle Undefined after interrupt request is asserted until DMAC read cycle is started ZZ34H CPU execution cycle 2 CS (2) Bus arbitration The TMP92CZ26A inc ludes three controller s (DM[...]

  • Страница 101

    TMP92CZ26A 92CZ26A-98 3.6.4 Setting Example This section explains how to set the D MAC usin g a n example. (1) Transferring music data from inte rnal RAM to I2S by DMA transfer The 32 Kbytes of data stored in the int ernal RAM at addr esses 2000H to 9FFFH shall be transferred to FIFO-RAM via I2S. Each time an INTI2S request is asserted, 64 bytes (4[...]

  • Страница 102

    TMP92CZ26A 92CZ26A-99 3.6.5 Note 1. In case of using S/W start with HDMA, tr ansmission start is to set to "1" DMAR register. However DMAR register can't be us ed to confirm flag of transmission end. DMAR register reset to "0" when HDMA release bus occupation once with HDMATR function. We recommend to use HDMACBn register ([...]

  • Страница 103

    TMP92CZ26A 92CZ26A-100 3.6.6 Considerations for Usi ng More Than One Bus Master In the TM P92CZ26A, t he LCD con troller, SDRAM cont roller , and DMA con troller may act as the bus master apart from the CPU. Theref ore, care must be exercised to enable each of these functions to operate sm oothly. To facilitate expla nation of DMA op eration perf o[...]

  • Страница 104

    TMP92CZ26A 92CZ26A-101 Sample 1) Calculation example for CPU + HDMA Conditions: CPU operation speed (f SYS ) : 60 MHz I2S sampling frequency : 48 KHz (60 MHz/25/50 = 48 KHz) I2S data transfer bit length : 16 bits DMAC channel 0 used to transfer 5 Kbytes from internal RAM to I2S Calculation example: DMAC source data read time: Internal RAM dat a rea[...]

  • Страница 105

    TMP92CZ26A 92CZ26A-102 (2) CPU + LDMA The LCD controll er performs DMA t ransfer (LDMA) after issuing a bus requ est to the CPU and getting a bus acknowledgem ent. If LDMA is not p erformed pro perly, the LC D display funct ion cannot work properly. Therefore, LDM A must have higher prior ity than the CPU. Whil e LDMA is being performed, t he CP U [...]

  • Страница 106

    TMP92CZ26A 92CZ26A-103 Sample2) Calculation examp les for CPU + LDMA Conditions 1: CPU operation speed (f SYS ) : 60 MHz Display RAM : Internal RAM Display size : QVGA (320seg × 240com) Display quality : 65536 colors (TFT) Refresh rate : 70 Hz (incl uding 20 clocks of dummy cycles) Calculation example 1: t STOP (LDMA) = ((SegNum × K / 8) × t LRD[...]

  • Страница 107

    TMP92CZ26A 92CZ26A-104 (3) CPU + LDMA + ARDMA The SDRAM controller o wns the bus not only when SDRAM is used as the LCD displa y RAM but also when SDRAM is used as work, data, or stack area. The SDRAM controller occupies the bus (ARD M A) while it refr eshes SD RAM data by th e aut o refresh function. No special conside ration is needed for the AR [...]

  • Страница 108

    TMP92CZ26A 92CZ26A-105 Sample3) Calculation examp le for CPU + LDMA + ARDMA Conditions: CPU operating speed(f SYS ) : 60 MHz Display RAM : 16-bit external SDRAM Display size : QVGA (320seg × 240com) Display quality : 65536 colors (TFT) Refresh rate : 70 Hz (incl uding 20 clocks of dummy cycles) SDRAM auto refresh : Every 936 states (15.6 μ s) Cal[...]

  • Страница 109

    TMP92CZ26A 92CZ26A-106 (4) CPU + LDMA + ARDMA + HDMA This is a case in which all the bus masters are active at th e sa me time. Since the LCD displ ay function can not work properly i f the LCD controll er cannot perform LDMA pr operly, the priorities amon g the four bus masters shoul d be set in the order of LDM A > ARDMA > HDMA > C PU. B[...]

  • Страница 110

    TMP92CZ26A 92CZ26A-107 Sample 4) Calculation examp le for CPU + LDMA + ARD M A + HDMA Conditions: CPU operation speed (f SYS ) : 60 MHz Display RAM : QVGA (320seg × 240com) Display quality : 65536 colors (TFT) Refresh rate : 70 Hz (incl uding 20 clocks of dummy cycles) SDRAM Auto Refresh : Ever y 936 states (15.6 μ s) SDRAM : 16-bit width HDMA : [...]

  • Страница 111

    TMP92CZ26A 92CZ26A-108 HDMATR Register 7 6 5 4 3 2 1 0 bit Symbol DMATE DMATR6 DMATR5 DMATR4 DMATR3 DMATR2 DMATR1 DMATR0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Timer operation 0: Disable 1: Enable Maximum bus occupancy time setting The value to be set in <DMATR6:0> should be obtained by “maximum bus occupancy time / (256/fSYS)?[...]

  • Страница 112

    TMP92CZ26A 92CZ26A-109 Sample 5) Calculation examp le when using CPU + LCDC + SDRAMC + HDMA at same time (Worst case) Conditions: CPU operation speed (f SYS ) : 80MHz Display RAM : Internal RAM Display size : QVGA (320seg × 240com) Display quality : 16777216 color (TF T) Refresh rat e : 70Hz HDMA : Transfers 225 K bytes from internal RAM to SDRAM [...]

  • Страница 113

    TMP92CZ26A 92CZ26A-1 10 3.7 Function of port s TMP92CZ26A has I/O port pins t hat are shown in T able 3.7.1 in addition to funct ioning as general-purpose I/O p orts, these pins are also used by int ernal CPU and I/O funct ions. T able 3.7.2 lists I/O registers and their specificat ions. T able 3.7.1 Port Functions (1/3) (R: PD = with programmable [...]

  • Страница 114

    TMP92CZ26A 92CZ26A-1 1 1 T able 3.7.1 Port Functions (2/3) Port Name Pin Name Number of Pins I/O R I/O Setting Pin Name for built-in function PJ0 1 Output − (Fixed) SDRAS , SRLLB PJ1 1 Output − (Fixed) SDCAS , SRLUB PJ2 1 Output − (Fixed) SDWE , SRWR PJ3 1 Output − (Fixed) SDLLDQM PJ4 1 Output − (Fixed) SDLUDQM PJ5 1 I/O − bit NDALE PJ6[...]

  • Страница 115

    TMP92CZ26A 92CZ26A-1 12 T able 3.7.1 Port Functions (3/3) Port Name Pin Name Number of Pins I/O R I/O Setting Pin Name for built-in function PZ0 1 I/O − bit EI_PODDATA PZ1 1 I/O − bit EI_SYNCLK PZ2 1 I/O − bit EI_PODREQ PZ3 1 I/O − bit EI_REFCLK PZ4 1 I/O − bit EI_TRGIN PZ5 1 I/O − bit EI_COMRESET PZ6 1 I/O − bit EO_MCUDATA Port Z PZ7[...]

  • Страница 116

    TMP92CZ26A 92CZ26A-1 13 T able 3.7.2 I/O Port and Specification s (1/4) X: Don’t care I/O register Port Pin name Specification Pn PnCR PnFC PnFC2 Input port X 0 Output port X 1 0 Port 1 P10 toP17 D8 to D15 bus X X 1 None Output port X None 0 Port 4 P40 to P47 A0 to A7 Output X None 1 None Output port X None 0 Port 5 P50 to P57 A8 to A15 Output X [...]

  • Страница 117

    TMP92CZ26A 92CZ26A-1 14 T able3.7.2 I I/O Port and Specification s (2/4) X: Don’t care I/O register Port Pin name Specification Pn PnCR PnFC PnFC2 P90, P92 Input port X 0 0 None P91 Input port, RXD0 Input X 0 None None P96 Input port X None 0 None P97 Input port X None None None P90 to P92 Output port X 1 0 0 TXD0 Output X 1 1 0 P90 TXD0 Output ([...]

  • Страница 118

    TMP92CZ26A 92CZ26A-1 15 T able3.7.2 I/O Port and Specification s (3/4) X: Don’t care I/O register Port Pin name Specification Pn PnCR PnFC PnFC2 Input port PG0 to PG5 AN0 to AN5 Input 0 PG3 ADTRG Input 1 PG2 MX Output Note: Port G PG3 MY Output Note: X None 0 None PJ5 to PJ6 Input port X 0 0 PJ5 to PJ6 Output p ort X 1 0 PJ0 to PJ4, PJ7 Output po[...]

  • Страница 119

    TMP92CZ26A 92CZ26A-1 16 T able 3.7.2 I/O Port and Specification s (4/4) X: Don’t care I/O register Port Pin name Specification Pn PnCR PnFC PnFC2 PR0 to PR3 Input port X 0 0 PR0 to PR3 Output port X 1 0 PR0 SPDI Input X 0 1 PR1 SPDO Output X 1 1 PR2 SPCS Output X 1 1 Port R PR3 SPCLK Output X 1 1 None PT0 to PT7 Input port X 0 0 PT0 toPT7 Output [...]

  • Страница 120

    TMP92CZ26A 92CZ26A-1 17 3.7.1 Port 1 (P10 to P17) Port1 is an 8-bit general-purpose I/O port. Bits c an be ind ividually set as either inputs or outputs by control register P1 CR and functi on re gister P1FC. In addition to functioning as a gen eral-purpose I/O port, port1 can als o function as a data bus (D8 to D15). Setting the AM1 and AM0 pins a[...]

  • Страница 121

    TMP92CZ26A 92CZ26A-1 18 Port 1 register 7 6 5 4 3 2 1 0 bit Symbol P17 P16 P15 P14 P13 P12 P11 P10 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port 1 Control register 7 6 5 4 3 2 1 0 bit Symbol P17C P16C P15C P14C P13C P12C P11C P10C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: O[...]

  • Страница 122

    TMP92CZ26A 92CZ26A-1 19 3.7.2 Port 4 (P40 to P47) Port4 is an 8-bit general-purpose Output ports. In addition to functi oning as a general-purpose Output port, port 4 can also function as an address bus (A0 to A7). Each bit can be set individually for function. Settin g th e AM1 and AM0 pins as shown below and resetting the device initialize port 4[...]

  • Страница 123

    TMP92CZ26A 92CZ26A-120 Port 4 register 7 6 5 4 3 2 1 0 bit Symbol P47 P46 P45 P44 P43 P42 P41 P40 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Port 4 Function register 7 6 5 4 3 2 1 0 bit Symbol P47F P46F P45F P44F P43F P42F P41F P40F Read/Write W After reset Note2: 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 Function 0:Port 1:Address bus (A0 to A7) Port 4 Drive[...]

  • Страница 124

    TMP92CZ26A 92CZ26A-121 3.7.3 Port 5 (P50 to P57) Port5 is an 8-bit general-purpose Output ports. In addition to functi oning as a general-purpose I/O port, port5 can also function as an address bus (A8 to A15). Each bit can be set individually for function. Settin g th e AM1 and AM0 pins as shown below and resetting the device initialize port 5 t o[...]

  • Страница 125

    TMP92CZ26A 92CZ26A-122 Port 5 register 7 6 5 4 3 2 1 0 bit Symbol P57 P56 P55 P54 P53 P52 P51 P50 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Port 5 Function register 7 6 5 4 3 2 1 0 bit Symbol P57F P56F P55F P54F P53F P52F P51F P50F Read/Write W After reset Note2: 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 Function 0:Port 1:Address bus (A8 to A15) Port 5 Driv[...]

  • Страница 126

    TMP92CZ26A 92CZ26A-123 3.7.4 Port 6 (P60 to P67) Port6 is an 8-bit general-purpose I/O ports. Bits can be ind ividually set as either inputs or outputs and function by control r egister P6CR and funct i on register P6FC. In addition to function ing as a general-purp ose I/ O port, port6 can also function as an address bus (A16 to A23). Setting the [...]

  • Страница 127

    TMP92CZ26A 92CZ26A-124 Port 6 register 7 6 5 4 3 2 1 0 bit Symbol P67 P66 P65 P64 P63 P62 P61 P60 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port 6 Control register 7 6 5 4 3 2 1 0 bit Symbol P67C P66C P65C P64C P63C P62C P61C P60C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0:Input 1:Outp[...]

  • Страница 128

    TMP92CZ26A 92CZ26A-125 3.7.5 Port 7 (P70 to P76) Port7 is a 7-bit general-purpose I/O port (P 70 is used for output only). Bits can be individually set as either inputs or outputs by contr ol register P7CR and function register P7FC. In addition to functionin g as a general-p urpose I/O port, P70 to P76 pins can also function interfac e-pin for ext[...]

  • Страница 129

    TMP92CZ26A 92CZ26A-126 Figure 3.7.10 Port7 Read data P7 register S 1 0 Selecto r P7CR register P7FC register S 0 1 Selecto r P73 (EA24) P74 (EA25) EA24, EA25 Selector P7 register Port read data P7CR register P7FC register S 1 0 S 0 1 NDR/ B P75(R/W, B / NDR ) R/W Selecto r P76 ( WAIT ) P7 register P7CR register P7FC register WAIT Port read data[...]

  • Страница 130

    TMP92CZ26A 92CZ26A-127 Port 7 register 7 6 5 4 3 2 1 0 bit Symbol P76 P75 P74 P73 P72 P71 P70 Read/Write R/W After reset Data from extern al port (Output latch register is set to “1”) Data from external port (Output latch register is cleared to “0”) Data from external port (Output latch register is set to “1”) 1 Port 7 Control register [...]

  • Страница 131

    TMP92CZ26A 92CZ26A-128 3.7.6 Port 8 (P80 to P87) Port 80 to 87 are 8-bit output por ts. Resetting sets output latch of P82 to “0” and out put latches of P80 to P81, P83 to P87 to “1”. But if it is started at boot mode (AM [1:0] = “1 1”), output latch of P82 is set to “1”. Port 8 also function as interf ace-pin for external memory . [...]

  • Страница 132

    TMP92CZ26A 92CZ26A-129 Port 8 register 7 6 5 4 3 2 1 0 bit Symbol P87 P86 P85 P84 P83 P82 P81 P80 Read/Write R/W After rese t 1 1 1 1 1 0 (Note3) 1 1 Port 8 Function register 7 6 5 4 3 2 1 0 bit Symbol P87F P86F P85F P84F P83F P82F P81F P80F Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Port 1: <P87F2> 0: Port 1: <P86F2> 0: Port [...]

  • Страница 133

    TMP92CZ26A 92CZ26A-130 3.7.7 Port 9 (P90 to P92, P96, P97) P90 to P92 are 3-bit general- purpos e I/O port. I/O can be set on bit basis using the contro l register . Rese ttin g sets P90 to P92 to input port and all bits of output latch to” 1”. P96 to P97 are 2-bit general-purpose input p ort. W riting “1” in the corresp onding bit of P9F C[...]

  • Страница 134

    TMP92CZ26A 92CZ26A-131 Figure 3.7.15 P91, 92 Figure 3.7.16 Port 96,97 Internal data bus Selector A B S Selector A B S P91(RXD0) P92(SCLK0, 0 CTS ) SCLK0 output P9 read Direction control ( on bit basis ) P9CRwrite Function control ( on bit basis ) S Output latch P9 write Reset P9FCwrite RXD0 input SCLK0 input 0 CTS input TSICR0<PXEN> < P Y [...]

  • Страница 135

    TMP92CZ26A 92CZ26A-132 Port 9 register 7 6 5 4 3 2 1 0 bit Symbol P97 P96 P92 P91 P90 Read/Write R R/W After reset Data from extern al port Data from external port (Output latch register is set to “1”) Port 9 control register 7 6 5 4 3 2 1 0 bit Symbol P92C P91C P90C Read/Write W After reset 0 0 0 Function Refer to follow ing table Port 9 funct[...]

  • Страница 136

    TMP92CZ26A 92CZ26A-133 3.7.8 Port A (P A0 to P A7) P or t A0 t o A 7 ar e 8 - b it g en e ra l -p u r p os e in p u t ports with pull-up resist or . In addition to functioning as gen eral-purpose I/O ports, port A 0 t o A 7 ca n a l s o K ey - o n wa ke - u p f un c t io n as Keyboard interfac e. The various f unctions can each be ena bled by writi[...]

  • Страница 137

    TMP92CZ26A 92CZ26A-134 Port A register 7 6 5 4 3 2 1 0 b i t S y m b o l PA 7 PA 6 PA 5 PA 4 PA 3 PA 2 PA 1 PA 0 Read/Write R After reset Data from external port Port A Function register 7 6 5 4 3 2 1 0 b i t S y m b o l PA 7 F PA 6 F PA 5 F PA 4 F PA 3 F PA 2 F PA 1 F PA 0 F Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: KEY IN disable 1: KE[...]

  • Страница 138

    TMP92CZ26A 92CZ26A-135 3.7.9 Port C (PC0 to PC7) PC0 to PC7 are 8-bit general-purp ose I/O port. Each bit can be set indiv idually for input or output. Resetting sets Port C to an input port. It also sets all bits of the output latc h register to “1”. In addition to functioning as a gen eral-purpose I/O port, Port C can also function as input p[...]

  • Страница 139

    TMP92CZ26A 92CZ26A-136 (2) PC1 (INT1, T A0IN), PC3 (INT3, T A2IN) Figure 3.7.21 Port C1,C3 PC1 (INT1,TA0IN) PC3 (INT3, TA2IN) Internal data bus Direction control Reset PCCR write PCwrite PC read Function control PCFCwrite S Output latch S B Selector A Level/edge selection and Rising/Falling selection IIMC<I1LE, I1EDGE> <I3LE, I3EDGE> IN[...]

  • Страница 140

    TMP92CZ26A 92CZ26A-137 (3) PC4 (EA26), PC5 (E A27), PC6 (EA28) Figure 3.7.22 Port C4, C5, C6 (4) PC7 (KO8) Figure 3.7.23 Port C7 Reset Selector A B S PC7(KO8) PC read Direction control PCCR write Function control PCFC write S Output latch PC write Open-drain enable Internal data bus Selector A B S PC4(EA26) PC5(EA27) PC6(EA28) PC read Direction con[...]

  • Страница 141

    TMP92CZ26A 92CZ26A-138 Port C register 7 6 5 4 3 2 1 0 bit Symbol PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 Read/Write R/W After reset Data from external port (Output latch register is set to “1”) Port C control register 7 6 5 4 3 2 1 0 bit Symbol PC7C PC6C PC5C PC4C PC3C PC2C PC1C PC0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: Output[...]

  • Страница 142

    TMP92CZ26A 92CZ26A-139 3.7.10 Port F (PF0 to PF5, PF7) Port F0 to F5 are 6-bit gene ral-purpose I/O ports. Resetting sets PF0 to PF5 to be input ports. It also sets all bits of the outpu t latch register to “ 1”. In addition to functioning as general-purpose I/O p ort pins, PF0 to P F5 can also function as the ou tput for I 2 S0, I 2 S1. A pin [...]

  • Страница 143

    TMP92CZ26A 92CZ26A-140 Figure 3.7.25 Port F0, F3 Figure 3.7.26 Port F1, F2, F4, F5 Internal data bus Selector A B S Selector A B S PF0 (I2S0CKO) PF3 (I2S1CKO) I2S0CKO output I2S1CKO /X1D4 outpu t PF read Direction control ( on bit basis ) PFCR write Function control ( on bit basis ) S Output latch PF write Reset PFFC write Internal data bus Selecto[...]

  • Страница 144

    TMP92CZ26A 92CZ26A-141 (2) Port F7 (SDCLK), Port F7 is general-purpose output port. In addition to functioning as general-purp ose output port, PF7 can also function as the SDCLK output. Figure 3.7.27 Port F7 SDCLK Selector A B S PF7(SDCLK) PF read Function control (on bit basis) PFFC write S Output latch PF write Reset Internal data bus[...]

  • Страница 145

    TMP92CZ26A 92CZ26A-142 Port F register 7 6 5 4 3 2 1 0 bit Symbol PF7 PF5 PF4 PF3 PF2 PF1 PF0 Read/Write R/W R/W After reset 1 Data from external port (Output latch register is set to “1”) Port F control register 7 6 5 4 3 2 1 0 bit Symbol PF5C PF4C PF3C PF2C PF1C PF0C Read/Write W After reset 0 0 0 0 0 0 Function Refer to following table Port [...]

  • Страница 146

    TMP92CZ26A 92CZ26A-143 3.7.11 Port G (PG0 to PG5) PG0 to PG5 are 6-bit input port and can also be used as the analog input pins for the internal AD converter . PG3 can also be used as ADTRG pin for the AD converter . PG2, PG3 can also be used as MX, MY pin for T ouch screen interface. (PG) register is prohibited to access by byte. All the instructi[...]

  • Страница 147

    TMP92CZ26A 92CZ26A-144 Port G register 7 6 5 4 3 2 1 0 Bit Symbol PG5 PG4 PG3 PG2 PG1 PG0 Read/Write R After reset Data from external port Note: Selection of the input channel of AD converter and ADTRG input mode register is enabled by setting AD converter . Port G Function register 7 6 5 4 3 2 1 0 Bit Symbol PG3F Read/Write W After reset 0 Functio[...]

  • Страница 148

    TMP92CZ26A 92CZ26A-145 3.7.12 Port J (PJ0 to PJ7) PJ0 to PJ4 and PJ7 are 6 -bit output port. Resetting sets th e output latch PJ to “1”, an d they output “1”. PJ5 to PJ6 are 2-bit input/ou tput port. In addit ion to functioning as port, Port J also functions as output pins for SDRAM ( SDRAS , SDCAS , SDWE , SDLLDQM, SDLUDQM, and SDCKE), SRA[...]

  • Страница 149

    TMP92CZ26A 92CZ26A-146 Figure 3.7.32 Port J5,J6 Internal data bus Selector A B S Selector A B S PJ5 (NDALE), PJ6 (NDCLE) NDALE, NDCLE output P J read Direction control PJCR write Function control S Output latch PJ write Reset PJFC write[...]

  • Страница 150

    TMP92CZ26A 92CZ26A-147 Port J register 7 6 5 4 3 2 1 0 bit Symbol PJ7 PJ6 PJ 5 PJ4 PJ3 PJ2 PJ1 PJ0 Read/Write R/W After reset 1 Data from exte rnal port (Output latch register is set to “1”) 1 1 1 1 1 Port J control r egister 7 6 5 4 3 2 1 0 bit Symbol PJ6C PJ5C Read/Write W After reset 0 0 Function 0: Input, 1 : O u tp u t Port J function regi[...]

  • Страница 151

    TMP92CZ26A 92CZ26A-148 3.7.13 Port K (PK0 to PK7) PK0 to PK7 are 8-bit output ports. Resetting se ts the ou tput latch PK to “0”, and PK0 to PK7 pins output “0”. In addit ion to functi oning as output port function, Port K also function as output pins for LCD controll er (LCP0, LHSYNC, LLOAD, LFR, L VSYNC, and LGOE0 to LGOE2). Above setting[...]

  • Страница 152

    TMP92CZ26A 92CZ26A-149 Port K register 7 6 5 4 3 2 1 0 bit Symbol PK7 PK6 PK5 PK4 PK3 PK2 PK1 PK0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Port K function register 7 6 5 4 3 2 1 0 bit Symbol PK7F PK6F PK5F PK4F PK3F PK2F PK1F PK0F Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0:Port 1:LGOE2 0:Port 1:LGOE1 0:Port 1:LGOE0 0:Port 1: LHSYNC 0: Po[...]

  • Страница 153

    TMP92CZ26A 92CZ26A-150 3.7.14 Port L (PL0 to PL7) PL0 to PL7 are 8-bit output ports. Resetting se ts the output latch PL to “0”, and PL0 to PL7 pins output “0”. In addit ion to functioning as a gener al-purpose output port, P ort L can also function as a data bus for LCD contro ller (LD0 to LD7). Above setting i s used the function register[...]

  • Страница 154

    TMP92CZ26A 92CZ26A-151 Port L register 7 6 5 4 3 2 1 0 bit Symbol PL7 PL6 PL5 PL4 PL3 PL2 PL1 PL0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Port L function register 7 6 5 4 3 2 1 0 bit Symbol PL7F PL6F PL5F PL4F PL3F PL2F PL1F PL0F Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Port 1: Data bus for LCDC (LD7 toLD0) Port L drive register 7 6 [...]

  • Страница 155

    TMP92CZ26A 92CZ26A-152 3.7.15 Port M (PM1, PM2, PM7) PM1, PM2 and PM7 are 3-b it output ports. Resetting s ets the output latch P M to “1”, and PM1, PM2 and PM7 pins output “1”. In addition to functioning as output p orts, Port M also function as output pin for timers (T A1OUT), output pins for RT C alarm ( ALARM ), output pin for melody/al[...]

  • Страница 156

    TMP92CZ26A 92CZ26A-153 Figure 3.7.39 Port M2 Figure 3.7.40 Port M7 PWE Reset S Output latch PM write PM read Function control (on bit basis) PMFC write S A Y Selector B PM7 (PWE) Internal data bus MLDALM Reset S Output latch PM write PM read Function control (on bit basis) PMFC write S A Y Selector B ALARM PM2 ( ALARM , MLDALM ) A S Y Selector B In[...]

  • Страница 157

    TMP92CZ26A 92CZ26A-154 Port M register 7 6 5 4 3 2 1 0 bit Symbol PM7 PM2 PM1 Read/Write R/W R/W After reset 1 1 1 Port M function register 7 6 5 4 3 2 1 0 bit Symbol PM7F PM2F PM1F Read/Write W W After reset 0 0 0 Function 0: Port 1: PW E 0: Port 1: ALARM at <PM2>=1, MLDALM at <PM2>=0 0: Port 1: MLDALM at <PM1>=1, TA 1 O U T at &[...]

  • Страница 158

    TMP92CZ26A 92CZ26A-155 3.7.16 Port N (PN0 to PN7) PN0 to PN7 are 8-bit general-purpose I/O port. Eac h bit can be set ind ividu ally f or input or output. Resetting s ets Port N to an input port. In a ddition to functionin g as a general-purpose I/O port, Port N can also func tion as interfa ce pin for key -boar d (KO0 to KO7). This function can se[...]

  • Страница 159

    TMP92CZ26A 92CZ26A-156 Port N register 7 6 5 4 3 2 1 0 bit Symbol PN7 PN6 PN5 PN4 PN3 PN2 PN1 PN0 Read/Write R/W After reset Data from external port (Output latch register is set to “1”) Port N control regist er 7 6 5 4 3 2 1 0 bit Symbol PN7C PN6C PN5C PN4C PN3C PN2C PN1C PN0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: Outpu[...]

  • Страница 160

    TMP92CZ26A 92CZ26A-157 3.7.17 Port P (PP1 to PP7) Port P1 to P5 are 6-bit general-purpose I/O ports. Each bit can be set individually for input or output. Res etting sets port P1 to P5 to input port and output latc h to “0”. In addition to functi oni ng as general-pu rpose I/O port pins, P0 to P5 can also function as output pin for timers (T A3[...]

  • Страница 161

    TMP92CZ26A 92CZ26A-158 Figure 3.7.45 Port P3 Figure 3.7.46 Port P4,P5 PP4 (INT6,TB0IN0) PP5 (INT7, TB1IN0) Internal data bus Direction control (on bit basis) Reset PPCR write PP write PP read Function control (on bit basis) PPFC write R Output latch S B Selector A Level/edge selection and Rising/Falling selection IIMC<I1LE, I1EDGE> <I3LE, [...]

  • Страница 162

    TMP92CZ26A 92CZ26A-159 Figure 3.7.47 Port P6, P7 Selector A B S PP6 (TB0OUT0) PP7 (TB1OUT0) TB0OUT0 output TB1OUT0 output Function control (on bit basis) R Output latch PP write Reset PPFC write Internal data bus[...]

  • Страница 163

    TMP92CZ26A 92CZ26A-160 Port P register 7 6 5 4 3 2 1 0 bit Symbol PP7 PP6 PP5 PP4 PP3 PP2 PP1 Read/Write R/W After reset 0 0 Data from external port (Output latch register is cleared to “0”) Port P control register 7 6 5 4 3 2 1 0 bit Symbol PP5C PP4C PP3C PP2C PP1C Read/Write W After reset 0 0 0 0 0 Function 0: Input 1: Output Port P function [...]

  • Страница 164

    TMP92CZ26A 92CZ26A-161 3.7.18 Port R (R0 to R3) Port R0 to R3 are 4-bit general-purpose I/O ports. Each bit can be set individually for input or output. Res etting sets port R0 to R3 to input port and output latch to “0”. In addition to functi oni ng as general-pu rpose I/O port pins, PR0 t o PR3 can also function as SPI controller pin (SPCLK, [...]

  • Страница 165

    TMP92CZ26A 92CZ26A-162 Figure 3.7.50 Port R1 to R3 Selector A B S PR1(SPDO), PR2( SPCS ), PR3(SPCLK) PR read Direction control ( on bit basis ) PRCR write Function control (on bit basis) PRFC write R Output latch PR write Reset Selector A B S SPDO, SPCS , SPCLK Internal data bus[...]

  • Страница 166

    TMP92CZ26A 92CZ26A-163 Port R register 7 6 5 4 3 2 1 0 bit Symbol PR3 PR2 PR1 PR0 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port R control regist er 7 6 5 4 3 2 1 0 bit Symbol PR3C PR2C PR1C PR0C Read/Write W After reset 0 0 0 0 Function 0: Input, 1: Output Port R function register 7 6 5 4 3 2 [...]

  • Страница 167

    TMP92CZ26A 92CZ26A-164 3.7.19 Port T (PT0 to PT7) Port T0 to T7 are 8-bit general-purpose I/O ports. Each bit can be set individually for input or output. Res etting sets port T0 to T7 to input port and output latc h to “0”. In addition to functi oni ng as general-pu rpose I/O port pins, PT0 to PT7 can also function as data bus pin for LCD cont[...]

  • Страница 168

    TMP92CZ26A 92CZ26A-165 Port T register 7 6 5 4 3 2 1 0 bit Symbol PT7 PT6 PT 5 PT4 PT3 PT2 PT1 PT0 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port T control register 7 6 5 4 3 2 1 0 bit Symbol PT7C PT6C PT5C PT4C PT3C PT2C PT1C PT0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: O[...]

  • Страница 169

    TMP92CZ26A 92CZ26A-166 3.7.20 Port U (PU0 to PU7) Port U0 to U7 are 8-bit gene ral-purpose I/O ports. Each bi t can be set individually for input or output. Res etting sets port U0 to U7 to input port and output latch t o “0”. In addition to functi oni ng as general-pu rpose I/O port pins, PU0 to PU7 can also funct ion a s data bus pin for LCD [...]

  • Страница 170

    TMP92CZ26A 92CZ26A-167 Figure 3.7.55 Port U5 Selector A B S Selector A B S PU5 (LD21) PU read Direction control (on bit basis) PUCR wirte Function control ( on bit basis ) PUFC write R Output latch PU write Reset LD21 Internal data bus[...]

  • Страница 171

    TMP92CZ26A 92CZ26A-168 Port U register 7 6 5 4 3 2 1 0 Bit Symbol PU7 PU6 PU5 PU4 PU3 PU2 PU1 PU0 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port U control regist er 7 6 5 4 3 2 1 0 Bit Symbol PU7C PU6C PU5C PU4C PU3C PU2C PU1C PU0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: O[...]

  • Страница 172

    TMP92CZ26A 92CZ26A-169 3.7.21 Port V (PV0 to PV4, PV6 , PV7) Port V0 to V2, V6 and V7 are 5-bit genera l-purpose I/O ports. Each bit can be set individually for input or output. Resetting sets port V0 to V2, V6 and V7 to input port and output latch to “0”. In add ition to funct ionin g as gen eral-purpose I/O port pins, PV can also function as [...]

  • Страница 173

    TMP92CZ26A 92CZ26A-170 Figure 3.7.58 Port V3, V4 Figure 3.7.59 Port V6, V7 Selector A B S Selector A B S PV6(SDA) PV7(SCL) PV read Direction control (on bit basis) PVCR write Function control (on bit basis) PVFC write R Output latch PV write Reset SDA,SCL output SDA,SCL input Open-drain enabl e PVFC2<PV6F2,PV7F2> Internal data bus Reset R Out[...]

  • Страница 174

    TMP92CZ26A 92CZ26A-171 Port V register 7 6 5 4 3 2 1 0 bit Symbol PV7 PV6 PV4 PV3 PV2 PV1 PV0 Read/Write R/W R/W After reset Data from external port (Output latch register is cleared to “0”) Data from external port (Output latch register is cleared to “0”) Port V control register 7 6 5 4 3 2 1 0 bit Symbol PV7C PV6C PV2C PV1C PV0C Read/Writ[...]

  • Страница 175

    TMP92CZ26A 92CZ26A-172 3.7.22 Port W (PW0 to PW7) Port W0 to W7 are 8-bit general-purpose I/O ports. Each bit can be set in dividually for input or output. Resetting sets port W0 to W7 to input port and output latch t o “0”. Above settin g is used th e control reg ist er PWCR and function r egister PWFC . Figure 3.7.61 Port W0 to W7 Selector A [...]

  • Страница 176

    TMP92CZ26A 92CZ26A-173 Port W register 7 6 5 4 3 2 1 0 bit Symbol PW7 PW6 PW5 PW4 PW3 PW2 PW1 PW0 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port W control register 7 6 5 4 3 2 1 0 bit Symbol PW7C PW6C PW5C PW4C PW3C PW2C PW1C PW0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: Ou[...]

  • Страница 177

    TMP92CZ26A 92CZ26A-174 3.7.23 Port X (PX4, PX5 and PX7) Port X5 and X7 are 2-bit gen eral-purpose I/O ports. Each bit can be set in dividually for input or output. Res etting sets port X5 and X7 t o in put port a nd output latch to “0”. In addition to functioni ng as gener al-pu rpos e I/O por t pins, PX5 and PX7 can a lso function as USB clock[...]

  • Страница 178

    TMP92CZ26A 92CZ26A-175 Figure 3.7.64 Port X5, X7 Selector A B S PX5 (X1USB) PX7 PX read Direction control ( on bit basis ) PXCR write Function control (on bit basis) PXFC write R Output latch PX write Reset Internal data bus X1USB input[...]

  • Страница 179

    TMP92CZ26A 92CZ26A-176 Port X register 7 6 5 4 3 2 1 0 bit Symbol PX7 PX5 PX4 Read/Write R/W R/W After reset Data from external port (Output latch register is cleared to “0”) Port W control register 7 6 5 4 3 2 1 0 bit Symbol PX7C PX5C Read/Write W W After reset 0 0 Function 0: Input 1: Output 0: Input 1: Output Port W function register 7 6 5 4[...]

  • Страница 180

    TMP92CZ26A 92CZ26A-177 3.7.24 Port Z (PZ0 to PZ7) Port Z0 to Z7 are 8-bit general-purpose I/O ports. Each bit can be set individually for input or output. Res etting sets port Z0 to Z7 to input port and ou tput latch to “0”. In addition to functionin g as general-purpos e I/O port function, Port Z can also function as communication for debug mo[...]

  • Страница 181

    TMP92CZ26A 92CZ26A-178 Figure 3.7.67 Port Z6 to Z7 Selector A B S PZ6(EO_MCUDATA) PZ7(EO_MCUREQ) PZ read Direction control (on bit basis) PZCR write R Output latch PZ write Reset Internal data bus Selector A B S EO_MCUDATA EO_MCUREQ Debug mode[...]

  • Страница 182

    TMP92CZ26A 92CZ26A-179 Port Z register 7 6 5 4 3 2 1 0 bit Symbol PZ7 PZ6 PZ 5 PZ4 PZ3 PZ2 PZ1 PZ0 Read/Write R/W After reset Data from external port (Output latch register is cleared to “0”) Port Z control regist er 7 6 5 4 3 2 1 0 bit Symbol PZ7C PZ6C PZ5C PZ4C PZ3C PZ2C PZ1C PZ0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: [...]

  • Страница 183

    TMP92CZ26A 92CZ26A-180 3.8 Memory Controller (MEMC) 3.8.1 Functions TMP92CZ26A has a memory contro ller with a variable 4-block addr ess area that controls as follows. (1) 4-block address area support Specifies a start address and a bl ock size for 4-block address area (block 0 to 3). * SRAM or ROM : All CS-blocks (CS0 to CS3) ar e supported. * SDR[...]

  • Страница 184

    TMP92CZ26A 92CZ26A-181 3.8.2 Control register and O peration after reset release This section describes the regist ers to contro l the memory con troller, the state after re set release and nece ssary settings. (1) Control Register The control re gi sters of the memor y co ntro ll er are as follows and Table 3.8.1 t o Table 3.8.2. ・ Control regis[...]

  • Страница 185

    TMP92CZ26A 92CZ26A-182 Table 3.8.1 Control register 7 6 5 4 3 2 1 0 Bit symbol B0WW3 B0WW2 B0WW1 B0WW0 B0WR3 B0WR2 B0WR1 B0WR0 Read/Write R/W After Reset 0 0 1 0 0 0 1 0 Bit Symbol B0E B0REC B0OM1 B0OM0 B0BUS1 B0BUS0 Read/Write R/W R/W After Reset 0 0 0 0 0 0 Bit Symbol M0V20 M0V19 M0V18 M0V17 M0V16 M0V15 M0V14-V9 M0V8 Read/Write R/W After Reset 1 [...]

  • Страница 186

    TMP92CZ26A 92CZ26A-183 Table 3.8.2 Control register 7 6 5 4 3 2 1 0 Bit Symbol BEXWW3 BEXWW2 BEXWW1 BEXWW0 BEXWR3 BEXWR2 BEXWR1 BEXWR0 Read/Write R/W BEXCSL (0159H) After Reset 0 0 1 0 0 0 1 0 Bit Symbol BEXREC BEXOM1 BEXOM0 BEXBUS1 BEXBUS0 Read/Write R/W BEXCSH (0158H) After Reset 0 0 0 0 0 Bit Symbol OPGE OPWR1 OPWR0 PR1 PR0 Read/Write R/W R/W R/[...]

  • Страница 187

    TMP92CZ26A 92CZ26A-184 (2) Operation after releasing reset The data bus width at starting is determined depen ding on state of AM1/AM0 pins after releasing reset. Then, the extern al memory access as follows; Note: A memory to be used to start afte r releasing reset is either N OR-Flash or Masked-ROM. NAND -Flash , SDRAM can’t be used. AM1/AM0 pi[...]

  • Страница 188

    TMP92CZ26A 92CZ26A-185 3.8.3 Basic functions and register setting In this section, setting of the block address ar ea, the con necting m emory and the num ber of waits out of the mem ory controller’s functions ar e described. (1) Block address area spec ification The block address areas of CS0 to CS3 are specif ied by MSAR0 to MSAR3 and MAMR0 to [...]

  • Страница 189

    TMP92CZ26A 92CZ26A-186 (b) Memory address mask registers Figure 3.8.3 shows the memory address mask regi sters. MAMR0 to MAMR3 are used to set the size of the CS0 t o CS3 areas by specifying a m ask for each bit of the start address s et in MAMR0 to M AMR3. The c ompare operat ion used to d etermine if an address is in th e CS0 to CS3 areas is only[...]

  • Страница 190

    TMP92CZ26A 92CZ26A-187 (c) Setting memory start add r esses and address areas An example of specifyin g a 64-Kbyte a ddress area startin g from 010000H us ing the CS0 areas i describes. Set 01H in MSAR0<S23 :16> (Correspon ding to the up per 8 bits of the star t address). Next, calculate the d ifference between the start address and the antic[...]

  • Страница 191

    TMP92CZ26A 92CZ26A-188 Table 3.8.3 Valid Area Sizes for Each CS Area Size (Byte) CS area 256 512 32 K 64 K 128 K 256 K 512 K 1 M 2 M 4 M 8 M CS0 ○ ○ ○ ○ Δ Δ Δ Δ Δ CS1 ○ ○ ○ Δ Δ Δ Δ Δ Δ CS2 ○ ○ Δ Δ Δ Δ Δ Δ Δ CS3 ○ ○ Δ Δ Δ Δ Δ Δ Δ Note:“ Δ ” indicates areas that cannot be set by me mory start addres[...]

  • Страница 192

    TMP92CZ26A 92CZ26A-189 (2) Connection Mem ory Spec ificat ion Setting BnCSH<BnO M1:0> specifies the mem ory type to be c onnected with the b lock address areas. The inter face signal is output accor ding to the set mem ory as follows; BnCSH<BnOM1:0> BnOM1 BnOM0 Function 0 0 SRAM/ROM (Default) 0 1 (Reserved) 1 0 (Reserved) 1 1 SDRAM Note[...]

  • Страница 193

    TMP92CZ26A 92CZ26A-190 CPU Dat a Operand Data Si ze ( bi t) Operand St art Address Bus wid th of Mem ory (bit ) C PU Address D31 to D24 D 23 to D16 D15 to D8 D7 to D0 4n + 0 8/ 16/32 4n + 0 xxxxx xxxxx xxxx x b7 to b0 8 4n + 1 xxxxx xxxx x xxxxx b 7 to b0 4n + 1 16/32 4n + 1 xxxxx xxxxx b7 to b 0 xxxxx 8/ 16 4n + 2 xxxxx xxxx x xxxxx b 7 to b0 4n +[...]

  • Страница 194

    TMP92CZ26A 92CZ26A-191 (4) Wait control The external bus cycle c o mpletes for two stat es m i nimum(25 ns at f SYS = 80 MHz). Setting the Bn CSL<BnWW3:0> specifies th e number of wa its in the write cycle, and BnCSL<BnWR3:0> spec ifies the number of waits in the read cy cle. <BnWW3:0> is set with the same method as <BnWR3:0>[...]

  • Страница 195

    TMP92CZ26A 92CZ26A-192 (5) Recove ry (Data h old) cyc le contr ol S o m e m e m o r y h a v e a n A C s p e c i f i c a t i o n a b o u t d a t a h o l d t i m e f r o m CE or OE for read cycle and a data confliction problem m ay occur. To avoid this problem, 1 -dummy cycle can be inserted after CSm-block access cycle by sett ing “1” to BmCSH&l[...]

  • Страница 196

    TMP92CZ26A 92CZ26A-193 (6) Adjust Function for the timing of con tr ol signal This function can change the timing of CSn , CSZx , CSXx , R / W , RD , WRxx , SRWR and SRxxB signals and adjust the timing accord in g to the set-up/hold tim e of the memories. As for the CSn , CSZx , CSXx , R / W and WRxx , SRWR , SRxxB (at write cycle), it can be chang[...]

  • Страница 197

    TMP92CZ26A 92CZ26A-194 RDTMGCR0/1<BnTCRS1:0> 00 TCRS = 0.5 × f SYS (Default) 01 TCRS = 1.5 × f SYS 10 TCRS = 2.5 × f SYS 11 TCRS = 3.5 × f SYS TCRS:The dela y from (CSn) to (RD,SRxxB). Note: TW cycle is inserted by setting BnCSL register . If it is set to 0-Wait, TW cycle is not inserted. A23 to 0 CSn R/ W T1 T2 SDCLK (80MHz) RD SRxxB Inp[...]

  • Страница 198

    TMP92CZ26A 92CZ26A-195 (7) Basic bus timing (a) External re ad/write cycle (0 waits) (b) External read/write cycle (1 wait) CSn WRxx RD , SRxxB A 23 to A0 In p ut Output Read Write SDCLK (60 MHz) D15 to D0 D15 to D0 T1 T2 SRWR , SRxxB CSn WRxx RD , SRxxB A 23 to A0 Output SDCLK (60 MHz) D15 to D0 D15 to D0 T1 TW In p ut Read Write T2 SRWR , SRxxB[...]

  • Страница 199

    TMP92CZ26A 92CZ26A-196 (c) External read bus cycle (1 wait + TAC: 1f SYS + TCRS: 1.5f SYS + TCRH: 1f SYS ) External write bus cycle (1 wait + TAC: 1f SYS + TCWS/H: 1.5f SYS ) (d) External read/write cycle (4 waits + WAIT pin input mode) Read T1 T6 In p ut Output Write T2 T3 T4 T5 TAC TAC TCRS TCRH TCWS TCWH TCWS TCWH D15 to 0 A23 to 0 D15 to 0 WRxx[...]

  • Страница 200

    TMP92CZ26A 92CZ26A-197 (e) External read/write cycle (4 waits + WAIT pin input mode) (f) External read bus cycle (4 waits + WAIT pin input mode + TAC: 1f SYS + TCRS: 1.5f SYS + TCRH: 1f SYS ) External write bus cycle (4 waits + WAIT pin input mode + TAC: 1f SYS + TCWS/H: 1.5f SYS ) Sampling Read T1 T6 Input Output Write T2 T3 T4 T5 TW Sampling D15 [...]

  • Страница 201

    TMP92CZ26A 92CZ26A-198 (8) Connect ing to ex ternal memory Figure 3.8.4 shows an example of ho w to connect external 1 6-bit SRAM and 16 -bit NOR flash to the TMP92C Z26A. Figure 3.8.4 Example of External 16-Bit SRAM and NOR Flash Connection TMP92CZ26A 16-bit SRAM RD SRLLB SRLUB SRWR 0 CS D [15:0] A0 A1 A2 A3 2 CS OE LDS UDS R/W CE I/O [16:1] A 0 A[...]

  • Страница 202

    TMP92CZ26A 92CZ26A-199 3.8.4 ROM Page mode Access Control This section describes ROM page mode accessing and how to se t registers. ROM page mode is set by PMEMCR. (1) Operation and how to set the registers TMP92CZ26A supports ROM access with the pa ge mode. The ROM access with the page mode is specif ied only in CS2. Setting PMEMCR<OPGE> to [...]

  • Страница 203

    TMP92CZ26A 92CZ26A-200 3.8.5 Internal Boot ROM Control This section describes about bu ilt -in boot ROM. For the specification of S/W in b oot ROM, refer t o the sect ion 3.4 boot ROM. (1) BOOT mode BOOT mode is started by following AM 1 and AM0 pins condition with reset . AM1 AM0 Start mode 0 0 Don’t use this setting 0 1 Start with 16-bit data b[...]

  • Страница 204

    TMP92CZ26A 92CZ26A-201 (4) Disap pearing boot ROM After boot sequence in BOOT mode, an appl ication system prog ram m ay continue to run without reset asserting. In this cas e, an ex ternal memory which is map ped 3FE000H to 3FFFFFH address can not be accessed because of boot ROM is assigned. To solve it, internal b oot ROM can be disapper ed by se[...]

  • Страница 205

    TMP92CZ26A 92CZ26A-202 3.8.6 Cautions (1) Note the timing betw een CS and RD If the load capacitance of the RD (Read signal) is greater than that of the CS (Chip select signal), it is possible th at an unintended read cycle occu rs due to a dela y in the read signal. Such an unintend ed read cycle may cause a troub le as in the case of (a) in Figur[...]

  • Страница 206

    TMP92CZ26A 92CZ26A-203 (2) Note the NAND flash area setting Figure 3.8.8 shows a memory map for NAND flash. And since CS3 area is recommended to assi gn address from 00000 0H to 3FFFFFH, this case is explained. In this case, “NAND flash” and CS3 area ar e overlapped. But 3 CS pin don’t become active by setting BROMCR<CSDIS> t o “1”.[...]

  • Страница 207

    TMP92CZ26A 92CZ26A-204 3.9 External Memory Ex tension Function (MMU) This is MMU function which can expand program/ data area to 3. 1G bytes by having 4-type local area. The recommendatio n address memory map is shown in Figure 3.9.1. However , when total capacity of used memory is less than 16M byte s, please refer to s ection of Memory controller[...]

  • Страница 208

    TMP92CZ26A 92CZ26A-205 0000 00H : Internal area : Overlapped with CO M MO N -Area a nd disabled s etting as LOCAL-area. 4000 00H 8000 00H C0 00 00 H FFFF0 0H FFFFFFH Ad d re ss me mo ry map LOC A L-Z (4M B ) COMMON- Z (4M B ) Ba nk 0 1 2 3 ・・ ・ 12 7 12 8 ・・・ 255 ・・・ 384 ・・・ 51 1 6000 00H LO C A L- Y (2M B ) COMMON-Y (2M B ) [...]

  • Страница 209

    TMP92CZ26A 92CZ26A-206 000000H SDCS or 1 CS 128MB or *64MB CSXA to CSXB , EA24 to 28 512MB × 2=1024MB Interna l-I/O a nd Internal RAM LOCAL-X LOCAL-Y LOCAL-Z CSZA to CSZD , EA24 to 28 512MB × 4=2048MB Bank0 92CZ26 A CSZD CSZB CSZC CSZA Bank0 63 Bank0 127 Bank384 51 1 255 Bank256 383 255 51 1 CSXA CSXB Bank256 Bank128 Note: In case of connect SDRA[...]

  • Страница 210

    TMP92CZ26A 92CZ26A-207 000000H : Inte rn a l a re a : Overlapped wi th COM M ON -Area and di sabled set ti ng as LOCAL-area. 400000H 800000H C00000H FFFF00H FFFFFFH A dd re s s me mor y ma p LOC AL-Z (4M B ) COMM ON- Z (4M B ) Bank 0 1 2 3 ・・・ 15 600000H LOC AL-Y (2M B ) COMM ON- Y (2M B ) 200000H LO CAL-X (2M B ) COMM ON- X (2M B ) Inte rna [...]

  • Страница 211

    TMP92CZ26A 92CZ26A-208 3.9.2 Control register There are 24-r egisters for MMU. They ar e prepared for 8 -purpose using (as P rogram, read-data, write-data and LCDC-disp lay-data, source-data for odd/even number channel DMA, destination-data for odd/even number channel DM A), and 3-loc al area (LOCAL -X, Y and Z). These 8-purpose r eg isters can acc[...]

  • Страница 212

    TMP92CZ26A 92CZ26A-209 3.9.2.1 Program bank register The bank number use d as program memor y is set to these reg isters. In certain bank, ca nnot diverg e dire ct ly to di ffe ren t b an k of same lo cal area. T o change program bank number in the same local area is disable. LOCAL-X register for Program 7 6 5 4 3 2 1 0 bit Symbol X7 X6 X5 X4 X3 X2[...]

  • Страница 213

    TMP92CZ26A 92CZ26A-210 3.9.2.2 LCD display bank register The bank page used as LCD display m emor y is set to these reg isters. Since the bank re gister for CPU and LCDC are p repared independen tly , th e bank page for CPU (Program, Read-data, write-data) can change d uring L CD display on. LOCAL-X register for LCD 7 6 5 4 3 2 1 0 bit Symbol X7 X6[...]

  • Страница 214

    TMP92CZ26A 92CZ26A-21 1 3.9.2.3 Read-data bank regi ster The bank number use d as read-data memory is set t o these registers. The following is an example which read dat a bank register of LOCAL -X is set to “1”. When “ldw wa, (xix)” instruction is exec uted, the bank beco mes effective at onl y read data (operan d) f or xix address. (Examp[...]

  • Страница 215

    TMP92CZ26A 92CZ26A-212 3.9.2.4 Write-data ba nk register The bank number used as write data memory is set to thes e registers. The follow ing is an example whi c h data b ank register of L OCAL-X is set to “ 1”. Wh en “ldw (xix), wa” instruction is extended, the bank b ec omes effecti ve at onl y cycle for xix addr ess. (Example) ld xix, 20[...]

  • Страница 216

    TMP92CZ26A 92CZ26A-213 3.9.2.5 DMA-function bank register In addition to functioning as read/wr ite functi on of CPU, this LSI can also function wh ich transfer data at high-speed b y internal DM AC becoming bus master . (Please refer to DMAC section) In Bank for only D MA that different from Bank for CPU or LCDC displa y data, although condition o[...]

  • Страница 217

    TMP92CZ26A 92CZ26A-214 LOCAL-X register for even-group DMA source 7 6 5 4 3 2 1 0 bit Symbol X7 X6 X5 X4 X3 X2 X1 X0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Set BANK number for LOCAL-X (“0” is disabled because of over lapped with Common-area. ) 15 14 13 12 1 1 10 9 8 bit Symbol LXE X8 Read/Write R/W R/W After reset 0 0 Function BANK[...]

  • Страница 218

    TMP92CZ26A 92CZ26A-215 LOCAL-X register for even-group DMA destination 7 6 5 4 3 2 1 0 bit Symbol X7 X6 X5 X4 X3 X2 X1 X0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Set BANK number for LOCAL-X (“0” is disabled because of over lapped with Common-area. ) 15 14 13 12 1 1 10 9 8 bit Symbol LXE X8 Read/Write R/W R/W After reset 0 0 Function[...]

  • Страница 219

    TMP92CZ26A 92CZ26A-216 LOCAL-X register for odd-group DMA source 7 6 5 4 3 2 1 0 bit Symbol X7 X6 X5 X4 X3 X2 X1 X0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Set BANK number for LOCAL-X (“0” is disabled because of over lapped with Common-area. ) 15 14 13 12 1 1 10 9 8 bit Symbol LXE X8 Read/Write R/W R/W After reset 0 0 Function BANK [...]

  • Страница 220

    TMP92CZ26A 92CZ26A-217 LOCAL-X register for odd-group DMA destination 7 6 5 4 3 2 1 0 bit Symbol X7 X6 X5 X4 X3 X2 X1 X0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Set BANK number for LOCAL-X (“0” is disabled because of over lapped with Common-area. ) 15 14 13 12 1 1 10 9 8 bit Symbol LXE X8 Read/Write R/W R/W After reset 0 0 Function [...]

  • Страница 221

    TMP92CZ26A 92CZ26A-218 3.9.3 Setting example This is in case of using like followin g condition. No. Used as Memo ry Setting MMU-area Logical address Physical address (a) Main Routine COMMON-Z C00000H to FFFFFFH (b) Character- ROM NOR-Flash (16MB, 1pcs) CSZA , 32bit, 1wait Bank0 in LOCAL-Z 800000H to BFFFFFH 000000H to 3FFFFFH (c) Sub Routine Bank0[...]

  • Страница 222

    TMP92CZ26A 92CZ26A-219 (b) Sub routine (Bank -0 in LOCAL-Y) Logical address Physical address No Instruction Comment 16 org 4000 00H ; 400000H 000000H 17 ldw (localwy),8001H ; Bank1 in LOCAL-Y is set to write-dat a for LCD Display RAM 4000xxH 0000xxH 18 ldw (locally), 8001H ; Bank1 in LOCAL-Y is set as LCD display RAM 19 ldw (localrz), 8001H ; Bank0[...]

  • Страница 223

    TMP92CZ26A 92CZ26A-220 3.10 SDRAM Controller (SDRAMC) The TMP92CZ 26A incorpora tes an SDRA M contro ller (SDRA MC) for ac cessing SD RAM that can be used as data memory , program memory , or display memory . The SDRAMC has the fo llowing featu r es: (1) Supported SDRAM Data rate type : SDR (single data rate) type only Memory capacity : 16 / 64 / 1[...]

  • Страница 224

    TMP92CZ26A 92CZ26A-221 3.10.1 Control Registers The SDRAMC has the fol lo win g control registers. SDRAM Access Control Register 7 6 5 4 3 2 1 0 Bit symbol SRDS – SMUXW1 SMUXW0 SPRE SMAC Read/Write R/W R/W After reset 1 0 0 0 0 0 Function Read data shift function 0: Disable 1: Enable Always write “0” Address multiplex type 00: Type A (A9- ) 0[...]

  • Страница 225

    TMP92CZ26A 92CZ26A-222 SDRAM Command Register 7 6 5 4 3 2 1 0 Bit symbol SCMM2 SCMM1 SCMM0 Read/Write R/W After reset 0 0 0 Function Command issue (Note 1) (Note 2) 000: Don’t care 001: Initialization sequence a. Precharge All command b. Eight Auto Refresh commands c. Mode Register Set command 010: Precharge All command 100: Reserved 101: Self Re[...]

  • Страница 226

    TMP92CZ26A 92CZ26A-223 3.10.2 Operation Description (1) Memory access control The SDRAMC is enabled by setting SDACR<S MAC> to “1”. When one of the bus mast ers (CPU, LCDC, DMA C) generates a cycl e to acc ess the SDRAM address area, the SDRAMC out p uts SDRAM control signals. Figure3.10.2 to Figure3.10.5 shows the timing for accessing th[...]

  • Страница 227

    TMP92CZ26A 92CZ26A-224 (b) Address multip lex function In access cycles, the A0 to A15 pins output low/column m ultiplexed addresses. The multiplex width is set by SDAC R<SMUXW1:0>. T able3.10.2 shows the relationship between the multiplex width and low/ column addresses. T able3.10.2 Address Multiplex SDRAM Access Cycle Address Row Address 9[...]

  • Страница 228

    TMP92CZ26A 92CZ26A-225 Figure3.10.2 1-Word Read Cycle T iming Figure3.10.3 Full-Page Read Cycle Timing SDCLK SDCKE SDLUDQM SDLLDQM SDCS SDR AS SDC AS SDW E A10 A15-A0 D15-D0 RA Bank Active RA CA (n) CA (n+2) D (n) Read tRCD= 1CLK CAS Lat ency=2CLK D (n+2) CAS La tency=2CLK D (n+4) CAS La tency=2CLK 4CLK 3CLK 3CLK Read Read CA (n+ 4) SDCLK SDCKE SDL[...]

  • Страница 229

    TMP92CZ26A 92CZ26A-226 Figure3.10.4 Single Write Cycle Timing Figure3.10.5 Burst W rite Cycle T iming SDCLK SDCKE SDLUDQM SDLLDQM A10 A15-A0 D15-D 0 RA Bank Active RA CA (n) CA (n+2) D (n+2) Wr ite tRCD= 1CLK 3CLK 2CLK tW R= 1CLK D (n) tW R= 1CLK D (n+4) tW R= 1CLK CA (n+4 ) 2CLK Wr it e Wr i t e SDCS SDR AS SDC AS SD W E SDCLK SDCKE SDLUDQM SDLLDQ[...]

  • Страница 230

    TMP92CZ26A 92CZ26A-227 (2) Execution of instructions on SDRA M The CPU can execu te instructions th at are stored in the SDRAM. H owever , the following operations cannot be performed. a) Executing the H AL T instruction b) Changing the clock gear setting c) Changing the settin gs i n the SDACR, SDCMM, and SD CISR registers These operatio ns, if ne[...]

  • Страница 231

    TMP92CZ26A 92CZ26A-228 (d) Precharge c o mmand (e) Read cycle (f) W rite cyc le COMMAND PRECHARGE SDCLK Next Command NOP NOP NOP TRP *TRP=2CLK (SDCISR <ST RP>= “1”) SDCLK COMMAND NOP ACTIVE NOP NOP TRC *TRCD=2CLK (SD CISR<STRCD>= “1”) *TRC=6CLK ( SDCISR<STRC2:0>= “101” ) READ NOP D15-D0 DIN TRCD ACTIVE A15-A0 Row Addre[...]

  • Страница 232

    TMP92CZ26A 92CZ26A-229 (4) Read data shift function If the AC specific ations of the SDRA M cannot be satisfie d when data is read fr om the SDRAM, the read data can be latched in a port circuit so that the CPU can read the data in the next state. When this read data shift functi on is used, the read cycle req uires additio nal one state. The writ [...]

  • Страница 233

    TMP92CZ26A 92CZ26A-230 (c) Full-page read, the rea d data shift function enabled (SD ACR<SRDS> = “1”, <SRDSCK> = “0”) (5) Read/W rite commands The Read/W rite comma nds to be used in 1-word rea d/single writ e mode can be specified by using SDACR<SPRE>. When SDACR<SPRE> is set to “1”, the Read /W rite command s a[...]

  • Страница 234

    TMP92CZ26A 92CZ26A-231 (6) Refresh control The TMP92CZ26 A suppor ts two kinds of refresh comm ands: Au to Refresh and Self Refr esh. (a) Auto Refresh When SDRCR<SRC> is set to “1”, the Auto Re fresh command is automatical ly issued at intervals specified by SD RCR<SRS2:0>. The Aut o Refresh interval can be specifi ed in a range of [...]

  • Страница 235

    TMP92CZ26A 92CZ26A-232 (b) Self Refresh The Self Refresh Entry c ommand is issued by setting SD CMM<SCMM2:0> to “10 1”. Figure3.10.7 shows the Self R efresh cycle tim ing. O nce Self Refr esh is started, the SDRAM is refreshed internally wit hout th e need to issue the Auto Refresh command. Note 1: When standby mode is released by a s yst[...]

  • Страница 236

    TMP92CZ26A 92CZ26A-233 The Self Refr esh state can be exit ed by the Self R efresh Exit com mand. The Self R efresh Exit command is exec uted when SDCM M<SCMM2:0> is set to “1 10”. It is also executed automaticall y in synchronization w ith HAL T mode release. In either of these two cas es, Auto Refres h is performed imm ediately after th[...]

  • Страница 237

    TMP92CZ26A 92CZ26A-234 (7) SDRAM initializ ati on sequenc e After reset releas e, the followin g sequence o f commands can be executed to initialize the SDRAM. 1. Precharge All comm and 2. Eight Auto Refresh commands 3. Mode Register Set co mmand The above com mands are issued by setting SDCMM<S CMM2:0> to “001 ”. While these commands are[...]

  • Страница 238

    TMP92CZ26A 92CZ26A-235 (8) Connection example Figure3.10.10 shows an example of connectio ns between th e TMP92CZ26A and SDRAM. T able3.10.4 Pin Connections SDRAM Pin Name Data Bus Width 16 bits 92CZ26A Pin Name 16M 64M 128M 256M 512M A0 A0 A0 A0 A0 A0 A1 A1 A1 A1 A1 A1 A2 A2 A2 A2 A2 A2 A3 A3 A3 A3 A3 A3 A4 A4 A4 A4 A4 A4 A5 A5 A5 A5 A5 A5 A6 A6 A[...]

  • Страница 239

    TMP92CZ26A 92CZ26A-236 3.10.3 An Example of Calculating HDMA T ransfer T i me The followin g shows an example of calculating th e HDMA transfer tim e when SDRAM is used as the transfer source. 1) T ransfer from SDRA M to internal SRAM Conditions: System clock (f SYS ) : 60 MHz SDRAM read cycle : Full page (5-1-1-1), 16-bit data bus 16-bit data bus [...]

  • Страница 240

    TMP92CZ26A 92CZ26A-237 3.10.4 Considerations for Using the SDRAMC This section describes the points that must be taken into account when using the SDRAMC. Please carefull y rea d the following t o ensure proper use of th e S DRAMC. 1) W AIT access When SDRAM is used, the fo llowing restriction appli es to memory access to other than the SDRAM. In t[...]

  • Страница 241

    TMP92CZ26A 92CZ26A-238 3.11 NAND Flash Controller (NDFC) 3.11.1 Features The NAND Flash Contro ller (NDFC) is provi ded with dedicated pins for conn ecting with NAND Flash memory . The NDFC also has an ECC calculati on function for error c orrection and s upports two types of ECC calculation met hods. The ECC calculation method using Ham ming codes[...]

  • Страница 242

    TMP92CZ26A 92CZ26A-239 3.11.1 Block Diagram Figure 3.1 1.1 Block Diag ram for NAND Flash Control l er ND _ CE* ND _ RE * ND _ ALE ND _ CLE ND WE * ND _ RB * DA T A_IN[15:0] NAND Flash Controller Ch annel 0 (NDFC0) DA T A_OUT[15:0] NDCLE, NDALE, NDRE , NDWE , D15~ D0 D15~D0, NDR/B CE 0 ND Internal Data Bus Reed-Solomon ECC Generator Hamming ECC Gene[...]

  • Страница 243

    TMP92CZ26A 92CZ26A-240 3.11.2 Operation Description 3.11.2.1 Accessing NAND Flash Memory The NDFC accesses data on NAND Flash me mory indirectly through its internal registers. This section ex pla ins the oper at ions for accessing the NAND Flas h. Since no dedicated sequencer is provided for generating commands to the N AND Flash, the levels of th[...]

  • Страница 244

    TMP92CZ26A 92CZ26A-241 The NDRE and NDWE signals are exp lained next. W rite an d read operations to and from the NAND Flash are perfor med through the ND0FDTR register . The actual write operati on completes not when the ND0FDTR re gister is writ ten to but when the data is written to the external NA ND Flash. Likewise, the actual rea d operation [...]

  • Страница 245

    TMP92CZ26A 92CZ26A-242 3.11.3 ECC Control NAND Flash memory device s may inh erently include error bits. It is therefore necessary to implement t he err or correction proc essing using ECC (Err or Correction Co de). Figure 3.1 1.4 shows a basic flowchart for ECC control. Figure 3.1 1.4 Basic Flow o f ECC Co ntrol Write: 1. When data is written to t[...]

  • Страница 246

    TMP92CZ26A 92CZ26A-243 3.11.3.1 Differences between Ha mm ing Codes and Reed -Solomon Codes The NDFC includes an ECC generator suppo rt ing NAND Flash memo ry devices of SLC (or 2LC: two states) typ e and MLC (or 4LC: four st ates) type. The ECC calculation using Hamming cod es (s upporting SLC) generates 22 bits of ECC for every 256 bytes of valid[...]

  • Страница 247

    TMP92CZ26A 92CZ26A-244 3.11.3.2 Error Correction Methods Hamming ECC • The ECC generator generates 44 bits of ECC for a page containing 512 bytes of valid data. The error correction process must be performed in units of 256 b y tes (22 bits of ECC). The following explains how to implement error correction on 256 bytes of valid data using 22 bits [...]

  • Страница 248

    TMP92CZ26A 92CZ26A-245 Reed-Sol omon ECC • The ECC gene rator generates 80 bits of ECC for u p to 518 bytes of valid data. If the NAND Flash to be used has a large-capacity page size (e.g. 2048 byte s), the error correction process must be repeated several times to cover the entire page. • Basically no calculation is needed for error corr ectio[...]

  • Страница 249

    TMP92CZ26A 92CZ26A-246 3.11.4 Description of Registers NAND Flash Control 0 Registe r 7 6 5 4 3 2 1 0 bit Symbol WE ALE CLE CE0 CE1 ECCE BUS Y ECCRST Read/Write R/W R/W R/W R/W R/W R/W R W After reset 0 0 0 0 0 0 0 0 Function WE enable 0: Disable 1: Enable ALE control 0: “L” out 1: “H” out CLE control 0: “L” out 1: “H” out 0 CE cont[...]

  • Страница 250

    TMP92CZ26A 92CZ26A-247 (c) <ECCE> The <ECCE> bit is used for b oth Hamming and Re ed -Solomon cod es. This bit is used to enable or disabl e the ECC generator. T o reset the ECC in the ECC generator (to set <ECCRST> to “1”), the ECC ge nerator must be enable d (<ECCE> = “1”). (d) <CE1:0>, <CLE>, <ALE&g[...]

  • Страница 251

    TMP92CZ26A 92CZ26A-248 (i) <RSECCL> The <RSECCL> bit is used on ly for Reed-Sol omon codes. When using Ha mming codes, this bit should be set to “0”. The Reed-So lomon proces sing unit is compris ed of two el ements: an ECC g enerator and an ECC calculat or. T h e l atter is used to calcula te the error add ress and error bit pos it[...]

  • Страница 252

    TMP92CZ26A 92CZ26A-249 NAND Flash Control 1 Register 7 6 5 4 3 2 1 0 bit Symbol INTERDY INTRSC BUSW ECCS SYSCKE Read/Write R/W R/W R/W R/W R/W After reset 0 0 0 0 0 Function Ready interrupt 0: Disable 1: Enable Reed- Solomon calculation end interrupt 0: Disable 1: Enable Data bus width 0: 8-bit 1: 16-bit ECC calculation 0:Hamming 1: Reed- Solomon C[...]

  • Страница 253

    TMP92CZ26A 92CZ26A-250 This bit is used t o enab le or d isable t h e in terrupt t o b e gen erate d wh en the c alcu lat ion of error address and error b it pos ition has ended. The interrupt is enabled when th is bit is set to “1” and disabled when “0”. (e) <INTRDY> The <INTRDY> bit is use d for both Hamming and Re ed-Solom o [...]

  • Страница 254

    TMP92CZ26A 92CZ26A-251 NAND Flash Data Registe r 0 7 6 5 4 3 2 1 0 bit Symbol D7 D6 D5 D4 D3 D2 D1 D0 Read/Write R/W After reset Undefined Undefined Undefined U ndefined Undefined Undefi ned Undefined Undefined Function NAND Flash Da t a Register (7-0) 15 14 13 12 1 1 10 9 8 bit Symbol D15 D14 D13 D12 D11 D10 D9 D8 Read/Write R/W After reset Undefi[...]

  • Страница 255

    TMP92CZ26A 92CZ26A-252 T able 3.1 1.3 How to Access the NAND Flash Data Registe r Writ e Access Data Size Example of instruct ion 8-bit NAND Flas h 16-bit NAND Flash 1-byte access ld (0x1FF0),a Supported Not supported 2-byte access ld (0x1FF0),wa Supported Supported 4-byte access ld (0x1FF0),xwa Supported Supported Read Access Data Size Example of [...]

  • Страница 256

    TMP92CZ26A 92CZ26A-253 NAND Flash ECC Register 0 7 6 5 4 3 2 1 0 bit Symbol ECCD7 ECCD6 ECCD5 ECCD4 ECCD3 ECCD2 ECCD1 ECCD0 Read/Write R After reset 0 0 0 0 0 0 0 0 Function NAND Flash EC C Register (7 -0) 15 14 13 12 1 1 10 9 8 bit Symbol ECCD15 ECCD14 ECCD13 ECCD12 ECCD11 ECCD10 ECCD9 ECCD8 Read/Write R After reset 0 0 0 0 0 0 0 0 Function NAND F[...]

  • Страница 257

    TMP92CZ26A 92CZ26A-254 The NAND Flash ECC regist er is used to re ad ECC generated by the ECC generator . After valid data has been written to or r e a d f r o m t h e N A N D F l a s h , s e t t i n g NDFMCR0<ECCE> to “0” causes the correspon ding ECC to be set in this registe r . (The ECC in this register is up dat ed when NDFMCR0< E[...]

  • Страница 258

    TMP92CZ26A 92CZ26A-255 NAND Flash Reed-Solomo n Calculation Result Address Regi ster 7 6 5 4 3 2 1 0 bit Symbol RS0A7 RS0A6 RS0A5 RS0A4 RS0A3 RS0A2 RS0A1 RS0A0 Read/Write R After reset 0 0 0 0 0 0 0 0 Function NAND Flash Reed-Sol omon Calculation Result Address Register (7- 0) 15 14 13 12 1 1 10 9 8 bit Symbol RS0A9 RS0A8 Read/Write R After reset 0[...]

  • Страница 259

    TMP92CZ26A 92CZ26A-256 If error is found at only one address, the error address is stored in the NDRSCA0 register . If error is found at two addresses, the NDRS CA0 and NDRSCA1 register s are used to store the error addresses. In this manner , up to four error addres ses can be stor ed in the NDRSCA0 to NDRSCA 3 reg isters. The number of error addr[...]

  • Страница 260

    TMP92CZ26A 92CZ26A-257 3.11.5 An Example of Accessing NAND Flash of SLC T ype 1. Initialization ; ; ***** Initialize NDFC ***** ; Conditions: 8-bit bus, CE0, SLC, 512 (5 28) b ytes/page, Hamming codes ; ld (ndfmcr1),0001h ; 8-bit bus, Hamming ECC, SYSCK-ON ld (ndfmcr0),2000h ; SPL W1:0=0, SPHW1:0=2 2. Wr i t e W riting valid data ; ***** W rit e va[...]

  • Страница 261

    TMP92CZ26A 92CZ26A-258 Executing pa ge pr ogram ; ***** Set auto page program***** ; ldw (ndfmcr0),20B0h ; WE enable, CLE enable l d ( ndfdtr0),1 0h ; Aut o page prog ram command ldw (ndfmcr0),2010h ; WE disable, CLE disable ; ; W ait setup time (from Busy to Ready) ; 1. Flag polling ; 2. Interrupt ; Reading status ; ***** Read Status***** ; ldw (n[...]

  • Страница 262

    TMP92CZ26A 92CZ26A-259 3. Read Reading vali d data ; ***** Read val id data**** * ; ldw (ndfmcr0),2010h ; CE0 enable ldw (ndfmcr0),20B0h ; WE enable, CLE enable ld (ndfdtr0),00h ; Read command ldw (ndfmcr0),20D0h ; ALE enable ld (ndfdtr0),xxh ; Address write (3 or 4 times) ; ; W ait setup time (from Busy to Ready) ; 1. Flag polling ; 2. Interrupt ;[...]

  • Страница 263

    TMP92CZ26A 92CZ26A-260 4. ID Read The ID read routine is as fo ll ows: ldw (ndfmcr0),20B0h ; WE Enable, CLE enable ld (ndfdtr0),90h ; W rite ID read command ldw (ndfmcr0),20D0h ; ALE enable, CLE disa ble ld (ndfdtr0),00h ; W rite 00 ldw (ndfmcr0),2010h ; WE disable, CLE disable ld xx,(ndfdtr0) ; Read 1'st ID maker code ld xx,(ndfdtr0) ; Read 2[...]

  • Страница 264

    TMP92CZ26A 92CZ26A-261 3.11.6 An Example of Accessing NAND Flash of MLC T ype (When the valid dat a is processed as 518byte) 1. Initialization ; ; ***** Initialize NDFC ***** ; Conditions: 16-bit bus, CE1, MLC, 2048 (21 12) byt es/page, Reed -Solomon cod es ; ld (ndfmcr1),0007h ; 16-bit bus, Reed-Solom on ECC, SYS CK-ON ld (ndfmcr0),5000h ; SPL W1:[...]

  • Страница 265

    TMP92CZ26A 92CZ26A-262 W riting ECC to NAND Flash ; ***** W rit e dummy data & ECC ***** ; ldw (ndfmcr0),5088h ; ECC circuit disable, data write mode ldw (ndfdtr0),xxxxh ; Redundancy area data write ; W rite to 207-206hex a ddress: > D79-64 ldw (ndfdtr1),xxxxh ; Redundancy area data write ; W rite to 209-208hex a ddress: > D63-48 ldw (ndf[...]

  • Страница 266

    TMP92CZ26A 92CZ26A-263 3. Read (including ECC data read) Reading vali d data ; ***** Read val id data**** * ; ldw (ndfmcr0),5008h ; CE1 enable ldw (ndfmcr0),50A8h ; WE enable, CLE enable ldw (ndfdtr0),0000h ; Read command 1 ldw (ndfmcr0),50C8h ; ALE enable ldw (ndfdtr0),00xxh ; Address write (4 or 5 times) ldw (ndfmcr0),50A8h ; WE enable, CLE enabl[...]

  • Страница 267

    TMP92CZ26A 92CZ26A-264 4. ID Read The ID read routine is as fo ll ows: ldw (ndfmcr0),50A8h ; WE enable, CLE enable ldw (ndfdtr0),0090h ; W rite ID read command ldw (ndfmcr0),50C8h ; ALE enable, CLE disable ldw (ndfd tr0),0000h ; W rite 00 ldw (ndfmcr0),5008h ; WE disable, CLE disable ldw xxxx,(ndfdtr0) ; Read 1'st ID maker code ldw xxxx,(ndfdt[...]

  • Страница 268

    TMP92CZ26A 92CZ26A-265 3.11.7 An Example of Connections with NAND Flash Note 1: A rese t set s the NDRE and NDWE pins as input ports, so pu ll-up resistors are needed. Note 2: The pull-up resi st or value for the NDR/B pin must be set appropriately accord ing to the NAND Flash memory to be used an d the capacity of the boa rd (typical : 2 K Ω ). N[...]

  • Страница 269

    TMP92CZ26A 92CZ26A-266 3.12 8 Bit Timer (TMRA) The TMP92C Z26A feature s 8 channel ( TMRA0 to TMRA 7) built-i n 8-bit ti mers. These timers are paired into 4 modules: TMRA01, TMRA23, TMRA45 and TMRA67. Each module consists of 2 chan nels and can operat e in any of the fol l owing 4 opera ting m odes. • 8-bit interval timer mode • 16-bit interva[...]

  • Страница 270

    TMP92CZ26A 92CZ26A-267 3.12.1 Block Diagram Figure 3.12.1 TMRA01 Block Diagram φ T1 φ T16 φ T256 8-bit comparator (CP1) 8-bit up counter (CP0) 8-bit up counter (UC0) 2 n Over flow 8-bit up counter (UC1) Timer flip-flop TA1FF Match detect Match detect 8-bit timer register TA1REG φ T1 φ T4 φ T16 512 256 128 64 32 16 8 4 2 φ T1 φ T4 φ T16 φ [...]

  • Страница 271

    TMP92CZ26A 92CZ26A-268 Figure 3.12.2 TMRA23 Block Diagram φ T1 φ T16 φ T256 8-bit comparator (CP3) 8-bit comparator (CP2) 8-bit up counter (UC2) 2 n Over flow 8-bit up comparator (UC3) Timer flip-flop TA3FF Match detect Match detect 8-bit timer register TA3REG φ T1 φ T4 φ T16 512 256 128 64 32 16 8 4 2 φ T1 φ T4 φ T16 φ T256 Run/clea r Pr[...]

  • Страница 272

    TMP92CZ26A 92CZ26A-269 Figure 3.12.3 TMRA45 Block Diagram φ T1 φ T16 φ T256 8-bit comparator (CP5) 8-bit comparator (CP4) 8-bit up counter (UC4) 2 n Over flow 8-bit up comparator (UC5) Timer flip-flop TA5FF Match detect Match detect 8-bit timer register TA5REG φ T1 φ T4 φ T16 512 256 128 64 32 16 8 4 2 φ T1 φ T4 φ T16 φ T256 Run/clea r Pr[...]

  • Страница 273

    TMP92CZ26A 92CZ26A-270 Figure 3.12.4 TMRA67 Block Diagram φ T1 φ T16 φ T256 8-bit comparator (CP7) 8-bit comparator (CP6) 8-bit up counter (UC6) 2 n Over flow 8-bit up comparator (UC7) Timer flip-flop TA7FF Match detect Match detect 8-bit timer register TA7REG φ T1 φ T4 φ T16 512 256 128 64 32 16 8 4 2 φ T1 φ T4 φ T16 φ T256 Run/clea r Pr[...]

  • Страница 274

    TMP92CZ26A 92CZ26A-271 3.12.2 Operation of Each Circuit (1) Prescaler A 9-bit prescal er generates the input clock to TMRA01.The cl ock φ T0 is selected using the prescaler c lock s election regis ter SYS CR0<PRCK>. The prescaler operati on can be controlled using TA01RUN<TA 0PRUN> in the timer control register. Settin g <TA0PRUN>[...]

  • Страница 275

    TMP92CZ26A 92CZ26A-272 (3) Timer registers (TA0 RE G and TA 1REG) These are 8-bit registers, which can be used to set a tim e interval. When the value set in the timer re gister TA0 REG or TA1 REG ma tches th e v alue in the c or respond ing up counter, the comparator match detect si gnal goes active. If the value set in the timer register is 00H, [...]

  • Страница 276

    TMP92CZ26A 92CZ26A-273 (4) Comparator (CP0, CP 1) The compara tor compares the va lue in an up counter with th e value set in a timer register. If they match, the up c ounter is cleared to 0 and an interrupt sign al (INTTA0 or INTTA1) is generated. If tim er flip-flop inversi on is enabled, the timer fl ip-flop is inverted at the same time . Note: [...]

  • Страница 277

    TMP92CZ26A 92CZ26A-274 3.12.3 SFR TMRA01 RUN Register 7 6 5 4 3 2 1 0 Bit symbol TA0RDE I2TA01 TA01PRUN TA1RUN TA0RUN Read/Write R/W R/W After Reset 0 0 0 0 0 TMRA01 prescaler Up counter (UC1) Up counter (UC0) Function Double buffer 0: Disable 1: Enable In IDLE2 mode 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) Note: The values of bits 4 [...]

  • Страница 278

    TMP92CZ26A 92CZ26A-275 TMRA45 RUN Register 7 6 5 4 3 2 1 0 Bit symbol TA4RDE I2TA45 TA45PRUN TA5RUN TA4RUN Read/Write R/W R/W After Reset 0 0 0 0 0 TMRA45 prescaler Up counter (UC5) Up counter (UC4) Function Double buffer 0: Disable 1: Enable In IDLE2 mode 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) Note: The values of bits 4 to 6 of TA4[...]

  • Страница 279

    TMP92CZ26A 92CZ26A-276 TMRA01 Mode Register 7 6 5 4 3 2 1 0 Bit symbol TA01M1 TA01M0 PWM01 PWM 00 TA1CLK1 TA1CLK0 TA0CLK1 TA0CLK0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Operation mode 00: 8-bit timer mode 01: 16-bit timer mode 10: 8-bit PPG mode 11: 8-bit PWM mode PWM cycle 00: Reserved 01: 2 6 10: 2 7 11: 2 8 Source clock for TMRA1 00[...]

  • Страница 280

    TMP92CZ26A 92CZ26A-277 TMRA23 Mode Register 7 6 5 4 3 2 1 0 Bit symbol TA23M1 TA23M0 PWM21 PWM 20 TA3CLK1 TA3CLK0 TA2CLK1 TA2CLK0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Operation mode 00: 8-bit timer mode 01: 16-bit timer mode 10: 8-bit PPG mode 11: 8-bit PWM mode PWM cycle 00: Reserved 01: 2 6 10: 2 7 11: 2 8 TMRA3 clock for TMRA3 00:[...]

  • Страница 281

    TMP92CZ26A 92CZ26A-278 TMRA45 Mode Register 7 6 5 4 3 2 1 0 Bit symbol TA45M1 TA45M0 PWM41 PWM 40 TA5CLK1 TA5CLK0 TA4CLK1 TA4CLK0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Operation mode 00: 8-bit timer mode 01: 16-bit timer mode 10: 8-bit PPG mode 11: 8-bit PWM mode PWM cycle 00: Reserved 01: 2 6 10: 2 7 11: 2 8 TMRA5 clock for TMRA5 00:[...]

  • Страница 282

    TMP92CZ26A 92CZ26A-279 TMRA67 Mode Register 7 6 5 4 3 2 1 0 Bit symbol TA67M1 TA67M0 PWM61 PWM 60 TA7CLK1 TA7CLK0 TA6CLK1 TA6CLK0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Operation mode 00: 8-bit timer mode 01: 16-bit timer mode 10: 8-bit PPG mode 11: 8-bit PWM mode PWM cycle 00: Reserved 01: 2 6 10: 2 7 11: 2 8 TMRA7 clock for TMRA7 00:[...]

  • Страница 283

    TMP92CZ26A 92CZ26A-280 TMRA1 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol TA1FFC1 TA1FFC0 TA1FFIE TA1FFIS Read/Write R/W R/W After reset 1 1 0 0 Function 00: Invert TA1FF 01: Set TA1FF 10: Clear TA1FF 11: Don’t care TA1FF control for inversion 0: Disable 1: Enable TA1FF inversion select 0: TMRA0 1: TMRA1 0 Inversion by TMRA0 TA1FFIS 1 In[...]

  • Страница 284

    TMP92CZ26A 92CZ26A-281 TMRA3 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol TA3FFC1 TA3FFC0 TA3FFIE TA3FFIS Read/Write R/W R/W After reset 1 1 0 0 Function 00: Invert TA3FF 01: Set TA3FF 10: Clear TA3FF 11: Don’t care TA3FF control for inversion 0: Disable 1: Enable TA3FF inversion select 0: TMRA2 1: TMRA3 0 Inversion by TMRA2 TA3FFIS 1 In[...]

  • Страница 285

    TMP92CZ26A 92CZ26A-282 TMRA5 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol TA5FFC1 TA5FFC0 TA5FFIE TA5FFIS Read/Write R/W R/W After reset 1 1 0 0 Function 00: Invert TA5FF 01: Set TA5FF 10: Clear TA5FF 11: Don’t care TA5FF control for inversion 0: Disable 1: Enable TA5FF inversion select 0: TMRA4 1: TMRA5 0 Inversion by TMRA4 TA5FFIS 1 In[...]

  • Страница 286

    TMP92CZ26A 92CZ26A-283 TMRA7 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol TA7FFC1 TA7FFC0 TA7FFIE TA7FFIS Read/Write R/W R/W After reset 1 1 0 0 Function 00: Invert TA7FF 01: Set TA7FF 10: Clear TA7FF 11: Don’t care TA7FF control for inversion 0: Disable 1: Enable TA7FF inversion select 0: TMRA6 1: TMRA7 0 Inversion by TMRA6 TA7FFIS 1 In[...]

  • Страница 287

    TMP92CZ26A 92CZ26A-284 Timer Registers 7 6 5 4 3 2 1 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − [...]

  • Страница 288

    TMP92CZ26A 92CZ26A-285 3.12.4 Operation in Each Mode (1) 8-b it tim er mode Both TMRA0 and TMRA1 can be used independent l y as 8-b it interval timers. a. Generating interrupts at a fixed int erval (Us ing TMRA1) To generate interrupts at constant in tervals using TMR A1 (I NTTA1), first stop TMRA1 then set the operatio n mode, input clock and a cy[...]

  • Страница 289

    TMP92CZ26A 92CZ26A-286 b. Generating a 50% duty ratio square wave puls e The state of the t imer flip-fl op (TA1FF) is in verted at constant int ervals and its status output via the tim er output pin (TA1O UT). Example: T o output a 3.2 μ s square wave pulse from the T A1OUT pin at f C = 50 MHz, use the followin g procedure to mak e th e ap propri[...]

  • Страница 290

    TMP92CZ26A 92CZ26A-287 c. Making TMRA1 count up on the match signal fr om the TMRA0 comparator Select 8-bit timer mode and set the comp arator output from TMRA0 t o be the input clock to TMRA1. Figure 3.12.18 TMRA1 Count Up on Signal from TM RA0 (2) 16 bit t imer mode Pairing the two 8-bit tim ers TMRA0 a nd TMR A1 config ures a 16-b it interva l t[...]

  • Страница 291

    TMP92CZ26A 92CZ26A-288 The comparator match sign al is output from TMRA0 each time the up counte r UC0 matches TA0REG, though the up count er UC0 is not be clear ed. In the case of the T MRA1 comparat or, the match det ect signal is output on each comparator puls e on which the values in the up count er UC1 and TA1REG m atch. When the match detect [...]

  • Страница 292

    TMP92CZ26A 92CZ26A-289 In this mode a programmable square wave is generated b y inverting the timer output each time the 8 -bit up counter (UC0) matches the value in one of the timer registers TA0REG or TA1REG. The value set in TA0RE G must be smaller than th e va lue set in TA1REG. Although the up c ounter for TMRA1 (U C1) is not used in this mod [...]

  • Страница 293

    TMP92CZ26A 92CZ26A-290 Example: T o generate 1/4 duty 31.25 kHz pulses (at f C = 50 MHz) * Clock state Clcok gear : 1/1 Prescaler of clock gear : 1/2 Calculate the value which should be set in the timer register. To obtain a frequency of 31.25 kHz, the pulse cycle t should be: t = 1/31.25kHz = 32 μ s φ T1 = 0.16 μ s ( at 50 MHz); 32 μ s ÷ 0.16[...]

  • Страница 294

    TMP92CZ26A 92CZ26A-291 (4) 8-bit PWM (Pulse width m odulation) outp ut mode This mode is only valid fo r TMRA0. In this mode, a PWM pulse with th e maximum resolution of 8 bits can b e outp ut. When TMRA0 is used the PWM pulse is output on the TA1OUT pin (Shar ed with PM1). TMRA1 can also be us ed as an 8-bit timer. The timer output is in verted wh[...]

  • Страница 295

    TMP92CZ26A 92CZ26A-292 In this mode the value of the regist er buffer will be shifted int o TA0REG if 2 n overflow is det ecte d wh en the TA0R E G double buffer is enab led. Use of the double buffer facilitates th e handling of low dut y ratio waves. Figure 3.12.25 Register Buffer Operation Example: T o output the fo llowing PWM wa ves on the T A1[...]

  • Страница 296

    TMP92CZ26A 92CZ26A-293 Table 3.12.3 PWM Cycle PWM cycle TAxxMOD<PWMx1:0> 2 6 (x64) 2 7 (x128) 2 8 (x256) TAxxMOD<TAxCLK1:0> TAxxMOD<TA xCLK1:0> TAxxMOD<TAxCLK1:0> Clock gear selection SYSCR1 <GEAR2:0> Prescaler of clock gear SYSCR0 <PRCK> φ T1(x2) φ T4(x8) φ T16(x32 ) φ T1(x2) φ T4(x8) φ T16(x32) φ T1(x2) [...]

  • Страница 297

    TMP92CZ26A 92CZ26A-294 3.13 16 bit timer / Event counter (TMRB) The TMP92CZ26A inc orporates two multi functional 16-bit tim er/event counter (TMR B0, TMRB1) which have the following operation mode s: • 16 bit interval timer mode • 16 bit event counter mode • 16 bit programmable pulse gener ation mode (PPG) Can be used following operation mod[...]

  • Страница 298

    TMP92CZ26A 92CZ26A-295 3.13.1 Block diagram Figure 3.13.1 Block diagram of TMRB0 Internal data bus Slelector 16-bit comparator (CP10) TB0MOD<TB0CLK1:0> φ T1 φ T4 φ T16 Timer flip-flop control TB0FF0 TB0OUT0 Match detection 16-bit timer register TB0RG0H/L Register buffer 10 TA1OUT TB1MOD <TB0CPM1:0> 16-bit time register TB0RG1H/L TB0M[...]

  • Страница 299

    TMP92CZ26A 92CZ26A-296 Figure 3.13.2 Block diagram of TMRB1 Internal data bus Slelector 16-bit comparator (CP12) TB1MOD<TB1CLK1:0> φ T1 φ T4 φ T16 Timer flip-flop control TB1FF0 TB1OUT0 Match detection 16-bit timer register TB1RG0H/L Register buffer 12 TA3OUT TB1MOD <TB1CPM1:0> 16-bit time register TB1RG1H/L TB1MOD <TB1CP0I> 16[...]

  • Страница 300

    TMP92CZ26A 92CZ26A-297 3.13.2 Operation (1) Prescaler The 5-bit prescaler generates the source cloc k for TMRB0. The prescaler clock ( φ T0) is selected by the reg ister SYSCR0<PRC K> of clock gear. This prescaler can be started or stopped using TB0RUN<T B0RUN>. Counting starts when <TB0RUN> is set to “1”; the prescaler is cl[...]

  • Страница 301

    TMP92CZ26A 92CZ26A-298 (3) Timer registers (T B0RG0H/L, TB0RG1H/L) These two 1 6-bit register s are used to set the inter val time. Wh en the value in the up counter UC10 matches the value set in this tim er register, the comparator match detect signal will go active. Setting data for both upper and lower time r registers is need ed. F or exam ple,[...]

  • Страница 302

    TMP92CZ26A 92CZ26A-299 TB0RG0H/L and the regist er buffer 10 both have th e same memory addresses (1188H and 1189 H) allocated to them. If <TB0RDE> = “0”, the value is wr itten to both the timer register and th e register buff er 10. If <TB0RDE> = “1 ”, the value is written to the register buffer 10 only. The addresses of the ti[...]

  • Страница 303

    TMP92CZ26A 92CZ26A-300 (4) Capture reg isters (TB0CP0H/L, TB0CP1H/L) These 16-bit reg isters ar e used to latch the va lues in the up cou n ter (U C10). Data in the capture registers shoul d be read all 16 bits. For exam ple, using a 2-byte data load instruction or two 1- byte da ta load instr uctions. The least si gnificant b yte is read first, fo[...]

  • Страница 304

    TMP92CZ26A 92CZ26A-301 (6) Comparat ors (CP10, CP1 1) CP10 and CP11 are 16-bit compar ators which compare the va lue in the up counter UC10 with the value set in TB0RG0H/L or TB0RG1H/L respectively, in order to detect a match. If a match is detected, the comparator generates an interrupt (IN TTB00 or INTTB01 respectively). (7) Timer flip-flops (TB0[...]

  • Страница 305

    TMP92CZ26A 92CZ26A-302 3.13.3 SFR TMRB0 RUN Register 7 6 5 4 3 2 1 0 Bit symbol TB0RDE − I2TB0 TB0PRUN TB0RUN Read/Write R/W R/W R/W R/W R/W After Reset 0 0 0 0 0 TMRB0 prescaler Up counter (UC10) Function Double buffer 0: disable 1: enable Always write “0” In IDLE2 mode 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) Note: The 1, 4 an[...]

  • Страница 306

    TMP92CZ26A 92CZ26A-303 TMRB0 Mode Register 7 6 5 4 3 2 1 0 Bit symbol − − TB0CP0I TB0CPM1 TB0CPM0 TB0CLE TB0CLK1 TB0CLK0 Read/Write R/W W * R/W After Reset 0 0 1 0 0 0 0 0 Function Always write “0”. Software capture control 0: Execute 1: Undefined Capture timing 00:Disable INT6 occu rs at rising edge 01:TB0IN0 ↑ INT6 occu rs at rising edg[...]

  • Страница 307

    TMP92CZ26A 92CZ26A-304 TMRB1 Mode Register 7 6 5 4 3 2 1 0 Bit symbol − − TB1CP0I TB1CPM1 TB1CPM0 TB1CLE TB1CLK1 TB1CLK0 Read/Write R/W W * R/W After Reset 0 0 1 0 0 0 0 0 Function Always write “0”. Software capture control 0: Execute 1: Undefined Capture timing 00:Disable INT7 occu rs at rising edge 01:TB1IN0 ↑ INT7 occu rs at rising edg[...]

  • Страница 308

    TMP92CZ26A 92CZ26A-305 TMRB0 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol − − TB0C1T1 TB0C0T1 TB0E1T1 TB0 E0T1 TB0FF0C1 TB0FF0C0 Read/Write W * R/W W* After Reset 1 1 0 0 0 0 1 1 TB0FF0 inversion trigger 0: Disable trigger 1: Enable trigger Function Always write “11” *Always read as “11”. When captu re UC10 to TB0CP1H/L When ca[...]

  • Страница 309

    TMP92CZ26A 92CZ26A-306 TMRB1 Flip-Flop Control Register 7 6 5 4 3 2 1 0 Bit symbol − − TB1C1T1 TB1C0T1 TB1E1T1 TB1 E0T1 TB1FF0C1 TB1FF0C0 Read/Write W * R/W W * After Reset 1 1 0 0 0 0 1 1 TB1FF0 inversion trigger 0: Disable trigger 1: Enable trigger Function Always write “11” *Always read as “11”. When captu re UC12 to TB1CP1H/L When c[...]

  • Страница 310

    TMP92CZ26A 92CZ26A-307 7 6 5 4 3 2 1 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − Read/Write W After reset 0 0 0 0 0 0 0 0 bit Symbol − − − − − − − − Read/Write W Aft[...]

  • Страница 311

    TMP92CZ26A 92CZ26A-308 3.13.4 Operation in Each Mode (1) 16 bit timer mod e Generating interrupts at fixed intervals In this example, the interrupt INTTB01 is se t to be gen erated at fixed intervals. The interval time is set in th e timer register TB0RG1H/ L. 7 6 5 4 3210 TB0RUN ← – 0 X X – – X 0 Stop TMRB0 INTETB0 ← X 1 0 0 X 0 0 0 Enab[...]

  • Страница 312

    TMP92CZ26A 92CZ26A-309 (3) 16-bit progr ammable pulse generation (PPG) output mode Square wave puls es can be generat ed at any fr equency and dut y ratio. The output pulse may be eith er low active or h igh active. The PPG mode is obta ined by inversio n of the timer fl ip-flop TB0FF0 that is to be enabled by the match o f the up counter UC10 with[...]

  • Страница 313

    TMP92CZ26A 92CZ26A-310 The following block diagr am illustrates this m ode. Figure 3.13.11 Block Diagram of 16-Bit Mode The following ex ample shows how to s et 16-bit PPG outp ut mode: 7 6 5 4 3210 TB0RUN ← 0 0 X X – – X 0 Disable the TB0RG0 double buffer and stop TMR B0. TB0RG0 ← * * * * **** S e t t h e d u t y r a t i o * * * * **** ( 1[...]

  • Страница 314

    TMP92CZ26A 92CZ26A-311 (4) Applic ation examples of captur e funct ion Used capture functi on, they can be applied in m a ny ways, for exam ple; 1. One-shot pulse output from externa l trig ger pulse 2. Frequency measurement 3. Pulse width measurement 1. One-shot pulse output from externa l trig ger pulse Set the up counter UC10 in free-ru nning mo[...]

  • Страница 315

    TMP92CZ26A 92CZ26A-312 Example: To output 2m s one-shot pu lse with 3ms dela y to the external trigger pulse to TB0IN0pin *Clock state System clock : f SYS Prescaler clock : f SYS /4 Main setting Free-running Count with φ T1 TB0MOD ← X X 1 0 1 0 0 1 Load to TB0CP0H/L at the rising edge of TB0IN0 TB0FFCR ← X X 0 0 0 0 1 0 Clear TB0 FF0 to “0?[...]

  • Страница 316

    TMP92CZ26A 92CZ26A-313 Figure 3.13.13 One-shot Pu lse Output (without delay) 2. Frequency measurement The frequenc y of the external cl ock can be measure d in this mode. The cl ock is input through the TB0IN 0 pin, and its freq uency is measured b y the 8 bit timers TMRA01 and the 16 bit timer/event c ount er (TMRB0). The TB0IN0 pin input sh ould [...]

  • Страница 317

    TMP92CZ26A 92CZ26A-314 3. Pulse width measurement This mode allows measu ring the H level wid th of an external pulse. Wh ile keeping the 16 bit timer/event counte r cou nting (free-runn ing) with the internal clock input, th e external puls e is input through the TB 0IN0 pin. Then the capture funct ion is used t o load the UC1 0 values into T B0CP[...]

  • Страница 318

    TMP92CZ26A 92CZ26A-315 3.14 Serial Channels (SIO) TMP92CZ26A includes 1 se rial I/O ch annel (SIO0 ). For both cha nnels eithe r UART mode (Asynchronous transmission ) or I/O interface mode (Synchrono us transmi ssion) can be selected. And, SIO0 includes data modulator th at supports the IrDA 1.0 infrar ed data communication specification. In mode [...]

  • Страница 319

    TMP92CZ26A 92CZ26A-316 3.14.1 Block Diagram Figure 3.14.2 Block Diagram Selector φ T0 φ T2 φ T8 φ T32 SC0MOD0 <SC1:0> Receive buffer 1 (Shift register) RXDCLK SC0MOD0 <CTSE> Prescaler Selector TA0TRG (from TMRA0) UART mode BR0CR <BR0S3:0> Baud rate generator Selector SC0MOD0 <SM1:0> Selector ÷ 2 I/O interface mode SC0CR[...]

  • Страница 320

    TMP92CZ26A 92CZ26A-317 3.14.2 Operation of Each Circuit (1) Prescaler There is a 6-bit prescaler for gen erating a clock to SIO0. The prescaler can be run by selecting the baud rate generator as the seri al tra nsfer clock. Table 3.14.1 shows prescaler clock r eso lution into th e baud rate generator. Table 3.14.1 Prescaler Clo ck Resolution to Bau[...]

  • Страница 321

    TMP92CZ26A 92CZ26A-318 (2) Baud rate generator The baud rate generator is the circuit whic h generates transm issi on/receiv ing clock and determines the trans fer rat e of the serial channels. The input clock to the baud rate generator, φ T0, φ T2, φ T8 or φ T32, is generated by the 6-bit prescaler which is shared by the ti mers. One of th ese[...]

  • Страница 322

    TMP92CZ26A 92CZ26A-319 • I nteger divider (N divider) For example, when the source clock fr equency (f c ) is 19.6608 MHz, the input clock is φ T2, the frequency div ider N (BR0CR<BR0S3:0>) = 8, and BR0CR<BR0 ADD E> = 0, the ba ud rate in UART Mode is as follows: *Clock state System clock : 1/1 Prescaler clock : 1/2 Baud Rate = = 19.[...]

  • Страница 323

    TMP92CZ26A 92CZ26A-320 Table 3.14.2 Transfer Rate Selection (When baud rate generator is used and BR0 CR<BR0ADDE> = 0) f SYS [MHz] Input Clock Frequency Divider N φ T0 (f SYS /4) φ T2 ( f SYS /16) φ T8 (f SYS /64) φ T32 (f SYS /256) 7.3728 1 115.200 28.800 7.200 1.800 ↑ 3 38.400 9.600 2.400 0.600 ↑ 6 19.200 4.800 1.200 0.300 ↑ A 11.[...]

  • Страница 324

    TMP92CZ26A 92CZ26A-321 (3) Serial clock ge neration circuit This circuit generates the basic clock for transmitting and rec eiving data. • In I/O Interface Mode In SCLK Output Mode with the setting SC0CR<IOC> = 0, the basic clock is generated by divid ing the output of the baud rate gen erator by 2, as described previously. In SCLK Input Mo[...]

  • Страница 325

    TMP92CZ26A 92CZ26A-322 (6) The R ece iv ing Buffers To prevent Overrun err ors, the Receiving Buffers are arrange d in a double-buffer structure. Received d ata is stored on e bit at a time in R eceiving B uffer 1 (which is a shif t register). When 7 or 8 bi ts of data have been stor ed in Receivin g Buffer 1, the stored data is transferred t o Rec[...]

  • Страница 326

    TMP92CZ26A 92CZ26A-323 (8) Transmission controller • In I/O Interface Mode In SCLK Output Mode with the setting S C0CR<IOC> = 0, the da ta in the Transmission Buffer is output one bit at a ti m e to the TXD0 pin on the rising edge or falling of the shift clock which is output on the SCLK0 pin, according to the SC0CR<SCLKS> setting. In[...]

  • Страница 327

    TMP92CZ26A 92CZ26A-324 Handshake function Serial Channels 0 has a 0 CTS pin. Use of this pin allows data can be sent in units of one frame; t hus, Overrun err ors can be avoided. The handshake f unctions is enabled or disabled by the SC0 M OD <CTSE> setting. When the 0 CTS pin goes High on completion of th e current data send, data transmissi[...]

  • Страница 328

    TMP92CZ26A 92CZ26A-325 (9) Transmission buffer The transmission buffer (SC0BUF) shifts out and sends the transmission data written from the CPU f orm the least signif icant bit (LSB) in order. When a ll the bits are shifted out, the transmission buffer bec omes empty and generates an INTTX0 interrupt. (10) Parity control circuit When SC0CR<PE>[...]

  • Страница 329

    TMP92CZ26A 92CZ26A-326 2. Parity error <PERR> The parity generated for the d ata shifte d into rece iving buffer 2 (SC 0BUF) is compared wi th the parity bit rec eived via the RXD pin. If th ey are not equa l, a parity error is generated. Note: The parity error flag is cleared every time it is read. Howe ver, if a parity error is detected w¥[...]

  • Страница 330

    TMP92CZ26A 92CZ26A-327 (12) Timing generation a. In UART Mode Receiving Mode 9-Bit (Note) 8-Bit + Parity (Note) 8-Bit, 7-Bit + Parity, 7-Bit Interrupt timing Center of last bit (bit 8) Center of last bit (parity bit) Center of stop bit Framing error timing Center of stop bit Center of stop bit Center of stop bit Parity error timing ― Center of la[...]

  • Страница 331

    TMP92CZ26A 92CZ26A-328 3.14.3 SFR 7 6 5 4 3 2 1 0 Bit symbo l TB8 CTSE RXE W U SM1 SM0 SC1 SC0 Read/W rite R/W Afte r Reset 0 0 0 0 0 0 0 0 Function Transf er data b it 8 Hand s hak e 0: CTS disabl e 1: CTS enable Receive functio n 0: Receiv e disabl e 1: Receiv e enable Wa k e u p functi on 0: dis able 1: en able Serial Tran sm ission Mode 00: I/O[...]

  • Страница 332

    TMP92CZ26A 92CZ26A-329 7 6 5 4 3 2 1 0 bi t S ymbol RB8 EVEN PE OERR PERR FERR SCLKS IOC R ead/W r it e R R/W R (c l ear ed t o 0 wh en r ead) R/W Af ter R e s et U ndefi n ed 0 0 0 0 0 0 0 Funct i on Re ce iv ed dat a bit 8 Pa r ity 0: od d 1: ev en Pa rity addit i on 0: dis abl e 1: en ab l e O v er r un P ar i t y F r am i ng 0: SC LK 0 1: SC LK[...]

  • Страница 333

    TMP92CZ26A 92CZ26A-330 7 6 5 4 3 2 1 0 Bit sy mbol − BR0ADDE BR0CK1 BR0CK0 BR0S3 B R0S2 B R0S1 BR0S0 Read/Write R/W After Reset 0 0 0 0 0 0 0 0 Function Alway s write “0” + (16 − K)/16 division 0: Disa bl e 1: Enable 00: φ T0 01: φ T2 10: φ T8 11: φ T32 7 6 5 4 3 2 1 0 bit Symbol BR0K3 BR0K2 BR0K1 B R0K0 Read/Write R/W After reset 0 0 0[...]

  • Страница 334

    TMP92CZ26A 92CZ26A-331 7 6 5 4 3 2 1 0 TB7 TB6 TB5 TB4 TB3 TB2 TB1 TB0 (Transmission) SC0BUF (1200H) 7 6 5 4 3 2 1 0 RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 (Receiving) Note: Prohibit read modify write for SC0BU F. Figure 3.14.9 Serial Transmission/Rece ivi ng Buffer Registers (channel 0, SC0B UF) 7 6 5 4 3 2 1 0 Bit symbol I2S0 FDPX0 Read/Write R/W R/W Af[...]

  • Страница 335

    TMP92CZ26A 92CZ26A-332 3.14.4 Operation in each mode (1) Mode 0 (I/O Interfac e M ode) This mode allows an increas e in the number of I/O pins available for transmitti ng data to or receiving data from an external shift register. This mode includ es the SCLK outpu t mode to out put synchron ous clock SCLK and SCLK input mode to in put external sync[...]

  • Страница 336

    TMP92CZ26A 92CZ26A-333 a. Transmission In SCLK output mode 8-bit data and a synchronous clock are output on the TXD0 and SCLK0 pins respectively each time the CPU writ es the data to the Transmission Buffer. When all data is output, INTES0 <ITX0C> will be set to generate the INTTX0 interrupt. Figure 3.14.13 Transmitting Operation in I/O Inter[...]

  • Страница 337

    TMP92CZ26A 92CZ26A-334 b. Receiving In SCLK Output Mode the synchron ous clock is output on the SCLK0 pin and the data is shifted to Receiving Buf fer 1. This is initiated when th e R eceive Interrupt flag INTES0<IRX0C> is cleared as the received da ta is read. When 8-bit data is received, the data is transf erred to Receiving Buffer 2 (SC 0B[...]

  • Страница 338

    TMP92CZ26A 92CZ26A-335 c. Transmission and Receiving (Fu ll Duplex Mod e ) When Full Dupl ex M ode i s used, set th e Rec eive Interrupt L evel to 0 and s et enable the level of tr ansmit interrupt(1 to 6). En sure that the pr ogram which tr ansmits the interrupt reads the receiving buffer b efore setting the next tran smit data. The followin g is [...]

  • Страница 339

    TMP92CZ26A 92CZ26A-336 (2) Mode 1 (7-bit UART Mod e ) 7-Bit UART Mod e is selected by sett ing the Serial Chan nel Mode Register SC0MOD0<SM1:0> field to 01. In this mode a parity bit can be added. Use of a parity bit is enabled or disabled by the setting of the Serial Cha nnel Control Regist er SC0CR<PE> bit; wheth er even parity or odd[...]

  • Страница 340

    TMP92CZ26A 92CZ26A-337 Main routine 7 6543210 P9CR ← X XX XX − 0 − Set P91 to function as the RXD0 pin. P9FC ← − − XXX − X − SC0MOD0 ← − − 1 − 1 0 0 1 Enable receiving in 8-bit UART mode. SC0CR ← − 01 − − − − − Add odd parity. BR0CR ← 0 0 0 1 1 0 0 0 Set the transfer rate to 9600 bps. INTES0 ← X 1 0 0 X 0 0[...]

  • Страница 341

    TMP92CZ26A 92CZ26A-338 Protocol 1. Select 9-Bit UART Mode on th e master and slave c ontrollers. 2. Set the SC0MOD0<WU> bit on each slave co ntro ller to 1 to enabl e data receiving. 3. The master controller tra nsmits data one frame at a time. Each frame includ es an 8-bit select code which ident ifies a slave co ntroller. The MSB ( bit 8) o[...]

  • Страница 342

    TMP92CZ26A 92CZ26A-339 Setting exam ple: To link two slave controllers seri ally with the m aster controller us ing the internal clock f IO as the transfer cloc k. • Setting the master con troller • Setting the slave contro ll er Main routine P9CR ← X X X X X − 01 P9FC ← − − X X X − X1 P9FC2 ← X X X X X X X 1 Select P91 and P90 to[...]

  • Страница 343

    TMP92CZ26A 92CZ26A-340 3.14.5 Support for IrDA SIO0 includes support for the IrDA 1.0 in fr ared data communication specification. Figure 3.14.8 shows the bl ock di agram. Figure 3.14.18 Block Diagram (1) Modulation of the tra nsmission da ta When the transmit data is 0, the modem ou tputs 1 to TXD0 pin with either 3/16 or 1/16 times for width of b[...]

  • Страница 344

    TMP92CZ26A 92CZ26A-341 (3) Data format The data format is fixe d as fo llows: • Data length: 8-bit • Parity bits: none • Stop bits: 1bit (4) SFR Figure 3.14.21 shows the control regis ter SIRCR. Set the data SIRCR during SIO0 is stopping. The follo win g example de scribes h ow to set this register: 1) SIO setting ; Set the SIO to UART Mode. [...]

  • Страница 345

    TMP92CZ26A 92CZ26A-342 (5) Notes 1. Baud rate for IrDA When IrDA is operated, set 01 to SC0MOD0<SC1:0> to generate baud-rate. The setting exce pt abov e ( TA0T RG, f IO and SCLK0-input) ca nnot be used. 2. The pulse width for transmission The IrDA 1.0 specification is def in ed in Table 3.14.3. Table 3.14.3 Baud rate and pulse width specifica[...]

  • Страница 346

    TMP92CZ26A 92CZ26A-343 7 6 5 4 3 2 1 0 Bit symbol PLSEL RXSEL TXEN RXEN SIR WD3 SI RWD2 SIRWD1 S IRWD0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Select transm it pulse widt h 0: 3/16 1: 1/16 Receive data 0: “H” pulse 1: “L” pulse Transmit 0: dis able 1: en able Receive 0: dis able 1: en ab le Select rec ei ve pul se widt h Set eff[...]

  • Страница 347

    TMP92CZ26A 92CZ26A-344 3.15 Serial Bus Interface (SBI) The TMP92CZ26A has a 1-channel serial bus interface which an I 2 C bus mode. This circuit supports only I 2 C bus mode (Multi maste r). The serial bus interface is connect ed to an ex ternal device through PV6 (SDA) and PV7 (SCL) in the I 2 C bus mode. Each pin is specified as foll ows. PVFC2&l[...]

  • Страница 348

    TMP92CZ26A 92CZ26A-345 3.15.2 Serial Bus Interface (SBI) Control The following re gisters are used to c ontrol the serial b us interface and monitor the operation status. z Serial bus interface control register 0 (SBI CR0) z Serial bus interface control register 1 (SBI CR1) z Serial bus interface control register 2 (SBI CR2) z Serial bus interface [...]

  • Страница 349

    TMP92CZ26A 92CZ26A-346 3.15.4 I 2 C Bus Mode Control Register The following regist ers are used to co ntrol and monitor the operation status when us ing the serial bus inter fac e (SBI) in the I 2 C bus m od e. Serial Bus Interface Control Register 0 7 6 5 4 3 2 1 0 Bit symbol SBIEN − − − − − − − Read/Write R/W R After Reset 0 0 0 0 0[...]

  • Страница 350

    TMP92CZ26A 92CZ26A-347 Serial Bus Interface Control Register 1 7 6 5 4 3 2 1 0 Bit symbol BC2 BC1 BC0 ACK − SCK2 SCK1 SCK0/ SWRMON Read/Write R/W R/W R R/W R/W After Reset 0 0 0 0 1 0 0 0/1 (Note2) Function Number of transferred bits (Note 1) Acknowle dge mode specification 0: Not generate 1: Generate Always read as “1”. Internal serial clock[...]

  • Страница 351

    TMP92CZ26A 92CZ26A-348 Serial Bus Interface Control Register 1 7 6 5 4 3 2 1 0 Bit symbol MST TRX BB PIN SBIM1 SBIM0 SWRST1 SWRST0 SBICR2 (1243H) Read/Write W W (Note 1) W (Note 1) After reset 0 0 0 1 0 0 0 0 Prohibit Read- modify- write Function Master/Slave selection 0:Slave 1:Master Transmitter /Receiver selection 0:Receiver 1:Transmitter Start/[...]

  • Страница 352

    TMP92CZ26A 92CZ26A-349 Serial Bus Interface Status Register 7 6 5 4 3 2 1 0 Bit symbol MST TRX BB PIN AL AAS AD0 LRB SBISR (1243H) Read/Write R After reset 0 0 0 1 0 0 0 0 Prohibit Read-modif y-write Function Master/ Slave status monitor 0:Slave 1:Master Transmitter/ Receiver status monitor 0:Receiver 1:Tranmitter I 2 C bus status monitor 0:Free 1:[...]

  • Страница 353

    TMP92CZ26A 92CZ26A-350 Serial Bus Interface Baud Rate Register 0 7 6 5 4 3 2 1 0 Bit symbol − I2SBI − − − − − − Read/Write W R/W R R/W After reset 0 0 1 1 1 1 1 0 SBIBR0 (1244H) Prohibit Read-modify -write Function Always read “0” IDLE2 0: Stop 1: Run Always read as “1” Always write “0”. Serial Bus Interface Data Buffer Re[...]

  • Страница 354

    TMP92CZ26A 92CZ26A-351 3.15.5 Control in I 2 C Bus Mode (1) Acknowledg e Mode Specificat ion When slave address is matched or detecting GENERAL CALL, and set the SBICR1<ACK> to “ 1”, TMP92CZ26 A operates in th e acknowledge m ode. The TMP92CZ26A gen erates an additi onal clock puls e for an Acknow ledge signal wh en operating in Mast er M[...]

  • Страница 355

    TMP92CZ26A 92CZ26A-352 b. Clock synchronization In the I 2 C bus mode, in order to wir ed-AND a bus, a master device which pulls down a clock line to low -level, in the first place, in validate a c lock pulse of a nother master device which gen erates a high-level clock pu lse. The master d evice with a high -level clock pulse needs to d etect the [...]

  • Страница 356

    TMP92CZ26A 92CZ26A-353 (6) Transmitter/Receiv er sel e ction Set the SBICR2<TRX> to “1 ” for operating the TMP92 CZ26A as a transmitter. Clear the <TRX> to “0” fo r operation as a receiv er. In Slave Mode, z Data with an addressing format is transferr ed z A slave address with th e same value that an I2 CAR z A GENERAL CALL is r[...]

  • Страница 357

    TMP92CZ26A 92CZ26A-354 (8) Interrupt service requests and interrupt cancellation When a serial bus interface interrupt re quest (IN TSBI) occurs, the SBICR2 <PIN> is cleared to “0”. During the time that th e SBI CR2< P IN> is “0”, the SCL lin e is pulled down to the Low level. The <PIN> is cleared to “0” when a 1-word [...]

  • Страница 358

    TMP92CZ26A 92CZ26A-355 lost and SBISR<AL> is set to “1”. When SBISR<AL> is set to “1”, SBISR<MST, TRX> are cleared to “00” and the mode is switched to Slave Rec eiver Mode. Thus, clock out put is stopped in data transfer a fter setting <AL>=“1”. SBISR<AL> is cleared to “0” when dat a is written to o[...]

  • Страница 359

    TMP92CZ26A 92CZ26A-356 (14) Software Res et function The software Reset fu nction is used to init ialize th e SBI circuit, when SBI is rocked by external noises, etc. An internal Res et signal pulse can be generated b y setting SBICR2<SW RST1:0> to “10” and “01”. This initia lizes the SBI circuit i nternally. All c ommand registers an[...]

  • Страница 360

    TMP92CZ26A 92CZ26A-357 3.15.6 Data Transfer in I 2 C Bus Mode (1) Device initi a lization Set the SBICR1<ACK, SCK2:0>, Set SBI BR1 to “1” and clear bits 7 to 5 and 3 in the SBICR1 to “0”. Set a slave address <SA6:0> and the <ALS> (<ALS> = “0” when an addr essing format) to the I2CAR. For specifying the default se[...]

  • Страница 361

    TMP92CZ26A 92CZ26A-358 b. Slave Mode z In the Slave Mode, the start cond ition and the slav e address are received. After the start condition is receiv ed from the master device, while eight clocks are output from the SCL pin, the slave ad dress and the direction bit that are ou tput from the master dev ice ar e received. When a GENERAL CALL or th [...]

  • Страница 362

    TMP92CZ26A 92CZ26A-359 (3) 1-word Data Transfer Check the <MST> by the INTSBI interrupt process after the 1- word data transfer is completed, and det ermine wheth er the mode is a master or sl a ve. a. If <MST> = “1” (Master Mode) Check the <TRX> and determine whether the mode is a transmitter or receiver. When the <TRX>[...]

  • Страница 363

    TMP92CZ26A 92CZ26A-360 When the < TRX > is “0” (Receiver mode) When the next transmitted data is ot her than 8 bits, set <BC2:0> <ACK> and read the received data from SBIDBR to rele ase the SCL line (data which i s read immediately after a slave address is sent is undefined). After the data is read, <PIN> becomes “1”[...]

  • Страница 364

    TMP92CZ26A 92CZ26A-361 Example: In case receive dat a N times INTSBI interrupt (After transmitting dat a) 7 6 5 4 3 2 1 0 SBICR1 ← X X X X X X X X Set the bit number of receive data and ACK. Reg. ← SBIDBR Load the dummy data. End of interrupt INTSBI interrupt (Receive data of 1st to (N − 2) th) 7 6 5 4 3 2 1 0 Reg. ← SBIDBR Load the data of[...]

  • Страница 365

    TMP92CZ26A 92CZ26A-362 b. If <MST> = 0 (Slave Mode) In the slave mode the T MP92CZ26A opera tes either in norm al slave mode or in slave mode after losing ar bitra tion. In the slave mode, an INTSBI interr upt request occurs when the TMP92CZ2 6A receives a slave addre ss or a GENERAL CALL from the master de vice, or when a GENERAL CALL is rec[...]

  • Страница 366

    TMP92CZ26A 92CZ26A-363 T able 3.15.2 Operation in t he slave mode <TRX> <AL> <AAS> <AD0> Conditions Process 1 1 0 The TMP92CZ26A loses arbitration when transmitting a slave address and receives a slave address for which the value of the direction bit sent from another master is “1”. 1 0 In Salve Receiver Mode, the TMP92C[...]

  • Страница 367

    TMP92CZ26A 92CZ26A-364 (4) Stop condition generati on When SBISR<BB> = “1”, the sequence for gen erating a stop condition start by writing “1” to SBIC R2<MST, TRX, PIN> and “0” to SBICR2< BB>. Do not modify t he contents of SBICR2<MST, TRX, PIN, BB> un til a stop condition has been generated on the bus. When th e[...]

  • Страница 368

    TMP92CZ26A 92CZ26A-365 (5) Restart Restart is used durin g data transfer between a master device a nd a slave device to change the data transfer dir ection. The following description expla ins how to restart when the TMP92 CZ26A is in Master Mode. Clear SBICR2<MST , TRX, and BB> to 0 an d set SBICR2<PIN> to 1 to release the bus. The SDA[...]

  • Страница 369

    TMP92CZ26A 92CZ26A-366 3.16 USB Controller 3.16.1 Outline This USB controller (UDC) is design e d for va rious serial links to construct USB system. The outline is as fol lows: (1) Com pliant with USB rev1.1 (2) Full-speed: 1 2 Mbps (Not supported low-speed (1.5 Mbps )) (3) Aut o bus enumeration with 384-byt e descriptor RAM (4) Supp orted 3 kinds [...]

  • Страница 370

    TMP92CZ26A 92CZ26A-367 3.16.1.1 System Configuration The USB controller (UDC ) is consisted of followin g 3 blocks. 1. 900/H1 CPU I/F 2. UDC core block (DPLL, SIE, IFM and PW M), request controller , descriptor RAM and 4 endpoint FIFO 3. USB transceiver About above “1.” is explai ned at 3.1 6.2, and “2.” is 3.16.3. Figure 3.16.1 UDC Block D[...]

  • Страница 371

    TMP92CZ26A 92CZ26A-368 3.16.1.2 Example If using USB controller in TMP92C Z26 A, above setting is needed . 1) Pull-up of D + pin ・ In the USB standard, in Full Speed connection, D + pin must be set to pull-up. And this pull-up is needed ON/OFF control b y S/W . Recommendati on value: R1 = 1.5k Ω 2) Add cascade resistor of D + , D - signal ・ In[...]

  • Страница 372

    TMP92CZ26A 92CZ26A-369 3.16.2 900/H1 CPU I/F The 900/H1 CPU I/F is a bridge between 900/H1 CPU and U DC and it mainly works following ope rati ons. • INTUSB (interrupt fr om UDC) gener atio n • A b r i d g e f o r S F R • USB clock control (48 MHz) 3.16.2.1 SFRs The 900/H1 CPU I/F have following SFRs to contr ol UD C an d USB transceiver . ?[...]

  • Страница 373

    TMP92CZ26A 92CZ26A-370 3.16.2.2 USBCR1 Register This register is used to set USB clock ena bles, transceiver enab le etc. 7 6 5 4 3 2 1 0 bit Symbol TRNS_USE WAKEUP SPEED USBCLKE Read/Write R/W R/W R/W R/W After reset 0 0 1 0 Function • TRNS_USE (Bit7) 0: Disable USB transceiver 1: Enable USB transceiver Set to “1” for TMP92CZ26A. • WA K E [...]

  • Страница 374

    TMP92CZ26A 92CZ26A-371 Mask registe r Writing “0” to flag registe r Flag registe r Interrupt source (Set by rising edge) AB C D 3.16.2.3 USBINTFRn, MRn Register These SFRs control to generat e INTUSB (only one interru pt to CPU) becaus e the UDC outputs 23 interrupt source. The USBINTMRn are mask regist ers and the USBINTFRn are flag reg isters[...]

  • Страница 375

    TMP92CZ26A 92CZ26A-372 7 6 5 4 3 2 1 0 bit Symbol INT _URST_STR INT_URS T_END INT_SU S INT_RESUME INT_CLKSTO P INT_C LKON Read/Write R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 Function When read 0: Not generate interrupt 1: Generate interrupt When write 0: Clear flag 1: − Note: Above interrupts can release Halt state from IDLE2 and IDLE 1 mo[...]

  • Страница 376

    TMP92CZ26A 92CZ26A-373 7 6 5 4 3 2 1 0 bit Symbol EP1_FULL_A EP1_Empty_A EP1_FULL_B EP1_Empty_B EP2_FULL_A EP2_Empty_A EP2_FULL_B EP2_Em pty_B Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Function When read 0: Not generate interrupt 1: Generate interrupt When write 0: Clear flag 1: − Note: Above interrupt can release Hal[...]

  • Страница 377

    TMP92CZ26A 92CZ26A-374 7 6 5 4 3 2 1 0 bit Symbol INT_SETUP INT_ EP0 INT_STAS INT_STASN INT_EP1N INT_EP2N INT_EP3N Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function When read 0: Not generate i nterrupt 1: Generate inter rupt When write 0: Clear flag 1: − Note: Above interrupt can release Halt state from ID LE2 mode. (ID LE[...]

  • Страница 378

    TMP92CZ26A 92CZ26A-375 • INT_ST ASN (Bit4) This is a flag for INT_ST ASN (change host status stag e - int errupt). This is set to “1” when the US B host change to status stage at the Control read transfer type. This interrupt is needed if data length is less than wLength (specified by the host). But if the USB host change to status stag e, th[...]

  • Страница 379

    TMP92CZ26A 92CZ26A-376 7 6 5 4 3 2 1 0 bit Symbol MSK_URST_STR MSK_URST_END MSK_SUS MSK_RESUME MSK_CLKSTOP MSK_CLKON Read/Write R/W R/W R/W R/W R/W R/W After reset 1 1 1 1 1 1 Function 0: Be not masked 1: Be masked • MSK_URST_STR (Bit7) This is a mask register fo r USBINTFR1<INT_URST_STR>. • MSK_URST_END (Bit6) This is a mask register fo [...]

  • Страница 380

    TMP92CZ26A 92CZ26A-377 7 6 5 4 3 2 1 0 bit Symbol EP1_MSK_FA EP1_MSK_E A EP1_MSK_FB EP1_MSK_EB EP2_MSK_FA EP2_MSK_EA EP2_MSK_FB EP2_MSK_EB Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 1 1 1 1 1 1 1 1 Function 0: Be not masked 1: Be masked • EP1/2_MSK_F A/FB/EA/EB This is a mask register for USBINTFR2<EPx_FULL_A/ B> or <EPx_Empt[...]

  • Страница 381

    TMP92CZ26A 92CZ26A-378 7 6 5 4 3 2 1 0 bit Symbol MSK_SE TUP MSK_EP0 MSK_STAS MSK_STASN MSK_EP 1N MSK_EP2N MSK_EP3N Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 1 1 1 1 1 1 1 Function 0: Be not masked 1: Be masked • MSK_SETUP (Bit7) This is a mask register for USBINTFR4<INT_SETUP>. • MSK_EP0 (Bit6 ) This is a mask register for USBIN[...]

  • Страница 382

    TMP92CZ26A 92CZ26A-379 3.16.3 UDC CORE 3.16.3.1 SFRs The UDC CORE has followi ng SFRs to control UDC and USB transceive r . a) FIFO Endpoint 0 to 3 FIFO register b) Device request bmRequestType register bRequest register wValue_L register wValue_H register wIndex_L register wIndex_H register wLength_L register wLength_H register c) Status Current_C[...]

  • Страница 383

    TMP92CZ26A 92CZ26A-380 Figure 3.16.3 UDC CORE SFRs (1/3) Address Read/W rite SFR Symbol 0500H R/W Descriptor RAM0 0501H R/W Descriptor RAM1 0502H R/W Descriptor RAM2 0503H R/W Descriptor RAM3 067DH R/W Descriptor RAM381 067EH R/W Descriptor RAM382 067FH R/W Descriptor RAM3 83 0780H R/W ENDPOINT0 0781H R/W ENDPOINT1 0782H R/W ENDPOINT2 0783H R/W END[...]

  • Страница 384

    TMP92CZ26A 92CZ26A-381 Figure 3.16.4 UDC CORE SFRs (2/3) Address Read/W rite SFR Symbol 07A9H R EP1_SIZE_H_A 07AAH R EP2_SIZE_H_A 07ABH R EP3_SIZE_H_A *07ACH R EP4_SIZE_H_A *07ADH R EP5_SIZE_H_A *07AEH R EP6_SIZE_H_A *07AFH R EP7_SIZE_H_A 07B1H R EP1_SIZE_H_B 07B2H R EP2_SIZE_H_B 07B3H R EP3_SIZE_H_B *07B4H R EP4_SIZE_H_B *07B5H R EP5_SIZE_H_B *07B[...]

  • Страница 385

    TMP92CZ26A 92CZ26A-382 Figure 3.16.5 UDC CORE SFRs (3/3) Address Read/W rite SFR Symbol 07E0H R/W Port_Status 07E1H R FRAME_L 07E2H R FRAME_H 07E3H R ADDRESS *07E4H – Reserved *07E5H – Reserved 07E6H R/W USBREADY *07E7H – Reserved 07E8H W Set Descriptor STALL Note: “*” is not used at TMP92CZ26A.[...]

  • Страница 386

    TMP92CZ26A 92CZ26A-383 3.16.3.2 EPx_FIFO Register (x: 0 to 3) This register is prepared for each endp oint independent ly . This is the window regist er from or to FI F O RA M. In the auto bus enumer ation, the request contr oller in UDC set m ode, which is defined at endpoint descriptor for each endpoi nt automatica lly . By thi s, each end point [...]

  • Страница 387

    TMP92CZ26A 92CZ26A-384 3.16.3.3 bmRequestT ype Register This register shows the bm Re questT ype field of de vic e request. 7 6 5 4 3 2 1 0 bit Symbol DI RECTION REQ_TYPE1 REQ_TYPE0 RECIPIENT4 RE CIPIENT3 RECI PI ENT2 RECIPIEN T1 RECIPIENT0 Read/Write R R R R R R R R After reset 0 0 0 0 0 0 0 0 DIRECTION (Bit7) 0: from host to device 1: from device[...]

  • Страница 388

    TMP92CZ26A 92CZ26A-385 3.16.3.5 wV alue Register There are 2 reg isters; the wV alue_L register and wV alue_H register . wV alue_L shows the lower -byte of wV alue field of device request and w V alue_H register shows upper byte. 7 6 5 4 3 2 1 0 bit Symbol VALUE_L7 VALUE_L6 VALUE_L5 VALUE_L4 VALUE_L3 VALUE_L2 VALUE_L1 VALUE_L0 Read/Write R R R R R [...]

  • Страница 389

    TMP92CZ26A 92CZ26A-386 3.16.3.8 Setup Received Register This register informs for the UDC that an application program rec ognized INT_SETUP interrupt. 7 6 5 4 3 2 1 0 bit Symbol D7 D6 D5 D4 D3 D2 D1 D0 Read/Write W W W W W W W W After reset 0 0 0 0 0 0 0 0 If this register is access ed by an applic ation program, the UDC releas e to disabling acces[...]

  • Страница 390

    TMP92CZ26A 92CZ26A-387 3.16.3.10 S tandard Request Register This register shows the standar d request that is execut ing n ow . A bit which is set to “1” shows pr esen t executing request. 7 6 5 4 3 2 1 0 bit Symbol S_INTERFACE G_INTERFACE S_C ONFIG G_CONFIG G_DESCRIPT S_ FEATURE C_FEATURE G_STATUS Read/Write R R R R R R R R After reset 0 0 0 0[...]

  • Страница 391

    TMP92CZ26A 92CZ26A-388 3.16.3.12 DA T ASET Register This register shows whethe r FIFO has data or not. The application program can be ch ecked it by acc essing this regist er that whether FIFO has data or not. In the receiving status, when va lid data transfer fr om USB host finished, bit which correspond to ap plicable endpo int is set to “1” [...]

  • Страница 392

    TMP92CZ26A 92CZ26A-389 Note1: In the receiving mode, if bits that A-packet and B-packet of applicable endpoint are “1”, rea d data that packet-number should be received, after checking DATASIZE<PACKET_ACTIVE>. Note2: In the transmitting mode, if the both A and B bits are not “1”, it means that there are space in FIFO. So, write data f[...]

  • Страница 393

    TMP92CZ26A 92CZ26A-390 3.16.3.13 EPx_ST A TUS Register (x: 0 to 7) These registers are status registers f or each endpo int. The <SUSPEND> is comm on for all endpoi nt. 7 6 5 4 3 2 1 0 bit Symbol TOGGLE SUSPEND STATUS[2] STATUS[1] STA TUS[0] FIFO_DI SABLE STAGE_ERR Read/Write R R R R R R R After reset 0 0 1 1 1 0 0 7 6 5 4 3 2 1 0 bit Symbol [...]

  • Страница 394

    TMP92CZ26A 92CZ26A-391 ST A TUS [2:0] (Bit4 to bit2) These bits show status of endpoint of UDC. The status show wheth er transfer it or not, or show result o f transfer . . These are depending on transfer typ e. (For the Isochron ous tran sfer type, refer 3.10.6. ) 000: READY Receiving: Device can be received. In the endpoint 1 to 7, this register [...]

  • Страница 395

    TMP92CZ26A 92CZ26A-392 FIFO_DISABLE (Bit1) 0: FIFO enabled 1: FIFO disabled This bit symbol shows FIFO status except EP0. If the FIFO is set to disabled, th e UDC transmits NA K handshake forcibly f or th e all transfer . Disabled or enabled is se t by COMMAND register . This bit is cleared to “ 0” when transfer type is changed. ST AGE_ERROR (B[...]

  • Страница 396

    TMP92CZ26A 92CZ26A-393 3.16.3.14 EPx_SIZE Register (x: 0 to 7) These registers have f ol lo win g function. a) In the receiving, show ing data number for 1 pack et which was received correctly . b) In the transmitting, it shows payload size . But it shows length value when short packet is transferred. This register is not needed to read when it is [...]

  • Страница 397

    TMP92CZ26A 92CZ26A-394 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATA[...]

  • Страница 398

    TMP92CZ26A 92CZ26A-395 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATA[...]

  • Страница 399

    TMP92CZ26A 92CZ26A-396 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATASIZE7 Read/Write R R R After reset 0 0 0 7 6 5 4 3 2 1 0 bit Symbol DATASIZE9 DATASIZE8 DATA[...]

  • Страница 400

    TMP92CZ26A 92CZ26A-397 3.16.3.15 FRAME Register This register shows frame number which is issued with SOF token from the host and is used for Isochronous transfer t yp e. Each HIGH and LOW registers show upper and lower bits. 7 6 5 4 3 2 1 0 bit Symbol − T[6] T[5] T[4] T[3] T[2] T[1] T[0] Read/Write R R R R R R R R After reset 0 0 0 0 0 0 0 0 7 6[...]

  • Страница 401

    TMP92CZ26A 92CZ26A-398 3.16.3.17 EOP Register This register is used wh e n a dataphas e o f contr ol t ransf er typ e term inat e or when a short packet is transmitti ng o f bulk -I N, interrupt-IN. 7 6 5 4 3 2 1 0 bit Symbol EP7_EOPB EP6_EOPB EP5_EOPB EP4_EOPB EP3_EOPB EP2_EOPB EP1_EOPB EP0_EOPB Read/Write W W W W W W W W After reset 1 1 1 1 1 1 1[...]

  • Страница 402

    TMP92CZ26A 92CZ26A-399 3.16.3.18 Port S tatus Register This register is used when a requ est of printer class is received. In case of request of GET_PORT _ST A TUS, the UDC opera tes automatically by using this data. 7 6 5 4 3 2 1 0 bit Symbol Reserved7 Reserved6 PaperError Select NotError Reserved2 Reserved1 Reserved0 Read/Write W W W W W W W W Af[...]

  • Страница 403

    TMP92CZ26A 92CZ26A-400 3.16.3.20 Request Mode Register This register set answer for Class Request either answer aut omatically in Hardware or control in software. Each bit mean kind of request. When this register is set applicable bit to “0”, answer is execut ed automatic ally by hardware. When this register is set applic able bit to “1”, a[...]

  • Страница 404

    TMP92CZ26A 92CZ26A-401 3.16.3.21 COMMAND Register This register sets COMMAND at each endpoin t. This reg ister can be set sel ection of endpoint in bit6 to bit4 and ki nd of COMMAND in bit3 to bit0. COMMAND for endp oint that is supported is ignored. 7 6 5 4 3 2 1 0 bit Symbol EP[2] EP[1] EP[0] Command[3] Command[2] Comm and[1] Command[0] Read/Writ[...]

  • Страница 405

    TMP92CZ26A 92CZ26A-402 1000: FIFO_E NABLE This COMMAND set FIFO of applicable endpoint to enable (EP1 to EP3). If FIFO is set to disable by FIFO_DISABLE COMMAND, this command is used for release disable condition. If dur ing receiving packet, this bec omes valid from next token. If USB_RESET is detected from host and RESET COMMAND exe cute and tran[...]

  • Страница 406

    TMP92CZ26A 92CZ26A-403 3.16.3.22 INT_Control Register INT_ST ASN interrupt is disabled an d enabled by value that is written to this register . This is initialized t o disable by exte rnal reset. When setup packet is rec eived, it becomes to disable. 7 6 5 4 3 2 1 0 bit Symbol Status_nak Read/Write R/W After reset 0 In control read trans fer , if h[...]

  • Страница 407

    TMP92CZ26A 92CZ26A-404 3.16.3.24 EPx_MODE Register (x: 1 to 3) This register sets transfer mo de of endpoint (EP1 to EP3). If transaction of SET_CONFIG and SET_ INTERF ACE are set to software control, this control must use appo inted config or interfac e. When it is setting m ode, access this register . 7 6 5 4 3 2 1 0 bit Symbol Payload[2] Payload[...]

  • Страница 408

    TMP92CZ26A 92CZ26A-405 3.16.3.25 EPx_SINGLE Register This register sets mode of FIFO in each endpoint (SINGLE/DUAL). 7 6 5 4 3 2 1 0 bit Symbol EP3_SELECT EP2_SELECT EP1_SELECT EP3_SINGLE EP2_SINGLE EP1_SINGLE Read/Write R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 Note: Endpoint 3 support only SINGLE mode at TMP92CZ26A. Bit number 0: No use 1: [...]

  • Страница 409

    TMP92CZ26A 92CZ26A-406 3.16.3.27 USBREADY Register This register informs finishing wr iting data to descript or R AM on UDC. After assigned data to descript or RAM, write “0” to bit0. 7 6 5 4 3 2 1 0 bit Symbol USBREADY Read/Write R/W After reset 0 USBREADY ( Bit0) 0: Writing to descriptor RAM was finished. 1: Writing to descriptor RAM is enabl[...]

  • Страница 410

    TMP92CZ26A 92CZ26A-407 3.16.3.28 Set Descriptor ST ALL Register This register sets whether returns ST ALL automatica lly in data stage or status stage for Set Descript or Request. 7 6 5 4 3 2 1 0 bit Symbol S_D_STALL Read/Write W After reset 0 Bit0: S_D_ST ALL 0: Soft ware control (Default) 1: Automatically STALL 3.16.3.29 Descriptor RAM Register T[...]

  • Страница 411

    TMP92CZ26A 92CZ26A-408 3.16.4 Descriptor RAM This area stores descriptor that is defin ed in USB. Device, Config, Interface, Endpoin t and String descriptor must set to RAM by using followi ng format. Note 1: If St ring Descriptor is supported, set S tringx Len gth area to size0. No support S tring Dedcriptor is returned ST ALL. Note 2: Config Desc[...]

  • Страница 412

    TMP92CZ26A 92CZ26A-409 Descriptor RAM setting example: Address Data Description Description Device Descriptor 500H 12H bLength 501H 01H bDescriptorType Device Descriptor 502H 00H bcdUSB (L) USB Spec 1.00 503H 01H bcdUSB (H) IFC’s specify own 504H 00H bDeviceClass 505H 00H bDeviceSubClass 506H 00H bDeviceProtocol 507H 08H bMaxPacketSize0 508H 6CH [...]

  • Страница 413

    TMP92CZ26A 92CZ26A-410 Address Dat a Description Description Interface0 Descriptor AlternateSetting1 52BH 09H bLength 52CH 04H bDescriptorType Interface Descrip tor 52DH 00H bInterfaceNumber 52EH 01H bAlternateSetting AlternateSetting1 52FH 02H bNumEndpoints 530H 07H bInterfaceClass 531H 01H bInterfaceSubClass 532H 02H bInterfaceProtocol 533H 00H i[...]

  • Страница 414

    TMP92CZ26A 92CZ26A-41 1 Address DA T A Description Description Endpoint3 Descriptor 559H 07H bLength 55AH 05H bDescriptorType Endpoint Descriptor 55BH 83H bEndpointAddress IN 55CH 03H bmAttributes Interrupt 55DH 08H wMaxPacketSize (L) 8 bytes 55EH 00H wMaxPacketSize (H) 55FH 01H bInterval 1 ms String Descriptor Length Setup Area 560H 04H bLength Le[...]

  • Страница 415

    TMP92CZ26A 92CZ26A-412 3.16.5 Device Request 3.16.5.1 S tandard request UDC support automatically answ er in standard request. ( 1) GET_ST A TUS Request This request returns status that is ap pointed of receive side, a utomat ically . bmRequestT ype bRequest wV alue wIndex wLength Data 10000000B 10000001B 10000010B GET_STATUS 0 0 Interface endpoint[...]

  • Страница 416

    TMP92CZ26A 92CZ26A-413 (2) CLEAR_ FEA TURE re quest This request clears or disables particular function. bmRequestT ype bRequest wV alue wIndex wLength Data 00000000B 00000001B 00000010B CLEAR_ FEATURE Feature selector 0 Interface endpoint 0 None • Receptio n side devi ce Feature selector: 1 Present remote wakeup setting is disabled. Feature sele[...]

  • Страница 417

    TMP92CZ26A 92CZ26A-414 (4) SET_ADDRESS request This request set device address. Foll owin g request answer by using this devic e address. Answer of request is used pr esent device address until statu s stage of this request finish normally . bmRequestT ype bRequest wV alue wIndex wLength Data 00000000B SET_ADDRESS Device Address 0 0 None (5) GET_DE[...]

  • Страница 418

    TMP92CZ26A 92CZ26A-415 (6) SET_DESCRIPTOR request This request sets or enab les particular functi on. bmRequestT ype bRequest wV alue wIndex wLength Data 00000000B SET_ Descriptor Descriptor type and Descriptor index 0 or Language ID Descriptor length Descriptor Automatically answer of t his request does not supp ort. According to INT_SETU P interr[...]

  • Страница 419

    TMP92CZ26A 92CZ26A-416 (9) GET_INTERF ACE request This request returns Alter nateS etting value that is set by a ppointed interfac e. bmRequestT ype bRequest wV alue wIndex wLength Data 10000001B GET_ INTERFACE 0 Interface 1 Alternate setting If there is not appoint ed inter face, it become to ST ALL state. (10) SET_INTERF ACE re quest This request[...]

  • Страница 420

    TMP92CZ26A 92CZ26A-417 3.16.5.2 Printer Class Request UDC does not support “Autom at ic answer” of pr int er class request. T ransaction for Class request is the sam e as vendor request; answering to INT_SETUP interrupt. 3.16.5.3 V endor request (Class request) UDC doesn’ t support “Automat ic answer” of V endor request. According to INT_[...]

  • Страница 421

    TMP92CZ26A 92CZ26A-418 (b) Control write/request There is no dataphase bmRequestT ype bRequest wV alue w Index wLength Data 010000xxB Vendor peculiar Vendor peculiar Vendor peculiar 0 None When INT_SETUP is received, judge contents of rec eiving request by bmRequestT ype, bRequ est, wV alue, wInde x, wLength regist ers. And execute transaction for [...]

  • Страница 422

    TMP92CZ26A 92CZ26A-419 Below is control fl ow in UDC watch fro m appl ication. Figure 3.16.6 Control Flow in UDC W atch from Application Note 1: There is not special case in this flow such as overlap receive SETUP packet. Please refer to chaptor 4.5.2.3. Note 2: This flow shows various request. Howeve r, transaction can be divided ever y each inter[...]

  • Страница 423

    TMP92CZ26A 92CZ26A-420 3.16.6 T ransfer mode and Protocol T ransaction UDC perform automat ically in hard ware as f o llows; • Receive pack et • Judge address endpoint t r ansf er m ode • Error proces s • Confirm toggle bit CRC of data receiving packet • Generate including toggle bit CRC of d ata transmitting packet • Handshake an swer [...]

  • Страница 424

    TMP92CZ26A 92CZ26A-421 (2) T ransfer mode UDC support transfer mode in FULL speed. • FULL speed device Control transfer type Interrupt transfer type Bulk transfer type Isochronous transfer type Following is explan at ion of UDC oper ati on in each transfer mo de. Explanation of data flow is exp lana tion until FIFO . (a) Bulk transfer type Bulk t[...]

  • Страница 425

    TMP92CZ26A 92CZ26A-422 (a-1) T ransmission bulk mode Below is transaction format of bu lk transfer du ring transmi tting. • T oken: IN • Data: DA T A0/DA T A1, NAK, ST ALL • Handshake: ACK Control flow Below is control-flow wh en UDC receive IN t oken. 1. T oken packet is received and address en dpoint number error is confirmed, and it c h e [...]

  • Страница 426

    TMP92CZ26A 92CZ26A-423 Figure 3.16.7 Control Flow in UDC (B ulk transfer type (trans mission)/Interrupt transf er type (transmission)) IDLE Receive IN token Confirm Handshake answer • Confirm STATU S register (Status) • Confirm DATAS ET register Generate DATA PID • Attach DATA0/DATA1 • Confirm Datasize register Transmit data OK OK OK Attach[...]

  • Страница 427

    TMP92CZ26A 92CZ26A-424 (a-2) Rece iving bulk mode Below is transaction format rece iv ing bulk transfer type. It ha s to fo llow below . • To k e n : O U T • Data: DA T A0/DA T A1 • Handshake: ACK, NAK, ST ALL Control flow Below is control-flow wh en UDC receive IN t oken. 1. T oken packet is received and address en dpoint number error is con[...]

  • Страница 428

    TMP92CZ26A 92CZ26A-425 Figure 3.16.8 Control Flow in UDC (Bulk transfer type (Receiving)) IDLE Receive OUT token Confirm Status • Confirm STATUS register (status) • Confirm FIFO’s condition OK OK OK Transmit ACK Toggle error • Set STATU Sat RX_ERR • Put back FIFO a ddress pointer • Retr y recognition clean data Confirm Token packet • [...]

  • Страница 429

    TMP92CZ26A 92CZ26A-426 (b) Interrupt tra nsfer t ype Interrupt transfer type use transac tion format same with transmission bulk transfer . When transmission by using toggle bit, hardware setting and answer in UDC are same with transmission bulk transfer . Interrupt transfer can be transferred without using toggle bit. In this case, if ACK handshak[...]

  • Страница 430

    TMP92CZ26A 92CZ26A-427 (c) Control transfer type Control transfer type is conf igured in below thre e stages. • Setup stage • Data stage • Status stage Data stage is skipped sometimes. Each stage is conf igured in one or p lural transaction. UDC ex ecutes each transaction while manag ing of three stag es in hardware. Control transf er type ha[...]

  • Страница 431

    TMP92CZ26A 92CZ26A-428 3. Data packet is received. Device request of 8 b ytes from SIE in UDC is tr ansferred to below request register . • bmRequestT ype regist er • bmRequest register • wV alue register • wIndex register • wLength register 4. After last data was tra nsferred, and compare count ed CRC with transferred CRC. If it d oesn?[...]

  • Страница 432

    TMP92CZ26A 92CZ26A-429 Figure 3.16.9 Control Flow in UDC (Set up st age) IDLE Receive SETUP token Confirm Status • Confirmation STATUS register (Status) Confirm DATA PID • DATA0 • Time out OK OK OK OK Transmit ACK Normal finish transaction • Set DATASET register • Assert INT_SETUP and request flag • According to stage flow, prepare for [...]

  • Страница 433

    TMP92CZ26A 92CZ26A-430 (c-2) Data stage Data stage is configured b y one or plural transac tion base on tog gle sequence. T ransaction is same with format transm ission or re cei vin g bulk transaction. However , below is difference . • T oggle bit start from “1” by SETUP stage. • It judges whether right or not by com paring IN and OUT toke[...]

  • Страница 434

    TMP92CZ26A 92CZ26A-431 4. If ACK handshake from host is rece ived, • Set ST A TU to READY . • Assert INT_ST A TUS interrupt. It finishes normally by above transaction. If it is time out without receivin g ACK from host, • Set ST A TUS register to TX_ERR and state return IDLE. And wait restring status stage. At this point, if ne w SETUP stage [...]

  • Страница 435

    TMP92CZ26A 92CZ26A-432 (c-4) Stage manag ement UDC manages each stage of control transfer by hardware. Each stage is changed by receiving token from USB host, or CPU acces ses register . Each stage in control transfer ty pe has to process co mbinatio n so ft war e. UDC detect follow ing contents fr om 8-byte data in SETUP stag e. (It contents is sh[...]

  • Страница 436

    TMP92CZ26A 92CZ26A-433 Stage change condition of control r ead transfer type 1. Receive SET UP toke n from host • Start setup stage in UDC. • Receive data in request normally and judge. And assert INT_S ETUP interr upt to ex ternal. • Change data stage into the UDC. 2. Receive IN t oken from host • CPU receive req uest from request regist e[...]

  • Страница 437

    TMP92CZ26A 92CZ26A-434 Stage change condit ion of control writ e transfer type 1. Receive SET UP toke n from host. • Start setup stage in UDC. • Receive data in request normally and judge. And assert INT_S ETUP interr upt to ex ternal. • Change data stage in UDC. 2. Receive OUT token from host. • CPU receive req uest from request regist er [...]

  • Страница 438

    TMP92CZ26A 92CZ26A-435 Stage change cond it ion of control writ e (no data stag e) trans fer type 1. Receiv e SETUP token from host • Start setup stage in UDC. • Receive data in request normally and judge. And assert INT_S ETUP interr upt to ex ternal. • Change data stage in UDC. 2. Receive IN token from host • CPU receive req uest from req[...]

  • Страница 439

    TMP92CZ26A 92CZ26A-436 (d) Isochronous transfer type Isochronous transfer type is guarant eed transfer by data number that is limited every each frame. However , this transfer don’ t retry when error occurs. Therefore, Isochronous transfer type transfer only 2 phases (t oken, data) and it do esn’ t use handshake phase. And data PID for data ph [...]

  • Страница 440

    TMP92CZ26A 92CZ26A-437 5. Below is transaction when SOF toke n from h ost is received. • Change the packet A ’ s FIFO from X Condition to Y Condition. An d clear data. • Change the packet B f rom Y Condition to X Condition. • Set frame number to fram e register . • Assert SOF and inform that fram e is increm ented to external. • DA T AS[...]

  • Страница 441

    TMP92CZ26A 92CZ26A-438 Figure 3.16.13 Control Flow in UDC (I sochronous tra nsfer type (T ransmission)) IDLE Receive IN token Confirm Status • Confirm STATUS register (status ) Generate DATA PID • Attach DATA0 • Confirm DATASIZE register Transmit data OK OK OK Attach CRC Error transaction Not receive SOF Not renewal frame number loss data Rec[...]

  • Страница 442

    TMP92CZ26A 92CZ26A-439 (d-2) Isochronous rec ei vi n g mode Isochronous transfer type form at i n re ceiving is belo w transaction format. • To k e n : O U T • Data: DA T A0 Control flow Isochronous transfer type is frame management. And data that is written to FIFO by OUT token is received to CPU in next frame. Below are two conditi ons in FIF[...]

  • Страница 443

    TMP92CZ26A 92CZ26A-440 In renewed frame, Packet A ’ s FIFO interchange packet B’ s FIFO, and transaction is used same flow . I f SO F t o k en is n o t re ce i v ed by e r r or a n d s o o n, t h is d a ta is lo s t be ca u s e o f frame is not renewed. Nothin g problem in receivin g PID and if frame data is received with CRC err or , USB sets [...]

  • Страница 444

    TMP92CZ26A 92CZ26A-441 Figure 3.16.14 Control Flow in UDC (I sochronou s tra nsfer type (Receiving)) IDLE Receive OUT token Confirm Status Confirming ST A TUS register (status) Confirm DATA PID • Time out • Error Receiving data • Error • Receive receiving data OK OK OK Not receive SOF Not renew frame number loss data Receive SOF nothing tra[...]

  • Страница 445

    TMP92CZ26A 92CZ26A-442 3.16.7 Bus Interface and Access to FIFO (1) CPU bus interface UDC prepares two ty pes of FIFO acc ess, single packet and dual pack et. In single packet mode, FIFO capacity tha t is implemented by hardware is used as big FIFO. In dual packet mode, FIFO capacity that is divi ded into tw o is used as two FIFOs. And it uses as in[...]

  • Страница 446

    TMP92CZ26A 92CZ26A-443 (a) Single packet m ode This is data sequence of sing le packet mode whe n CPU bus interface is used. Figure 3.16.15 is receiving sequence. Figure 3.16 .16 is transmitting sequence. Main of this chapter is access to FIFO. Data sequence with USB host refer to chapter 5. Endpoint 0 can’t be changed mode for exc lusive single [...]

  • Страница 447

    TMP92CZ26A 92CZ26A-444 Below is transmitting sequen ce in single packet mode. Figure 3.16.16 T ransmitting Sequence in Single Packet Mode Transmitting number < payload • WR of transmitting number applicable endpoint • To t a l = 0 Wait transmitting rest data Wait transmission event IDLE Transmitting number > payload • WR of payload to a[...]

  • Страница 448

    TMP92CZ26A 92CZ26A-445 (b) Dual packet m ode In dual packet mode, FIFO is divided into A and B packet, it is controlled according to priority in hardwar e. It ca n be performed at once, transmittin g and receiving data to USB ho st and exchanges to exter nal of UDC. When it reads out data from FIFO for receiving, confirm co ndit ion of two packe ts[...]

  • Страница 449

    TMP92CZ26A 92CZ26A-446 When it writes data to FIFO in transmitting, confirm condition of two packets, and consider the or der of priority . When tr ansfer data number is set, set to w hich packet A an d packet B, judge by P ACKET_ACTIVE bit. Packet that bit is set to 0 is bit that transfer now . In transmitting and rec eiving, logic of P ACKET_ACTI[...]

  • Страница 450

    TMP92CZ26A 92CZ26A-447 (c) Issuance of NULL packet If t ra n sm i tt in g NU L L pa ck e t, by i np u t L p u ls e fr om E Px _ EO PB s ig n al , d a ta o f 0 length is set to FIFO, and it can be transferred NULL packet to IN tok en. But if it set NULL data to FIFO, it is valid only case of SET signal is L level condition (case o f FIFO is empty). [...]

  • Страница 451

    TMP92CZ26A 92CZ26A-448 3.16.8 USB Device answer USB controller (UDC) sets vari ous register and initializat ion in UDC in detecting o f hardware reset, detectin g of US B bus reset, and enumeration answer . Below is explain ing a bout each conditio n. (1) Condition in detect in bus reset. When UDC detects bus reset o n USB signal line, it initializ[...]

  • Страница 452

    TMP92CZ26A 92CZ26A-449 ISO transfer mode Below is transfer conditi on of fram e before one. Recei vin g SOF renews this. OUT (RX) IN (TX) Initial READY READY Not transfer READY FULL Finish normally DATAIN READY Detect in error RXERR TXERR T ransfer mode of except ISO transfer This is result previous transfer . When transfer finish, this is renewed.[...]

  • Страница 453

    TMP92CZ26A 92CZ26A-450 3.16.9 Power Management USB controller (UDC) can be sw itche d from optional resume condition (turn on the power supply condition) to suspend (Suspen s ion ) condit ion, and it can be returned from suspends condition to turn on the power supply conditio n. This function can be set to low electricit y consump tion by operating[...]

  • Страница 454

    TMP92CZ26A 92CZ26A-451 (4) Low power consumption by control of CLK input si gna l When UDC switches to s uspend condition, it stops CLK and switches to low power consumption condition. But as system, th is function enable s besides low power consumption by stopping source of CLK th at is supplied from external. CLK that supply to UDC can be control[...]

  • Страница 455

    TMP92CZ26A 92CZ26A-452 3.16.10 Supplement (1) External access flow to USB communication a) Normally movement b) Stage error SETUP DATA0 ACK IN NAK DATA1 DATA0 DATA1 INT_SETUP INT_ ENDPOINT0 INT_STATUS REQUEST FLAG EP0 FIFO access Request access Setup Received access IN ACK IN ACK OUT ACK EOP register access Stage error SETUP DATA0 ACK IN NAK DATA1 [...]

  • Страница 456

    TMP92CZ26A 92CZ26A-453 (2) Register beginning value Register Name Beginning V alue OUTSIDE Reset Beginning V alue USB_RESET Register Name Beginning V alue OUTSIDE Reset Beginning V alue USB_RESET bmRequestType 0x00 0x00 INT control 0x00 0x00 bRequest 0x00 0x00 USBBUFF_TES T 0x00 Hold wValue_L 0x00 0x00 USB state 0x01 0x01 wValue_H 0x00 0x00 EPx_MOD[...]

  • Страница 457

    TMP92CZ26A 92CZ26A-454 (3) USB control flow chart (a) T ransaction for standard r equ est (Outline flowchart (Example)) USB interrupt Call USBINT0 function Judge Interrupt SETUP transaction ENDPOINT 0 transaction STATUS transaction STATUS NAK transaction ENDPOINT 1 transaction[...]

  • Страница 458

    TMP92CZ26A 92CZ26A-455 (b) Condition change Initialization transaction Turn on power supply Waiting USB interrupt condition Request transaction condition Receive USB token Transmit Request error/ S T ransaction error/ Transmit STALL Normal finish/No transaction[...]

  • Страница 459

    TMP92CZ26A 92CZ26A-456 (c) Device request and variou s request jud gment Start Get request data Judge Request End Standard request CLEAR_FEATURE SET_FEATURE GET_STATUS SET_ADDRESS SET_CONFIGURATION GET_CO NFIGURAT ION SET_INTERFACE GET_INTERFACE SYNCH_FRAME GET_DESCRIPTOR Class request * Error for not support Vendor request * Error for not support [...]

  • Страница 460

    TMP92CZ26A 92CZ26A-457 (c-1) CLEAR_FEA TURE re quest transaction Start End Is request right ? Finish transaction Error transaction No Yes Judge Recipient Device Disable remote wakeup setting Endpoint Clear stall setting[...]

  • Страница 461

    TMP92CZ26A 92CZ26A-458 (c-2) SET_FEA TURE request transaction Start End Is request right? Finish transaction Error transaction No Yes Judge Recipient Device Enable remote wakeup setting Endpoint Set stall[...]

  • Страница 462

    TMP92CZ26A 92CZ26A-459 (c-3) GET_ST A TUS request tra nsaction Start End Is request right? Finish transaction Error transaction No Yes Judge Recipient Interface Set 0 x 0 0 data of 2 bytes Endpoint Set stall information Device Set self power supply information[...]

  • Страница 463

    TMP92CZ26A 92CZ26A-460 (c-4) SET_CONFIGRA TION request transaction Start End Is request right ? Finish transaction Error transaction No Yes Is EP0 stall ? Is assignment value valid ? Is state valid ? Set assignment confi g uration value Clear stall flag No No No Yes Yes Yes[...]

  • Страница 464

    TMP92CZ26A 92CZ26A-461 (c-5) GET_CONFIGRA TION request transaction Set present configuraion value Start End Is request right? Finish transaction Error transaction No Is state valid? No Yes Yes[...]

  • Страница 465

    TMP92CZ26A 92CZ26A-462 (c-6) SET_INTERF ACE request transaction Start End Is request right? Finish transaction Error transaction No Yes Is EP0 stall? Is assignment value valid? Is state valid? Set each endpoint to assignmented configuration value. No No No Yes Yes Yes[...]

  • Страница 466

    TMP92CZ26A 92CZ26A-463 (c-7) SYNCH_FRAME requ est transaction Start End Is request right? Finish transaction Error transaction No Yes Is EP0 stall? Is assignment value valid? Is state valid? Set altrenate setting value to present transmitting data. No No No Yes Yes Yes[...]

  • Страница 467

    TMP92CZ26A 92CZ26A-464 (c-8) SYNCH_FRAME requ est transaction (c-9) SET_DESCRIPTOR request transaction Start End Is request right? Finish transaction Error t ransaction No Yes Start End Is request right? Finish transaction Error t ransaction No Yes[...]

  • Страница 468

    TMP92CZ26A 92CZ26A-465 (c-10) GET_DESCRIPTOR request transac tion Start End Is request right? Write information to FIFO[EP0_fifowrite ( )] Error transaction No Yes Is EP0 stall? Is assignment value valid? Is state valid? No No No Yes Yes Yes Stri ng Set string descriptor information. Config Set config descriptor information. Device Set device descr[...]

  • Страница 469

    TMP92CZ26A 92CZ26A-466 (c-1 1) Data read transaction to FIFO by EP0 Start End Is request right? No Yes Stage information = data stage STATUS_NAK interrupt enable Data read from FIFO All data number renew transfer address Read data from FIFO ST A TUS_NAK interrupt disable Stage information = stataus stage Finish transaction[...]

  • Страница 470

    TMP92CZ26A 92CZ26A-467 (c-12) Data write transaction to FIFO by EP0 Start End Is request right? No Yes Stage information = data stage STATUS_NAK interrupt enable Set data size to SIZE register All data number renew former transfer address Write data to FIFO STATUS_ NAK interrupt disable Stage information = status stage Finish transaction Write data[...]

  • Страница 471

    TMP92CZ26A 92CZ26A-468 (c-13) Beginning setting tran saction of microcontr oller (c-14) Begining setting transact ion of UDC Start Set Stack point Clear vRAM USB farm initialization[USB_INIT] Interrupt disable Set Various interrupt UDC initialization[UDC_INIT] Interrupt enable Main transaction[main ( )] Start End USBC reset transaction[...]

  • Страница 472

    TMP92CZ26A 92CZ26A-469 (c-15) Beginning transaction of USB farm changing number (c-16) Set DEVICE_ID data t o DEVICE_ID of UD C Start End Renew stage information Renew current information Renew support information Invalid EP except EP0 Various flag Intialization Start End Set DEVICE_ID data to DEVICE_ID_RAM area.[...]

  • Страница 473

    TMP92CZ26A 92CZ26A-470 (c-17) Descriptor data set transaction (c-18) USB interrupt transaction Start End Set descriptor data to DESC_RAM area. Start Judge Interrupt Read INT register End Judge Request transaction [STATUS_judge] Setup interrupt transaction [Proc_SETUPINT] Endpoint 0 interrupt [Proc_ ENDPOINT] Status _NAK interrupt [Proc_STATUSNAKINT[...]

  • Страница 474

    TMP92CZ26A 92CZ26A-471 (c-19) Dummy function for not using maska ble interrupts. • T ransaction per form s no thing, theref ore outline f l ow is skipping. (c-20) Request judgm ent transaction. If transaction result is error , it puts ST ALL command. (c-21) SETUP stage transaction Start End Is request right? No Yes Error transaction Start End Is [...]

  • Страница 475

    TMP92CZ26A 92CZ26A-472 (c-22) Perform endpoint 0 transaction in except for SETUP stage. (c-23) Status stage interrupt transaction Start End Judge Stage Others Error transaction Status stage Finish normally Data stage GET system request [EP0_fifowrite] SET system request [EP0_fiforead] Start End Status stage? Error transaction Normal finish transact[...]

  • Страница 476

    TMP92CZ26A 92CZ26A-473 (c-24) ST A TUS_NAK interrupt transaction (c-25) This transaction is n o transaction by US B transaction per form in interrupts. Start Start End Data stage? Error transaction Normal finish transaction No Yes[...]

  • Страница 477

    TMP92CZ26A 92CZ26A-474 (c-26) Getting descriptor inform ation (reration of stan dard request) Start End Is config within su pp ort? No Yes Get device information on descriptor Interface is within support in config present. No Yes Get config information on descriptor Get device information on descriptor Increment count to next config information[...]

  • Страница 478

    TMP92CZ26A 92CZ26A-475 3.16.11 Points to Note and Restrictions 1. Limitation of writin g to COMMAND r egister in special tim ing W he n “ S T A LL ” c o m ma n d i s i s su e d , E N D PO I N T status might be shift to “INV ALID”. T o avoid this problem, keep th e below routine. a. BULK (IN/OUT) In case issue ST ALL command t o e n d p o i [...]

  • Страница 479

    TMP92CZ26A 92CZ26A-476 3. When generating toggle er ror of devic e controller a. UDC operation If USB host fail to receive ACK transmitte d from UDC in OUT transfer , USB host transmits the same data to UDC again. When the FIFO is availa ble to receive, UDC detects toggle error because of de tecting the same data(havi ng the same toggle as the data[...]

  • Страница 480

    TMP92CZ26A 92CZ26A-477 3.17 SPIC (SPI Controller) SPIC is a Serial Peripheral Interface Cont roller that supports only master mode. It can be connected to SD card, MMC (Multi Media Card) etc. i n SPI mode. The features are as follow s; 1) 32 byte –FIFO (Transmit / Receive) 2) Generate CRC7 and C RC16 (Transmit / Receive data) 3) Baud Rate: 20Mbps[...]

  • Страница 481

    TMP92CZ26A 92CZ26A-478 3.17.1 Block diagram It shows block diagram and conn ect ion to SD card in Figure 3.17.1. Note1: SPCLK, SPCS , SPDO and SPDI pins are set to input port (Port PR3, PR2, PR1, PR0) by reset. These signals are needed pull-up resister to fix voltage leve l, could you adjust resist ance value for your final set. Note2: Please use g[...]

  • Страница 482

    TMP92CZ26A 92CZ26A-479 3.17.2 SFR SFR of SPIC are as follow s. T hese are a co nnected to CPU with 16 bit dat a bus. (1) SPIMD(SPI Mode setting register) SPIMD register is for ope r ati on m od e or clock etc. SPIMD Register 7 6 5 4 3 2 1 0 bit Symbol SWRST XEN CLKSEL2 CLKSEL1 CLKSEL0 Read/Write W R/W R/W After Reset 0 0 1 0 0 Function Software Res[...]

  • Страница 483

    TMP92CZ26A 92CZ26A-480 (c) <DOSTAT> Set the status of SPDO pin when data comm unication is not o perating (aft er transmitting or during receiving). Please don't change the setting of this re gist er when trans mitting/recei ving is in operation. (d) <TCPOL> Select the edge of synchr onous clock. Please change the setting when <[...]

  • Страница 484

    TMP92CZ26A 92CZ26A-481 (h) <SWRST> This bit is for Softwar e reset of transmit/rec eive FIFO point er. Write SPICT<TXE> to “0” at <XEN>="1", and stop transmitting. Af ter that, by writing <SWRST> to “1”, the read/write pointer of tr ans mit/receive F IFO are initializ ed. When writing SPICT<TXE> to ?[...]

  • Страница 485

    TMP92CZ26A 92CZ26A-482 (2) SPICT(SPI Control Register) SPICT register is for data length or C RC etc. SPICT Register 7 6 5 4 3 2 1 0 bit Symbol CEN SPCS_B UNIT16 TXMOD TXE FDPXE RXMOD RXE Read/Write R/W R/W R/W R/W R/W R/W After Reset 0 1 0 0 0 0 0 0 Function communication control 0: dis able 1: enable /SPCS pin 0: out p ut “0” 1: out p ut “1[...]

  • Страница 486

    TMP92CZ26A 92CZ26A-483 The process that calc ulating CRC16 of tr ansmits data and sending CRC ne xt to transmit data is explained as follows. (1) Set SPICT <CRC 16_7_B> to select CRC7 or CRC 16 and <CRCRX_TX_B> to se lect calculating data. (2) To reset SPICR regist er, writ e “1” after write< CRCRESET _B> to "0". (3)[...]

  • Страница 487

    TMP92CZ26A 92CZ26A-484 (d) <CEN> Select enable/disable of th e pin for SD card or MMC. When the card isn’t insert ed or no-power su pp ly to DVcc, penetrat ed current is flowed because SPDI pin bec omes floating. In addition, current is flowed to th e card because SPCS , SPCLK and SPDO pin outp ut “1”. This register can avoid these m at[...]

  • Страница 488

    TMP92CZ26A 92CZ26A-485 (k) <RXE> In UNIT receive mode, recei ves onl y 1 UNIT data b y writing “1”. When reading rec eive data register (S PIRD) with t he condition “1”, rec eives one tim e additionally. In sequential mod e, receiving is kept sequ entially until F IFO becomes fu ll by writing “1”. During receivin g, it is possible[...]

  • Страница 489

    TMP92CZ26A 92CZ26A-486 Difference points betw een UNIT transmission a nd Sequential transmission UNIT transmit mode ca n be select ed by writing SPICT < T X M OD>= “0”. The transmit FIFO is invalid in UNIT t ransmit mode. The UNIT transmit starts when writing UNIT data with the condit ion SPICT<TXE>= “1 ” or wr iting SPICT<T [...]

  • Страница 490

    TMP92CZ26A 92CZ26A-487 Difference points be tw een UNIT receive and S equential rec ei ve UNIT receive is the mode that receiv ing only 1 UNIT data. U NIT receive mode can be selected by writing SPICT <RXMOD>= “0”. The receive F IFO is invalid in the UNIT receive mode. By writ ing SPICT<RX E>= “1”, receives 1UNIT data, loads rec[...]

  • Страница 491

    TMP92CZ26A 92CZ26A-488 Transmit/Receive When transmitting or r eceiving, write <FDP X E>= “1” Writing <FDPXE>= “ 1” first, and SPICT<RXE>= “1” and keep waitin g state for start ing UNIT receiving. When writing SPICT<RXE>= “1”after <ALGNEN>= “1”, receiving does not start right away. This is beca use [...]

  • Страница 492

    TMP92CZ26A 92CZ26A-489 (3) Interrupt In INTC (interrupt c ontroller), interrupt is di vided roughly into 2 kinds; transmit interrupt (INTSPITX) and rec e iv e i nterrupt (INTSPIRX ). Besides in this SPI circuit, t here are 4 kinds of interrupts; 2 transmit interrupts 2 rec eive int errupts. ・ Transmit interrupt TEMP (Empty i nterrupt of transmit [...]

  • Страница 493

    TMP92CZ26A 92CZ26A-490 (3-1) SPIST (SPI Status Reg ister ) SPIST shows 4 statuses. SPIST Register 7 6 5 4 3 2 1 0 bit Symbol TEMP TEND REND Read/Write R R After reset 1 1 0 Function Transmit FIFO Status 0: no space 1: having space Transmit Status 0: during transmission or having transmission data 1: finish Receive Status 0: during receiving or not [...]

  • Страница 494

    TMP92CZ26A 92CZ26A-491 (3-2) SPIIE(SPI Interrupt Enable Register ) SPIIE register is for enable 4 i nterr upts. SPIIE Register 7 6 5 4 3 2 1 0 bit Symbol TEMPIE RFULIE TENDIE RENDIE Read/Write R/W After Reset 0 0 0 0 Function TEMP interrupt 0:enable 1:disable RFUL interrupt 0:enable 1:disable TEND interrupt 0:enable 1:disable REND interrupt 0:enabl[...]

  • Страница 495

    TMP92CZ26A 92CZ26A-492 (4) SPICR (SPI CRC Regist er) CRC result of Transmit/Receive data is set to SPICR register. SPICR Register 7 6 5 4 3 2 1 0 bit Symbol CRCD7 CRCD6 CRCD5 CRCD4 CRCD3 CRCD2 CRCD1 CRCD0 Read/Write R After Reset 0 0 0 0 0 0 0 0 Function CRC result register [7:0] 15 14 13 12 11 10 9 8 bit Symbol CRCD15 CRCD14 CRCD13 CRCD12 CRCD11 C[...]

  • Страница 496

    TMP92CZ26A 92CZ26A-493 (5) SPITD (SPI Transmit Data Register) SPITD0, SPITD1 registers are for writing transmit ted d ata. SPITD0 Register 7 6 5 4 3 2 1 0 bit Symbol TXD7 TXD6 TXD5 TXD4 TXD3 TXD2 TXD1 TXD0 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Transmit data re gister [7:0] 15 14 13 12 11 10 9 8 bit Symbol TXD15 TXD14 TXD13 TXD12 TXD11[...]

  • Страница 497

    TMP92CZ26A 92CZ26A-494 (6) SPIRD (SPI Receiv e Dat a Register) SPIRD0, SPIRD1 registers are for reading received data. SPIRD0 Register 7 6 5 4 3 2 1 0 bit Symbol RXD7 RXD6 RXD5 RXD4 RXD3 RXD2 RXD1 RXD0 Read/Write R After reset 0 0 0 0 0 0 0 0 Function Receive data register [7:0] 15 14 13 12 11 10 9 8 bit Symbol RXD15 RXD14 RXD13 RXD12 RXD11 RXD10 R[...]

  • Страница 498

    TMP92CZ26A 92CZ26A-495 • Note of FIFO buffer There are followin g not es in this SPIC. 1) Transmit ・ Data is overwritten if write data with cond ition transmit FIF O buffer is FULL. Interrupt and transmission are not executed nor mally becau se write-po inter in FIFO becomes abnormal c ondition. Theref or e, manage number o f writing by using s[...]

  • Страница 499

    TMP92CZ26A 92CZ26A-496 3.18 I 2 S (Inter-IC Sound) The TMP92CZ26A incorpora tes serial output circ uitry that is compliant with the I 2 S format. This function enables the TMP92CZ26A to be used for digital audio system s by connecting an LSI for audio output such as a DA converter. The I 2 S unit has the following features: Table 3.18.1 I 2 S Opera[...]

  • Страница 500

    TMP92CZ26A 92CZ26A-497 3.18.1 Block Diagram The I 2 S unit contains two channels: channel 0 and ch annel 1. Each channel can be controlled and made to outpu t indepe ndently . Figure 3.18.1 shows a block diagram for I 2 S channel 0. Figure 3.18.1 I 2 S Block Diagram f SYS I2SCKO Control I2S0CTL <EDGE0,TXE0,I2SCLKE0> I2S0CKO I2SWS Control I2S0[...]

  • Страница 501

    TMP92CZ26A 92CZ26A-498 3.18.2 SFRs The I 2 S unit is provided with the follow ing registers. These reg isters are connected to the CPU via a 32-bit data bus. The transmission buffers I2S0BUF and I 2S1BUF must be ac cessed using 4-byte load instruc t ions. I2S0 Control Register 7 6 5 4 3 2 1 0 bit Symbol TXE0 *CNTE0 DIR0 BIT0 DTFMT01 DTFMT00 SYSCKE0[...]

  • Страница 502

    TMP92CZ26A 92CZ26A-499 I2S1 Control Register 7 6 5 4 3 2 1 0 bit Symbol TXE1 *CNTE1 DIR1 BIT1 DTFMT11 DTFM T10 S YSCKE1 Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function Transmission 0: Stop 1: Start Counter control 0: Clear 1: Start Transmission start bit 0: MSB 1: LSB Bit length 0: 8 bits 1:16 bits Output format 00: I 2 S [...]

  • Страница 503

    TMP92CZ26A 92CZ26A-500 3.18.3 Description of Operation (1) Settings the transfer clock gen erator and Word Select signal In the I 2 S unit, the clock frequencie s for the I2SnCKO and I2SnWS signals are generated using the system clock ( f SYS ) as a source clock. The sy stem clock is divided by a prescaler and a dedicated clock generator to set the[...]

  • Страница 504

    TMP92CZ26A 92CZ26A-501 Figure 3.18.4 Output Format LSB MSB LSB MSB LSB MSB I2SnWS LSB MSB LSB MSB LSB Valid data Valid Data Valid Data Valid Data MSB LSB MSB LSB MSB Left justify I2SnDO Stereo Valid Data Valid Data Right Data Left Data Right justify I2SnDO Stereo I2S format I2SnDO Stereo I2SnCKO LSB MSB LSB Valid Data Monaural LSB MSB LSB MSB Valid[...]

  • Страница 505

    TMP92CZ26A 92CZ26A-502 (2) Setting example for the clock generat o r (8-bit count er/6-bit counter) The clock generator gene rates the reference clock for setting th e data transfer speed and sampli ng freque ncy. 7 6 5 4 3 2 1 0 bit Symbol CK07 CK06 CK 05 CK04 CK03 CK02 CK01 CK00 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0[...]

  • Страница 506

    TMP92CZ26A 92CZ26A-503 Note 1: The value to be s et in I2SnC<WSn5:0> must be 16 or larger (18 or larger for I2S tra nsfer) when the data length is 8 bits and 32 or larger (34 or larger for I2S transfer) when the data length is 16 bits. Note 2: It is recommended that the value to be set in I2SnC<WSn5:0> be an even number. Although it i s[...]

  • Страница 507

    TMP92CZ26A 92CZ26A-504 The following shows how written data is output under various conditions. When I2SnCTL<WLVLn> = 0 When I2SnCTL<WLVLn> = 1 Note: In case of using monaural setting, and change ri ght / left: I2SnCTL<WLVLn>, data output order change off 1'st data and 2'nd data. I2SnBUF register 31 30 29 28 27 26 25 24 [...]

  • Страница 508

    TMP92CZ26A 92CZ26A-505 3.18.4 Detailed Description of Operation (1) Connection example Figure 3.18.5 shows an example of conn ections between the TMP92CZ26 A and an external LSI (DA converter) using ch annel 0. Note: After reset, PF0 to PF2 are placed in a high-impedance st ate. Connect each pin with a pull-up or pull-down resistor as necessary. Fi[...]

  • Страница 509

    TMP92CZ26A 92CZ26A-506 Figure 3.18.6 Timing Diagrams (I2S FMT/Stereo/16bi t/MSB first) (3) Considerations for using t he I 2 S unit 1) INTI2Sn generation timing Every 4bytes data trance from FIF O buffer to shift register per one tim e. An INTI2Sn interrupt is generated under two co nditions. One is when ther e are 64 bytes of empt y space in t he [...]

  • Страница 510

    TMP92CZ26A 92CZ26A-507 immediately. At the same time, the read and write pointers of the FIFO, the data in the output shift r egister and th e clock gener ator are all cl eared. (How ever, when I2SnCTL<CNTEn>=1, the clock generator is no t cleared. To clear the clock generator, I2SnCTL<CNTEn> must be set to “0”). Theref ore, if tran[...]

  • Страница 511

    TMP92CZ26A 92CZ26A-508 3.19 LCD Controller (LCDC) The TMP92CZ26A incorporates an LCD contro ller (LCDC) for controlling an LCD driver LSI (LCD module). This LCDC supports disp lay sizes from 64 × 64 to 640 × 480 dots for monochrome, grayscale, and 4096-color display and from 64 × 64 to 320 × 320 dots for color display using 65536 or more colors[...]

  • Страница 512

    TMP92CZ26A 92CZ26A-509 3.19.1 LCDC Features according to LCD Driver T ype T able 3.19.1 LCDC Features according to LCD Driver T ype (This table assumes the connection with a TOSHIBA-made LCD driver .) Shift Register T ype LCD Driver TFT STN Display co lors 256 /4096/655 36/262144 /16777216 c o lors Monochrome, 4/16/64 grayscale lev els 256/4096 col[...]

  • Страница 513

    TMP92CZ26A 92CZ26A-510 3.19.2 SFRs LCDMODE0 Register 7 6 5 4 3 2 1 0 bit Symbol RAMTYPE1 RAMTYPE0 SCPW1 SCPW0 MODE3 MODE2 MODE1 MODE0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 1 1 0 0 0 0 Function Display RAM 00: Internal RAM 01: External SRAM 10: SDRAM 11: Reserved LD bus transfer speed SCPW2= 0 00: 2-clk 01: 4-clk 10: 8-clk 1 1: [...]

  • Страница 514

    TMP92CZ26A 92CZ26A-51 1 LCD Control 0 Register 7 6 5 4 3 2 1 0 bit Symbol PIPE ALL0 FRM ON – DLS LCP0OC START Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function PIP function 0:Disable 1:Enable Segment data 0: Normal 1: Always output “0” FR divide setting 0: Disable 1: Enable Always write “0” FR signal LCP0/Line sele[...]

  • Страница 515

    TMP92CZ26A 92CZ26A-512 LCD LHSYNC Pulse Register 7 6 5 4 3 2 1 0 bit Symbol LH7 LH6 LH5 LH4 LH3 LH2 LH1 LH0 Read/Write W After reset 0 0 0 0 0 0 0 0 Function LHSYNC period (bits 7–0) 7 6 5 4 3 2 1 0 bit Symbol LH15 LH14 LH13 LH12 LH11 LH10 LH9 LH8 Read/Write W After reset 0 0 0 0 0 0 0 0 Function LHS YNC period (bits 15-8) LCD V SYNC Pulse Regist[...]

  • Страница 516

    TMP92CZ26A 92CZ26A-513 7 6 5 4 3 2 1 0 bit Symbol HSD6 HSD5 HSD4 HSD3 HSD2 HSD1 HSD0 Read/Write W After reset 0 0 0 0 0 0 0 Function LHSYNC delay (bits 6-0) 7 6 5 4 3 2 1 0 bit Symbol PDT LDD6 LDD5 LDD4 LDD3 LDD2 LDD1 LDD0 Read/Write R/W W After reset 0 0 0 0 0 0 0 0 Function Data output timing 0: Sync with LLOAD 1: 1 clock later than LLOAD LLOAD d[...]

  • Страница 517

    TMP92CZ26A 92CZ26A-514 7 6 5 4 3 2 1 0 bit Symbol HSW7 HSW6 HSW5 HSW4 HSW3 HSW2 HSW1 HSW0 Read/Write W After reset 0 0 0 0 0 0 0 0 Function LHSYNC width (bits 7-0) 7 6 5 4 3 2 1 0 bit Symbol LDW7 LDW6 LDW5 LDW4 LDW3 LDW2 LDW1 LDW0 Read/Write W After reset 0 0 0 0 0 0 0 0 Function LLOAD width (bits 7-0) 7 6 5 4 3 2 1 0 bit Symbol O0W7 O0W6 O0W5 O0W4[...]

  • Страница 518

    TMP92CZ26A 92CZ26A-515 LCD Main Area S tart Address Register 7 6 5 4 3 2 1 0 bit Symbol LMSA7 LMSA6 LMSA5 LMSA4 LMSA3 LMSA2 LMSA1 Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function LCD main area start address (A7-A1) 7 6 5 4 3 2 1 0 bit Symbol LMSA15 LMSA14 LMSA13 LMSA12 LMSA11 LMSA10 LMSA9 LMSA8 Read/Write R/W R/W R/W R/W R/[...]

  • Страница 519

    TMP92CZ26A 92CZ26A-516 LCD Sub Area H OT Point Register (X-dir) 7 6 5 4 3 2 1 0 bit Symbol SAHX7 SAHX6 SAHX5 SAHX4 SAHX3 SAHX2 SAHX1 SAHX0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Function LCD sub area HOT point (7-0) 7 6 5 4 3 2 1 0 bit Symbol SAHX9 SAHX8 Read/Write R/W R/W After reset 0 0 Function LCD sub area HOT po[...]

  • Страница 520

    TMP92CZ26A 92CZ26A-517 3.19.3 Description of Operation 3.19.3.1 Outline After the required settings such as the operation mod e, display data memory address, color mode, and LCD size are specified, the start register is set to start the LCDC operation. The LCDC issues a bus request to the CPU. When the bus is granted, the LCDC reads data of the dis[...]

  • Страница 521

    TMP92CZ26A 92CZ26A-518 3.19.3.3 Basic Operation The following diagram shows the basic timi ngs of the wavefo rms gene rated by the LCDC and adjustable elements. The adjustable elements for each signal includ e enable time, phase, and delay time. The signals used and their connecti ons and settings vary with the LCD driver type (STN/TFT) and specifi[...]

  • Страница 522

    TMP92CZ26A 92CZ26A-519 3.19.3.4 Reference Clock LCP0 LCP0 is used as the reference cl oc k for all the signals in the LCDC. This section explains how to set the fr equency (period) of the LCP0 signal. The LCP0 clock sp eed (LD bus transfer spe ed) is determined by selecting TFT or STN and setting LCDMODE0<SCPW1:0> and LCDMODE1<SWPW2>. T[...]

  • Страница 523

    TMP92CZ26A 92CZ26A-520 LCP0 Setting Range T abl e Conditions f SYS : 60 MHz Display size (color) : up to 320 × 320 Display size (monoc hrome/grayscale) : up to 640 × 480 Note: This table shows the range of LCP0 settings t hat can be made under the conditions shown above. If the CPU clock speed, display size, or refresh ra te is changed, the LCP0 [...]

  • Страница 524

    TMP92CZ26A 92CZ26A-521 Example 1: When f SYS = 10 MHz, STN mode, LCDMODE0<SCPW1:0> = 01 Internal referenc e clock LCP0 = f SYS / 8 = 10 MHz / 8 = 1.25 [MHz] LCP0 period = 1 / 1.25 [MHz] = 0. 8 [ μ S] Example 2: when f SYS = 60 MHz, TFT mode, LCDMODE0<SCPW1:0> = 1 1 Internal reference clock LCP0 = f SYS / 16 = 60 MHz / 16 = 3.75 [MHz] L[...]

  • Страница 525

    TMP92CZ26A 92CZ26A-522 LCDCTL0 <LCP0OC> is used to control the output timing of the LCP0 signal. When <LCP0OC>=0, the LCP0 signal is alwa ys output. When <LCP 0OC>=1, the LCP0 signal is output only when valid data is output. LCD Control 0 Register 7 6 5 4 3 2 1 0 bit Symbol PIPE ALL0 FRMON – DLS LCP0OC START Read/Write R/W R/W R[...]

  • Страница 526

    TMP92CZ26A 92CZ26A-523 3.19.3.5 Refresh Rat e The period of the horizontal synch ronization signal LHSYNC is defined as the product of the value set in LCDHSP<LH15:0> and the LCP0 clock p eriod. The value to be set in LCDHSP<LH15:0> is obtained as follows: TFT Segment size + number of dummy clocks (*) STN Monochrome/grayscale : (Segment[...]

  • Страница 527

    TMP92CZ26A 92CZ26A-524 • Insertion of dummy clocks The above is a conceptual diagram showin g the data (LD23-0), shift clock (LCP0), horizontal synchronization signal (LHSYN C), and vertical synchroni zation signal (L VSYNC) on the LCD panel. The front porch and back porch as shown above should be taken into consideration in setting LCDHSP<LH1[...]

  • Страница 528

    TMP92CZ26A 92CZ26A-525 • Setting method The front dummy LHSYNC (vertical front po rch) not accompanied by valid data in the total of LHSYNC p eriod in the L VSYNC period is d efined by the value set in LCDPR VSP<PL V6:0>. Front dummy LHSYNC (vertical front porch) = <PL V6:0> The back dummy LHSYNC (vertical back porch) is define d as f[...]

  • Страница 529

    TMP92CZ26A 92CZ26A-526 3.19.3.6 Signal Settings The above diagram shows the typical timings of the signals controlled by the LCDC. This section explains how to c ontrol each of these signals. LCP0 signal LD23-LD0 signal LCP0 signal Signal Name LDINV signal L VSYNC signal LHSYNC signal FR signal LLOAD signal LLOAD signal LGOEn signal Fron t dummy LH[...]

  • Страница 530

    TMP92CZ26A 92CZ26A-527 1. L VSYNC Signal The period of the vertical synchronization signal L VSYNC indicates the time for each scr een upda te ( re fres h ra te) . Th e L V SYN C pe riod is de fin ed a s an int egr al mu lti ple of the period of the h orizontal synchronization signal LHSYNC. The L VSYNC period is calculated as the product of the va[...]

  • Страница 531

    TMP92CZ26A 92CZ26A-528 2. LHSYNC Signal The period of the horizontal synchronizati on signal LHSYNC corresponds to one line of display . The LHSYNC period is defined as an integral multiple of the reference clock signal LCP0. The LHSYNC period is defined as the prod uct of the value set in LC DHSP<LH15:0 > and the LCP0 clock period . The valu[...]

  • Страница 532

    TMP92CZ26A 92CZ26A-529 The enable width of the LHSYNC si gnal is set using LCDHSW<HSW8:0>. It can be specified in a range of 1 to 512 pulses of the LCP0 clock. The enable width is represent ed by the following equation: Enable width = <HSW8:0> + 1 Thus, when LCDHSW<HSW8:0> is set to “0”, the enable width is set as one pulse of[...]

  • Страница 533

    TMP92CZ26A 92CZ26A-530 As shown in the diagram below , delay time of 0 to 127 pulses of the LCP0 clock can be inserted in the LHSYNC signal. Delay time = <HSD6:0> LCDHSDL Y Register 7 6 5 4 3 2 1 0 bit Symbol HSD6 HSD5 HSD4 HSD3 HSD2 HSD1 HSD0 Read/Write W After reset 0 0 0 0 0 0 0 Function LHSYNC delay (bits 6-0) The phase of the LHS YNC sig[...]

  • Страница 534

    TMP92CZ26A 92CZ26A-531 3. LLOAD Signal The LLOAD signal is used to control the timing for th e LCD driver to r eceive display data. The period of the L LOA D signal synchro nizes to on e line of display . It is defined as an integral multiple of the reference clock LCP0. The LHSYNC signal and LLOAD signal differs in that the LHSYNC signal is output[...]

  • Страница 535

    TMP92CZ26A 92CZ26A-532 The number of pulses in the front dummy LHSY NC (verti cal front porch) is spe cified by LCDPR VSP<PL V6:0>. This delay time can be set in a range of 0 to 1 27 pulses of the LCP0 clock. Front dummy LHSYNC = <PL V6:0> LCD L VSYNC Pre Pulse Register 7 6 5 4 3 2 1 0 bit Symbol PLV6 PLV5 PLV4 PLV3 PLV2 PLV1 PLV0 Read/[...]

  • Страница 536

    TMP92CZ26A 92CZ26A-533 The enable width of the LLOAD signal is specified using LCDLDW<LDW9:0>. It can be set in a range of 0 to 1024 pulses of the LCP0 clock. The actual enable width is determined depending on the LCDLDDL Y<PDT> setting, as shown below . Enable width = <LDW9:0> + 1 (when <PDT> = 1, <LDW9:0>=0 is prohib[...]

  • Страница 537

    TMP92CZ26A 92CZ26A-534 As shown in the diagram below , delay time of 0 to 127 pulses of the LCP0 clock can be inserted in the LLOAD signal. Delay time = <LDD6:0> Note: The delay time for the LLOAD signal is cont rolled based on LCDLDDL Y<PDT>=1. Therefore, even if the delay time is set to”0” with LCDLDDL Y<PDT>=0, the LLOAD si[...]

  • Страница 538

    TMP92CZ26A 92CZ26A-535 4. LGOE0 to LGOE2 Signals The LCDC has three signals (LGOE0 to LG OE2) that can be controlled like the LHSYNC signal. For these signals, the enable w idth, delay time, and phase timing can be adjusted as shown below . 7 6 5 4 3 2 1 0 bit Symbol O0W7 O0W6 O0W5 O0W4 O0W3 O0W2 O0W1 O0W 0 Read/Write W After reset 0 0 0 0 0 0 0 0 [...]

  • Страница 539

    TMP92CZ26A 92CZ26A-536 7 6 5 4 3 2 1 0 bit Symbol OE0D6 OE0D5 OE 0D4 OE0D3 OE0D2 OE0D1 OE0D0 Read/Write W After reset 0 0 0 0 0 0 0 Function OE0 delay (bits 6-0) 7 6 5 4 3 2 1 0 bit Symbol OE1D6 OE1D5 OE1 D4 OE1D3 OE1D2 OE1D1 OE1D0 Read/Write W After reset 0 0 0 0 0 0 0 Function OE1 delay (bits 6-0) 7 6 5 4 3 2 1 0 bit Symbol OE2D6 OE2D5 OE 2D4 OE2[...]

  • Страница 540

    TMP92CZ26A 92CZ26A-537 LCD Control 2 Register 7 6 5 4 3 2 1 0 bit Symbol LGOE2P LG OE1P LGOE0P Read/Write R/W R/W R/W After reset 0 0 0 Function LGOE2 phase 0: Rising 1: Falling LGOE1 phase 0: Rising 1: Falling LGOE0 phase 0: Rising 1: Falling (Phase control) LGOEnP=0 LGOEnP=1 LGOEn signal LCDCTL2 (0287H)[...]

  • Страница 541

    TMP92CZ26A 92CZ26A-538 5. LFR Signal The LFR (frame) signal is used to co ntrol the direction of bias the LCD driver app lies on liquid crystal cells. W ith small screens in monochrome mode, the polarity of the LFR signal is normally inverted in synchroniza tion with each screen display . With large screens or when grayscale o r color mode is us ed[...]

  • Страница 542

    TMP92CZ26A 92CZ26A-539 When LCDCTL0<FRMON>=1 and LCDCTL0<DLS >=1, frame output is inverted at intervals set in LCDDVM0<FML3:0> and the LFR signal is inverted at intervals of “LCP0 × M”. The “M” value is specified in LCDDVM0<FMP7:4>. When <DLS>="1" LFR signal synchronous with front edge of LHSYNC sign[...]

  • Страница 543

    TMP92CZ26A 92CZ26A-540 LCD Control 0 Register 7 6 5 4 3 2 1 0 bit Symbol PIPE ALL0 FRM ON – DLS LCP0OC START Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function PIP function 0:Disable 1:Enable Segment data setting 0: Normal 1: Always output “0” Frame divide setting 0: Disable 1: Enable Always write “0” LFR signal LCP[...]

  • Страница 544

    TMP92CZ26A 92CZ26A-541 6. LD Bus The data to be transferred to the LCD driv er is output via a dedicated bus (LD23 to LD0). The output format can be s elected according to the inpu t method of the LCD driver to be used. The LCDC reads data of the size corresponding to th e specified LCD siz e from the display RAM and transfers it to the external LC[...]

  • Страница 545

    TMP92CZ26A 92CZ26A-542 • Memory Map Image and Data Output in Each Display Mode STN monochrome (1-pixel display data = 1-bit memory data) Display Memory LD Bus Output 8-bit type LD0 0 → 8 … LD1 1 → 9 … LD2 2 → 10 … LD3 3 → 11 … LD4 4 → 12 … LD5 5 → 13 … LD6 6 → 14 … LD7 7 → 15 … Note: When setting 240 segment, 256 s[...]

  • Страница 546

    TMP92CZ26A 92CZ26A-543 STN 16-grayscale (1-pixel display data = 4-bit memory data) Display Memory LD Bus Output 8-bit type LD0 3-0 → 35-32 … LD1 7-4 → 39-36 … LD2 1 1-8 → 43-40 … LD3 15-12 → 47-44 … LD4 19-16 → 51-48 … LD5 23-20 → 55-52 … LD6 27-24 → 59-56 … LD7 31-28 → 63-60 … Figure 3.19.3 Memory Map Image and Data[...]

  • Страница 547

    TMP92CZ26A 92CZ26A-544 STN 64-grayscale (1-pixel display data = 6-bit memory data) Display Memory LD Bus Output 8-bit type LD0 5-0 → 53-48 LD1 1 1-6 → 59-54 LD2 17-12 → 65-60 LD3 23-18 → 71-66 LD4 29-24 → 77-72 LD5 35-30 → 83-78 LD6 41-36 → 89-84 LD7 47-42 → 95-90 Figure 3.19.4 Memory Map Image and Data Output in STN 64-Grayscale Mo[...]

  • Страница 548

    TMP92CZ26A 92CZ26A-545 STN 256-color (1-pixel display data = 8-bit memo ry data (R: 3 bits, G: 3 bit s, B: 2 bits)) Display Memory LD Bus Output 8-bit type LD0 2-0(R0) → 23-22(B2) … LD1 5-3(G0) → 26-24(R3) … LD2 7-6(B0) → 29-27(G3) … LD3 10-8(R1) → 31-30(B3) … LD4 13-1 1(G1) → 34-32( R4) … LD5 15-14(B1) → 37-35(G4) … LD6 18-[...]

  • Страница 549

    TMP92CZ26A 92CZ26A-546 STN 4096-color (12 bpp: R: 4 bits, G: 4 bits, B: 4 bits) Display Memory LD Bus Output 8-bit type LD0 3-0(R0) → 35-32(B2) … LD1 7-4(G0) → 39-36(R3) … LD2 1 1-8(B0) → 43-40(G 3) … LD3 15-12(R1) → 47-44(B3 ) … LD4 19-16(G1) → 51-48(R4) … LD5 23-20(B1) → 55-52(G4) … LD6 27-24(R2) → 59-56(B4 ) … LD7 31-[...]

  • Страница 550

    TMP92CZ26A 92CZ26A-547 TFT 256-color (1-pixel display data = 8-bit memo ry dat a (R: 3 bits, G: 3 bits, B: 2 bits) Display Memory 12bit (TFT) LD0 0(R0) → 12(R1) … LD1 1(R0) → 13(R1) … LD2 2(R0) → 14(R1) … LD3 3(G0) → 15(G1) … LD4 4(G0) → 16(G1) … LD5 5(G0) → 17(G1) … LD6 6(B0) → 18(B1) … LD7 7(B0) → 19(B1) … Figure 3[...]

  • Страница 551

    TMP92CZ26A 92CZ26A-548 TFT 4096-color (1-pixel display data = 12-bit memo ry data (R: 4 bits, G: 4 bit s, B: 4 bit s) Display Memory 12-bit TFT LD0 0(R0) → 12(R1) … LD1 1(R0) → 13(R1) … LD2 2(R0) → 14(R1) … LD3 3(R0) → 15(R1) … LD4 4(G0) → 16(G1) … LD5 5(G0) → 17(G1) … LD6 6(G0) → 18(G1) … LD7 7(G0) → 19(G1) … LD8 8([...]

  • Страница 552

    TMP92CZ26A 92CZ26A-549 TFT 65536-color (16 bpp: R: 5 bits, G: 6 bit s, B: 5 bits) Display Memory 16-bit TFT LD0 0(R0) → 16(R1) … LD1 1(R0) → 17(R1) … LD2 2(R0) → 18(R1) … LD3 3(R0) → 19(R1) … LD4 4(R0) → 20(R1) … LD5 5(G0) → 21(G1) … LD6 6(G0) → 22(G1) … LD7 7(G0) → 23(G1) … LD8 8(G0) → 24(G1) … LD9 9(G0) → 25([...]

  • Страница 553

    TMP92CZ26A 92CZ26A-550 TFT 262144-/16777216-color (24 bpp: R: 8 bits, G: 8 bits, B: 8 bit s) Display Memory 24-bit TFT 18-bit TFT LD18 0(R0) → 24(R1) … LD19 1(R0) → 25(R1) … LD0 2(R0) → 26(R1) … LD0 2(R0) → 26(R1) … LD1 3(R0) → 27(R1) … LD1 3(R0) → 27(R1) … LD2 4(R0) → 28(R1) … LD2 4(R0) → 28(R1) … LD3 5(R0) → 29(R[...]

  • Страница 554

    TMP92CZ26A 92CZ26A-551 7. LDIV Signal The <LDINV> and <AUTOINV> bits of the LCDMODE1 register are used to control the LDIV signal as well as data output. The LDIV signal indicates the inversion of all the LD bus signals. When LCDMODE1<LDINV>=1, all display data is forcefully inverted and the LDIV signal is also driven high. When L[...]

  • Страница 555

    TMP92CZ26A 92CZ26A-552 3.19.4 Interrupt Function The LCDC has two types of inte rrupts. One is generated synchronous with the LL OAD signal and the other is generate d synchronous with the LLOAD signal that is output immediately after the L VSYNC signal. LCDMODE1<INTMODE> is used to switch be tween th ese two types of i nterrupts. When LCDMOD[...]

  • Страница 556

    TMP92CZ26A 92CZ26A-553 3.19.5 S pecial Functions 3.19.5.1 PIP (Picture in Picture) Function The TMP92CZ26A includes a PIP (Picture in Picture) function that allows a different screen to be disp layed over the screen currently being displayed on the LCD. The PIP function manag es the address space of display memory by dividing it into “main screen[...]

  • Страница 557

    TMP92CZ26A 92CZ26A-554 The table be low shows the HOT point locations that can be specified. *VRAM Access HOT_Point( Y_dir) HOT_Point(X_dir) 16bit In units of 16 dots Monochrome display 32bit In units of 32 dots 16bit In units of 8 dots 4-grayscale display 32bit In units of 16 dot s 16bit In units of 4 dots 16-grayscale display 32bit In units of 8 [...]

  • Страница 558

    TMP92CZ26A 92CZ26A-555 LCD Main Area S tart Address Register 7 6 5 4 3 2 1 0 bit Symbol LMSA7 LMSA6 LMSA5 LMSA4 LMSA3 LMSA2 LMSA1 Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 Function LCD main area start address (A7-A0) 7 6 5 4 3 2 1 0 bit Symbol LMSA15 LMSA14 LMSA13 LMSA12 LMSA11 LMSA10 LMSA9 LMSA8 Read/Write R/W R/W R/W R/W R/[...]

  • Страница 559

    TMP92CZ26A 92CZ26A-556 LCD Sub Area H OT Point Register (X-dir) 7 6 5 4 3 2 1 0 bit Symbol SAH7 SAH6 SAH5 SAH4 SAH3 SAH2 SAH1 SAH0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Function LCD sub area HOT point (7-0) 7 6 5 4 3 2 1 0 bit Symbol SAH9 SAH8 Read/Write R/W R/W After reset 0 0 Function LCD sub area HOT point (9-8) [...]

  • Страница 560

    TMP92CZ26A 92CZ26A-557 LCD Sub Area Display Common S ize Register 7 6 5 4 3 2 1 0 bit Symbol SAC7 SAC6 SAC5 SAC4 SAC3 SAC2 SAC1 SAC0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Function LCD sub area common size (7-0) 7 6 5 4 3 2 1 0 bit Symbol SAC8 Read/Write R/W After reset 0 Function LCD sub area common size (8) Note: T[...]

  • Страница 561

    TMP92CZ26A 92CZ26A-558 3.19.5.2 Display Data Rotation Function When display RAM data is output to th e LCD driver (LCDD), the data output direction can be automatically rotated by ha rd ware to meet the specifications of the LCDD (or LCD module) to be used. T able 3.19.2 Operation Conditions Item V ertical/Horizontal Flip F unction 90-Degree Rotati[...]

  • Страница 562

    TMP92CZ26A 92CZ26A-559 the need to rewrite the display RAM data. 2. 90-Degree Rotation Function Display RAM Image (QVGA 320 × 24 0) QVGA (320 × 240) Portrait-type QVGA (240 × 320) (when this function is used) The display RAM image above shows typical data of QVGA size (320 segments × 240 commons: landscape type). If the LC DD to be used is of l[...]

  • Страница 563

    TMP92CZ26A 92CZ26A-560 3. Setting Method The <LDC2:0> bits in the LCDMODE1 register are used to set the display data rotation function. LCDMODE1 Register 7 6 5 4 3 2 1 0 bit Symbol LDC2 LDC1 LDC0 LDINV AUTOINV INTMODE FREDGE SCPW2 Read/Write R/W R/W R/W R/W R/W R/W W W After reset 0 0 0 0 0 0 0 0 Function Data rotation function (Supported for[...]

  • Страница 564

    TMP92CZ26A 92CZ26A-561 3.19.5.3 Considerations for Using the LCDC 1 . If the operation mode is changed while the LCDC is operating, a maximum of one frame may not be displayed properly . Although this degree of disturbance does not normally pose any pro blem (e .g. no response on LCD, display not visible to human eyes), the actual op eration larg[...]

  • Страница 565

    TMP92CZ26A 92CZ26A-562 3.19.6 Setting Example • STN COM001 COM240 SEG001 SEG240 240C O M × 240SEG LCD ( M onochr om e Panel ) O24 0 O001 O001 O240 LCP0 LHSYN C LFR LD7 ∼ LD0 SCP LP FR /D S P O F LP FR EI O1 EIO2 open DIR VDD S/C VDD VSS VSS TEST DUAL VCCLR ,V0LR,V2LR, VSSLR,V3LR ,V5LR LV S Y N C EIO1 EIO 2 open VDD VDD TEST Di7- Di 0 VSS VCCL [...]

  • Страница 566

    TMP92CZ26A 92CZ26A-563 • TFT G1 G16 2 SA1 SB1 SC1 SA80 SB80 SC80 160SEG × 3 ( RGB) × 162CO M LCD G16 2 G1 SA1 SB1 SC1 SA80 SB80 SC80 LCP0 LLOAD LFR LD23~LD 0 CPH LOAD D I/O DO/I DB5-0 DC5-0 U/D VDD VDD VSS VSS DA1-0 DB-1-0 DC1-0 LV S Y N C DI/O DO/I open VDD VDD TEST2 VSS VSS JB T 6L78-AS ( 162- gate D r i ve r ) JB T 6L77 - A S × 2 (80 × RG [...]

  • Страница 567

    TMP92CZ26A 92CZ26A-564 3.20 Touch Screen Interface (TSI) The TMP92CZ26A has an interface for 4-te rmina l resistor network touch-screen. This interface supports t wo procedures: an X/ Y position m easu rement and touch det ection. Each procedure is per formed by setting the T SI control register (TSIC R0 and TSICR1) and using an internal AD conv er[...]

  • Страница 568

    TMP92CZ26A 92CZ26A-565 3.20.2 Touch Screen Interface (TSI) Control Register TSI control register 7 6 5 4 3 2 1 0 bit Symbol TSI7 INGE PTST TWIEN PYEN PXEN MYEN MXEN Read/Write R/W R/W R R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Function 0: Disable 1: Enable Input gate control of Port 96,97 0: Enable 1: Disable Detection condition 0: no touch [...]

  • Страница 569

    TMP92CZ26A 92CZ26A-566 3.20.3 Touch detection procedure A Touch detection procedure shows procedure until a pen is touched by the screen and it is detected. By touching, TSI generate s interrupt (INT4) an d this proce dure wil l termina te. Aft er an X/ Y position measuring pr oc edure is terminate d, retur n to this procedur e and w ait for next t[...]

  • Страница 570

    TMP92CZ26A 92CZ26A-567 Figure 3.20.4 Timing diagram of de-bounce circuit INT4 Reset the counter for de-bounce time P96/INT4 pin Start the counter for de-bounce time de-bounce time de-bounce time INT4 is generated by matching counter and specified de-bounce time. A fter pen is de-touched, INT4 can be issued again. de-bounce time INT4 isn’t generat[...]

  • Страница 571

    TMP92CZ26A 92CZ26A-568 3.20.4 X/Y position measuring procedure In the INT4 routine, e x ecute an X/Y p osition measuring pr ocedure like b elow. <X position measur ement> At first, set both SPX, SMX-switches to ON, and set SPY, SMY-switches to OFF. By this setting, anal og-voltag e which shows the X-p osition will be in putted to PG3/M Y/AN3 [...]

  • Страница 572

    TMP92CZ26A 92CZ26A-569 3.20.5 Flow chart for TSI Figure 3.20.6 Flow chart for TSI Following pages exp lain each circuit conditio n of (a), (b) and (c) i n abo ve flow chart. Execute Main Routine TSICR0 ← 98H TSICR1 ← XXH (volu ntary ) (1) Touch Detection Procedure INT4 Routine: (2) X/Y Position Measurement Procedure Yes No Return to Main Routin[...]

  • Страница 573

    TMP92CZ26A 92CZ26A-570 (a) Main routine (condition of wait ing INT4 interrupt ) (p9fc)<P96F>, <P97F>= “1” : Set P96 to int4/PX, set P97 to P Y (inte34) : Set interrupt level of INT4 (tsicr0)=98h : Pull-down resistor on, SPY on, Interrupt-set<TWIE N> ei : Enable interrupt X- A VSS ( PX/P96/INT4 ) (PY/P97) VREFH VREFL PXEN PYEN [...]

  • Страница 574

    TMP92CZ26A 92CZ26A-571 (b) X position m easurement (S tart AD c onversion) (tsicr0)=c5h : Set SMX, SPX to ON. Set the input gate of P97, P96 to OFF. (admod1)=b0h : Set to AN3. (admod0)=08h : Start AD conversi on. A VSS ( PX/P96/INT4 ) (PY/P97) VREFH VREFL PXEN PYEN MXEN MYEN A N3 A N2 (MY/PG3) A VCC (MX/PG2) VREFH VREFL A VCC A VSS A D Converter To[...]

  • Страница 575

    TMP92CZ26A 92CZ26A-572 (c) Y position m easurement(Start AD c onversion) (tsicr0)=cah : Set SMX, SPX to ON. Set the input gate of P97, P9 6 to OFF. (admod1)=a0h : Set to AN2. (admod0)=08h : Start AD conversion. A VSS ( PX/P96/INT4 ) (PY/P97) VREFH VREFL PXEN PYEN MXEN MYEN A N3 A N2 (MY/PG3) A VCC (MX/PG2) VREFH VREFL A VCC A VSS A D Converter Touc[...]

  • Страница 576

    TMP92CZ26A 92CZ26A-573 3.20.6 Note 1. De-bounce circuit The system clock of CPU is used in de-bou nce circuit. Therefor e, de-bounce circuit is not operated when cl ock is not supplied to CPU (IDL E1, STOP mode or PCM m ode). And, an interrupt which through the de-bounce circuit is n ot generated. When started from IDLE1, ST OP or PCM mode by using[...]

  • Страница 577

    TMP92CZ26A 92CZ26A-574 3.21 Real time clock (RTC) 3.21.1 Function description for R TC 1) Clock function (hou r , min ute, second) 2) Calendar fun ction (month and day , day of the week, and leap year) 3) 24 or 12-hour (A M/PM) clock function 4) +/- 30 second adjustment funct ion (by software) 5) Alarm function (Alarm output) 6) Alarm interrupt g e[...]

  • Страница 578

    TMP92CZ26A 92CZ26A-575 3.21.3 Control registers T able 3.21.1 P AGE 0 (Tim er fun ction) registers Symbol A ddress Bit7 Bit6 Bit5 Bit4 Bit3 Bi t2 Bit1 Bit0 Function Read/Write SECR 1320H 40 sec 20 sec 10 sec 8 sec 4 sec 2 sec 1 sec Second column R/W MINR 1321H 40 min 20 min 10 min 8 min 4 min 2 min 1 min Minute column R/W HOURR 1322H 20 hours/ PM/A[...]

  • Страница 579

    TMP92CZ26A 92CZ26A-576 3.21.4 Detailed explanation of control register RTC is not initia lized by reset. Ther efore, all registers m ust be initia lized at the beginning of the pr ogram. (1) Second column register (for P AGE0 only) 7 6 5 4 3 2 1 0 Bit symbol SE6 SE5 SE4 SE3 SE2 SE1 SE0 SECR (1320H) Read/Write R/W After reset Undefined Function &quo[...]

  • Страница 580

    TMP92CZ26A 92CZ26A-577 (2) Minute column register (for P AGE0/1) 7 6 5 4 3 2 1 0 Bit symbol MI6 MI5 MI4 MI3 MI2 MI1 MI0 MINR (1321H) Read/Write R/W After reset Undefined Function "0" is read. 40 min, column 20 min, column 10 min, column 8 min, column 4 min, column 2 min, column 1 min, column 0 0 0 0 0 0 0 0 min 0 0 0 0 0 0 1 1 min 0 0 0 0[...]

  • Страница 581

    TMP92CZ26A 92CZ26A-578 (3) Hour column register (for P AGE0/1) 1. In case of 24-hour clock mode (MONTHR<MO0>= “1”) 7 6 5 4 3 2 1 0 Bit symbol HO5 HO4 HO3 HO2 HO1 HO0 HOURR (1322H) Read/Write R/W After reset Undefined Function "0" is read. 20 hour column 10 hour column 8 hour column 4 hour column 2 hour column 1 hour column 0 0 0[...]

  • Страница 582

    TMP92CZ26A 92CZ26A-579 (4) Day of the week column register (f or P AGE0/1) 7 6 5 4 3 2 1 0 Bit sy mbol WE2 WE1 WE0 DAYR (1323H) Read/Write R/W After reset Undefined Function "0" is read. W2 W1 W0 0 0 0 Sunday 0 0 1 Monda y 0 1 0 Tuesday 0 1 1 Wednesday 1 0 0 Thursday 1 0 1 Friday 1 1 0 Saturday Note: Do not set the data othe r than showin[...]

  • Страница 583

    TMP92CZ26A 92CZ26A-580 (6) Month column register (for P A GE0 only) 7 6 5 4 3 2 1 0 Bit symbol MO4 MO4 MO2 MO1 MO0 MONTHR (1325H) Read/Write R/W After reset Undefined Function "0" is read. 10 months 8 months 4 months 2 months 1 month 0 0 0 0 1 January 0 0 0 1 0 Februa ry 0 0 0 1 1 March 0 0 1 0 0 April 0 0 1 0 1 May 0 0 1 1 0 June 0 0 1 1[...]

  • Страница 584

    TMP92CZ26A 92CZ26A-581 (8) Y ear column register (for P AGE0 only) 7 6 5 4 3 2 1 0 Bit symbol YE7 YE6 YE5 YE4 YE3 YE2 YE1 Y E0 YEARR (1326H) Read/Write R/W After reset Undefined Function 80 Years 40 Years 20 Years 10 Years 8 Years 4 Years 2 Years 1 Year 1 0 0 1 1 0 0 1 99 years 0 0 0 0 0 0 0 0 00 years 0 0 0 0 0 0 0 1 01 years 0 0 0 0 0 0 1 0 02 ye[...]

  • Страница 585

    TMP92CZ26A 92CZ26A-582 (10) P AGE register (for P AGE0/1) 7 6 5 4 3 2 1 0 Bit symbol INTENA ADJUST ENATMR ENAALM PAGE PAGER (1327H) Read/Write R/W W R/W R/W After reset 0 Undefined Undefined Undefined Read-modify write instruction are prohibited Function (Note) Interrupt 1: Enable 0: Disable “0” is read. 1: Adjust TIMER 1: Enable 0: Disable ALA[...]

  • Страница 586

    TMP92CZ26A 92CZ26A-583 3.21.5 Operational description (1) Reading timer data There is the case, which reads wr ong data when carry of the inside coun ter happens during the opera tion which cloc k data reads. Therefor e please read two time s with the following wa y for re ading correct data. Figure 3.21.2 Flowchart of timer dat a re ad Start END P[...]

  • Страница 587

    TMP92CZ26A 92CZ26A-584 (2) T iming of INTRTC and Clock data When time is read by interrupt, read cl ock data within 0.5s(s) aft er generating interrupt. This is because count up of clock data occurs by rising edge of 1Hz pulse cycle. Figure 3.21.3 T iming of INTRTC and Clock dat a 56 57 58 59 0 1 2 3 4 ALARM INTRTC 1s counter (Internal signal) 1s c[...]

  • Страница 588

    TMP92CZ26A 92CZ26A-585 (3) W riting time r data When there is carry on the wa y of write op eration, expecting data can not be wrote exactly . Th er efore, in ord er to write in data exactly please fo llow the below w ay . 1. Resetting a div id er In RTC inside, th ere are 15-stage dividers, which gener ates 1Hz clock from 32,768 KHz. Carry of a ti[...]

  • Страница 589

    TMP92CZ26A 92CZ26A-586 2. Disabling the timer Carry of a timer is prohibit ed when write “0” to P AGER<ENA TMR> and can prevent malfunction by 1s Carry hold circuit. Durin g a timer prohibited, 1s Carry hold circuit holds one sec. carry signal, which is generated from divider . After becoming timer enab le state, out put t he ca rry sign [...]

  • Страница 590

    TMP92CZ26A 92CZ26A-587 3.21.6 Explanation of the interrupt signal and alarm signal Can use alarm functi on by setting of register of P AGE1 a nd output either of three signals from ALARM pin as follows by write “1” t o P AGER<P AGE>. INTRTC outputs 1shot puls e when the falling edg e is detected. RTC is not in it ializes by RESET . Theref[...]

  • Страница 591

    TMP92CZ26A 92CZ26A-588 (2) When output clock of 1Hz RTC outputs clock of 1Hz to ALARM pin by setting up P AGER<ENAALM>= “0”, RESTR<DIS1HZ>= “0”, <DIS16H Z>= “1”. And RTC generates INTRC in terrupt by falling edge of th e clock. (3) When output clock of 16Hz RTC outputs clock of 16 Hz to ALARM pin by setting up P AGER&l[...]

  • Страница 592

    TMP92CZ26A 92CZ26A-589 3.22 Melody / Alarm generator (MLD) TMP92CZ26A contain s melody fu nction a nd alar m function, both of which are output from the MLDALM pin. Five kind of fixed cycles interrupt is genera te by using 15bit c ounter , which is used for alarm generator . Features are as follows. 1) Melody generator The Melody function generates[...]

  • Страница 593

    TMP92CZ26A 92CZ26A-590 3.22.1 Block Diagram Figure 3.22.1MLD Block Di agram MELFH, MELFL register Comparator (CP0) 12bit counter (UC0) F/F [Melody Generator] Edge detectior A LMINT <IALM4E:0E> 15bit conter (UC1) 8bit counter (UC2) Alarm wave form generator ALM register Invert MELALMC <ALMINV> Selector A LMOUT MELOUT MELALMC<FC1:0>[...]

  • Страница 594

    TMP92CZ26A 92CZ26A-591 3.22.2 Control registers ALM register 7 6 5 4 3 2 1 0 bit Symbol AL8 AL7 AL6 AL5 AL4 AL3 AL2 AL1 Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function Setting alarm pattern MELALMC register 7 6 5 4 3 2 1 0 bit Symbol FC1 FC0 ALMINV − − − − MELALM Read/Write R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 Functio[...]

  • Страница 595

    TMP92CZ26A 92CZ26A-592 3.22.3 Operational Description 3.22.3.1 Melody generator The Melody function generates signals of any frequency (4Hz-5461Hz) based on low-speed clock (32.768KHz) and outputs the signa ls from th e MLD ALM pin. By connecting a loud speaker ou tsid e, Melody tone can easily sound. (Operation) At first, MELALMC<MELALM> hav[...]

  • Страница 596

    TMP92CZ26A 92CZ26A-593 3.22.3.2 Alarm generator The Alarm function generates eight kinds of alarm waveform ha ving a mod ulation frequency 4096Hz determined by the low-spee d clock (32.7 68 KHz). And this waveform is reversible by setti ng a value to a registe r . By connecting a loud spe a ker outside, Alarm tone can eas ily sound. Five kind of fi[...]

  • Страница 597

    TMP92CZ26A 92CZ26A-594 Example: W aveform of alarm pattern for each sett i ng value: not invert) 500 ms 1 A L3 pattern (once) 250 ms A L8 pattern (Once) Modulation frequency (4096 Hz) A L1 pattern (Continuous output) 31.25 ms 1 秒 1 2 8 1 A L2 pattern (8 times/1 sec) 62.5 ms 1 sec 1 2 1 A L4 pattern (Twice/1 sec) 62.5 ms 1 sec 1 2 1 3 A L5 pattern[...]

  • Страница 598

    TMP92CZ26A 92CZ26A-595 3.23 Analog-Digital Converter (ADC) This LSI has a 6-channel, multip lexed-input, 10 -bit successiv e-approxim atio n Analog-Digital converter (ADC). Figure 3.23.1 shows a block diagram of the AD converter . The 6-analog input channels (AN0-AN5) ca n be used as general-purpose inputs. Note1: Ensure that the AD converter has h[...]

  • Страница 599

    TMP92CZ26A 92CZ26A-596 3.23.1 Control register The AD converter has 6-mode control registers (ADMOD0, ADMOD1 , ADMOD2, ADMOD3, ADMOD4 and AD MOD5) and 6-convers ion result high/low regist er pairs (ADREG0H/L ∼ ADREG 5H/L). The results of hig h - priority AD c onv ersion are st ored in the ADREGSPH/L. Figure 3.23.2 to Figure 3.23.1 1 show the regi[...]

  • Страница 600

    TMP92CZ26A 92CZ26A-597 AD Mode Control Register 1 (Normal co nversion cont rol) 7 6 5 4 3 2 1 0 bit Symbol DACON ADCH2 ADCH1 ADCH0 LAT ITM REPEAT SCAN Read/Write R/W After reset 0 0 0 0 0 0 0 0 Function DAC and VREF application control Analog input cha nnel select Latency 0: No Wait 1:Start after reading conversion result store Register of last cha[...]

  • Страница 601

    TMP92CZ26A 92CZ26A-598 AD Mode Control Register 2 (High- priori ty conversion control) 7 6 5 4 3 2 1 0 bit Symbol HEOS HBUSY HADS HHTRGE HTSEL1 HTSEL0 Read/Write R R R/W After reset 0 0 0 0 0 0 Function High-priority AD conversion sequence FLAG 0: During conversion sequen ce or before starting 1: Complete conversion sequence High-priority AD conver[...]

  • Страница 602

    TMP92CZ26A 92CZ26A-599 AD Mode Control Register 4 (A D Monito r functio n control) 7 6 5 4 3 2 1 0 bit Symbol CMEN1 CMEN0 CMP1C CMP0C IRQEN1 IRQEN0 CMPINT1 CMPINT0 Read/Write R/W R/W R/W R R After reset 0 0 0 0 0 0 0 0 Function AD Monitor function1 0: Disable 1: Enable AD Monitor function0 0: Disable 1: Enable Generation condition of AD monitor fun[...]

  • Страница 603

    TMP92CZ26A 92CZ26A-600 AD Conversion Result Registe r 0 Lo w 7 6 5 4 3 2 1 0 bit Symbol ADR01 ADR00 OVR0 ADR0RF Read/Write R R R After reset 0 0 0 0 Function Store Lower 2 bits of AN0 AD conversion result O v e r r u n f l a g 0:No generate 1: Generate AD conversion result store flag 1: Stored AD Conversion Result Registe r 0 Hig h 7 6 5 4 3 2 1 0 [...]

  • Страница 604

    TMP92CZ26A 92CZ26A-601 AD Conversion Result Registe r 2 Lo w 7 6 5 4 3 2 1 0 bit Symbol ADR21 ADR20 OVR2 ADR2RF Read/Write R R R After reset 0 0 0 0 Function Store Lower 2 bits of AN2 AD conversion result Overrun flag 0:No genera te 1: Generate AD conversion result store flag 1: Stored AD Conversion Result Registe r 1 Hig h 7 6 5 4 3 2 1 0 bit Symb[...]

  • Страница 605

    TMP92CZ26A 92CZ26A-602 AD Conversion Result Registe r 4 Lo w 7 6 5 4 3 2 1 0 bit Symbol ADR41 ADR40 OVR4 ADR4RF Read/Write R R R After reset 0 0 0 0 Function Store Lower 2 bits of AN4 AD conversion result Overrun flag 0:No genera te 1: Generate AD conversion result store flag 1: Stored AD Conversion Result Registe r 4 Hig h 7 6 5 4 3 2 1 0 bit Symb[...]

  • Страница 606

    TMP92CZ26A 92CZ26A-603 High-priority AD Conversion Result Re gister SP Low 7 6 5 4 3 2 1 0 bit Symbol ADRSP1 ADRSP0 OVSRP ADRSPRF Read/Write R R R After reset 0 0 0 0 Function Store Lower 2 bits of an AD conversion result Overrun flag 0:No genera te 1: Generate AD conversion result store flag 1: Stored High-priority AD Conversion Result Re gister S[...]

  • Страница 607

    TMP92CZ26A 92CZ26A-604 AD Conversion Result Co mp are Criterion Registe r 0 Low 7 6 5 4 3 2 1 0 bit Symbol ADR21 ADR20 Read/Write R/W After reset 0 0 Function Store Lower 2 bits of an AD conversion result compare criterion AD Conversion Result Co mp are Criterion Registe r 0 High 7 6 5 4 3 2 1 0 bit Symbol ADR29 ADR28 ADR27 ADR26 ADR25 ADR24 ADR23 [...]

  • Страница 608

    TMP92CZ26A 92CZ26A-605 AD Conversion Clock Setting Re gister 7 6 5 4 3 2 1 0 bit Symbol − ADCLK2 ADCLK1 ADCLK0 Read/Write R/W R/W R/W R/W After reset 0 0 0 0 Function Always write “0” Select clock for AD conversion 000 : Reserved 100 : f IO /4 001 : f IO /1 101 : f IO /5 010 : f IO /2 110 : f IO /6 011 : f IO /3 111 : f IO /7 Note1: AD conver[...]

  • Страница 609

    TMP92CZ26A 92CZ26A-606 3.23.2 Operation 3.23.2.1 Analog Reference V oltag es The VREFH and V R EFL pins pr ovide the an al og referenc e voltages f or th e ADC. 3.23.2.2 Analog Input Channel(s) selection The Analog input chann els used for AD conversi on are selected as fo ll ows: (1) Normal AD conversion • Analog Input Channel Fixed mode (ADMOD1[...]

  • Страница 610

    TMP92CZ26A 92CZ26A-607 3.23.2.3 S tarting an AD Conversion The ADC supports two types of A D conversion: normal AD con version and high-priorit y AD conversion. The ADC initiates a normal AD conversio n by software when the ADMOD0<ADS > is set to “1”. It initiates a high-priority AD conv ersion by software when the ADMOD2<HADS> is s[...]

  • Страница 611

    TMP92CZ26A 92CZ26A-608 3.23.2.4 AD Conversion Modes and AD Conversion-End Inte rrupts The ADC sup ports the follow ing four conversio n modes. For a n ormal AD convers ion, ADMOD0<1:0> sel ect one of the f our conversion modes. For a high-pr iority AD conversion, the ADC only supports Channel Fixed Single Conv e rsion mode. a. Channel Fixed S[...]

  • Страница 612

    TMP92CZ26A 92CZ26A-609 If ADMOD1<ITM> is set to “1”, the AD C generates an interr upt after every four conversions. Th e results of convers ions are sequentiall y stored in the ADREG0H/L to ADREG3H/L regist ers, in that order . The ADMOD0<EOS> i s s e t to “1” when the ADC stores the resu lts in the ADREG3 H/L. The next conver s[...]

  • Страница 613

    TMP92CZ26A 92CZ26A-610 Interrupt Generation T iming and Flag Setting in Each AD Conversion Mode ADMOD1 Conversion mode Interrupt Generation T iming EOS set timing (Note) ITM REPEA T SCAN Channel Fixed Single Conversion Mode After a conversion After a conversion − 0 0 After every conversion After every conversion 0 Channel Fixed Repeat Conversion [...]

  • Страница 614

    TMP92CZ26A 92CZ26A-61 1 3.23.2.5 High-Priority Conversion Mode The ADC ca n perform a high-priorit y AD conv ersion while it is perform ing a normal AD conversion sequenc e. A high-priority AD con version can be started at soft ware by setting the ADMOD 2<HADS> to “1”. It is al s o triggered by a hard ware trigger if so enabled usin g ADM[...]

  • Страница 615

    TMP92CZ26A 92CZ26A-612 3.23.2.8 S toring and Reading the AD Conversion Result Conversion results are stored into AD conversion result high/ low register (ADREG0H/L to ADREG5H/L). In Channel Fixed Repeat Conversi on mode, conversion results are stored into the ADREG0H/L to ADREG3H/L sequentially . In other modes, the AD conversion result of channel [...]

  • Страница 616

    TMP92CZ26A 92CZ26A-613 T able 3.23.1 Relationship s between Analog Input Channel s and A D Conversion Re sult Re gisters AD Conversion Result Re giste rs Analog Input Channel (Port G) Conversion Modes other than at right Channel Fixed Repeat Conversion Mode (every fourth conversion) AN0 ADREG0H/L AN1 ADREG1H/L AN2 ADREG2H/L AN3 ADREG3H/L AN4 ADREG4[...]

  • Страница 617

    TMP92CZ26A 92CZ26A-614 Setting example: 1. Convert the analog input voltage on the AN3 pin and write the result to memory address 2800H using the AD interrupt(INTAD) processing routine. Main routine 7 6 5 4 3 2 1 0 INTEAD ← 1 1 0 0 − − − − Enable INTAD and set it to interrupt level 4. ADMOD1 ← 1 1 0 0 0 0 1 1 Set pin AN3 to b e the anal[...]

  • Страница 618

    TMP92CZ26A 92CZ26A-615 3.24 Watchdog Timer (Runaway detection timer) The TMP92CZ26A contains a watchdog timer of r unaway detecting. The watchdog timer (WDT ) is used to return the CPU to the normal stat e when it detects that the CPU has started to malfunction (runaway) due to causes such as noise. When the watchdo g timer de tects a mal functi on[...]

  • Страница 619

    TMP92CZ26A 92CZ26A-616 3.24.2 Operation The watchdog timer generates an INT WD interrupt when the detection tim e set in the WDMOD<WDTP1:0> has elaps ed. The watchdog timer must be clear ed “0” in software before an INTWD interrupt will b e generated. If the CPU malfunct ions (e.g., if runaway occurs) due to causes such as noise, but does[...]

  • Страница 620

    TMP92CZ26A 92CZ26A-617 3.24.3 Control Registers The watchdog timer (WDT) is contr olled by two control regist er s WDMOD and WDCR. (1) W atchdog timer mode registers (WD MOD ) 1. Setting the det ection tim e for the watchdog tim er in <WDTP1:0> This 2-bit register is used for s etting the watchdog tim er interrupt time used when de tecting ru[...]

  • Страница 621

    TMP92CZ26A 92CZ26A-618 7 6 5 4 3 2 1 0 Bit symbol WDTE WDTP1 WDTP0 I2WDT RESCR − WDMOD (1300H) Read/Write R/W R/W After reset 1 0 0 0 0 0 Function WDT control 1: Enable Select detecting time 00: 2 15 /f IO 01: 2 17 /f IO 10: 2 19 /f IO 11: 2 21 /f IO IDLE2 0: Stop 1: Operate 1: Internally connects WDT out to the reset pin Always write “0” Wat[...]

  • Страница 622

    TMP92CZ26A 92CZ26A-619 3.25 Power Management Circuit (PMC) The TMP92CZ26A incorporates a power mana gement circuit (PMC) for managing power supply in standby state as protective measures against leak current in fine-process products. The following six power supply rai ls are available. ・ Analog power supply : A VCC & AVSS (for ADC) ・ 3V-A, [...]

  • Страница 623

    TMP92CZ26A 92CZ26A-620 3.25.1 SFR 7 6 5 4 3 2 1 0 bit symbol PCM_ON − WUTM1 WUTM0 Read/Write R/W W R/W R/W After system reset 0 0 0 0 After hot reset Data retained − Data retained Data retained Function Power Cut Mode 0: Disable 1: Enable Alw ays write “0” Always read as “0” Warm-up time 00: 29 (15.625 ms) 01: 210 (31.25 ms) 10: 211 (62[...]

  • Страница 624

    TMP92CZ26A 92CZ26A-621 3.25.2 Detailed Description of Operation This section explains th e procedures for ent ering and exit ing the Power Cut Mo de. • Entering the Power Cut Mode When to enter the Power Cut Mode, the CPU n eeds to be operating in the in ternal RAM. Low frequenc y clock (XT) m ust be enable condit ion. It is also necessary to dis[...]

  • Страница 625

    TMP92CZ26A 92CZ26A-622 1. Prepare to shift P ower Cut Mode (1) Set the warm-up time: PMCCTL<WUTM1:0> After wake-up interruption, int ernal wake-up timer count setting register value:<WUTM1:0>, and after about 77 us, external PWE termin al change from low level to high level. Additio nally after more about 92us, internal r eset signal wi[...]

  • Страница 626

    TMP92CZ26A 92CZ26A-623 • Exiting the Pow er Cut Mode The Power Cut Mode can be exited by external or internal interruption. (It inhibits to exit the Power Cut Mode by reset when D VCC1A is cu t off. Reset must be a sserted afte r supplying power to DVCC1A and wait ing for its voltage t o fully stabilize.) The int errupts that can be used to exit [...]

  • Страница 627

    TMP92CZ26A 92CZ26A-624 3.25.3 Detailed Description of T iming Internal HOT _RESET assert to dead ci rcuit only. (DVCC1A &DVCC1C circuit) 1. If it is set PMCCTL<PCM_O N>=“1”, shift the Pow er Cut Mode, howeve r , it spen ds 3-clock times maximum (around 92 μ S) to shift from normal mode to Power Cut Mode. And the wake-up triggers duri[...]

  • Страница 628

    TMP92CZ26A 92CZ26A-625 Figure3.25.2 Example External Circuitry for Usin g the PMC Figure3.25.2 shows an example of exte rnal circuitry for using th e PMC. In normal mode, the power management pin (P WE) outputs “1” and power is supplied t o all the blocks in the TMP92C Z26A. In the Power Cut Mode, th e power management pin (PWE) outputs “0”[...]

  • Страница 629

    TMP92CZ26A 92CZ26A-626 3.25.4 Notes of Power sequence • Power ON/Power OFF Se quence (Initi al Power ON/Complete Power OFF) In the pow er ON sequen ce (initia l power ON), po wer must be supplied to internal circuits first and then to external circuits, as show n below . In the power OFF sequence (com plete power OFF), power must be turned off fr[...]

  • Страница 630

    TMP92CZ26A 92CZ26A-627 3.25.5 Setting Example Condition: Wake-up trigger=INT4(TSI) org 002000h ld (syscr0),40h ; Enable low frequency clock ldw (wdmod),0b100h ; Disable WDT ldw (admod0),0000h ; ldw (admod2),0000h ; ldw (admod4),0000h ; Disable AD converter ld (lcdctl0),00h ; Disable DMA operation ld (pmfc),80h ; Set PM7 port to PWE function ld (p9f[...]

  • Страница 631

    TMP92CZ26A 92CZ26A-628 3.26 Multiply and Accumulate Calculation Unit (MAC) The TMP92CZ2 6A includes a multip ly-accumula te unit (MAC) capable of 32-b it × 32-bit + 64-bit arithmetic opera ti ons at high speed. The M AC h as the follow i ng features: ・ One-cycle execut ion for all MA C op erations (excl uding registe r access tim e ) ・ Three o[...]

  • Страница 632

    TMP92CZ26A 92CZ26A-629 3.26.1.2 Data Registers The data registers are arr anged as shown below . Data Registers Bits<63:56> Bits<55:48> Bit s<47:40> Bits<39:32> Bits<31:24> Bits<23:16> Bits<15:8> Bits<7:0> Multiplier A Register (1BE3H) (1BE2H) (1BE1H) MACMA (1BE0H) Multiplier B Register (1BE7H) (1BE6H[...]

  • Страница 633

    TMP92CZ26A 92CZ26A-630 3.26.2 Description of Operation (1) Calculation mode The MAC has the f ollowing three types of calculatio n mode. The calculation m ode to be used is specified in MA CCR<MOPMD1:0> . MACCR<MSM D> is used to select unsigned or signed mode. The operatio n of each calculation mode is explained below . (a) 64 + 32 × 3[...]

  • Страница 634

    TMP92CZ26A 92CZ26A-631 (d) Sign mode Both multiply-accumulate and multiply-subtrac t operations can be executed in unsigned or signed mode. In signed mode, the MACMA , MACMB, and M ACOR registers becom e signed registers, and the most significant bit is treated as the si gn bit and the d ata set in each register is treated as a two’ s complement [...]

  • Страница 635

    TMP92CZ26A 92CZ26A-632 3.26.3 Operation Examples (1) Unsigned m ultip ly-accumulat e operation The following shows a setting example for calc ula ting “33333333 + 11 111111 × 22222222”: ld (MACCR), 0x08 ; Unsigned multiply-accumulate mode Start calculation by write to MACMB. ld xde, 0x00000000 ld xhl, 0x33333333 ld xix, 0x11111111 ld xiy, 0x22[...]

  • Страница 636

    TMP92CZ26A 92CZ26A-633 3.27 Debug Mode The TMP92CZ26A includes a debug suppor t unit (DSU) for en abling on-board debugging. The DSU has 9 debug pins for interfa cing with an external em ulator via a DSU connector to b e mounted on the tar get board and a DSU con necting cable. F or details abo ut debugging, pl ease refer to the instruction manual [...]

  • Страница 637

    TMP92CZ26A 92CZ26A-634 (3) Limitations in debug mode Debug mode has the following limitat ions: 1) T arget reset While debuggin g is being perform ed, the system reset ( RESET pin) of the target (microcontroller) must not be used to reset th e controller and microcontroller . Instead, reset should be p erformed from t he controll er . (F or details[...]

  • Страница 638

    TMP92CZ26A 92CZ26A-635 2) Pins In debug mode, a total of 9 pins (PZ0 to PZ7 in Port Z and PU7 in Port U) are used to connect the TMP92CZ2 6 A with an emulator via a DSU probe for c ommunicating with the controller . For this reason, these 9 pins cannot be debugged. Therefor e, if the port c ontrol register of each pin is cha nged in debug mode, the[...]

  • Страница 639

    TMP92CZ26A 92CZ26A-636 Port U Register 7 6 5 4 3 2 1 0 Bit Symbol PU7 PU6 PU5 PU4 PU3 PU2 PU1 PU0 Read/Write R/W After reset External pin data (Output latch is reset to “0”.) Port U Control Register 7 6 5 4 3 2 1 0 Bit Symbol PU7C PU6C PU5C PU4C PU3C PU2C PU1C PU0C Read/Write W After reset 0 0 0 0 0 0 0 0 Function 0: Input 1: Output Port U Func[...]

  • Страница 640

    TMP92CZ26A 92CZ26A-637 3) Boot function In this LSI, we support boot function, howeve r , this boot function is not available in debug mode. (It is inhibit to set DBGE =“0”, AM0 = “1” and AM1 = “1” at the same time.) 4) PMC function In debug mode, the PMC function for cutting off the power supply to int ernal circuitry and reducing stan[...]

  • Страница 641

    TMP92CZ26A 92CZ26A-638 5) Data bus occupancy The TMP92C Z26A incl udes three control lers (LCD co ntroller , SDRA M contro ller and DMAC) that function as bus masters apart fr om the CPU. Therefor e, it is necessary to estimate the bus occupanc y time of each bus master and control each fu nction accordingly to ensure proper operati on of each func[...]

  • Страница 642

    TMP92CZ26A 92CZ26A-639 Figure 3.27.2 Example of Data Bus Oc cu pancy T iming in Debug Mode Figure 3.27.2 shows an example of dat a bus occupancy tim ing in deb ug mode. If the st eal program issues a wait request imm ediately befor e the DMA operation for the LCD (L CD DMA operation 1) and H DMA (HDMA operati on 1) are asserted, thes e operatio ns [...]

  • Страница 643

    TMP92CZ26A 92CZ26A-640 4. Electrical Characteristics (T ent ative) 4.1 Maximum Ratings Symbol Contents Rating Unit DVCC3A DVCC3B -0.3 to 3.9 DVCC1A DVCC1B DVCC1C -0.3 to 3.0 AVCC Power Supply Voltage -0.3 to 3.9 V V IN Input Voltage -0.3 ∼ DVCC3A/3B+0.3 (Note1) -0.3 to AVCC + 0.3 (Note2) V IOL Output Current (1pin) 15 mA IOH Output Current (1pin)[...]

  • Страница 644

    TMP92CZ26A 92CZ26A-641 4.2 DC Electrical Characteristics Symbol Parameter Min T yp. Max Unit Condition DVCC 3A General I/O Power Supply Voltage (DVCC=AVCC) (DVSSCOM=AVSS=0V) 3.0 3.3 3.6 V DVCC 1A Internal Power A DVCC 1B Internal Power B DVCC 1C High CLK oscillator and PLL Pow er 1.4 1.5 1.6 V X1=6 to 10MHz CPU CLK (60MHz) CPU CLK (80MHz) XT1=30 to[...]

  • Страница 645

    TMP92CZ26A 92CZ26A-642 Symbol Parameter Min T yp. Max Unit Condition VIH0 Input High Voltage for D0 to D7 P10 to P17 (D8 to 15), P60 to P67 P71 to P76, P90 PC4 to PC7, PF0 to PF5 PG0 to PG5, PJ5 to PJ6 PN0 to PN7, PP1 to PP2 PR0 to PR3, PT0 to PT7 PU0 to PU7, PX5, PX7 0.7 × DVCC3A – DVCC3A + 0.3 3.0 ≦ DVCC3A ≦ 3.6 VIH1 Input High Voltage for[...]

  • Страница 646

    TMP92CZ26A 92CZ26A-643 Symbol Parameter Min T yp. Max Unit Condition VOL1 Output Low Voltage1 P90 to P92, PC0 to PC3, PC7 PF0 to PF5 , PK1 to PK7 PM1 to PM2, PM7 PN0 to PN7, PP1 to P P7 PV0 to PV7 , PW0 to P W7, PX5, PX 7 IOL = 0.5mA, 3.0 ≦ DVCC3A VOL2 Output Low Voltage2 Except VOL1 output pin – – 0.4 IOL = 2mA, 3.0 ≦ DVCC3A VOH1 Output Hi[...]

  • Страница 647

    TMP92CZ26A 92CZ26A-644 Symbol Parameter Min T yp. Max Unit Condition − 15 30 DVCC3A,3B = 3.6V NORMAL (note2) 45 60 DVCC1A,1B,1C = 1.6V − 0.5 1 DVCC3A,3B = 3.6V IDLE2 28 45 PLL_ON f SYS =80MHz DVCC1A,1B,1C = 1.6V − 12 23 DVCC3A,3B = 3.6V NORMAL (note2) 34 45 DVCC1A,1B,1C = 1.6V − 0.4 0.8 DVCC3A,3B = 3.6V IDLE2 21 34 mA PLL_ON f SYS =60MHz DV[...]

  • Страница 648

    TMP92CZ26A 92CZ26A-645 4.3 AC Characteristics The Following all AC regulation is the measurement resu lt in following co ndition, if unless otherwise noted. AC measuring c ondition • Clock of top column i n above t able shows sy stem clock frequency , and “T” shows system clock period [ ns]. • Output level: High = 0.7 × 3A V CC , Low = 0.3[...]

  • Страница 649

    TMP92CZ26A 92CZ26A-646 Write cycle Va r i a b l e No. Parameter Symbol Min Max 80MHz 60MHz Unit t DW 1.0T − 10.0 − 6.6 16-1 D0 ~ D15 valid → WR xx rising at 0 waits t DW 1.0T − 6.0 6.5 − t DW4 3.0T − 10.0 − 39.8 16-2 D0 ~ D15 valid → WR xx rising at 2 waits/4 waits t DW6 5.0T − 6.0 56.5 − t WW 1.0T − 7.0 − 9.6 17-1 WR xx low[...]

  • Страница 650

    TMP92CZ26A 92CZ26A-647 (1) Read cycle (0 wait s) Note1: The phase relation between X1 i nput signal and the other signals is undefined. Note2: The above timing chart show an exam ple of basic bus timing . The CSn , R/ W , RD , WRxx , SRxxB , SRWR pins timing can be adjusted by memo ry controller timing adjust function. t OSC SDCLK WAIT A0~A23 D0~D1[...]

  • Страница 651

    TMP92CZ26A 92CZ26A-648 (2) Write cycle (0 waits) Note1: The phase relation between X1 i nput signal and the other signals is undefined. Note2: The above timing chart show an exam ple of basic bus timing . The CSn , R/ W, RD , WRxx , SRxxB , SRWR pins timing can be adjus ted by memory controlle r timing adjust function. t OSC SDCLK WAIT A0~A23 D0~D1[...]

  • Страница 652

    TMP92CZ26A 92CZ26A-649 (3) Read cycle (1 wait) (4) Writ e cycle (1 wait) SDCLK Data in p ut t RR3 t AD3 t RD3 WAIT A0~A23 CSn RD D0~D15 R/ W SDCLK Data out p ut t WW3 t DW3 WAIT A0~A23 CSn WRxx D0~D15 RD R/ W t RDO[...]

  • Страница 653

    TMP92CZ26A 92CZ26A-650 4.3.2 Page ROM Read Cycle (1) 3-2- 2-2 mo de Va r i a b l e Parameter Symbol Min Max 80 MHz 60 MHz Unit 1 System clock period ( = T) t CYC 12.5 266.6 12.5 16.6 2 A0, A1 → D0 ~ D15 input t AD2 2.0T − 18 7 15.2 3 A2 ~ A23 → D0 ~ D15 input t AD3 3.0T − 18 19.5 31.8 4 RD falling → D0 ~ D15 input t RD3 2.5T − 18 13 2 4[...]

  • Страница 654

    TMP92CZ26A 92CZ26A-651 4.3.3 SDRAM controller AC Characteristics Variable Parameter Symbol Min Max 80 MHz 60 MHz Unit <STRC[2:0]>= 000 T 12.5 16.6 1 Ref/Active to ref/active command period <STRC[2: 0]>=110 t RC 7T 87.5 116.2 <STRC[2:0]>= 000 2T 12210 25.0 33.2 2 Active to precharge command period <STRC[2:0]> =110 t RAS 7T 87[...]

  • Страница 655

    TMP92CZ26A 92CZ26A-652 (1) SDRAM read timing (1Word length read mode, <SP RE>=1) Column Row SDCLK SDxxDQM SDCS SDRAS SDCAS A 0~A9 D0~D15 SDWE A 10 A 11~A15 t CH t CL t CK t RCD t RAS t RP t CMS t CMH t CMS t CMH t RRD t AH t AS t AS t AH Row Row Data input t AC t OH[...]

  • Страница 656

    TMP92CZ26A 92CZ26A-653 (2) SDRAM write timing (Single write mode, <SPRE>=1 ) SDCLK SDxxDQM SDCS SDRAS SDCAS D0~D15 SDWE t CH t CL t CK t WR t RCD t RP t CMS t RRD t CMS t CMH t RAS Data output t DS t DH t CMH Column Row A 0~A9 A 10 A 11~A15 t AH t AS t AS t AH Row Row[...]

  • Страница 657

    TMP92CZ26A 92CZ26A-654 (3) SDRAM burst read timing (S tart burst cycle) Column Row SDCLK SDxxDQM SDCS SDRAS SDCAS A 0~A9 D0~D15 SDWE A 10 A 11~A15 t CK t RCD t CMS t CMH t CMH t AH t AS Row Row Data input t AC t CMH t CMS t CMS 027 t AH t AS t AS 0 t AC t AC Data input Data input t OH t OH t MRD[...]

  • Страница 658

    TMP92CZ26A 92CZ26A-655 (4) SDRAM burst read timing (End burst timing) SDCLK SDxxDQM SDCS SDRAS SDCAS D0~D15 SDWE t CK t RP t CMS t CMH Data input t CMH t CMS t CMS Column t AC Data input t OH t OH t CMH Row A 0~A9 A 10 A 11~A15 t AS[...]

  • Страница 659

    TMP92CZ26A 92CZ26A-656 (5) SDRAM initializes timing 220 SDCLK SDxxDQM SDCS SDRAS SDCAS A 0~A9 SDWE t CK t RC t CMS t CMH t CMS t CMH t CMH t CMS A 10 A 11~A15 t AS t AH t CMH t CMS 0[...]

  • Страница 660

    TMP92CZ26A 92CZ26A-657 (6) SDRAM refreshes timing (7) SDRAM self refresh timing SDCLK SDxxDQM SDCS SDRAS SDCAS SDWE t CK t RC t CMH t CMS SDCLK SDCKE SDCS SDRAS SDCAS SDWE t C K t RC t CMH t CMS t CKS t CKS SDxxDQM[...]

  • Страница 661

    TMP92CZ26A 92CZ26A-658 4.3.4 NAND Flash Controller AC Characteristics Va r i a b l e No. Symbol Parameter Min Max 80 MHz (n=3) (m=3) 60 MHz (n=3) (m=3) Unit 1 t NC Access cycle (2 + n + m ) T 100 132 2 t RP NDRE low level width (1.5 + n) T − 12 45 63 3 t REA NDRE data access time (1.5 + n) T − 15 41 60 4 t OH Read data hold time 0 0 0 5 t WP ND[...]

  • Страница 662

    TMP92CZ26A 92CZ26A-659 4.3.5 Serial channel timing (1) SCLK input mode (I/O interface mode) Va r i a b l e Parameter Symbol Min Max 80 MHz 60 MHz Unit SCLK cycle t SCY 16T 200 266 Output data → SCLK rising/ falling t OSS t SCY /2 − 4T − 30 20 36.4 SCLK rising/ falling → Output data hold t OHS t SCY /2 + 2T -20 105 146 SCLK rising/ falling ?[...]

  • Страница 663

    TMP92CZ26A 92CZ26A-660 4.3.6 T imer input pulse (T A0IN, T A2IN, TB0IN0, TB1IN0) Va r i a b l e Parameter Symbol Min Max 80 MHz 60 MHz Unit Clock cycle t VCK 8T+100 200 234 Low level pulse width t VCKL 4T + 40 90 107 High level pulse width t VCKH 4T + 40 90 107 ns 4.3.7 Interrupt Operation Va r i a b l e Parameter Symbol Min Max 80 MHz 60 MHz Unit [...]

  • Страница 664

    TMP92CZ26A 92CZ26A-661 4.3.9 LCD Controller Va r i a b l e Parameter Symbol Min Max 80 MHz (n=0) 60 MHz (n=0) Unit LCP0 clock period t CW 2T(n+1 ) 25 33.3 LCP0 high width (Include phase inversion) t CWH T(n+1) − 5 7.5 11.6 LCP0 low width (Include phase inversion) t CW L T(n+1) − 5 7.5 11.6 Data valid → LCP0 falling (Include phase inversion) t[...]

  • Страница 665

    TMP92CZ26A 92CZ26A-662 4.3.10 I 2 S T iming Variable Parameter Symbol Min Max 80 MHz 60 MHz Unit I2SCKO clock period t CR t IC 100 100 I2SCKO high width t HB 0.5 t CR − 15 35 35 I2SCKO low width t LB 0.5 t CR − 15 35 35 I2SDO, I2SWS setup time t SD 0.5 t CR − 15 35 35 I2SDO, I2SWS hold time t HD 0.5 t CR − 8 42 42 ns Note: The Maximum opera[...]

  • Страница 666

    TMP92CZ26A 92CZ26A-663 4.3.11 SPI Controller Va r i a b l e Parameter Symbol Min Max 80MHz 60 MHz Unit SPCLK frequency ( = 1/S) f PP 20 20 15 MHz SPCLK rising time t r 6 6 6 SPCLK falling time t f 6 6 6 SPCL K low widt h t WL 0.5S − 6 19 28 SPCLK high width t WH 0.5S − 6 19 28 Output data valid → SPCLK rising t ODS 0.5S − 18 7 15 SPCLK risi[...]

  • Страница 667

    TMP92CZ26A 92CZ26A-664 4.4 AD Conversion Characteristics Parameter Symbol Condition Min T yp. Max Unit Analog reference voltage ( + ) VREFH AVCC − 0.2 AVCC AVCC Analog reference voltage ( − ) VREFL DVSS DVSS DVSS + 0.2 AD converter power supply voltage AVCC DVCC3A/3B DVCC3A/ 3B DVCC3A/3B AD converter ground AVSS DVSS DVSS DVSS Analog input volt[...]

  • Страница 668

    TMP92CZ26A 92CZ26A-665 5. T able of S pecial function registers (S FRs) The SFRs include the I/O ports and periph eral control reg isters allocated to t he 8-Kbyte address space from 000000H to 001FF0H. (1) I/O Port (13) Clo ck gear , PLL (2) Interrupt control (14) 8-bit timer (3) Memory controller (15) 16-bit timer (4) TSI(T ouch screen I/F) (16) [...]

  • Страница 669

    TMP92CZ26A 92CZ26A-666 T able 5.1 I/O Register Address Map [1] Port (1/2) Address Name Address Name Address Name Address Name 0000H 0010H P4 0020H P8 0030H PC 1H 1H 1H P8FC2 1H 2H 2H 2H 2H PCCR 3H 3H P4FC 3H P8FC 3H PCFC 4H P1 4H P5 4H P9 4H 5H 5H 5H P9FC2 5H 6H P1CR 6H 6H P9CR 6H 7H P1FC 7H P5FC 7H P9FC 7H 8H 8H P6 8H PA 8H 9H 9H 9H 9H AH AH P6CR [...]

  • Страница 670

    TMP92CZ26A 92CZ26A-667 [1] Port (2/2) Address Name Address Name Address Name Address Name 0080H 0090H PGDR 00A0H PT 00B0H PX 1H P1DR 1H 1H 1H 2H 2H 2H PTCR 2H PXCR 3H 3H PJDR 3H PTFC 3H PXFC 4H P4DR 4H PKDR 4H PU 4H 5H P5DR 5H PLDR 5H 5H 6H P6DR 6H PMDR 6H PUCR 6H 7H P7DR 7H PNDR 7H PUFC 7H 8H P8DR 8H PPDR 8H PV 8H 9H P9DR 9H PRDR 9H PVFC2 9H AH PA[...]

  • Страница 671

    TMP92CZ26A 92CZ26A-668 [2] INTC Address Name Address Name Address Name Address Name 00D0H INTE12 00E0H INTESBIADM 00F0H INTE0 0100H DMA0V 1H INTE34 1H INTESPI 1H INTETC01 /INTEDMA01 1H DMA1V 2H INTE56 2H Reserved 2H INTETC23 /INTEDMA23 2H DMA2V 3H INTE7 3H INTEUSB 3H INTETC45 /INTEDMA45 3H DMA3V 4H INTETA01 4H Reserved 4H INTETC67 4H DMA4V 5H INTET[...]

  • Страница 672

    TMP92CZ26A 92CZ26A-669 [5] SDRAMC Address Name 0250H SDACR 1H SDCISR 2H SDRCR 3H SDCMM 4H SDBLS 5H 6H 7H 8H 9H AH BH CH DH EH FH [6] LCDC [7] PMC Address Name Address Name Address Name Address Name 0280H LCDMODE0 0290H LCDHSDLY 02A0H LSAML 02F0H PMCCTL 1H LCDMODE1 1H LCDO0DLY 1H LSAMM 1H 2H 2H LCDO1DLY 2H LSAMH 2H 3H LCDDVM0 3H LCDO2DLY 3H 3H 4H LC[...]

  • Страница 673

    TMP92CZ26A 92CZ26A-670 [8] USBC (1/2) Address Name Address Name Address Name Address Name 0500H Descriptor 0780H ENDPOINT0 0790H EP0_STATUS 07A0H to RAM 1H ENDPOIN T1 1H EP1_STATUS 1H EP1_SIZE_L_B 067FH (384 byte) 2H ENDPOINT2 2H EP2_STATUS 2H EP2_SIZE_L_B 3H ENDPOINT3 3H EP3_STATUS 3H EP3_SIZE_L_B 4H 4H 4H 5H 5H 5H 6H 6H 6H 7H 7H 7H 8H 8H EP0_SIZE[...]

  • Страница 674

    TMP92CZ26A 92CZ26A-671 [8] USBC (2/2) Address Name Address Name 07E0H Port Status 07F0H USBINTFR1 1H FRAME_L 1H USBINTFR2 2H FRAME_H 2H USBINTFR3 3H ADDRESS 3H USBINTFR4 4H 4H USBINTMR1 5H 5H USBINTMR2 6H USBREADY 6H USBINTMR3 7H 7H USBINTMR4 8H Set Descriptor STALL 8H USBCR1 9H 9H AH AH BH BH CH CH DH DH EH EH FH FH Note: Do not access no allocate[...]

  • Страница 675

    TMP92CZ26A 92CZ26A-672 [9] SPIC Address Name Address Name 0820H SPIMD 0830H SPITD0 1H SPIMD 1H SPITD0 2H SPICT 2H SPITD1 3H SPICT 3H SPITD1 4H SPIST 4H SPIRD0 5H SPIST 5H SPIRD0 6H SPICR 6H SPIRD1 7H SPICR 7H SPIRD1 8H 8H 9H 9H AH AH BH BH CH SPIIE CH DH SPIIE DH EH EH FH FH [10] MMU Address Name Address Name Address Name Address Name 0880H LOCALPX[...]

  • Страница 676

    TMP92CZ26A 92CZ26A-673 [1 1] NAND-Flash controller Address Name Address Name Address Name 08C0H NDFMCR0 08D0H NDRSCA0 1FF0H NDFDTR0 1H NDFMCR0 1H NDRSCA0 1H NDFD TR0 2H NDFMCR1 2H NDRSCD0 2H NDFDTR1 3H NDFMCR1 3H 3H NDFDTR1 4H NDECCRD0 4H NDRSCA1 4H 5H NDECCRD0 5H NDRSCA1 5H 6H NDECCRD1 6H NDRSCD1 6H 7H NDECCRD1 7H 7H 8H NDECCRD2 8H NDRSCA2 8H 9H N[...]

  • Страница 677

    TMP92CZ26A 92CZ26A-674 [12] DMAC Address Name Address Name Address Name Address Name 0900H HDMAS0 0910H HDMAS1 0920H HDMAS2 0930H HDMAS3 1H HDMAS0 1H HDMAS1 1H HDMAS2 1H HDMAS3 2H HDMAS0 2H HDMAS1 2H HDMAS2 2H HDMAS3 3H 3H 3H 3H 4H HDMAD0 4H HDMAD1 4H HDMAD2 4H HDMAD3 5H HDMAD0 5H HDMAD1 5H HDMAD2 5H HDMAD3 6H HDMAD0 6H HDMAD1 6H HDMAD2 6H HDMAD3 7[...]

  • Страница 678

    TMP92CZ26A 92CZ26A-675 [13] CGEAR, PLL [14] 8-bit timer Address Name Address Name Address Name 10E0H SYSCR0 1100H TA01RUN 1110H TA45RUN 1H SYSCR1 1H 1H 2H SYSCR2 2H TA0REG 2H TA4REG 3H EMCCR0 3H TA1REG 3H TA5REG 4H EMCCR1 4H TA01MOD 4H TA45MOD 5H EMCCR2 5H TA1FFCR 5H TA5FFCR 6H Reserved 6H 6H 7H 7H 7H 8H PLLCR0 8H TA23RUN 8H TA67RUN 9H PLLCR1 9H 9H[...]

  • Страница 679

    TMP92CZ26A 92CZ26A-676 [18] 10-bit ADC [19] WDT Address Name Address Name Address Name 12A0H ADREG0L 12B0H ADREGSPL 1300H WDMOD 1H ADREG0H 1H ADREGSPH 1H WDCR 2H ADREG1L 2H Reserved 2H 3H ADREG1H 3H Reserved 3H 4H ADREG2L 4H ADCM0REGL 4H 5H ADREG2H 5H ADCM0RE GH 5H 6H ADREG3L 6H ADCM1REGL 6H 7H ADREG3H 7H ADCM1RE GH 7H 8H ADREG4L 8H ADMOD0 8H 9H AD[...]

  • Страница 680

    TMP92CZ26A 92CZ26A-677 [22] I 2 S [23] MAC Address Name Address Name Address Name Address Name 1800H I2S0BUF 1810H I2S1BUF 1BE0H MACMA 1BF0H 1H 1H 1H MACMA 1H 2H 2H 2H MACMA 2H 3H 3H 3H MACMA 3H 4H 4H 4H MACMB 4H 5H 5H 5H MACMB 5H 6H 6H 6H MACMB 6H 7H 7H 7H MACMB 7H 8H I2S0CTL 8H I2S1CTL 8H MACORL 8H 9H I2S0CTL 9H I2S1CTL 9H MACORL 9H AH I2S0C AH I[...]

  • Страница 681

    TMP92CZ26A 92CZ26A-678 (1) I/O ports (1/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 P17 P16 P15 P14 P13 P12 P11 P10 R/W P1 PORT1 0004H Data from external port (Output latch register is cleared to “0”) P47 P46 P45 P44 P43 P42 P41 P40 R/W P4 PORT4 0010H 0 0 0 0 0 0 0 0 P57 P56 P55 P54 P53 P52 P51 P50 R/W P5 PORT5 0014H 0 0 0 0 0 0 0 0 P67 P66 P65 P6[...]

  • Страница 682

    TMP92CZ26A 92CZ26A-679 (1) I/O ports (2/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PR3 PR2 PR1 PR0 R/W PR PORTR 0064H Data from external port (Output latch register is cleared to “0”) PT7 PT6 PT5 PT4 PT3 PT2 PT1 PT0 R/W PT PORTT 00A0H Data from e xternal port (Output latch register is cleared to “0”) PU7 PU6 PU5 PU4 PU3 PU2 PU1 PU0 R/W PU POR[...]

  • Страница 683

    TMP92CZ26A 92CZ26A-680 (1) I/O ports (3/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 P17C P16C P15C P14C P13C P12C P11C P10C W 0 0 0 0 0 0 0 0 P1CR PORT1 control register 0006H (Prohibit RMW) 0: Input 1:Output P1F W 0/1 P1FC PORT1 function register 0007H (Prohibit RMW) 0: Port 1: Data bus (D8~D15) P47F P46F P45F P44F P43F P42F P41F P40F W 0/1 0/1 0/1 0[...]

  • Страница 684

    TMP92CZ26A 92CZ26A-681 (1) I/O ports (4/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 P87F P86F P85F P84F P83F P82F P81F P80F W 0 0 0 0 0 0 0 0 P8FC PORT8 function register 0023H (Prohibit RMW) 0: Port 1: <P87F2> 0: Port 1: <P86F2> 0: Port 1: CSZC 0: Port 1: CSZB 0: Port 1: 3 CS , CSXA 0: Port, CSZA 1: 2 CS , SDCS 0: Port 1: 1 CS 0: Port 1: [...]

  • Страница 685

    TMP92CZ26A 92CZ26A-682 (1) I/O ports (5/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PA7F PA6F PA5F PA4F PA3F PA2F PA1F PA0F W 0 0 0 0 0 0 0 0 PAFC PORTA function register 002BH (Prohibit RMW) 0: Key-in disable 1: Key-in enable PC7C PC6C PC5C PC4C PC3C PC2C PC1C PC0C W 0 0 0 0 0 0 0 0 PCCR PORTC control register 0032H (Prohibit RMW) 0: Input port, 1: O[...]

  • Страница 686

    TMP92CZ26A 92CZ26A-683 (1) I/O ports (6/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PG3F W 0 PGFC PORTG function register 0043H (Prohibit RMW) 0:Input port, AN3 1: ADTRG PJ6C PJ5C W 0 0 PJCR PORTJ control register 004EH (Prohibit RMW) 0:Input 1: Output PF7F PF6F PF5F PF4F PF3F PF2F PF1F PF0F W 0 0 0 0 0 0 0 0 PJFC PORTJ function register 004FH (Prohib[...]

  • Страница 687

    TMP92CZ26A 92CZ26A-684 (1) I/O ports (7/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PN7C PN6C PN5C PN4C PN3C PN2C PN1C PN0C W 0 0 0 0 0 0 0 0 PNCR PORTN control register 005EH (Prohibit RMW) 0: Input 1: Output PN7F PN6F PN5F PN4F PN3F PN2F PN1F PN0F W 0 0 0 0 0 0 0 0 PNFC PORTN function register 005FH (Prohibit RMW) 0:CMOS output 1:Open-Drain out put [...]

  • Страница 688

    TMP92CZ26A 92CZ26A-685 (1) I/O ports (8/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PU7C PU6C PU5C PU4C PU3C PU2C PU1C PU0C W 0 0 0 0 0 0 0 0 PUCR PORTU control register 00A6H (Prohibit RMW) 0: Input 1: Output PU7F PU6F PU5F PU4F PU3F PU2F PU1F PU0F W 0 0 0 0 0 0 0 0 PUFC PORTU function register 00A7H (Prohibit RMW) 0: Port 1: LD23 0: Port 1: LD22 0: [...]

  • Страница 689

    TMP92CZ26A 92CZ26A-686 (1) I/O ports (9/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 P17D P16D P15D P14D P13D P12D P11D P10D R/W 1 1 1 1 1 1 1 1 P1DR PORT1 drive register 0081H Input/Output buffer drive register for standb y mode P27D P26D P25D P24D P23D P22D P21D P20D R/W 1 1 1 1 1 1 1 1 P2DR PORT2 drive register 0082H Input/Output buffer drive regist[...]

  • Страница 690

    TMP92CZ26A 92CZ26A-687 (1) I/O ports (10/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PG3D PG2D R/W 1 1 PGDR PORTG drive register 0090H Input/Output buffer drive register for standby mode PJ7D PJ6D PJ5D PJ4D PJ3D PJ2D PJ1D PJ0D R/W 1 1 1 1 1 1 1 1 PJDR PORTJ drive register 0093H Input/Output buffer drive register for standb y mode PK7D PK6D PK5D PK4D P[...]

  • Страница 691

    TMP92CZ26A 92CZ26A-688 (1) I/O ports (1 1/1 1) Symbol Name Address 7 6 5 4 3 2 1 0 PW7D PW6D PW5D PW4D PW3D PW2D PW1D PW0D R/W 1 1 1 1 1 1 1 1 PWDR PORTW drive register 009EH Input/Output buffer drive register for standb y mode PX7D PX5D PX4D R/W 1 1 1 PXDR PORTX drive register 009FH Input/Output buffer drive register for standby mode PZ7D PZ6D PZ5[...]

  • Страница 692

    TMP92CZ26A 92CZ26A-689 (2) Interrupt control (1/4) Symbol Name Address 7 6 5 4 3 2 1 0 − INT0 − − − − I0C I0M2 I0M1 I0M0 − − R R/W INTE0 INT0 enable 00F0H Always write “0” 0 0 0 0 INT2 INT1 I2C I2M2 I2M1 I2M0 I1C I1M2 I1M1 I1M0 R R/W R R/W INTE12 INT1 & INT2 enable 00D0H 0 0 0 0 0 0 0 0 INT4 INT3 I4C I4M2 I4M1 I4M0 I3C I3M2 I3[...]

  • Страница 693

    TMP92CZ26A 92CZ26A-690 (2) Interrupt control (2/4) Symbol Name Address 7 6 5 4 3 2 1 0 − INTUSB − − − − IUSBC IUSBM2 IUSBM1 IUSBM0 − − R R/W INTEUSB INTUSB enable 00E3H Always write “0” 0 0 0 0 − INTALM − − − − IALMC IALMM2 IALMM1 IALMM0 − − R R/W INTEALM INTALM enable 00E5H Always write “0” 0 0 0 0 − INTRTC ?[...]

  • Страница 694

    TMP92CZ26A 92CZ26A-691 (2) Interrupt control (3/4) Symbol Name Address 7 6 5 4 3 2 1 0 INTTC1/INTDMA1 INTTC0/INT DMA0 ITC1C /IDMA1C ITC1M2 /IDMA1M2 ITC1M1 /IDMA1M1 ITC1M0 /IDMA1M0 ITC0C /IDMA0C ITC0M2 /IDMA0M2 ITC0M1 /IDMA0M1 ITC0M0 /IDMA0M0 R R/W R R/W INTETC01 /INTEDMA01 INTTC0/INTDMA0 & INTTC1/INTDMA1 enable 00F1H 0 0 0 0 0 0 0 0 INTTC3/INTD[...]

  • Страница 695

    TMP92CZ26A 92CZ26A-692 (2) Interrupt control (4/4) Symbol Name Address 7 6 5 4 3 2 1 0 DMA0V5 DMA0V4 DMA0V3 DMA0V2 DMA0V1 DMA0V0 R/W 0 0 0 0 0 0 DMA0V DMA0 start vector 0100H DMA0 start vector DMA1V5 DMA1V4 DMA1V3 DMA1V2 DMA1V1 DMA1V0 R/W 0 0 0 0 0 0 DMA1V DMA1 start vector 0101H DMA1 start vector DMA2V5 DMA2V4 DMA2V3 DMA2V2 DMA2V1 DMA2V0 R/W 0 0 0[...]

  • Страница 696

    TMP92CZ26A 92CZ26A-693 (3) Memory controller (1/4) Symbol Name Address 7 6 5 4 3 2 1 0 B0WW3 B0WW2 B0WW1 B0WW0 B0WR 3 B0WR2 B0WR1 B0WR0 R/W 0 0 1 0 0 0 1 0 Write waits Read w aits 0001: 0 waits 0101: 2 waits 0111: 4 waits 1001: 6 waits 1011: 8 waits 1101: 10 waits 1111: 16 waits 0010: 1 wait 0110: 3 waits 1000: 5 waits 1010: 7 waits 1100: 9 waits 1[...]

  • Страница 697

    TMP92CZ26A 92CZ26A-694 (3) Memory controller (2/4) Symbol Name Address 7 6 5 4 3 2 1 0 B3WW3 B3WW2 B3WW1 B3WW0 B3WR 3 B3WR2 B3WR1 B3WR0 R/W 0 0 1 0 0 0 1 0 Write waits Read waits 0001: 0 waits 0101: 2 waits 0111: 4 waits 1001: 6 waits 1011: 8 waits 1101: 10 waits 1111: 16 waits 0010: 1 waits 0110: 3 waits 1000: 5 waits 1010: 7 waits 1100: 9 waits 1[...]

  • Страница 698

    TMP92CZ26A 92CZ26A-695 (3) Memory controller (3/4) Symbol Name Address 7 6 5 4 3 2 1 0 M0V20 M0V19 M0V18 M0V17 M0V16 M0V15 M0V14-9 M0V8 R/W 1 1 1 1 1 1 1 1 MAMR0 Memory address mask register 0 0142H 0: Compare enable 1: Compare disable M0S23 M0S22 M0S21 M0S20 M0S19 M0S18 M0S17 M0S16 R/W 1 1 1 1 1 1 1 1 MSAR0 Memory start address register 0 0143H Se[...]

  • Страница 699

    TMP92CZ26A 92CZ26A-696 (3) Memory controller (4/4) Symbol Name Address 7 6 5 4 3 2 1 0 OPGE OPWR1 OPWR0 PR1 P R0 R/W 0 0 0 1 0 PMEMCR Page ROM control register 0166H ROM page access 0: Disable 1: Enable Wait number on page 00: 1 CLK (n-1-1-1 mode) 01: 2 CLK (n-2-2-2 mode) 10: 3 CLK (n-3-3-3 mode) 11: Reserved Byte number in a page 00: 64 bytes 01: [...]

  • Страница 700

    TMP92CZ26A 92CZ26A-697 (4) TSI Symbol Name Address 7 6 5 4 3 2 1 0 TSI7 INGE PTST TWIEN PYEN PXEN MYEN MXEN R/W R/W R R/W R/W R/W R/W R/W 0 0 0 0 0 0 0 0 TSICR0 TSI control register0 01F0H 0: Disable 1: Enable Input gate control of Port 96,97 0: Enable 1: Disable Detection condition 0: no touch 1: touch INT4 interrupt control 0: Disable 1: Enable S[...]

  • Страница 701

    TMP92CZ26A 92CZ26A-698 (5) SDRAM controller Symbol Name Address 7 6 5 4 3 2 1 0 SRDS − SMUXW1 SMUXW0 SPRE SMAC R/W R/W 1 0 0 0 0 0 SDACR SDRAM access control register 0250H Read data shift function 0: Disable 1: Enable Always write “0” Address multiplex type 00: Type A (A9- ) 01: Type B (A10- ) 10: Type C (A11- ) 11: Reserved Read/Write comma[...]

  • Страница 702

    TMP92CZ26A 92CZ26A-699 (6) LCD controller (1/6) Symbol Name Address 7 6 5 4 3 2 1 0 RAMTYPE1 RAMTYPE0 SCPW1 SCPW 0 MODE3 MODE2 MODE1 MODE0 R/W 0 0 1 1 0 0 0 0 LD bus transfer speed Mode setting SCPW2= 0 00: 2-clock 01: 4-clock 10: 8-clock 11: 16-clock SCPW2= 1 LCD MODE0 LCD mode0 register 0280H Display RAM 00: Internal RAM 01: External SRAM 10: SDR[...]

  • Страница 703

    TMP92CZ26A 92CZ26A-700 (6) LCD controller (2/6) Symbol Name Address 7 6 5 4 3 2 1 0 LCP0P LHSP LVSP LLDP LVSW1 LVSW0 R/W R/W R/W R/W R/W R/W 1 0 1 0 0 0 LCDCTL1 LCD control1 register 0286H LCP0 phase 0:Rising 1:Falling LHSYNC phase 0:Rising 1: Falling LVSYNC phase 0:Rising 1: Falling LLOAD phase 0:Rising 1: Falling LVSYNC enable time control 00: 1 [...]

  • Страница 704

    TMP92CZ26A 92CZ26A-701 (6) LCD controller (3/6) Symbol Name Address 7 6 5 4 3 2 1 0 OE0D6 OE0D5 OE0D4 OE0D3 OE0D2 OE0D1 OE0D0 W 0 0 0 0 0 0 0 LCDO0DLY LGOE0 Delay register 0291H OE0 delay (bits 6-0) OE1D6 OE1D5 OE1D4 OE1D3 OE1D2 OE1D1 OE1D0 W 0 0 0 0 0 0 0 LCDO1DLY LGOE1 Delay register 0292H OE1 delay (bits 6-0) OE2D6 OE2D5 OE2D4 OE2D3 OE2D2 OE2D1 [...]

  • Страница 705

    TMP92CZ26A 92CZ26A-702 (6) LCD controller (4/6) Symbol Name Address 7 6 5 4 3 2 1 0 LMSA7 LMSA6 LMSA5 LMSA4 LMSA3 LMSA2 LMSA1 R/W 0 0 0 0 0 0 0 LSAML Start address register LCD main-L 02A0H LCD main area start address (A7-A1) LMSA15 LMSA14 LMSA13 LMSA12 LMSA11 LMSA10 LMA9 LMSA8 R/W 0 0 0 0 0 0 0 0 LSAMM Start address register LCD main-M 02A1H LCD m[...]

  • Страница 706

    TMP92CZ26A 92CZ26A-703 (7) PMC Symbol Name Address 7 6 5 4 3 2 1 0 PCM_ON − WUTM1 WUTM0 02A0H R/W W R/W R/W After system reset 0 0 0 0 After Ho t reset Data retained − Data retained Data retained PMCCTL PMC Control Register Power Cut Mode 0: Disable 1: Enable Always write “0” Always read as “0” Warm-up time 00: 29 (15.625 ms) 01: 210 (3[...]

  • Страница 707

    TMP92CZ26A 92CZ26A-704 (8) USB controller (1/6) Symbol Name Address 7 6 5 4 3 2 1 0 D7 D6 D5 D4 D3 D2 D1 D0 R/W Descriptor RAM0 Descriptor RAM 0 register 0500H Undefined Undefined Undefi ned Undefined Undefined Undef ined Undefined Undefined D7 D6 D5 D4 D3 D2 D1 D0 R/W Descriptor RAM1 Descriptor RAM 1 register 0501H Undefined Undefined Undefi ned U[...]

  • Страница 708

    TMP92CZ26A 92CZ26A-705 (8) USB control ler (2/6) Symbol Name Address 7 6 5 4 3 2 1 0 TOGGLE SUSPEND STATUS[2] STATUS[1] STATUS[0] FIFO_DISABLE STAGE_ERR R EP0_STATUS Endpoint 0 status register 0790H 0 0 1 1 1 0 0 TOGGLE SUSPEND STATUS[2] STATUS[1] STATUS[0] FIFO_DISABLE STAGE_ERR R EP1_STATUS Endpoint 1 status register 0791H 0 0 1 1 1 0 0 TOGGLE SU[...]

  • Страница 709

    TMP92CZ26A 92CZ26A-706 (8) USB control ler (3/6) Symbol Name Address 7 6 5 4 3 2 1 0 DATASIZE9 DATASIZE8 DATASIZE7 R EP1_SIZE_ H_B Endpoint 1 size register High B 07B1H 0 0 0 DATASIZE9 DATASIZE8 DATASIZE7 R EP2_SIZE_ H_B Endpoint 2 size register High B 07B2H 0 0 0 DATASIZE9 DATASIZE8 DATASIZE7 R EP3_SIZE_ H_B Endpoint 0 size register High B 07B3H 0[...]

  • Страница 710

    TMP92CZ26A 92CZ26A-707 (8) USB control ler (4/6) Symbol Name Address 7 6 5 4 3 2 1 0 D7 D6 D5 D4 D3 D2 D1 D0 W SetupReceiv ed SetupRecei- ved register 07C8H 0 0 0 0 0 0 0 0 REMOTEWAKEUP ALTE RNATE[1] ALTERNATE[0] INTERFACE[1] INTERFACE[0] CONFIG[1] CONFIG[0] R R Current_Config Current_ Config register 07C9H 0 0 0 0 0 0 0 S_INTERFACE G_INTERFACE S_C[...]

  • Страница 711

    TMP92CZ26A 92CZ26A-708 (8) USB control ler (5/6) Symbol Name Address 7 6 5 4 3 2 1 0 Reserved7 Reserved6 PaperError Select NotError Reserved2 Reserved1 Reserved0 W Port Status Port status register 07E0H 0 0 0 1 1 0 0 0 − T[6] T[5] T[4] T[3] T[2] T[1] T[0] R FRAME_L Frame register Low 07E1H 0 0 0 0 0 0 0 0 T[10] T[9] T[8] T[7] CREATE FRAME_STS1 FR[...]

  • Страница 712

    TMP92CZ26A 92CZ26A-709 (8) USB control ler (6/6) Symbol Name Address 7 6 5 4 3 2 1 0 MSK_URST_STR MSK_UR ST_END MSK_SUS MSK_RESUME MSK_CLKSTOP MSK_CLKON R/W 1 1 1 1 1 1 USBINTMR1 USB interrupt mask register 1 07F4H 0: Be not masked 1: Be masked EP1_MSK_FA EP1_MSK_E A EP1_MSK_FB EP1_MSK_EB EP2_MSK_FA EP2_MSK_E A EP2_MSK_FB EP2_MSK_E B R/W 1 1 1 1 1 [...]

  • Страница 713

    TMP92CZ26A 92CZ26A-710 (9) SPIC (1/2) Symbol Name Address 7 6 5 4 3 2 1 0 SWRST XEN CLKSEL2 CLKSEL1 CLKSEL0 W R/W R/W 0 0 1 0 0 0820H (Prohibit RMW) Software reset 0: don’t care 1: Reset SYSCK 0: dis able 1: enable Select Baud Rate 000:Reserved 10 0: f SYS /8 001: f SYS /2 101: f SYS /16 010: f SYS /3 110: f SYS /64 011: f SYS /4 111: f SYS /256 [...]

  • Страница 714

    TMP92CZ26A 92CZ26A-71 1 (9) SPIC (2/2) Symbol Name Address 7 6 5 4 3 2 1 0 CRCD7 CRCD6 CRCD5 CRCD4 CRCD3 CRCD2 CRCD1 CRCD0 R 0 0 0 0 0 0 0 0 0826H CRC result register [7:0] CRCD15 CRCD14 CRCD13 CRCD12 CRCD11 CRCD10 CRCD9 CRCD8 R 0 0 0 0 0 0 0 0 SPICR SPI CRC register 0827H CRC result register [15:8] TXD7 TXD6 TXD5 TXD4 TXD3 TXD2 TXD1 TXD0 R/W 0 0 0[...]

  • Страница 715

    TMP92CZ26A 92CZ26A-712 (10) MMU (1/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALPX LOCALX register for program 0880H Set BANK number for LOCAL-X (“0” is disabled because of ov erlapped with Common-area.) LXE X8 R/W R/W 0 0 LOCALPX LOCALX register for program 0881H LOCALX BANK 0:disable 1:enable Set BAN[...]

  • Страница 716

    TMP92CZ26A 92CZ26A-713 (10) MMU (2/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALLX LOCALX register for LCD 0888H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALLX LOCALX register for LCD 0889H LOCALX BANK 0:disable 1:enable Set BANK num[...]

  • Страница 717

    TMP92CZ26A 92CZ26A-714 (10) MMU (3/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALRX LOCALX register for read 0890H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALRX LOCALX register for read 0891H LOCALX BANK 0:disable 1:enable Set BANK n[...]

  • Страница 718

    TMP92CZ26A 92CZ26A-715 (10) MMU (4/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALWX LOCALX register for write 0898H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALWX LOCALX register for write 0899H LOCALX BANK 0:disable 1:enable Set BANK[...]

  • Страница 719

    TMP92CZ26A 92CZ26A-716 (10) MMU (5/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALESX LOCALX register for DMA source 08A0H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALESX LOCALX register for DMA source 08A1H LOCALX BANK 0:disable 1:ena[...]

  • Страница 720

    TMP92CZ26A 92CZ26A-717 (10) MMU (6/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALEDX LOCALX register for DMA destination 08A8H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALEDX LOCALX register for DMA destination 08A9H LOCALX BANK 0:dis[...]

  • Страница 721

    TMP92CZ26A 92CZ26A-718 (10) MMU (7/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALOSX LOCALX register for DMA source 08B0H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALOSX LOCALX register for DMA source 08B1H LOCALX BANK 0:disable 1:ena[...]

  • Страница 722

    TMP92CZ26A 92CZ26A-719 (10) MMU (8/8) Symbol Name Address 7 6 5 4 3 2 1 0 X7 X6 X5 X4 X3 X2 X1 X0 R/W 0 0 0 0 0 0 0 0 LOCALODX LOCALX register for DMA destination 08B8H Set BANK number for LOCAL-X (“0” is dis abled because of overlapped with Common-area. ) LXE X8 R/W R / W 0 0 LOCALODX LOCALX register for DMA destination 08B9H LOCALX BANK 0:dis[...]

  • Страница 723

    TMP92CZ26A 92CZ26A-720 (1 1) NAND-Flash controller (1/4 ) Symbol Name Address 7 6 5 4 3 2 1 0 WE ALE CLE CE0 CE1 ECCE BUSY ECCRST R/W 0 0 0 0 0 0 0 0 08C0H (Prohibit RMW) WE enable 0: Disable 1: Enable ALE control 0: “L” out 1: “H” out CLE control 0: “L” out 1: “H” out 0 CE control 0: “H” out 1: “L” out 1 CE control 0: “H?[...]

  • Страница 724

    TMP92CZ26A 92CZ26A-721 (1 1) NAND-Flash controller (2/4 ) Symbol Name Address 7 6 5 4 3 2 1 0 ECCD7 ECCD6 ECCD5 ECCD4 ECCD3 ECCD2 ECCD1 ECCD0 R 0 0 0 0 0 0 0 0 08C8H NAND Flash ECC Register (7-0) ECCD15 ECCD14 ECCD13 ECCD12 ECCD11 ECCD10 ECCD9 ECCD8 R 0 0 0 0 0 0 0 0 NDECCRD2 NANDF Code ECC Register2 08C9H NAND Flash ECC Register (15-8) ECCD7 ECCD6[...]

  • Страница 725

    TMP92CZ26A 92CZ26A-722 (1 1) NAND-Flash controller (3/4 ) Symbol Name Address 7 6 5 4 3 2 1 0 RS0A7 RS0A6 RS0A5 RS0A4 RS0A3 RS0A2 RS0A1 RS0A0 R 0 0 0 0 0 0 0 0 08D0H NAND Flash Reed-Solomon Calculation Result Address Register (7-0) RS0A9 RS0A8 R 0 0 NDRSCA0 NANDF read solomon Result address Register0 08D1H NAND Fl ash Reed-Solomon Calculation Resul[...]

  • Страница 726

    TMP92CZ26A 92CZ26A-723 (1 1) NAND-Flash controller (4/4 ) Symbol Name Address 7 6 5 4 3 2 1 0 RS3A7 RS3A6 RS3A5 RS3A4 RS3A3 RS3A2 RS3A1 RS3A0 R 0 0 0 0 0 0 0 0 08DCH NAND Flash Reed-Solomon Calculation Result Address Register (7-0) RS3A9 RS3A8 R 0 0 NDRSCA3 NANDF read solomon Result address Register3 08DDH NAND Flash Reed- Solomon Calculation Resul[...]

  • Страница 727

    TMP92CZ26A 92CZ26A-724 (12) DMAC (1/7) Symbol Name Address 7 6 5 4 3 2 1 0 D0SA7 D0SA6 D0SA5 D0SA4 D0SA3 D0SA2 D0SA1 D0SA0 R/W 0 0 0 0 0 0 0 0 0900H Source address for DMA0 (7:0) D0SA15 D0SA14 D0SA13 D0SA12 D0SA11 D0SA10 D0SA9 D0SA8 R/W 0 0 0 0 0 0 0 0 0901H Source address for DMA0 (15:8) D0SA23 D0SA22 D0SA21 D0SA20 D0SA19 D0SA18 D0SA17 D0SA16 R/W [...]

  • Страница 728

    TMP92CZ26A 92CZ26A-725 (12) DMAC (2/7) Symbol Name Address 7 6 5 4 3 2 1 0 D1SA7 D1SA6 D1SA5 D1SA4 D1SA3 D1SA2 D1SA1 D1SA0 R/W 0 0 0 0 0 0 0 0 0910H Set source address for DMA1 (7:0) D1SA15 D1SA14 D1SA13 D1SA12 D1SA11 D1SA10 D1SA9 D1SA8 R/W 0 0 0 0 0 0 0 0 0911H Set source address for DMA1 (15:8) D1SA23 D1SA22 D1SA21 D1SA20 D1SA19 D1SA18 D1SA17 D1S[...]

  • Страница 729

    TMP92CZ26A 92CZ26A-726 (12) DMAC (3/7) Symbol Name Address 7 6 5 4 3 2 1 0 D2SA7 D2SA6 D2SA5 D2SA4 D2SA3 D2SA2 D2SA1 D2SA0 R/W 0 0 0 0 0 0 0 0 0920H Source address for DMA2 (7:0) D2SA15 D2SA14 D2SA13 D2SA12 D2SA11 D2SA10 D2SA9 D2SA8 R/W 0 0 0 0 0 0 0 0 0921H Source address for DMA2 (15:8) D2SA23 D2SA22 D2SA21 D2SA20 D2SA19 D2SA18 D2SA17 D2SA16 R/W [...]

  • Страница 730

    TMP92CZ26A 92CZ26A-727 (12) DMAC (4/7) Symbol Name Address 7 6 5 4 3 2 1 0 D3SA7 D3SA6 D3SA5 D3SA4 D3SA3 D3SA2 D3SA1 D3SA0 R/W 0 0 0 0 0 0 0 0 0930H Set source address for DMA3 (7:0) D3SA15 D3SA14 D3SA13 D3SA12 D3SA11 D3SA10 D3SA9 D3SA8 R/W 0 0 0 0 0 0 0 0 0931H Set source address for DMA3 (15:8) D3SA23 D3SA22 D3SA21 D3SA20 D3SA19 D3SA18 D3SA17 D3S[...]

  • Страница 731

    TMP92CZ26A 92CZ26A-728 (12) DMAC (5/7) Symbol Name Address 7 6 5 4 3 2 1 0 D4SA7 D4SA6 D4SA5 D4SA4 D4SA3 D4SA2 D4SA1 D4SA0 R/W 0 0 0 0 0 0 0 0 0940H Source address for DMA4 (7:0) D4SA15 D4SA14 D4SA13 D4SA12 D4SA11 D4SA10 D4SA9 D4SA8 R/W 0 0 0 0 0 0 0 0 0941H Source address for DMA4 (15:8) D4SA23 D4SA22 D4SA21 D4SA20 D4SA19 D4SA18 D4SA17 D4SA16 R/W [...]

  • Страница 732

    TMP92CZ26A 92CZ26A-729 (12) DMAC (6/7) Symbol Name Address 7 6 5 4 3 2 1 0 D5SA7 D5SA6 D5SA5 D5SA4 D5SA3 D5SA2 D5SA1 D5SA0 R/W 0 0 0 0 0 0 0 0 0950H Source address for DMA5 (7:0) D5SA15 D5SA14 D5SA13 D5SA12 D5SA11 D5SA10 D5SA9 D5SA8 R/W 0 0 0 0 0 0 0 0 0951H Source address for DMA5 (15:8) D5SA23 D5SA22 D5SA21 D5SA20 D5SA19 D5SA18 D5SA17 D5SA16 R/W [...]

  • Страница 733

    TMP92CZ26A 92CZ26A-730 (12) DMAC (7/7) Symbol Name Address 7 6 5 4 3 2 1 0 DMAE5 DMAE4 DMAE3 DMAE2 DMAE1 DMAE0 R/W 0 0 0 0 0 0 HDMAE DMA enable Register 097EH DMA channel op eration 0: Disable 1: Enable DMATE DMATR6 DMATR5 DMATR4 DMATR3 DMATR2 DMATR1 DMATR0 R/W 0 0 0 0 0 0 0 0 HDMATR DMA timer Register 097FH Timer operation 0: Disable 1: Enable Max[...]

  • Страница 734

    TMP92CZ26A 92CZ26A-731 (13) Clock gear , PLL Symbol Name Address 7 6 5 4 3 2 1 0 XTEN USBCLK1 USBCLK0 WUEF PRCK R/W R/W R/W 1 0 0 0 0 SYSCR0 Syst em clock control register0 10E0H Low -frequency oscillator circui t (fs) 0: Stop 1: Oscillation Select the clock of USB(f USB ) 00: Disable 01: Reserved 10: X1USB 11: f PLLUSB Warm-up timer Select Prescal[...]

  • Страница 735

    TMP92CZ26A 92CZ26A-732 (14) 8-bit timer (1/2) Symbol Name Address 7 6 5 4 3 2 1 0 TA0RDE I2TA01 TA01PRUN TA1RUN TA0RUN R/W R/W 0 0 0 0 0 TMRA01 prescaler Up counter (UC1) Up counter (UC0) TA01RUN TMRA01 RUN register 1100H Double buffer 0: Disable 1: Enable IDLE2 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) − W TA0REG 8-bit timer registe[...]

  • Страница 736

    TMP92CZ26A 92CZ26A-733 (14) 8-bit timer (1/2) Symbol Name Address 7 6 5 4 3 2 1 0 TA4RDE I2TA45 TA45PRUN TA5RUN TA4RUN R/W R/W 0 0 0 0 0 TMRA45 prescaler Up counter (UC5) Up counter (UC4) TA45RUN TMRA45 RUN register 1110H Double buffer 0: Disable 1: Enable IDLE2 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) − W TA4REG 8-bit timer registe[...]

  • Страница 737

    TMP92CZ26A 92CZ26A-734 (15) 16-bit timer (1/2) Symbol Name Address 7 6 5 4 3 2 1 0 TB0RDE − I2TB0 TB0PRUN TB0RUN R/W R/W R/W R/W R/W 0 0 0 0 0 TMRB0 prescaler Up counter (UC10) TB0RUN TMRB0 RUN register 1180H Double buffer 0: disable 1: enable Always write “0”. IDLE2 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) − − TB0CP0I TB0CP[...]

  • Страница 738

    TMP92CZ26A 92CZ26A-735 (15) 16-bit timer (2/2) Symbol Name Address 7 6 5 4 3 2 1 0 TB1RDE − I2TB1 TB1PRUN TB1RUN R/W R/W R/W R/W R/W 0 0 0 0 0 TMRB0 prescaler Up counter (UC12) TB1RUN TMRB1 RUN register 1190H Double buffer 0: disable 1: enable Always write “0”. IDLE2 0: Stop 1: Operate 0: Stop and clear 1: Run (Count up) − − TB1CP0I TB1CP[...]

  • Страница 739

    TMP92CZ26A 92CZ26A-736 (16) UART/Serial channel s Symbol Name Address 7 6 5 4 3 2 1 0 RB7 TB7 RB6 TB6 RB5 TB5 RB4 TB4 RB3 TB3 RB2 TB2 RB1 TB1 RB0 TB0 R (Receive) /W (Transmission) SC0BUF Serial channel 0 buffer register 1200H (Prohibit RMW) Undefined RB8 EVEN PE OERR PERR FERR SCLKS IOC R R/W R (Cleared to 0 when read) R/W Undefined 0 0 0 0 0 0 0 1[...]

  • Страница 740

    TMP92CZ26A 92CZ26A-737 (17) SBI Symbol Name Address 7 6 5 4 3 2 1 0 BC2 BC1 BC0 ACK − SCK2 SCK1 SCK0 /SWRMON R/W R/W R R/W R/W 0 0 0 0 1 0 0 0/1 SBICR1 Serial bus interface control register 1 1240H (Prohibit RMW) Number of transfer bits 000: 8 001: 1 010: 2 011: 3 100: 4 101: 5 110: 6 111: 7 Acknowledge mode speci ficat ion 0: Disable 1: Enable A[...]

  • Страница 741

    TMP92CZ26A 92CZ26A-738 (18) AD converter (1/3) Symbol Name Address 7 6 5 4 3 2 1 0 ADR01 ADR00 OVR0 ADR0RF R R R 0 0 0 0 ADREG0L AD conversion result register 0 low 12A0H Store Lower 2 bits of AN0 AD conversion result Overrun flag 0:No generate 1: Generate A D conversion result store flag 1: Stored ADR09 ADR08 ADR07 ADR06 ADR05 ADR04 ADR03 ADR02 R [...]

  • Страница 742

    TMP92CZ26A 92CZ26A-739 (18) AD converter (2/3) Symbol Name Address 7 6 5 4 3 2 1 0 ADRSP1 ADRSP0 OVSRP ADRSPRF R R R 0 0 0 0 ADREGSPL High priority Conversion Register SP low 12B0H Store Lower 2 bits of an AD conversion resu lt Overrun 1: Generate A D conversion result store flag 1: Stored ADRSP9 ADRSP8 ADRSP7 ADRSP6 ADRSP5 ADRSP4 ADRSP3 ADRSP2 R 0[...]

  • Страница 743

    TMP92CZ26A 92CZ26A-740 (18) AD converter (3/3) Symbol Name Address 7 6 5 4 3 2 1 0 EOS BUSY I2AD ADS HTRGE TSEL1 TSEL0 R R/W 0 0 0 0 0 0 0 ADMOD0 AD mode control register 0 12B8H Normal AD conversion end flag 0:During conversion sequence or before starting 1:Complete conversion sequence Normal AD conversion BUSY Flag 0:Stop conversion 1:During conv[...]

  • Страница 744

    TMP92CZ26A 92CZ26A-741 (19) W atchdog timer Symbol Name Address 7 6 5 4 3 2 1 0 WDTE WDTP1 WDTP0 I2WDT RESCR − R/W R/W 1 0 0 0 0 0 WDMOD WDT mode register 1300H WDT control 1: Enable Select detecting time 00: 2 15 /f IO 01: 2 17 /f IO 10: 2 19 /f IO 11: 2 21 /f IO IDLE2 0: Stop 1: Operate 1:Internally connects WDT out to the reset pin Always writ[...]

  • Страница 745

    TMP92CZ26A 92CZ26A-742 (20) RTC (Re al-T ime Clock) Symbol Name Address 7 6 5 4 3 2 1 0 SE6 SE5 SE4 SE3 SE2 SE1 SE0 R/W Undefined SECR Second register 1320H “0” is read 40 sec. 20 sec. 10 sec. 8 sec. 4 sec. 2 sec. 1 sec. MI6 MI5 MI4 MI3 MI2 MI1 MI0 R/W Undefined MINR Minute register 1321H “0” is read 40 min. 20 min. 10 min. 8 min. 4 min. 2 [...]

  • Страница 746

    TMP92CZ26A 92CZ26A-743 (21) Melody/alarm generato r Symbol Name Address 7 6 5 4 3 2 1 0 AL8 AL7 AL6 AL5 AL4 AL3 AL2 AL1 R/W 0 0 0 0 0 0 0 0 ALM Alarm- pattern register 1330H Alarm pattern setting FC1 FC0 ALMINV − − − − MELALM R/W 0 0 0 0 0 0 0 0 MELALMC Melody/ alarm control register 1331H Free run counter control 00: Hold 01: Restart 10: C[...]

  • Страница 747

    TMP92CZ26A 92CZ26A-744 (22) I 2 S (1/2) Symbol Name Address 15 14 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0 B015 B014 B013 B012 B011 B010 B009 B008 B007 B006 B005 B004 B003 B002 B001 B000 W Undefined Transmission buffer register (FIFO) 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 B031 B030 B09 B028 B027 B026 B025 B024 B023 B022 B021 B020 B019 B018 B017 B[...]

  • Страница 748

    TMP92CZ26A 92CZ26A-745 (22) I 2 S (2/2) Symbol Name Address 7 6 5 4 3 2 1 0 TXE0 *CNTE0 DIR0 BIT0 DTFM T01 DTFM T00 S YSCKE0 R/W R/W R/W R/W R/W R/W R/W 0 0 0 0 0 0 0 1808H Transmit 0: Stop 1: Start Counter control 0: Clear 1: Start Transmis sion start BIT 0:MSB 1:LSB Bit length 0: 8 bits 1:16 bits Output format 00: I2S 10: Right 01: Left 11:Reserv[...]

  • Страница 749

    TMP92CZ26A 92CZ26A-746 (23) MAC (1/ 2 ) Symbol Name Address 7 6 5 4 3 2 1 0 MA7 MA6 MA5 MA4 MA3 MA2 MA1 MA0 R/W Undefined MACMA_LL Data register Multiplier A-LL 1BE0H Multiplier A data register [7:0] MA15 MA14 MA13 MA12 MA11 MA10 MA9 MA8 R/W Undefined MACMA_LH Data register Multiplier A-LH 1BE1H Multiplier A data register [15:8] MA23 MA22 MA21 MA20[...]

  • Страница 750

    TMP92CZ26A 92CZ26A-747 (23) MAC (2/ 2 ) Symbol Name Address 7 6 5 4 3 2 1 0 OR39 OR38 OR37 OR36 OR35 OR34 OR33 OR32 R/W Undefined MACOR_HLL Data register Multiply and Accumulate -HLL 1BECH Multiply and Accumulate data register [39:32] OR47 OR46 OR45 OR44 OR43 OR42 OR41 OR40 R/W Undefined MACOR_HLH Data register Multiply and Accumulate -HLH 1BEDH Mu[...]

  • Страница 751

    TMP92CZ26A 92CZ26A-748 6. Package P-FBGA228-1515-0.80A5 TOP VIEW BOTTOM VIEW[...]