飛思卡爾后背資料8_第1頁(yè)
飛思卡爾后背資料8_第2頁(yè)
飛思卡爾后背資料8_第3頁(yè)
飛思卡爾后背資料8_第4頁(yè)
飛思卡爾后背資料8_第5頁(yè)
已閱讀5頁(yè),還剩8頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Port IntegrationModuleHCS12 - Port Integration ModuleOn the HCS12 each port has a set of control registers (in the PIM) arranged in a similar structure where each individual I/O pin can be configured for: Input/output selection (Ports T,S,M,P,H,J ) Drive strength reduction Enable and polarity of pul

2、l resistors Interrupt enable and status flagsA standard port has the following minimum features: Input/output selection by bit. 5V output drive with two selectable drive strengths 5V digital or interrupt inputs Input with selectable pull-up or pull-down deviceOptional features: Open drain for wired-

3、or connections(Ports S,M) Interrupt inputs with glitch filtering(Ports P,H,J ) Interrupt polarityPort A, B, E and K are part of the core, not part of PIM.Port Input Registers can be used to detect overload or short circuit conditions on output pins.HCS12 - Port Integration ModuleHCS12 Input / Output

4、Drive current:Output High: Full Drive: 12.5mA at Vdd -.8V Partial Drive: 1.25mA at Vdd -.8VOutput Low: Full Drive: -12.5mA at .8V Partial Drive: -1.25mA at .8V Logic Thresholds:High: 0.65 X Vdd = 3,25V Low : 0.35 X Vdd = 1,75VPullup/Pulldown resistors:Pull Enable Registers enable or disablePolarity

5、Select Registers control pullup or pulldown Approx. 100 uAWired-or mode:Ports S and M have wired-or mode (open drain) capabilityHCS12 I/O PinsOutput Fault Detection:Ability to read pin state of outputs via Input RegistersReduced drive mode:Controlled by Reduced Drive Registersuseful for EMC on SPI l

6、ines, PWM, etc.Unused pins on PWB design:Configure as output and leave open,Leave as input and enable pullup/pulldown,Leave as input and tie to gnd. Write data register to 0.Special considerations for 80 pin package:Same die as in 112 pin package.Floating pads on die must be input with pulldown orou

7、tput with driven to 0.Also reference - EB386: “ Family Compatibility Considerations”Transient protection:Limit short duration injection currents to +/- 25 mASteady State injection currents:Up to 2.5 mA per pin, 25 mA per pkg.Module Routing Register:The purpose of the Module Routing Register is to pr

8、ovide maximum flexibility for future derivatives of the HCS12 with a lower number of modules and lower pin count packages.HCS12 PIM - Rerouting Port T RegistersAddress Offset $0000 A read returns latched value when configured for output or value at the input pin when when configured as input.PPT - P

9、ort T I/O Reg.DDRT - Port T Direction Reg.PTIT- Port T Input RegisterRDRT - Port T Reduced Drive Reg.PERT - Port T Pull Device Enable Reg.PPST - Port T Polarity Select Reg.$0002 DDRTx = 0 Pin is Input = 1 Pin is Output$0001 Contains current pin status This register may be used to detect overload or

10、short circuit condition on the output pin$0003 RDRT x = 0 Pin output full drive = 1 Pin output 1/3 drive$0004 PERTx 0 = Pull-up/down disabled 1 = Pull-up/down enabled$0005 PPSTx 0 = Port T pin x has pull-up 1 = Port T pin x has pull-down Port S RegistersPPS - Port S I/O Reg.DDRS - Port S Direction R

11、eg.PTIS- Port S Input Reg.RDRS - Port S Reduced Drive Reg.PERS - Port S Pull Device Enable Reg.PPSS - Port S Polarity Select Reg.WOMS - Port S Wired-Or Reg. Address Offset $0008 A read returns latched value when configured for output or value at the input pin when when configured as input.$000A DDRS

