, >>>

ChipNews

2003: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
2002: 
1, 5, 6, 7, 8, 9
2001: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
2000: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
1999: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10

ChipNews

Новости строительства

827:

827 0688759652

:

- . , , " " " ", .

2963-2 (RUS) . :

2963-2

II ... 372:

!

.

68HC705

     , 8- 68HC705 Motorola. [1] . , .      68HC705 , , :

     .

1. /

     68HC705 2 5 , A, B, C, D E (. 1). / (i/o), (i) (o) . [1]. . 1, / , , SCI, SPI, SIOP, (). , , . 8- , (2, 3, 6 7).

1.

A B C D E
68HC705KJ1 8 i/o, 4 2 i/o - - -
68HC705J1A 8 i/o, 4 6 i/o - - -
68HC705P6A 8 i/o, 8 3 i/o, 3 SIOP 8 i/o, 4 1 i/o + 1 i, 1 -
68HC705C8A 8 i/o 8 i/o, 8 8 i/o 7 i, 3 SPI, 2 SCI -
68HC705C9A 8 i/o 8 i/o, 8 8 i/o 7 i/o, 3 SPI, 2 SCI -
68hc705b16 8 i/o 8 i/o 8 i/o, 1 8 i, 8 -
68HC705L16 ( 27 ) 8 i/o 8 i, 8 8 i/o, 3 SIOP, 3 , 2 7 , 8
8 , 8

     (i/o . 1) 8- PORTx DDRx ( x = A, B, C D ). PORTx $00$03, DDRx $04$07 , [1]. DDRx , : i- "0", Pxi , "1" . RESET# DDRx , . LDA, LDX STA, STX. STA, STX A X PORTx . , PORTx . LDA, LDX A X , , . , PORTx. PORTx .
     , , ("") - ( 100 ). (pull-down) , , ( ). 68HC705KJ1, J1A SWPDI, , SWPDI = 1. A B PDRA PDRB, i- i- , "0". 68HC705B16 B C , PBPD PCPD = 1.
     , (i . 1). PORTx, DDRx. LDA LDX, , A X .
     68HC705L16 D E (o . 1). PDMUX, PEMUX i- "0", i- , i- "1", i- . RESET# = 0 D E .
     68HC705B16 PC2 C Ft, . "1" . I0 = 1,6 U0 , I1 = 0,8 U1 ( 68HC705L16 I0 = 0,8 , I1 = 0,4 ). , . 68HC705KJ1, J1A PA7-4 A I0 = 10 , I1 = 0,8 ; 68HC705C8A, C9A PC7 C I0 = 20 , I1 = 5 ; 68HC705P6A PC0,1 C I0 = 10 , I1 = 5 .

2. /

     68HC705C8A, C9A SCI SPI, 68HC705P6A L16 - SIOP SSPI, 68HC705B16 SCI+ .
     SCI (serial communication interface) / , 9- () (. 1).


. 1. SCI

    SCI SCDR ( $11), SCSR, SCCR1 SCCR2. - , Fs BRR. . 2. RDI TDO, , , PD0 PD1 D.
     SCI , SCCR1,2 c STA. M SCCR1 (. 2) : 8 M = 0, 9 M = 1. M = 1, 9- () T8 SCCR1, 9- SCCR1 R8. "1" ( ) , Ts = 1/Fs. "0" 10Ts ( 8- , M = 0) 11Ts ( 9- , M = 1), .


