| Electronic Components Datasheet Search |
|
CP3SP33SMS/NOPB Datasheet(PDF) 111 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
CP3SP33SMS/NOPB Datasheet(HTML) 111 Page - Texas Instruments |
|
111 / 407 page ![]() CP3SP33 www.ti.com SNOSCW5 – MAY 2013 18.1 Open-Drain Operation A port pin can be configured to operate as an inverting open-drain output buffer. To do this, software must clear the bit in the PxDOUT register and use the PxDIR bit to set the value of the port pin. In open-drain operation, the output buffer is toggled between driving logic low and TRI-STATE (high-impedance mode). This is achieved by using the PxDIR register to switch between driving a low output and configuring the port pin as an input. If desired, the internal weak pullup or pulldown can be enabled to pull the signal to a harmless state when the output buffer is in TRI-STATE mode. 18.2 Port Registers Each port has a set of memory-mapped registers: • PxDIR—specifies whether the port is an input or output, except when using an alternate function. When an alternate function is used, peripheral controls port direction. • PxDIN—indicates the states on the port pins. • PxDOUT—holds data driven on the port pins, when the port is configured as an output and no alternate function is used. When an alternate function is used, the peripheral device controls the data output. This register also specifies states which cause assertion of interrupts, when interrupts are enabled (see PxIEN register). • PxIEN—enables an interrupt when the state on the port pin matches the state in PxDOUT register. • PxALT—enables the port alternate function. • PxALTS—selects between alternate functions (A and B) • PxWPU—enables a weak pullup or pulldown • PxPDR—selects the pullup/pulldown direction. Table 18-1. Port Registers NAME ADDRESS DESCRIPTION PEDIR FF C404h Port E Direction Register PEDIN FF C408h Port E Data Input Register PEDOUT FF C40Ch Port E Data Output Register PEIEN FF C41Ch Port E Interrupt Enable Register PEALT FF C400h Port E Alternate Function Register PEALTS FF C418h Port E Alternate Function Source Register PEWPU FF C410h Port E Weak Pullup/Pulldown Enable Register PEPDR FF C420h Port E Weak Pullup/Pulldown Direction Register PFDIR FF C804h Port F Direction Register PFDIN FF C808h Port F Data Input Register PFDOUT FF C80Ch Port F Data Output Register PFIEN FF C81Ch Port F Interrupt Enable Register PFALT FF C800h Port F Alternate Function Register PFALTS FF C818h Port F Alternate Function Source Register PFWPU FF C810h Port F Weak Pullup/Pulldown Enable Register PFPDR FF C820h Port F Weak Pullup/Pulldown Direction Register PGDIR FF 6404h Port G Direction Register PGDIN FF 6408h Port G Data Input Register PGDOUT FF 640Ch Port G Data Output Register PGIEN FF 641Ch Port G Interrupt Enable Register PGALT FF 6400h Port G Alternate Function Register PGALTS FF 6418h Port G Alternate Function Source Register PGWPU FF 6410h Port G Weak Pullup/Pulldown Enable Register PGPDR FF 6420h Port G Weak Pullup/Pulldown Direction Register Copyright © 2013, Texas Instruments Incorporated Input/Output Ports 111 Submit Documentation Feedback Product Folder Links :CP3SP33 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |