MikroElektronika PIC Microcontrollers PIC18 Uživatelský manuál Strana 14

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 40
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 13
and the nominal bit rate (NMR) is
NBR ¼ 1=T
BIT
ð9:2Þ
The time quantum is derived from the oscillator frequency and the programmable
baud rate prescaler, with integer values from 1 to 64. The time quantum can be
expressed as:
T
Q
¼ 2 ðBRP þ 1Þ=F
OSC
ð9:3Þ
where T
Q
is in ms, F
OSC
is in MHz, and BRP is the baud rate prescaler (0 to 63).
Equation (9.2) can be written as
T
Q
¼ 2 ðBRP þ 1ÞT
OSC
ð9:4Þ
where T
OSC
is in ms.
An example of the calculation of a nominal bit rate follows.
Example 9.1
Assuming a clock frequency of 20MHz, a baud rate prescaler value of 1, and a
nominal bit time of T
BIT
¼ 8*T
Q
, determine the nominal bit rate.
Solution 9.1
Using equation (9.3),
T
Q
¼ 2 ð1 þ 1 Þ=20 ¼ 0:2ms
also
T
BIT
¼ 8 T
Q
¼ 8 0:2 ¼ 1:6ms
From Equation (9.2),
NBR ¼ 1=T
BIT
¼ 1=1:6ms ¼ 625; 000bites=s or 625Kb=s
www.newnespress.com
488 Chapter 9
Zobrazit stránku 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 39 40

Komentáře k této Příručce

Žádné komentáře