MC68340AG16VE Freescale Semiconductor, MC68340AG16VE Datasheet - Page 351

no-image

MC68340AG16VE

Manufacturer Part Number
MC68340AG16VE
Description
IC MPU 32BIT 16MHZ 144-LQFP
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC68340AG16VE

Processor Type
M683xx 32-Bit
Speed
16MHz
Voltage
3.3V
Mounting Type
Surface Mount
Package / Case
144-LQFP
Controller Family/series
68K
Core Size
32 Bit
No. Of I/o's
16
Cpu Speed
16MHz
No. Of Timers
2
Embedded Interface Type
UART
Digital Ic Case Style
LQFP
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Features
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68340AG16VE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
to its location in the SR. See Figure 8-4 for a depiction of this mode. If the timing gate is
disabled (CR TGE bit is cleared), TGATE has no effect on the operation of the timer;
thus the input capture function is inoperative. At all times, the TGATE level bit (TGL) in
the SR reflects the level of the TGATE signal.
Since the counter is not affected by TGATE , it continues to decrement on the falling
edge of the counter clock and load from the PREL1 at timeout, regardless of the value of
TGATE .
When the counter counts down to the value contained in the COM, this condition is
reflected by setting the timer compare (TC) and compare (COM) bits in the SR. TOUTx
responds as selected by the OCx bits in the CR. The output level (OUT) bit in the SR
reflects the value on TOUTx. Shadowing does not affect this operation.
If the counter counts down to $0000, a timeout is detected, causing the SR timeout
interrupt (TO) bit to be set and the SR COM bit to be cleared. On the next falling edge of
the counter clock after the timeout is detected, the value in PREL1 is again loaded into the
counter. TOUTx responds as selected by the CR OCx bits.
A square-wave generator can be implemented by programming the CR OCx bits to toggle
mode. The value in the COM should be one-half the value in PREL1 to cause an event to
happen twice in the countdown.
This mode can be used as a pulse-width modulator by programming the CR OCx bits to
zero mode or one mode. The value in the PREL1 specifies the frequency, and the COM
determines the pulse width. The pulse widths can be changed by writing a new value to
the COM.
MOTOROLA
REGISTER
COUNTER
Modex Bits in Control Register = 000
Preload 1 Register = 8
Compare Register = 7
TGE Bit of Status Register = 1
TG Bit in Status Register Initially = 0
OCx Bits in Control Register = 10
COUNTER
COUNTER
CLOCK
TGATE
TOUT
0
0
ENABLE
0
0
Figure 8-4. Input Capture/Output Compare Mode
0
0
8
0
Freescale Semiconductor, Inc.
For More Information On This Product,
TC SET
8
8
7
8
7
7
MC68340 USER’S MANUAL
Go to: www.freescale.com
6
7
6
6
TG SET
5
6
5
6
4
6
4
6
3
6
TG CLEARED
3
6
2
3
2
2
1
2
TIMEOUT
1
1
0
1
0
0
8
0
TG SET
TC SET
8
8
7
8
7
8
8- 7

Related parts for MC68340AG16VE