mc9s08ac32 Freescale Semiconductor, Inc, mc9s08ac32 Datasheet - Page 86

no-image

mc9s08ac32

Manufacturer Part Number
mc9s08ac32
Description
Hcs08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08ac32CFGE
Manufacturer:
FREESCALE
Quantity:
3 000
Part Number:
mc9s08ac32CFGE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08ac32CFGE
Manufacturer:
FREESCALE
Quantity:
3 000
Part Number:
mc9s08ac32CFGE
Manufacturer:
FREESCALE/NXP
Quantity:
20 000
Part Number:
mc9s08ac32CFGER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08ac32CFGER
Manufacturer:
FREESCALE/PBF
Quantity:
160
Part Number:
mc9s08ac32CFJE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08ac32CFUE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08ac32CPUE
Manufacturer:
FREESCALEQFP
Quantity:
20 000
Chapter 6 Parallel Input/Output
6.5
Depending on the stop mode, I/O functions differently as the result of executing a STOP instruction. An
explanation of I/O behavior for the various stop modes follows:
6.6
This section provides information about the registers associated with the parallel I/O ports and pin control
functions. These parallel I/O registers are located in page zero of the memory map and the pin control
registers are located in the high page register section of memory.
Refer to tables in
control registers. This section refers to registers and control bits only by their names. A Freescale-provided
equate or header file normally is used to translate these names into the appropriate absolute addresses.
6.6.1
Port A parallel I/O function is controlled by the registers listed below.
86
Reset
PTADn
Field
7:0
W
R
Stop2 mode is a partial power-down mode, whereby I/O latches are maintained in their state as
before the STOP instruction was executed. CPU register status and the state of I/O registers should
be saved in RAM before the STOP instruction is executed to place the MCU in stop2 mode. Upon
recovery from stop2 mode, before accessing any I/O, the user should examine the state of the PPDF
bit in the SPMSC2 register. If the PPDF bit is 0, I/O must be initialized as if a power on reset had
occurred. If the PPDF bit is 1, I/O data previously stored in RAM, before the STOP instruction was
executed, peripherals may require being initialized and restored to their pre-stop condition. The
user must then write a 1 to the PPDACK bit in the SPMSC2 register. Access to I/O is now permitted
again in the user’s application program.
In stop3 mode, all I/O is maintained because internal logic circuity stays powered up. Upon
recovery, normal I/O function is available to the user.
Pin Behavior in Stop Modes
Parallel I/O and Pin Control Registers
PTAD7
Port A I/O Registers (PTAD and PTADD)
Port A Data Register Bits — For port A pins that are inputs, reads return the logic level on the pin. For port A
pins that are configured as outputs, reads return the last value written to this register.
Writes are latched into all bits of this register. For port A pins that are configured as outputs, the logic level is
driven out the corresponding MCU pin.
Reset forces PTAD to all 0s, but these 0s are not driven out the corresponding pins because reset also configures
all port pins as high-impedance inputs with pullups disabled.
0
7
Chapter 4,
PTAD6
0
6
“Memory,” for the absolute address assignments for all parallel I/O and pin
Table 6-1. PTAD Register Field Descriptions
Figure 6-2. Port A Data Register (PTAD)
MC9S08AC60 Series Data Sheet, Rev. 2
PTAD5
0
5
PTAD4
0
4
Description
PTAD3
3
0
PTAD2
0
2
Freescale Semiconductor
PTAD1
0
1
PTAD0
0
0

Related parts for mc9s08ac32