mc68hc908jw32 Freescale Semiconductor, Inc, mc68hc908jw32 Datasheet - Page 172

no-image

mc68hc908jw32

Manufacturer Part Number
mc68hc908jw32
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908jw32FAE
Manufacturer:
FREESCALE
Quantity:
20 000
Input/Output (I/O) Ports
13.4 Port C
Port C is a 4-bit general-purpose bidirectional I/O port. PTC[3:0] are shared with Timer.
13.4.1 Port C Data Register
The port C data register contains a data latch for each of the seven port C pins.
Table 13-4
PTC[3:0] — Port C Data Bits
T1CH0, T1CH1 — Timer Channels I/O Bits
TCLK1 — Timer Clock Input
172
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.
The PTC0/T1CH0, PTC2/T1CH1 pins are the TIM input capture/output compare pins. The edge/level
select bits, ELSxB and ELSxA, determine whether they are timer channel I/O pins or general-purpose
I/O pins.
The PTC1/TCLK1 pin are the external clock input for the TIM. The prescaler select bits, PS[2:0], select
PTC1/TCLK1 as the TIM clock input. When not selected as the TIM clock, they are available for
general purpose I/O.
shows the port function priority table.
(see Chapter 8 Timer Interface Module
Additional
Function:
Address:
Data direction register C (DDRC) does not affect the data direction of port
C pins that are being used by the TIM. However, the DDRC bits always
determine whether reading port C returns the states of the latches or the
states of the pins.
Reset:
Read:
Write:
$0002
Bit 7
(see Chapter 8 Timer Interface Module
= Unimplemented
MSxB:MSxA
Figure 13-8. Port C Data Register (PTC)
01/10/11
6
Table 13-4. Port C Priority Table
00
MC68HC908JW32 Data Sheet, Rev. 5
5
Timer function pins
Port logic control
NOTE
Unaffected by reset
4
(TIM))
Feature
PTC3
3
(TIM))
T1CH1
PTC2
2
T1CLK
PTC1
1
Freescale Semiconductor
T1CH0
PTC0
Bit 0

Related parts for mc68hc908jw32