




版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030年中國(guó)石棉制品行業(yè)發(fā)展趨勢(shì)及投資戰(zhàn)略研究報(bào)告
- 廈門工學(xué)院《供應(yīng)鏈管理實(shí)驗(yàn)》2023-2024學(xué)年第二學(xué)期期末試卷
- 溫州理工學(xué)院《居住建筑設(shè)計(jì)原理》2023-2024學(xué)年第二學(xué)期期末試卷
- 貴州城市職業(yè)學(xué)院《化工原理實(shí)驗(yàn)一》2023-2024學(xué)年第二學(xué)期期末試卷
- 南京工業(yè)職業(yè)技術(shù)大學(xué)《兒重發(fā)育保健護(hù)理》2023-2024學(xué)年第二學(xué)期期末試卷
- 河南質(zhì)量工程職業(yè)學(xué)院《數(shù)字媒體后期制作》2023-2024學(xué)年第二學(xué)期期末試卷
- 山東現(xiàn)代學(xué)院《寶石合成與優(yōu)化》2023-2024學(xué)年第二學(xué)期期末試卷
- 河南應(yīng)用技術(shù)職業(yè)學(xué)院《建筑風(fēng)格史》2023-2024學(xué)年第二學(xué)期期末試卷
- 四川音樂學(xué)院《ED器件與應(yīng)用技術(shù)》2023-2024學(xué)年第二學(xué)期期末試卷
- 聊城大學(xué)《幼兒心理學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 安徽省歷年中考語文現(xiàn)代文閱讀之非連續(xù)性文本閱讀6篇(截至2024年)
- 《典型的光器件AWG》課件
- 出血熱知識(shí)培訓(xùn)課件
- 廣東省汕頭市潮南區(qū)2024-2025學(xué)年高一上學(xué)期期末教學(xué)質(zhì)量監(jiān)測(cè)英語試卷(無答案)
- 2024年度工業(yè)自動(dòng)化設(shè)備維護(hù)保養(yǎng)及上門維修合同3篇
- 2025年公司總經(jīng)理年終總結(jié)工作報(bào)告
- 安徽省“江淮十?!?024屆高考化學(xué)一模試卷含解析
- 圖書外借服務(wù)計(jì)劃
- 軟考系統(tǒng)集成項(xiàng)目管理工程師教程完整版
- 統(tǒng)編版八年級(jí)語文上冊(cè)第六單元作業(yè)設(shè)計(jì)
- 危險(xiǎn)性較大的分部分項(xiàng)工程清單和安全管理措施范文
評(píng)論
0/150
提交評(píng)論