| Electronic Components Datasheet Search |
|
MC68HC908GR4MP Datasheet(PDF) 150 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MC68HC908GR4MP Datasheet(HTML) 150 Page - Freescale Semiconductor, Inc |
|
150 / 286 page ![]() Input/Output Ports (I/O) MC68HC908GR8 • MC68HC908GR4 Data Sheet, Rev. 7 150 Freescale Semiconductor 16.4 Port C Port C is a 2-bit, general-purpose bidirectional I/O port. Port C also has software configurable pullup devices if configured as an input port. 16.4.1 Port C Data Register The port C data register (PTC) contains a data latch for each of the two port C pins. PTC1–PTC0 — Port C Data Bits These read/write bits are software-programmable. Data direction of each port C pin is under the control of the corresponding bit in data direction register C. Reset has no effect on port C data. NOTE PTC is not available in a 28-pin DIP and SOIC package 16.4.2 Data Direction Register C Data direction register C (DDRC) determines whether each port C pin is an input or an output. Writing a 1 to a DDRC bit enables the output buffer for the corresponding port C pin; a 0 disables the output buffer. Table 16-3. Port B Pin Functions DDRB Bit PTB Bit I/O Pin Mode Accesses to DDRB Accesses to PTB Read/Write Read Write 0 X(1) Input, Hi-Z(2) DDRB5–DDRB0 Pin PTB5–PTB0(3) 1 X Output DDRB5–DDRB0 PTB5–PTB0 PTB5–PTB0 Notes: 1. X = Don’t care 2. Hi-Z = High impedance 3. Writing affects data register, but does not affect input. Address: $0002 Bit 7 654321 Bit 0 Read: 000000 PTC1 PTC0 Write: Reset: Unaffected by reset = Unimplemented Figure 16-9. Port C Data Register (PTC) Address: $0006 Bit 7 654321 Bit 0 Read: 000000 DDRC1 DDRC0 Write: Reset: 00000000 = Unimplemented Figure 16-10. Data Direction Register C (DDRC) |
|
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 |