. 2. SCI

     RDI , SCDR, A X LDA LDX. , SCDR STA STX, TDO. , SCDR, , . , RDI , . WAKE SCCR. WAKE = 0 RDI 10 ( 8- , M = 0) 11 ( 9- , M = 1) . WAKE = 1 "1" () . , TDO , 10 ( 8- ) 11 ( 9- ) Ts.
     , SCCR2 (. 2), - , , . SCCR2 :

     PD1 PD0 , , TDO RDI D. SBK = 0 10 11 TDO, "1" , SCDR .
     SCSR (. 2), , , :

     TDRE, TC, RDRF, IDLE, OR , SCCR2. SCSR, . , TDRE, TC, RDRF OR SCI SCI . "0" TIE, TCTE RIE, SCI SCSR ( ). RDI Ts. , ("0" "1"), ( ), . NF = 1. NF FE - .
     TDRE TC "0", SCSR SCDR. RDRF, IDLE, OR, NF FE "0", SCSR SCDR.
     Ts = 1/Fs Fs , , BRR (. 2). Fs = Ft /(Kd Ks), Kd Ks , SCP1-0 SCR2-0 BRR (. 2). Kd Ks /c 100 /c.

2. Kd KS SCI SCI+

SCP1-0 Kd SCR2-0 KS
00 1 000 1
01 3 001 2
10 4 010 4
11 13 011 8
    100 16
    101 32
    110 64
    111 128

     - SCI+, 68HC705B16, SCI , - , . SCI+ SDI SDO, SCK, - . SCK . , (8- 9-) . , SCK SCI+ . SCK, SCI+ / , SCI.
     SCCR1 SCCR2, SCCR1 , SCK:

     , SCCR1, SCCR2 SCSR, , SCI (. 2-). BRR , Ts : SCP1-0 ( 7,6) - Kd; SCT2-0 ( 5,4,3) SCR2-0 ( 2,1,0) Kst Ksr . . 2.
     SPI (serial peripheral interface) SPDR ( $0C), SPCR SPSR, . 3.


. 3. SPI

     SPI , SPCR (. 3). SPI , SPCR MSTR = 1, , MSTR = 0. SPI , Fs = Ft/Kd, Kd SPR1,0 SPCR (. 3).

3. Kd SPI

SPR1-0 Kd
00 2
01 4
10 16
11 32

SPI SPCR SPE = 1. PD5-2 D / MISO, MOSI, SCK SS# (. 4), . :

     SPI . 4. SPI . 8- , SPDR . SPIF = 1 SPSR (. 3). SPI, SPCR SPIE = 1.


. 4. SPI

     SCK SPI "0", SPCR - CPOL = 0, "1", CPOL = 1. SPDR SPI. SCK , . CPHA, .
     0. CPH = 0 SPI MISO SS# = 0. CPOL = 0, ( SPDR SPI) SPI SCK "0", SCK "1" ( ). CPOL = 1, "1" SCK, "0" ( ). SS# SPI "1", "0".
     1. CPHA = 1 SPI , CPOL = 0, , CPOL = 1. , CPOL = 0, , CPOL = 1. SS# SPI "0" .
     SPSR (. 3), SPIF, WCOL MODF. WCOL "1", SPDR . MODF "1" SS# = 0 SPI, . SPCR MSTR = SPE = 0, SPI . SPIE = 1, SPI, . SPSR . SPIF, WCOL MODF "0", SPSR SPDR .
     68HC705L16 SSPI (simple serial peripheral interface), , , SPI. SSPI , : SDI ( MISO), SDO ( MOSI) SCK, -, , PC0-2 B. SS#, SPI, . SPCR SPIE, SPE MSTR (. 3), DORD ( 5) SPR ( 0). DORD : ( DORD = 1) ( DORD = 0) . SPR : Fs = Ft/2 SPR = 0 Fs = Ft/16 SPR = 1. SCK. SPSR SPIF DCOL ( WCOL), DCOL = 1, SPDR .
     68HC705P6A SIOP (simple synchronous serial input-output port) SSPI. SPI SSPI , , SIOP . SPCR SPE MSTR (. 3), SPSR SPIF DCOL ( SSPI). : LSBF, ( DORD SSPI), SPR1-0, . 3. / SDO, SDI SCK, PB57 B.

