MC908QL4 FREESCALE [Freescale Semiconductor, Inc], MC908QL4 Datasheet - Page 111

no-image

MC908QL4

Manufacturer Part Number
MC908QL4
Description
M68HC08 Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC908QL4MDT
Manufacturer:
FREESCALE
Quantity:
10
Part Number:
MC908QL4MDT
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
MC908QL4MDW1
Quantity:
11
Chapter 12
Input/Output Ports (PORTS)
12.1 Introduction
The MC68HC908QL4 has thirteen bidirectional input-output (I/O) pins and one input only pin. All I/O pins
are programmable as inputs or outputs.
12.2 Unused Pin Termination
Input pins and I/O port pins that are not used in the application must be terminated. This prevents excess
current caused by floating inputs, and enhances immunity during noise or transient events. Termination
methods include:
Never connect unused pins directly to V
Since some general-purpose I/O pins are not available on all packages, these pins must be terminated
as well. Either method 1 or 2 above are appropriate.
12.3 Port A
Port A is an 6-bit special function port that shares its pins with the keyboard interrupt (KBI) module (see
Chapter 9 Keyboard Interrupt Module
Timer Interface Module
Module), the external interrupt (IRQ) pin (see
enabled using a configuration register (see
oscillator pins (see
Each port A pin also has a software configurable pullup/down device if the corresponding port pin is
configured as an input port.
Freescale Semiconductor
1. Configuring unused pins as outputs and driving high or low;
2. Configuring unused pins as inputs and enabling internal pull-ups;
3. Configuring unused pins as inputs and using external pull-up or pull-down resistors.
PTA2 is input only.
When the IRQ function is enabled in the configuration register 2
(CONFIG2), bit 2 of the port A data register (PTA) will always read a logic 0.
In this case, the BIH and BIL instructions can be used to read the logic level
on the PTA2 pin. When the IRQ function is disabled, these instructions will
behave as if the PTA2 pin is a logic 1. However, reading bit 2 of PTA will
read the actual logic level on the pin.
Chapter 11 Oscillator Module
(TIM)), the 10-bit ADC (see
MC68HC908QL4 Data Sheet, Rev. 7
(KBI), the 2-channel timer interface module (TIM) (see
DD
or V
Chapter 5 Configuration Register
Chapter 8 External Interrupt
SS
NOTE
(OSC)).
.
Chapter 3 Analog-to-Digital Converter (ADC10)
(IRQ)), the reset (RST) pin
(CONFIG)) and the
Chapter 15
111

Related parts for MC908QL4