![Rabbit Rabbit 4000 Скачать руководство пользователя страница 250](http://html1.mh-extra.com/html/rabbit/rabbit-4000/rabbit-4000_user-manual_3116714250.webp)
240
Rabbit 4000 Microprocessor User’s Manual
The spreading function is implemented by dividing each 1024-clock cycle into four quad-
rants of 256 clocks each. Within each quadrant, the Pulse-Width Modulator uses the eight
MSBs of each pulse-width register to select the base width in each of the quadrants. This
is the equivalent to dividing the contents of the pulse-width register by four and using this
value in each quadrant. To get the exact high time, the Pulse-Width Modulator uses the
two LSBs of the pulse-width register to modify the high time in each quadrant according
to the table below. The “
n
/4” term is the base count, formed from the eight MSBs of the
pulse-width register.
The diagram below shows a PWM output for several different width values, for both
modes of operation. Operation in the spread mode reduces the filtering requirements on
the PWM output in most cases.
The DMA channels on the Rabbit 4000 are designed to work with fixed I/O addresses. To
allow DMA control of the PWM, a separate PWM Block Access Register (PWBAR) and
PWM Block Pointer Register (PWBPR) are available. The pointer register contains the
address of the PWM register to be accessed via the access register. Each read or write of
the access register automatically increments the pointer register through the sequence
shown below. Note that only the lower three bits of the pointer register actually change.
This allows the DMA to write to a fixed internal I/O location but still program all of the
PWM registers. The pointer register can be written and read if necessary. Normally the
Pulse-Width LSBs
1st
2nd
3rd
4th
00
n
/4 + 1
n
/4
n
/4
n
/4
01
n
/4 + 1
n
/4
n
/4 + 1
n
/4
10
n
/4 + 1
n
/4 + 1
n
/4 + 1
n
/4
11
n
/4 + 1
n
/4 + 1
n
/4 + 1
n
/4 + 1
n = 255, normal
n = 255, spread
n = 256, spread
n = 257, spread
n = 258, spread
n = 259, spread
n = 259, normal
(256 counts)
(64 counts)
(64 counts)
(64 counts)
(64 counts)
(65 counts)
(65 counts)
(65 counts)
(65 counts)
(64 counts)
(64 counts)
(64 counts)
(64 counts)
(64 counts)
(64 counts)
(65 counts)
(65 counts)
(65 counts)
(65 counts)
(65 counts)
(65 counts)
(260 counts)
Содержание Rabbit 4000
Страница 1: ...Rabbit 4000 Microprocessor User s Manual 019 0152 070720 H...
Страница 18: ...8 Rabbit 4000 Microprocessor User s Manual...
Страница 40: ...30 Rabbit 4000 Microprocessor User s Manual...
Страница 74: ...64 Rabbit 4000 Microprocessor User s Manual...
Страница 82: ...72 Rabbit 4000 Microprocessor User s Manual...
Страница 86: ...76 Rabbit 4000 Microprocessor User s Manual...
Страница 96: ...86 Rabbit 4000 Microprocessor User s Manual...
Страница 182: ...172 Rabbit 4000 Microprocessor User s Manual...
Страница 240: ...230 Rabbit 4000 Microprocessor User s Manual...
Страница 248: ...238 Rabbit 4000 Microprocessor User s Manual...
Страница 256: ...246 Rabbit 4000 Microprocessor User s Manual...
Страница 310: ...300 Rabbit 4000 Microprocessor User s Manual...
Страница 330: ...320 Rabbit 4000 Microprocessor User s Manual...
Страница 348: ...338 Rabbit 4000 Microprocessor User s Manual...