3. -

     , . 68HC705 16- , . 68HC705L16 - 8- - 14- , - , , - , XOSC1,2. 68HC705KJ1, J1A 15- MFT. 68HC705B16 - , - , .
     , 68HC705P6A, C8A, C9A, B16, L16 TCAP TCMP. 8- TCR TSR (. 5), 16- : TCNTR ( $1819), ACNTR ( $1A1B), ICR ( $1415) OCR ( $1617).
     TCNTR , . Fc = Ft/4, (216)Tc= 4(216)Tt. $FFFF $0000, TOF TSR TOF = 1. , TCR TCIE = 1. TCNTR ACNTR, . TCNTR ACNTR , TCNTR TOF = 0, ACNTR TOF . .


. 5. TCR, TSR (, *, 68HC705B16)

     TCNTR ACNTR , A ( LDA) X ( LDX) . , . , .
     () (). TCAP ICR, . TSR ICF = 1, , TCR ICIE = 1. ICR TCAP. OCR. , TCMP , OCF = 1 TSR. , TCR OCIE = 1.
     TCR (. 5) ICIE, OCIE TOIE, TSR. IEDG TCAP, ICR: IEDG = 0, , IEDG = 1 . OLVL , TCMP OCR: OLVL = 0 TCMP = 0, OLVL = 1 TCMP = 1.
     TSR (. 5) ICF, OCF TOF, , "1". TSR. ICF = 0 ICR, OCF = 0 OCR, TOF = 0 TCNTR. LDA LDX TSR, .
     , , , .
     68HC705C8A, C9A, P6A. 68HC705L16 , TCMP. OCF = 1 .
     68HC705B16 TCAP1,2 TCMP1,2. ICR2 ( $1C1D) OCR2 ( $1E1F), TCR TSR. TCR (. 5) IEDG1 OLVL1 TCAP1 TCMP1, OLVL2 TCMP2. TCAP2 . TCR FOLV2 FOLV1, "0" "1" TCMP2 TCMP1, TCNT (OCR2 OCR1). TSR (. 5) TCAP1,2 TCMP1,2.
    - 68HC705L16 . 8- , , CLK2 ( Fc = Ft Fc = Ft/128), , , EVI. EVI , . - EVO, , . EVI EVO PC5 PC4 C. Fc = Ft/Kc, Kc T2R1-0 TBCR1 (. 6): Kc = 1 T2R1-0 = 00, 4 01, 32 10, 128 11. - TCR2 TSR2 (. 6,), TCNT2 ( $1F), OCR2 ( $1E) TBCR1 ( $10).
     TCR2 (. 6):

     TSR2 (. 6) TI2F = 1, EVI , TCNT2 (T2CLK = 0) (T2CLK = 0). OC2F = 1 TCNT2 OCR2. , TI2IE OC2IE TSR2. TI2F OC2F "0" "1" RTI2F ROC2F TSR2.

. 6. TCR2 TSR2 -

     , - . TCNT2 OCR2. OC2F = 1 TCNT2.      68HC705L16 , ( 4), ( 6). 14- , TBCLK, ( Fb = Ft/64) ( Fb , XOSC1,2). C Fl = Fb/64 Fb/128 , Fp = Fb/Kp ( Kp TBR1-0 TBCR2, . 6), Fp/4 COP ( 4). TBCR1,2, (. 7,):


. 7.

     MFT 68HC705KJ1, J1A. 15- , - - TCR ( $09), , - TSCR (. 8).


. 8. - TSCR ( $08)

     Fc = Ft/4. TCR $FF $00 TOF = 1. TOIE = 1, . , 210 = 1024 Tt. RTIF = 1 , Tp RT1-0 TSCR: Tp = 214Tt RT1-0 = 00, 215Tt 01, 216Tt 10, 217Tt 11. RTIE = 1, . TOF RTIF = 1 "0" "1" TOFR RTIFR TSCR (. 8).
     , MFT .
    - (), , 68HC705B16. PLMA PLMB, - , . Tr (SFA SFB) ( $0): Tr = 256Tc SFA(B) = 0 ( ), Tr = 4096Tc SFA(B) = 1 ( ), Tc = Tt/4 . q 8- PLMA ( $0A), PLMB ( $0B) Tp = (q/256)Tr, Tr/256 255Tr/256. , , : Fr = Ft/256 Fr = Ft/4096.

