參數(shù)資料
型號: 16LF628A
廠商: Microchip Technology Inc.
元件分類: 8位微控制器
英文描述: FLASH-Based 8-Bit CMOS Microcontrollers
中文描述: 基于閃存的8位CMOS微控制器
文件頁數(shù): 79/168頁
文件大小: 3760K
代理商: 16LF628A
2002 Microchip Technology Inc.
Preliminary
DS40044A-page 77
PIC16F627A/628A/648A
FIGURE 12-5:
USART TRANSMIT BLOCK DIAGRAM
Follow these steps when setting up an Asynchronous
Transmission:
1.
TRISB<1> bit needs to be set and TRISB<2> bit
cleared in order to configure pins RB2/TX/CK
and RB1/RX/DT as the Universal Synchronous
Asynchronous Receiver Transmitter pins.
2.
Initialize the SPBRG register for the appropriate
baud rate. If a high-speed baud rate is desired,
set bit BRGH. (Section 12.1)
3.
Enable the asynchronous serial port by clearing
bit SYNC and setting bit SPEN.
4.
If interrupts are desired, then set enable bit
TXIE.
5.
If 9-bit transmission is desired, then set transmit
bit TX9.
6.
Enable the transmission by setting bit TXEN,
which will also set bit TXIF.
7.
If 9-bit transmission is selected, the ninth bit
should be loaded in bit TX9D.
8.
Load data to the TXREG register (starts trans-
mission).
FIGURE 12-6:
ASYNCHRONOUS TRANSMISSION
TXIF
TXIE
Interrupt
TXEN
Baud Rate CLK
SPBRG
Baud Rate Generator
TX9D
MSb
(8)
LSb
0
Data Bus
TXREG register
TSR register
TX9
TRMT
SPEN
RB2/TX/CK pin
Pin Buffer
and Control
8
2 2 2
WORD 1
STOP Bit
WORD 1
Transmit Shift Reg
START Bit
Bit 0
Bit 1
Bit 7/8
Write to TXREG
Word 1
BRG output
(shift clock)
RB2/TX/CK (pin)
TXIF bit
(Transmit buffer
reg. empty flag)
TRMT bit
(Transmit shift
reg. empty flag)
相關(guān)PDF資料
PDF描述
16F628 CAT 5E CROSSOVER PATCH CORD CABLE BLUE 1 FT
16M0 PC SERIAL MODEM CBL 50 FT
16M0B APPLE IIC CABLE TO IWRTR MODEM
16M0BC KEYBD.EXT. MINI DIN 4 MM 6 FT
16M0BS KEYBD.EXT. MINI DIN 4 MM 10 FT
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
16LH 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Precision Linear Transducers, Designed for Mounting in Hydraulic or Pneumatic Cylinder, Conductive Plastic Element (REC)
16LH_08 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Precision Linear Transducers, Designed for Mounting in Hydraulic or Pneumatic Cylinder
16LH4A152WE 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Precision Linear Transducers, Designed for Mounting in Hydraulic or Pneumatic Cylinder
16LH4D152WE 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Precision Linear Transducers, Designed for Mounting in Hydraulic or Pneumatic Cylinder
16LH4E152WE 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Precision Linear Transducers, Designed for Mounting in Hydraulic or Pneumatic Cylinder