12、 x = 0 Pin is Input = 1 Pin is Output $0009 Contains current pin status$000B RDRS x = 0 Pin output full drive = 1 Pin output 1/3 drive$000C PERS x 0 = Pull-up/down disabled 1 = Pull-up/down enabled $000D PPSS x 0 = Port S pin x has pull-up 1 = Port S pin x has pull-down $000E PPSS x 0 = Push-pull ou

13、tput 1 = Open-drain output Port M RegistersPPS - Port M I/O Reg.DDRM - Port M Direction Reg.PTIM- Port M Input Reg.RDRM - Port M Reduced Drive Reg.PERM - Port M Pull Device Enable Reg.PPSM - Port M Polarity Select Reg.WOMM - Port M Wired-Or Reg. Address Offset $0010 A read returns latched value when

14、 configured for output or value at the input pin when when configured as input.$0012 DDRM x = 0 Pin is Input = 1 Pin is Output$0011 Contains current pin status$0013 RDRM x = 0 Pin output full drive = 1 Pin output 1/3 drive$0014 PERM x 0 = Pull-up/down disabled 1 = Pull-up/down enabled $0015 PPSM x 0

15、 = Port S pin x has pull-up 1 = Port S pin x has pull-down $0016 PPSM x 0 = Push-pull output 1 = Open-drain output Note: If both CAN0 and BDLC are enabled, CAN functionality takes precedencePort P Registers Address Offset $0018 A read returns latched value when configured for output or value at the

16、input pin when when configured as input.$001A DDRP x = 0 Pin is Input = 1 Pin is Output$0019 Contains current pin status$001B RDRP x = 0 Pin output full drive = 1 Pin output 1/3 drive$001C PERP x 0 = Pull-up/down disabled 1 = Pull-up/down enabled $001D PPSP x 0 = Falling edge on pin x sets correspon

17、ding PIFP Flag. (Pull-up device connected) 1 = Rising edge on pin x sets corresponding PIFP flag. (Pull-down device connected)$001E PIEP x 0= Interrupt disabled 1 = Interrupt EnabledPTP - Port P I/O Reg.DDRP - Port P Direction Reg.PTIP- Port P Input Reg.RDRP - Port P Reduced Drive Reg.PERP - Port P

18、Pull Device Enable Reg.PPSP - Port P Polarity Select Reg.PIEP - Port P Interrupt Enable Reg.PIFP - Port P Interrupt Flag Reg.$001F PIFP x Interrupt Flag Write 1 to clear Note: If both PWM and SPI are enabled, PWM functionality takes precedencePort H RegistersPTH - Port H I/O Reg.DDRH - Port H Direct

19、ion Reg.PTIH- Port H Input Reg.RDRH - Port H Reduced Drive Reg.PERH - Port H Pull Device Enable Reg.PPSH - Port H Polarity Select Reg.PIEH - Port H Interrupt Enable Reg.PIFH - Port H Interrupt Flag Reg. Address Offset $0020 A read returns latched value when configured for output or value at the inpu

20、t pin when when configured as input.$0022 DDRH x = 0 Pin is Input = 1 Pin is Output$0021 Contains current pin status$0023 RDRH x = 0 Pin output full drive = 1 Pin output 1/3 drive$0024 PERP x 0 = Pull-up/down disabled 1 = Pull-up/down enabled $0025 PPSH x 0 = Falling edge on pin x sets corresponding

21、 PIFH Flag. (Pull-up device connected) 1 = Rising edge on pin x sets corresponding PIFH flag. (Pull-down device connected)$0026 PIEH x 0= Interrupt disabled 1 = Interrupt Enabled$0027 PIFH x Interrupt Flag Write 1 to clear Port J RegistersPTJ - Port J I/O Reg.DDRJ - Port J Direction Reg.PTIJ- Port J Input Reg.RDRJ - Port J Reduced Drive Reg.PERJ - Port J Pull Device Enable Reg.PPSJ - Port J Polarity Select Reg.PIEJ - Port J Interrupt Enable Reg.PIFJ - Port J Interrupt Flag R

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論