4.

     68H705 COP (computer operating properly).      COP, 68HC705C8A, C9A, . COP COPCR , (. 9):

. 9. COPCR ( $1E)

     COPE CM10 ( RESET), . CME .
     c WDT COPE = PCOPE = 1. WDT Tw , ( RESET ). , WDT Tw. WDT 8- COPR ( $1D) $55, $AA. Tw, CM10 COPCR. , RESET# = 0, . , , $55 $AA. , , , .
     NCOPE = 1 MOR2 ( $1FF1). Tw = 217Tt, WDT "0" MOR1 ( $1FF0), COPC.
     COP 68HC705C8A, C9A , RESET# = 0 ( RESET), Tx . CME = 1 COPCR. Tx 5 100 . , Ft < 200 . CME = 0, 200 .
     68HC705 . COPR COPCR, - COPC . , 68HC705P6A - 68HC705C8A, C9A. 68HC705B16 COP "1" 3 (RWAT , WDT RESET) MOR ( $3DFE). WDT "1" , $0C. 68HC705L16 WDT "1" COPC TBCR2 (. 7), COP "1" COPE, . Tw TBR1-0 : Tw = 215Tt TBR10 = 00, 220Tt 01, 221Tt 10, 222Tt 11. 68HC705KJ1, J1A WDT "0" COPR ( $07F0), Tw = 7Tp, Tp , MFT.

5. -

     68HC705P6A, B16 8- - (), , .
     , , , , - , ADSC (. 10) 8- ADC. 68HC705P6A AD30, PC36 C, 68HC705B16 AD70, PD70 D.
     , 68HC705B16 Vrh Vrl. , , Vrh = 5 Vrl = 0 . 68HC705P6A Vrh PC7 C, Vrl Vss "". (Vrh Vrl) = 5 - 20 , 10 .

. 10. ADSC ( $1E 68HC705P6A, $09 68HC706B16)

     , , RC-. Ft < 1 , , . RC-, ADSC ADRC = 1.
     ADSC (. 10):

     ADSC ADON = 1. , AD70 ( AD30), 8- , , ADC ( $1D 68HC705P6A, $08 68HC705B16). A X LDA LDX. V Vrh > V > Vrl. 32Tt, 12Tt , 20Tt .

4.

68HC705B16 68HC705P6A
CH3-0 CH2-0
0000 AD0 (PD0) 000 AD0 (PC6)
0001 AD1 (PD1) 001 AD1 (PC5)
0010 AD2 (PD2) 010 AD2 (PC4)
0011 AD3 (PD#0 011 AD3 (PC3)
0100 AD4 (PD4) 100 Vrh (PC7)
0101 AD5 (PD5) 101 (Vrh + Vrh)/2
0110 AD6 (PD6) 110 Vrl=VSS
0111 AD7 (PD7) 111 -
1000 Vrh    
1001 (Vrh + Vrt)/2    
1010-1111 Vrt    

     , . ADC, CC ADSC, - .

6.

     68HC705L16 , , 39 . 27 FP260 D, E, . BP30, PD30 D . Vlcd1, Vlcd2 Vlcd3, 0, Vdd, Vdd/2, Vdd/3 2Vdd/3, ( Vdd 5, 3,3 2,7 ).

. 11. LCDCR

     LCDCR ( $20), (. 11):

     PEH, PEL, PDH = 1 , . FP260 .
     BP3-0, 4 (back-plane), FP380, 39 (front-plane) . , , 156 . ( 3). "1" "0" 20 LCDDR1LCDDR20 ( $21$34) . 8- . 156 , FP0-0, FP0-1, FP0-2 FP0-3 03 LCDDR1, 1- - FP0 BP0, BP1, BP2 BP3, , FP38-0, FP38-1, FP38-2 FP38-3 03 LCDDR20, 39- FP38 ( LCDDR20 ).
     , 68HC705 , .
     68HC05 Internet http://sps.motorola.com/csic.